diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2017-09-05 16:48:24 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-12 07:19:06 -0700 |
| commit | 54fa047d92fc46bae454defaec8d254f7af6746b (patch) | |
| tree | 2e91bae1ad4bf5ee5a2ce16da97fbed5defedf16 /src/test/run-make | |
| parent | 817e1b81e230d599585f860cdcad96c5ed83b93e (diff) | |
| download | rust-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.rs | 2 |
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) |
