mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
A few borrowck tweaks to improve 2024 edition migration lints See first two commits' changes to test outputs. Test coverage in this area is kinda weak, but I think it affects more cases than this (like the craters that will begin to trigger the `tail_expr_drop_order` tests in #134523). Third commit is a drive-by change that removes a deref hack from `UseSpans` which doesn't really improve diagnostics much.
For more information about how rustc works, see the rustc dev guide.