Skip to content

Commit ab7b29d

Browse files
chenyukangoli-obk
andcommitted
Update compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs
Co-authored-by: Oli Scherer <[email protected]>
1 parent 551acbb commit ab7b29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, '_, 'infcx, 'tcx> {
516516
}
517517
}
518518

519-
// for dbg!(x) which may take onwership, suggest dbg!(&x) instead
519+
// for dbg!(x) which may take ownership, suggest dbg!(&x) instead
520520
// but here we actually do not check whether the macro name is `dbg!`
521521
// so that we may extend the scope a bit larger to cover more cases
522522
fn suggest_ref_for_dbg_args(

0 commit comments

Comments
 (0)