Skip to content

Commit 8597e18

Browse files
committed
fixup! Error on resetted binding mode in edition 2024
1 parent 3b71f07 commit 8597e18

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_hir_typeck/src

1 file changed

+0
-1
lines changed

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
22652265
// Look for a case like `fn foo(&foo: u32)` and suggest
22662266
// `fn foo(foo: &u32)`
22672267
if let Err(mut err) = err {
2268-
// TODO: this suggestion may not be ok with min_match_ergonomics
22692268
self.borrow_pat_suggestion(&mut err, pat);
22702269
err.emit();
22712270
}

0 commit comments

Comments
 (0)