diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-09-09 11:02:18 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-14 10:40:50 -0700 |
| commit | 1cf956f2bae0f3d2b152bb2e06faa16e58b1ea15 (patch) | |
| tree | 673cbf85024fc8cbdb1a5fd31140d7b4964bbd78 /src/test | |
| parent | 5dfc84cfa72b405c194228b53c4de3f6474204ec (diff) | |
| download | rust-1cf956f2bae0f3d2b152bb2e06faa16e58b1ea15.tar.gz rust-1cf956f2bae0f3d2b152bb2e06faa16e58b1ea15.zip | |
rustc: Remove `Session::dep_graph`
This commit removes the `dep_graph` field from the `Session` type according to issue #44390. Most of the fallout here was relatively straightforward and the `prepare_session_directory` function was rejiggered a bit to reuse the results in the later-called `load_dep_graph` function. Closes #44390
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-make/issue-19371/foo.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/run-make/issue-19371/foo.rs b/src/test/run-make/issue-19371/foo.rs index 2e3fb785748..461df49b468 100644 --- a/src/test/run-make/issue-19371/foo.rs +++ b/src/test/run-make/issue-19371/foo.rs @@ -58,9 +58,8 @@ fn basic_sess(sysroot: PathBuf) -> (Session, Rc<CStore>) { opts.maybe_sysroot = Some(sysroot); 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); + let sess = build_session(opts, None, descriptions); rustc_trans::init(&sess); rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess)); (sess, cstore) |
