]> git.lizzy.rs Git - rust.git/commitdiff
rebasing
authorNick Cameron <ncameron@mozilla.com>
Tue, 19 Apr 2016 04:16:40 +0000 (16:16 +1200)
committerNick Cameron <ncameron@mozilla.com>
Tue, 19 Apr 2016 22:16:10 +0000 (10:16 +1200)
src/librustc/hir/map/def_collector.rs
src/librustc_driver/driver.rs
src/test/run-make/execution-engine/test.rs

index b2456f4ab8714bfdac7c987a0750f74c7f79677c..053d32305be03328c5396f4ac06acc9157e7840f 100644 (file)
@@ -109,9 +109,9 @@ fn visit_item(&mut self, i: &'ast Item) {
             ItemKind::DefaultImpl(..) | ItemKind::Impl(..) =>
                 DefPathData::Impl,
             ItemKind::Enum(..) | ItemKind::Struct(..) | ItemKind::Trait(..) |
-            ItemKind::ExternCrate(..) | ItemKind::Mod(..) | ItemKind::ForeignMod(..) |
-            ItemKind::Ty(..) =>
+            ItemKind::ExternCrate(..) | ItemKind::ForeignMod(..) | ItemKind::Ty(..) =>
                 DefPathData::TypeNs(i.ident.name),
+            ItemKind::Mod(..) => DefPathData::Module(i.ident.name),
             ItemKind::Static(..) | ItemKind::Const(..) | ItemKind::Fn(..) =>
                 DefPathData::ValueNs(i.ident.name),
             ItemKind::Mac(..) => DefPathData::MacroDef(i.ident.name),
index 26422e3194a2219ba525f7f980ebb60fb13e5e56..5fc2a955c0602ed5a713413065f5c2abe7f0018a 100644 (file)
@@ -121,7 +121,7 @@ macro_rules! controller_entry_point {
                                 Ok(()));
 
         let expanded_crate = assign_node_ids(sess, expanded_crate);
-        let dep_graph = DepGraph::new(sess.opts.build_dep_graph);
+        let dep_graph = DepGraph::new(sess.opts.build_dep_graph());
 
         // Collect defintions for def ids.
         let defs = &RefCell::new(time(sess.time_passes(),
index 86b9c4c81c66b18922cc9d65a729dee292986ac8..b9a45c09626a79455484af90f1d6bcb886a04d4c 100644 (file)
@@ -239,7 +239,7 @@ fn compile_program(input: &str, sysroot: PathBuf)
         let krate = driver::phase_2_configure_and_expand(&sess, &cstore, krate, &id, None)
             .expect("phase_2 returned `None`");
 
-        let dep_graph = DepGraph::new(sess.opts.build_dep_graph);
+        let dep_graph = DepGraph::new(sess.opts.build_dep_graph());
         let krate = driver::assign_node_ids(&sess, krate);
         let defs = RefCell::new(ast_map::collect_definitions(&krate));
         LocalCrateReader::new(&sess, &cstore, &defs, &krate, &id).read_crates(&dep_graph);