about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-08-01 21:55:11 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-09-25 20:36:14 +0300
commitf89660e4aa018401ca993f0df190e5f4c4a6799b (patch)
tree6dcf4590f3e62fb704208b16306abbc339d8823c /compiler/rustc_macros/src
parent6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 (diff)
downloadrust-f89660e4aa018401ca993f0df190e5f4c4a6799b.tar.gz
rust-f89660e4aa018401ca993f0df190e5f4c4a6799b.zip
resolve: Do not finalize shadowed bindings
I.e. do not mark them as used, or non-speculative loaded, or similar.
Previously they were sometimes finalized during early resolution, causing issues like https://github.com/rust-lang/rust/pull/144793#issuecomment-3168108005.
Diffstat (limited to 'compiler/rustc_macros/src')
-rw-r--r--compiler/rustc_macros/src/query.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/query.rs b/compiler/rustc_macros/src/query.rs
index 5821ffa3a30..5d32950875a 100644
--- a/compiler/rustc_macros/src/query.rs
+++ b/compiler/rustc_macros/src/query.rs
@@ -5,7 +5,7 @@ use syn::punctuated::Punctuated;
 use syn::spanned::Spanned;
 use syn::{
     AttrStyle, Attribute, Block, Error, Expr, Ident, Pat, ReturnType, Token, Type, braced,
-    parenthesized, parse_macro_input, parse_quote, token,
+    parenthesized, parse_macro_input, token,
 };
 
 mod kw {