rustc: Remove DepGraph handling from rustc_metadata
This should now be entirely tracked through queries, so no need to have a `DepGraph` in the `CStore` object any more!
This commit is contained in:
parent
dead08cb33
commit
d724d03389
11 changed files with 102 additions and 245 deletions
|
|
@ -59,7 +59,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(&dep_graph, Box::new(rustc_trans::LlvmMetadataLoader)));
|
||||
let cstore = Rc::new(CStore::new(Box::new(rustc_trans::LlvmMetadataLoader)));
|
||||
let sess = build_session(opts, &dep_graph, None, descriptions, cstore.clone());
|
||||
rustc_trans::init(&sess);
|
||||
rustc_lint::register_builtins(&mut sess.lint_store.borrow_mut(), Some(&sess));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue