@@ -25,7 +25,6 @@ use middle::cstore;
25
25
26
26
use syntax:: ast:: { self , IntTy , UintTy } ;
27
27
use syntax:: attr;
28
- use syntax:: attr:: AttrMetaMethods ;
29
28
use syntax:: parse;
30
29
use syntax:: parse:: token:: InternedString ;
31
30
use syntax:: feature_gate:: UnstableFeatures ;
@@ -1773,8 +1772,9 @@ mod tests {
1773
1772
use std:: path:: PathBuf ;
1774
1773
use std:: rc:: Rc ;
1775
1774
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;
1778
1778
1779
1779
fn optgroups ( ) -> Vec < OptGroup > {
1780
1780
super :: rustc_optgroups ( ) . into_iter ( )
@@ -1803,7 +1803,9 @@ mod tests {
1803
1803
let ( sessopts, cfg) = build_session_options_and_crate_config ( matches) ;
1804
1804
let sess = build_session ( sessopts, & dep_graph, None , registry, Rc :: new ( DummyCrateStore ) ) ;
1805
1805
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
+ } ) ) ) ) ;
1807
1809
}
1808
1810
1809
1811
// When the user supplies --test and --cfg test, don't implicitly add
0 commit comments