@@ -1953,13 +1953,12 @@ mod tests {
1953
1953
use errors;
1954
1954
use getopts;
1955
1955
use lint;
1956
- use middle:: cstore:: { self , DummyCrateStore } ;
1956
+ use middle:: cstore;
1957
1957
use session:: config:: { build_configuration, build_session_options_and_crate_config} ;
1958
1958
use session:: build_session;
1959
1959
use std:: collections:: { BTreeMap , BTreeSet } ;
1960
1960
use std:: iter:: FromIterator ;
1961
1961
use std:: path:: PathBuf ;
1962
- use std:: rc:: Rc ;
1963
1962
use super :: { OutputType , OutputTypes , Externs } ;
1964
1963
use rustc_back:: { PanicStrategy , RelroLevel } ;
1965
1964
use syntax:: symbol:: Symbol ;
@@ -1991,7 +1990,7 @@ mod tests {
1991
1990
} ;
1992
1991
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
1993
1992
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) ;
1995
1994
let cfg = build_configuration ( & sess, cfg) ;
1996
1995
assert ! ( cfg. contains( & ( Symbol :: intern( "test" ) , None ) ) ) ;
1997
1996
}
@@ -2010,8 +2009,7 @@ mod tests {
2010
2009
} ;
2011
2010
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
2012
2011
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) ;
2015
2013
let cfg = build_configuration ( & sess, cfg) ;
2016
2014
let mut test_items = cfg. iter ( ) . filter ( |& & ( name, _) | name == "test" ) ;
2017
2015
assert ! ( test_items. next( ) . is_some( ) ) ;
@@ -2027,8 +2025,7 @@ mod tests {
2027
2025
] ) . unwrap ( ) ;
2028
2026
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
2029
2027
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) ;
2032
2029
assert ! ( !sess. diagnostic( ) . can_emit_warnings) ;
2033
2030
}
2034
2031
@@ -2039,8 +2036,7 @@ mod tests {
2039
2036
] ) . unwrap ( ) ;
2040
2037
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
2041
2038
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) ;
2044
2040
assert ! ( sess. diagnostic( ) . can_emit_warnings) ;
2045
2041
}
2046
2042
@@ -2050,8 +2046,7 @@ mod tests {
2050
2046
] ) . unwrap ( ) ;
2051
2047
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
2052
2048
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) ;
2055
2050
assert ! ( sess. diagnostic( ) . can_emit_warnings) ;
2056
2051
}
2057
2052
}
0 commit comments