@@ -25,7 +25,6 @@ use middle::cstore;
2525
2626use syntax:: ast:: { self , IntTy , UintTy } ;
2727use syntax:: attr;
28- use syntax:: attr:: AttrMetaMethods ;
2928use syntax:: parse;
3029use syntax:: parse:: token:: InternedString ;
3130use syntax:: feature_gate:: UnstableFeatures ;
@@ -1773,8 +1772,9 @@ mod tests {
17731772 use std:: path:: PathBuf ;
17741773 use std:: rc:: Rc ;
17751774 use super :: { OutputType , OutputTypes , Externs , PanicStrategy } ;
1776- use syntax:: attr;
1777- use syntax:: attr:: AttrMetaMethods ;
1775+ use syntax:: { ast, attr} ;
1776+ use syntax:: parse:: token:: InternedString ;
1777+ use syntax:: codemap:: dummy_spanned;
17781778
17791779 fn optgroups ( ) -> Vec < OptGroup > {
17801780 super :: rustc_optgroups ( ) . into_iter ( )
@@ -1803,7 +1803,9 @@ mod tests {
18031803 let ( sessopts, cfg) = build_session_options_and_crate_config ( matches) ;
18041804 let sess = build_session ( sessopts, & dep_graph, None , registry, Rc :: new ( DummyCrateStore ) ) ;
18051805 let cfg = build_configuration ( & sess, cfg) ;
1806- assert ! ( ( attr:: contains_name( & cfg[ ..] , "test" ) ) ) ;
1806+ assert ! ( attr:: contains( & cfg, & dummy_spanned( ast:: MetaItemKind :: Word ( {
1807+ InternedString :: new( "test" )
1808+ } ) ) ) ) ;
18071809 }
18081810
18091811 // When the user supplies --test and --cfg test, don't implicitly add
0 commit comments