fix drop_location_span ICE - #161548
Conversation
|
r? @Enselic rustbot has assigned @Enselic. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Reminder, once the PR becomes ready for a review, use |
d1439d4 to
21060d4
Compare
|
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
21060d4 to
5280e63
Compare
|
This PR changes a file inside |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
5280e63 to
623f6f7
Compare
|
@rustbot ready |
| lint.span_label( | ||
| drop_location_span, | ||
| format!( | ||
| "in Rust 2018, `{var_name}` is dropped here along with \ |
There was a problem hiding this comment.
Just curious: Why did you stop using v = this.tcx.hir_name(*var_hir_id),?
It doesn't matter much by itself, but for review it matters, because in general it is nice to minimize diffs. It makes it easier to review code. I have noticed that you shorten the long string, which is fine. Just curious why you didn't keep the other code the same.
There was a problem hiding this comment.
It's because I never use the x = ... syntax in format macros, so It looked weird to me. I updated the first branch to also use {var_name}.
623f6f7 to
158a310
Compare
|
@rustbot ready |
Resolves #156288.