mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
eb52efbbd2
Fix misleading "borrowed data escapes outside of function" diagnostic Fixes rust-lang/rust#154350 Fall back to `report_general_error()` when `fr_name_and_span` is `None` in function items, since the "escaping data" framing is only appropriate for closures capturing outside variables.