Skip to content

Commit c87567c

Browse files
author
b4den
committed
Add context to compiler error message
Changed `creates a temporary which is freed while still in use` to `creates a temporary value which is freed while still in use`
1 parent 53728ff commit c87567c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
15491549
}
15501550

15511551
let mut err = self.temporary_value_borrowed_for_too_long(proper_span);
1552-
err.span_label(proper_span, "creates a temporary which is freed while still in use");
1552+
err.span_label(proper_span, "creates a temporary value which is freed while still in use");
15531553
err.span_label(drop_span, "temporary value is freed at the end of this statement");
15541554

15551555
match explanation {

0 commit comments

Comments
 (0)