about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-07-04 09:30:03 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-07-07 15:58:12 +1000
commit88373e9f0c81dd55dd3a663bcfbaa27052c53beb (patch)
treec9d6cd0bf1cea700169a97ce1d73dd6088e51bbd
parent14b859fa3be22289d810df1cc8bd2aaf6fc299be (diff)
downloadrust-88373e9f0c81dd55dd3a663bcfbaa27052c53beb.tar.gz
rust-88373e9f0c81dd55dd3a663bcfbaa27052c53beb.zip
Remove an unnecessary local variable.
-rw-r--r--compiler/rustc_expand/src/config.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/config.rs b/compiler/rustc_expand/src/config.rs
index 561ac6bdd51..21ff56febb3 100644
--- a/compiler/rustc_expand/src/config.rs
+++ b/compiler/rustc_expand/src/config.rs
@@ -310,12 +310,11 @@ impl<'a> StripUnconfigured<'a> {
         else {
             panic!("Bad tokens for attribute {attr:?}");
         };
-        let pound_span = pound_token.span;
 
         // We don't really have a good span to use for the synthesized `[]`
         // in `#[attr]`, so just use the span of the `#` token.
         let bracket_group = AttrTokenTree::Delimited(
-            DelimSpan::from_single(pound_span),
+            DelimSpan::from_single(pound_token.span),
             DelimSpacing::new(Spacing::JointHidden, Spacing::Alone),
             Delimiter::Bracket,
             item.tokens