Remove useless Rc

This commit is contained in:
John Kåre Alsaker 2017-12-03 14:25:09 +01:00
parent 30a39ac5ce
commit 30733b3e68

View file

@ -227,7 +227,7 @@ pub fn run_compiler<'a>(args: &[String],
},
};
let cstore = Rc::new(CStore::new(DefaultTransCrate::metadata_loader()));
let cstore = CStore::new(DefaultTransCrate::metadata_loader());
let loader = file_loader.unwrap_or(box RealFileLoader);
let codemap = Rc::new(CodeMap::with_file_loader(loader, sopts.file_path_mapping()));
@ -243,7 +243,7 @@ pub fn run_compiler<'a>(args: &[String],
do_or_return!(callbacks.late_callback(&matches,
&sess,
&*cstore,
&cstore,
&input,
&odir,
&ofile), Some(sess));