Skip to content

Commit 5424e4f

Browse files
committed
remove an unused codepath
1 parent 3cc1720 commit 5424e4f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -2954,12 +2954,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
29542954
}
29552955
}
29562956

2957-
let name = if borrow_span.in_external_macro(self.infcx.tcx.sess.source_map()) {
2958-
// Don't name local variables in external macros.
2959-
"value".to_string()
2960-
} else {
2961-
format!("`{name}`")
2962-
};
2957+
let name = format!("`{name}`");
29632958

29642959
let mut err = self.path_does_not_live_long_enough(borrow_span, &name);
29652960

0 commit comments

Comments
 (0)