1
Fork 0

Rollup merge of #103307 - b4den:master, r=estebank

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`.
This commit is contained in:
Manish Goregaokar 2022-11-09 15:39:02 -05:00 committed by GitHub
commit 46bc12c95a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 128 additions and 128 deletions

View file

@ -1557,7 +1557,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
}
let mut err = self.temporary_value_borrowed_for_too_long(proper_span);
err.span_label(proper_span, "creates a temporary which is freed while still in use");
err.span_label(proper_span, "creates a temporary value which is freed while still in use");
err.span_label(drop_span, "temporary value is freed at the end of this statement");
match explanation {