about summary refs log tree commit diff
path: root/src/test/run-make
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2017-09-05 16:48:24 +0200
committerAlex Crichton <alex@alexcrichton.com>2017-09-12 07:19:06 -0700
commit54fa047d92fc46bae454defaec8d254f7af6746b (patch)
tree2e91bae1ad4bf5ee5a2ce16da97fbed5defedf16 /src/test/run-make
parent817e1b81e230d599585f860cdcad96c5ed83b93e (diff)
downloadrust-54fa047d92fc46bae454defaec8d254f7af6746b.tar.gz
rust-54fa047d92fc46bae454defaec8d254f7af6746b.zip
Remove the `cstore` reference from Session in order to prepare encapsulating CrateStore access in tcx.
Diffstat (limited to 'src/test/run-make')
-rw-r--r--src/test/run-make/issue-19371/foo.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make/issue-19371/foo.rs b/src/test/run-make/issue-19371/foo.rs
index 9caf83d9954..2e3fb785748 100644
--- a/src/test/run-make/issue-19371/foo.rs
+++ b/src/test/run-make/issue-19371/foo.rs
@@ -60,7 +60,7 @@ fn basic_sess(sysroot: PathBuf) -> (Session, Rc<CStore>) {
     let descriptions = Registry::new(&rustc::DIAGNOSTICS);
     let dep_graph = DepGraph::new(opts.build_dep_graph());
     let cstore = Rc::new(CStore::new(Box::new(rustc_trans::LlvmMetadataLoader)));
-    let sess = build_session(opts, &dep_graph, None, descriptions, cstore.clone());
+    let sess = build_session(opts, &dep_graph, None, descriptions);
     rustc_trans::init(&sess);
     rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess));
     (sess, cstore)