@@ -7,8 +7,8 @@ use rustc_ast::tokenstream::{
77 AttrTokenStream , AttrTokenTree , LazyAttrTokenStream , Spacing , TokenTree ,
88} ;
99use rustc_ast:: {
10- self as ast, AttrItemKind , AttrKind , AttrStyle , Attribute , DUMMY_NODE_ID , EarlyParsedAttribute ,
11- HasAttrs , HasTokens , MetaItem , MetaItemInner , NodeId , NormalAttr ,
10+ self as ast, AttrItemKind , AttrKind , AttrStyle , Attribute , EarlyParsedAttribute , HasAttrs ,
11+ HasTokens , MetaItem , MetaItemInner , NodeId , NormalAttr ,
1212} ;
1313use rustc_attr_parsing:: parser:: AllowExprMetavar ;
1414use rustc_attr_parsing:: {
@@ -28,7 +28,7 @@ use rustc_hir::{
2828use rustc_parse:: parser:: Recovery ;
2929use rustc_session:: Session ;
3030use rustc_session:: parse:: feature_err;
31- use rustc_span:: { DUMMY_SP , STDLIB_STABLE_CRATES , Span , Symbol , sym} ;
31+ use rustc_span:: { STDLIB_STABLE_CRATES , Span , Symbol , sym} ;
3232use tracing:: instrument;
3333
3434use crate :: errors:: {
@@ -51,14 +51,7 @@ pub fn features(sess: &Session, krate_attrs: &[Attribute], crate_name: Symbol) -
5151 let mut features = Features :: default ( ) ;
5252
5353 if let Some ( hir:: Attribute :: Parsed ( AttributeKind :: Feature ( feature_idents, _) ) ) =
54- AttributeParser :: parse_limited (
55- sess,
56- krate_attrs,
57- & [ sym:: feature] ,
58- DUMMY_SP ,
59- DUMMY_NODE_ID ,
60- Some ( & features) ,
61- )
54+ AttributeParser :: parse_limited ( sess, krate_attrs, & [ sym:: feature] )
6255 {
6356 for feature_ident in feature_idents {
6457 // If the enabled feature has been removed, issue an error.
0 commit comments