File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use std::sync::mpsc;
16
16
use driver;
17
17
use rustc_lint;
18
18
use rustc_resolve:: MakeGlobMap ;
19
- use rustc_trans;
20
19
use rustc:: middle:: region;
21
20
use rustc:: ty:: subst:: { Kind , Subst } ;
22
21
use rustc:: traits:: { ObligationCause , Reveal } ;
@@ -104,12 +103,11 @@ fn test_env<F>(source_string: &str,
104
103
options. unstable_features = UnstableFeatures :: Allow ;
105
104
let diagnostic_handler = errors:: Handler :: with_emitter ( true , false , emitter) ;
106
105
107
- let cstore = Rc :: new ( CStore :: new ( :: DefaultTransCrate :: new ( ) . metadata_loader ( ) ) ) ;
108
106
let sess = session:: build_session_ ( options,
109
107
None ,
110
108
diagnostic_handler,
111
109
Rc :: new ( CodeMap :: new ( FilePathMapping :: empty ( ) ) ) ) ;
112
- rustc_trans :: init ( & sess) ;
110
+ let cstore = Rc :: new ( CStore :: new ( :: get_trans ( & sess) . metadata_loader ( ) ) ) ;
113
111
rustc_lint:: register_builtins ( & mut sess. lint_store . borrow_mut ( ) , Some ( & sess) ) ;
114
112
let input = config:: Input :: Str {
115
113
name : FileName :: Anon ,
You can’t perform that action at this time.
0 commit comments