Skip to content

Commit 51856fd

Browse files
committed
Remove an unnecessary local variable.
1 parent 055b1b4 commit 51856fd

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
@@ -306,12 +306,11 @@ impl<'a> StripUnconfigured<'a> {
306306
else {
307307
panic!("Bad tokens for attribute {attr:?}");
308308
};
309-
let pound_span = pound_token.span;
310309

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

0 commit comments

Comments
 (0)