@@ -1953,13 +1953,12 @@ mod tests {
19531953 use errors;
19541954 use getopts;
19551955 use lint;
1956- use middle:: cstore:: { self , DummyCrateStore } ;
1956+ use middle:: cstore;
19571957 use session:: config:: { build_configuration, build_session_options_and_crate_config} ;
19581958 use session:: build_session;
19591959 use std:: collections:: { BTreeMap , BTreeSet } ;
19601960 use std:: iter:: FromIterator ;
19611961 use std:: path:: PathBuf ;
1962- use std:: rc:: Rc ;
19631962 use super :: { OutputType , OutputTypes , Externs } ;
19641963 use rustc_back:: { PanicStrategy , RelroLevel } ;
19651964 use syntax:: symbol:: Symbol ;
@@ -1991,7 +1990,7 @@ mod tests {
19911990 } ;
19921991 let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
19931992 let ( sessopts, cfg) = build_session_options_and_crate_config ( matches) ;
1994- let sess = build_session ( sessopts, & dep_graph, None , registry, Rc :: new ( DummyCrateStore ) ) ;
1993+ let sess = build_session ( sessopts, & dep_graph, None , registry) ;
19951994 let cfg = build_configuration ( & sess, cfg) ;
19961995 assert ! ( cfg. contains( & ( Symbol :: intern( "test" ) , None ) ) ) ;
19971996 }
@@ -2010,8 +2009,7 @@ mod tests {
20102009 } ;
20112010 let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
20122011 let ( sessopts, cfg) = build_session_options_and_crate_config ( matches) ;
2013- let sess = build_session ( sessopts, & dep_graph, None , registry,
2014- Rc :: new ( DummyCrateStore ) ) ;
2012+ let sess = build_session ( sessopts, & dep_graph, None , registry) ;
20152013 let cfg = build_configuration ( & sess, cfg) ;
20162014 let mut test_items = cfg. iter ( ) . filter ( |& & ( name, _) | name == "test" ) ;
20172015 assert ! ( test_items. next( ) . is_some( ) ) ;
@@ -2027,8 +2025,7 @@ mod tests {
20272025 ] ) . unwrap ( ) ;
20282026 let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
20292027 let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
2030- let sess = build_session ( sessopts, & dep_graph, None , registry,
2031- Rc :: new ( DummyCrateStore ) ) ;
2028+ let sess = build_session ( sessopts, & dep_graph, None , registry) ;
20322029 assert ! ( !sess. diagnostic( ) . can_emit_warnings) ;
20332030 }
20342031
@@ -2039,8 +2036,7 @@ mod tests {
20392036 ] ) . unwrap ( ) ;
20402037 let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
20412038 let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
2042- let sess = build_session ( sessopts, & dep_graph, None , registry,
2043- Rc :: new ( DummyCrateStore ) ) ;
2039+ let sess = build_session ( sessopts, & dep_graph, None , registry) ;
20442040 assert ! ( sess. diagnostic( ) . can_emit_warnings) ;
20452041 }
20462042
@@ -2050,8 +2046,7 @@ mod tests {
20502046 ] ) . unwrap ( ) ;
20512047 let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
20522048 let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
2053- let sess = build_session ( sessopts, & dep_graph, None , registry,
2054- Rc :: new ( DummyCrateStore ) ) ;
2049+ let sess = build_session ( sessopts, & dep_graph, None , registry) ;
20552050 assert ! ( sess. diagnostic( ) . can_emit_warnings) ;
20562051 }
20572052 }
0 commit comments