diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2017-12-03 14:25:09 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2017-12-21 19:21:40 +0100 |
| commit | 30733b3e68e0a6cc6466c881423ada562aa85b4e (patch) | |
| tree | 5ecc0a97afaabb5af0819529ca45406c5fc8be24 | |
| parent | 30a39ac5cee8fcd172ab88ff3ee0b0e71dc80c4c (diff) | |
| download | rust-30733b3e68e0a6cc6466c881423ada562aa85b4e.tar.gz rust-30733b3e68e0a6cc6466c881423ada562aa85b4e.zip | |
Remove useless Rc
| -rw-r--r-- | src/librustc_driver/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index eac7483224e..8d49c57095c 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -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)); |
