Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 88373e9

Browse files
committed
Remove an unnecessary local variable.
1 parent 14b859f commit 88373e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_expand/src/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,11 @@ impl<'a> StripUnconfigured<'a> {
310310
else {
311311
panic!("Bad tokens for attribute {attr:?}");
312312
};
313-
let pound_span = pound_token.span;
314313

315314
// We don't really have a good span to use for the synthesized `[]`
316315
// in `#[attr]`, so just use the span of the `#` token.
317316
let bracket_group = AttrTokenTree::Delimited(
318-
DelimSpan::from_single(pound_span),
317+
DelimSpan::from_single(pound_token.span),
319318
DelimSpacing::new(Spacing::JointHidden, Spacing::Alone),
320319
Delimiter::Bracket,
321320
item.tokens

0 commit comments

Comments
 (0)