File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
rustc_attr_parsing/src/attributes Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 11use rustc_feature:: AttributeTemplate ;
22use rustc_hir:: attrs:: { AttributeKind , CfgEntry } ;
3- use rustc_span:: { Symbol , sym , Span } ;
3+ use rustc_span:: { Span , Symbol , sym } ;
44
55use crate :: attributes:: { CombineAttributeParser , ConvertFn } ;
66use crate :: context:: { AcceptContext , Stage } ;
Original file line number Diff line number Diff line change @@ -1350,6 +1350,7 @@ impl AttributeExt for Attribute {
13501350 // FIXME: should not be needed anymore when all attrs are parsed
13511351 Attribute :: Parsed ( AttributeKind :: DocComment { span, .. } ) => * span,
13521352 Attribute :: Parsed ( AttributeKind :: Deprecation { span, .. } ) => * span,
1353+ Attribute :: Parsed ( AttributeKind :: CfgTrace ( cfgs) ) => cfgs[ 0 ] . 1 ,
13531354 a => panic ! ( "can't get the span of an arbitrary parsed attribute: {a:?}" ) ,
13541355 }
13551356 }
You can’t perform that action at this time.
0 commit comments