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 055b1b4 commit 51856fdCopy full SHA for 51856fd
compiler/rustc_expand/src/config.rs
@@ -306,12 +306,11 @@ impl<'a> StripUnconfigured<'a> {
306
else {
307
panic!("Bad tokens for attribute {attr:?}");
308
};
309
- let pound_span = pound_token.span;
310
311
// We don't really have a good span to use for the synthesized `[]`
312
// in `#[attr]`, so just use the span of the `#` token.
313
let bracket_group = AttrTokenTree::Delimited(
314
- DelimSpan::from_single(pound_span),
+ DelimSpan::from_single(pound_token.span),
315
DelimSpacing::new(Spacing::JointHidden, Spacing::Alone),
316
Delimiter::Bracket,
317
meta.tokens
0 commit comments