Remove some usages of guess_head_span#98869
Conversation
There was a problem hiding this comment.
I actually think that this is more accurate than what we were doing before... I could potentially revert this one.
There was a problem hiding this comment.
I agree this is more accurate. Why do you want to revert it?
|
This is related to my PR #98519. |
|
Oh, sorry @TaKO8Ki, I didn't know you were working on this. I just saw this comment and wanted to remove more usages (mostly from typeck and trait selection). |
cjgillot
left a comment
There was a problem hiding this comment.
Thanks @compiler-errors.
Do you mind if we wait for #98519 to land?
There was a problem hiding this comment.
I agree this is more accurate. Why do you want to revert it?
|
Yeah, I'll wait on that one. My bad for not checking if another @rustbot author |
|
☔ The latest upstream changes (presumably #98987) made this pull request unmergeable. Please resolve the merge conflicts. |
cea8332 to
13ea003
Compare
|
Some changes occurred in src/tools/cargo cc @ehuss |
13ea003 to
30191cf
Compare
|
I think this is ready. @rustbot ready |
compiler/rustc_lint/src/context.rs
Outdated
There was a problem hiding this comment.
Why do we still need this one?
There was a problem hiding this comment.
Otherwise we'll point to a whole mod .. {} block span, e.g. in the src/test/ui/imports/unused-imports-in-test-module.stderr UI test.
compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs
Outdated
Show resolved
Hide resolved
7b93b66 to
fcfb3e9
Compare
|
@rustbot ready |
|
@bors r+ |
Rollup of 5 pull requests Successful merges: - rust-lang#88991 (Add Nintendo Switch as tier 3 target) - rust-lang#98869 (Remove some usages of `guess_head_span`) - rust-lang#99119 (Refactor: remove a string matching about methods) - rust-lang#99209 (Correctly handle crate level page on docs.rs as well) - rust-lang#99246 (Update RLS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No need to pass things through
guess_head_spanif they already point to the head span.Only major change is that we point to the head span of
enums on some errors now, which I prefer.r? @cjgillot