-
Couldn't load subscription status.
- Fork 13.9k
deriving: avoid dummy Span on an artificial type_ident path
#65310
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
Conversation
The dummy Span pointed to the beginning of the source file instead to where the `#[derive]` is located. Later, it tripped the `in_derive_expansion(span)` check at `src/librustc/middle/stability.rs`, causing a span-less deprecation warning to be emitted. Fixes rust-lang#56195, rust-lang#55417.
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
Can you add a ui test exercising this? |
|
@da-x I'm not sure what's going on there, but I am surprised there wasn't a corresponding |
|
@bors r+ rollup |
|
📌 Commit e285175 has been approved by |
deriving: avoid dummy Span on an artificial `type_ident` path The dummy Span pointed to the beginning of the source file instead to where the `#[derive]` is located. Later, it tripped the `in_derive_expansion(span)` check at `src/librustc/middle/stability.rs`, causing a span-less deprecation warning to be emitted. Fixes rust-lang#56195, Fixes rust-lang#55417.
Rollup of 15 pull requests Successful merges: - #64337 (libstd: Fix typos in doc) - #64986 (Function pointers as const generic arguments) - #65048 (Added doc about behavior of extend on HashMap) - #65191 (Add some regression tests) - #65200 (Add ?Sized bound to a supertrait listing in E0038 error documentation) - #65205 (Add long error explanation for E0568) - #65220 (Update LLVM for Emscripten exception handling support) - #65263 (Deduplicate is_{freeze,copy,sized}_raw) - #65266 (Mark Path::join as must_use) - #65276 (Don't cc rust-lang/compiler for toolstate changes) - #65277 (Query generator kind for error reporting) - #65283 (stability: Do not use `buffer_lint` after lowering to HIR) - #65289 (Fix suggested bound addition diagnostic) - #65310 (deriving: avoid dummy Span on an artificial `type_ident` path) - #65321 (Remove painful test that is not pulling its weight) Failed merges: r? @ghost
The dummy Span pointed to the beginning of the source file instead to where the
#[derive]is located. Later, it tripped thein_derive_expansion(span)check atsrc/librustc/middle/stability.rs, causing a span-less deprecation warning to be emitted.Fixes #56195, Fixes #55417.