Skip to content

Commit 78603f9

Browse files
committed
---
yaml --- r: 275678 b: refs/heads/master c: 0be3c8c h: refs/heads/master
1 parent ad9e84b commit 78603f9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1d5a29cf0e40c412bb2e090aadcf3ebfb1d5fa13
2+
refs/heads/master: 0be3c8c56977c1f0d875461279e00bca7b4e5ebf
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc/hir/map/def_collector.rs

Lines changed: 2 additions & 2 deletions
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),

trunk/src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
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(),

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

Lines changed: 1 addition & 1 deletion
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)