Skip to content

Commit 0be3c8c

Browse files
committed
rebasing
1 parent 1d5a29c commit 0be3c8c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc/hir/map/def_collector.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ impl<'ast> visit::Visitor<'ast> for DefCollector<'ast> {
109109
ItemKind::DefaultImpl(..) | ItemKind::Impl(..) =>
110110
DefPathData::Impl,
111111
ItemKind::Enum(..) | ItemKind::Struct(..) | ItemKind::Trait(..) |
112-
ItemKind::ExternCrate(..) | ItemKind::Mod(..) | ItemKind::ForeignMod(..) |
113-
ItemKind::Ty(..) =>
112+
ItemKind::ExternCrate(..) | ItemKind::ForeignMod(..) | ItemKind::Ty(..) =>
114113
DefPathData::TypeNs(i.ident.name),
114+
ItemKind::Mod(..) => DefPathData::Module(i.ident.name),
115115
ItemKind::Static(..) | ItemKind::Const(..) | ItemKind::Fn(..) =>
116116
DefPathData::ValueNs(i.ident.name),
117117
ItemKind::Mac(..) => DefPathData::MacroDef(i.ident.name),

src/librustc_driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn compile_input(sess: &Session,
121121
Ok(()));
122122

123123
let expanded_crate = assign_node_ids(sess, expanded_crate);
124-
let dep_graph = DepGraph::new(sess.opts.build_dep_graph);
124+
let dep_graph = DepGraph::new(sess.opts.build_dep_graph());
125125

126126
// Collect defintions for def ids.
127127
let defs = &RefCell::new(time(sess.time_passes(),

src/test/run-make/execution-engine/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn compile_program(input: &str, sysroot: PathBuf)
239239
let krate = driver::phase_2_configure_and_expand(&sess, &cstore, krate, &id, None)
240240
.expect("phase_2 returned `None`");
241241

242-
let dep_graph = DepGraph::new(sess.opts.build_dep_graph);
242+
let dep_graph = DepGraph::new(sess.opts.build_dep_graph());
243243
let krate = driver::assign_node_ids(&sess, krate);
244244
let defs = RefCell::new(ast_map::collect_definitions(&krate));
245245
LocalCrateReader::new(&sess, &cstore, &defs, &krate, &id).read_crates(&dep_graph);

0 commit comments

Comments
 (0)