-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flip spans for precise capturing syntax not capturing a ty/const param, and for implicit captures of lifetime params #124198
Flip spans for precise capturing syntax not capturing a ty/const param, and for implicit captures of lifetime params #124198
Conversation
r? @Nadrieril rustbot has assigned @Nadrieril. Use |
663ea88
to
fa0428c
Compare
| | ||
LL | trait Foo { | ||
| ^^^^^^^^^ | ||
LL | | ||
| --------- type parameter is implicitly captured by this `impl Trait` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be "Self
parameter is implicitly captured" instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. r=me with or without the suggested change.
@bors r+ |
…llaumeGomez Rollup of 4 pull requests Successful merges: - rust-lang#124069 (enable clippy for bootstrap on CI PRs (in `mingw-check` image)) - rust-lang#124089 (Fix watchOS and visionOS for pread64 and pwrite64 calls) - rust-lang#124184 (Suggest using `unsigned_abs` in `abs` documentation) - rust-lang#124198 (Flip spans for precise capturing syntax not capturing a ty/const param, and for implicit captures of lifetime params) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124198 - compiler-errors:improve-ty-ct-param-span, r=Nadrieril Flip spans for precise capturing syntax not capturing a ty/const param, and for implicit captures of lifetime params Make the primary span point to the opaque, rather than the param which might be very far away (e.g. in an impl header hundreds of lines above).
Make the primary span point to the opaque, rather than the param which might be very far away (e.g. in an impl header hundreds of lines above).