mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 15:23:05 +00:00
Fix error
This commit is contained in:
parent
18005203e1
commit
56c46707ed
@ -30,6 +30,7 @@ use rustc::hir::map as hir_map;
|
||||
use rustc::mir::transform::Passes;
|
||||
use rustc::session::{self, config};
|
||||
use rustc::session::config::{OutputFilenames, OutputTypes};
|
||||
use rustc_trans_utils::trans_crate::TransCrate;
|
||||
use std::rc::Rc;
|
||||
use syntax::ast;
|
||||
use syntax::abi::Abi;
|
||||
@ -105,7 +106,7 @@ fn test_env<F>(source_string: &str,
|
||||
options.unstable_features = UnstableFeatures::Allow;
|
||||
let diagnostic_handler = errors::Handler::with_emitter(true, false, emitter);
|
||||
|
||||
let cstore = Rc::new(CStore::new(DefaultTransCrate::metadata_loader()));
|
||||
let cstore = Rc::new(CStore::new(::DefaultTransCrate::metadata_loader()));
|
||||
let sess = session::build_session_(options,
|
||||
None,
|
||||
diagnostic_handler,
|
||||
|
Loading…
Reference in New Issue
Block a user