Skip to content

Commit 76eecc7

Browse files
committed
pacify the mercilous tidy
1 parent ecbcf1b commit 76eecc7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/librustc/hir/map/def_collector.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ impl<'ast> visit::Visitor for DefCollector<'ast> {
184184
}
185185

186186
fn visit_foreign_item(&mut self, foreign_item: &ForeignItem) {
187-
let def = self.create_def(foreign_item.id, DefPathData::ValueNs(foreign_item.ident.name.as_str()));
187+
let def = self.create_def(foreign_item.id,
188+
DefPathData::ValueNs(foreign_item.ident.name.as_str()));
188189

189190
self.with_parent(def, |this| {
190191
visit::walk_foreign_item(this, foreign_item);
@@ -345,7 +346,8 @@ impl<'ast> intravisit::Visitor<'ast> for DefCollector<'ast> {
345346
}
346347

347348
fn visit_foreign_item(&mut self, foreign_item: &'ast hir::ForeignItem) {
348-
let def = self.create_def(foreign_item.id, DefPathData::ValueNs(foreign_item.name.as_str()));
349+
let def = self.create_def(foreign_item.id,
350+
DefPathData::ValueNs(foreign_item.name.as_str()));
349351

350352
self.with_parent(def, |this| {
351353
intravisit::walk_foreign_item(this, foreign_item);

src/librustc_incremental/persist/load.rs

-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ pub fn decode_dep_graph<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
110110
// Retrace the paths in the directory to find their current location (if any).
111111
let retraced = directory.retrace(tcx);
112112

113-
// TODO -- this could be more efficient if we integrated the `DefIdDirectory` and
114-
// pred set more deeply
115-
116113
// Compute the set of Hir nodes whose data has changed or which
117114
// have been removed. These are "raw" source nodes, which means
118115
// that they still use the original `DefPathIndex` values from the

0 commit comments

Comments
 (0)