We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b859f commit 88373e9Copy full SHA for 88373e9
compiler/rustc_expand/src/config.rs
@@ -310,12 +310,11 @@ impl<'a> StripUnconfigured<'a> {
310
else {
311
panic!("Bad tokens for attribute {attr:?}");
312
};
313
- let pound_span = pound_token.span;
314
315
// We don't really have a good span to use for the synthesized `[]`
316
// in `#[attr]`, so just use the span of the `#` token.
317
let bracket_group = AttrTokenTree::Delimited(
318
- DelimSpan::from_single(pound_span),
+ DelimSpan::from_single(pound_token.span),
319
DelimSpacing::new(Spacing::JointHidden, Spacing::Alone),
320
Delimiter::Bracket,
321
item.tokens
0 commit comments