From 76eecc733c1bdb984fc2892567ecd11f9f6eb4c3 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 9 Aug 2016 10:25:31 -0400 Subject: pacify the mercilous tidy --- src/librustc/hir/map/def_collector.rs | 6 ++++-- src/librustc_incremental/persist/load.rs | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/librustc/hir/map/def_collector.rs b/src/librustc/hir/map/def_collector.rs index a3b541c5044..58bbd8add26 100644 --- a/src/librustc/hir/map/def_collector.rs +++ b/src/librustc/hir/map/def_collector.rs @@ -184,7 +184,8 @@ impl<'ast> visit::Visitor for DefCollector<'ast> { } fn visit_foreign_item(&mut self, foreign_item: &ForeignItem) { - let def = self.create_def(foreign_item.id, DefPathData::ValueNs(foreign_item.ident.name.as_str())); + let def = self.create_def(foreign_item.id, + DefPathData::ValueNs(foreign_item.ident.name.as_str())); self.with_parent(def, |this| { visit::walk_foreign_item(this, foreign_item); @@ -345,7 +346,8 @@ impl<'ast> intravisit::Visitor<'ast> for DefCollector<'ast> { } fn visit_foreign_item(&mut self, foreign_item: &'ast hir::ForeignItem) { - let def = self.create_def(foreign_item.id, DefPathData::ValueNs(foreign_item.name.as_str())); + let def = self.create_def(foreign_item.id, + DefPathData::ValueNs(foreign_item.name.as_str())); self.with_parent(def, |this| { intravisit::walk_foreign_item(this, foreign_item); diff --git a/src/librustc_incremental/persist/load.rs b/src/librustc_incremental/persist/load.rs index 7a4802b876d..f012d27eb4b 100644 --- a/src/librustc_incremental/persist/load.rs +++ b/src/librustc_incremental/persist/load.rs @@ -110,9 +110,6 @@ pub fn decode_dep_graph<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, // Retrace the paths in the directory to find their current location (if any). let retraced = directory.retrace(tcx); - // TODO -- this could be more efficient if we integrated the `DefIdDirectory` and - // pred set more deeply - // Compute the set of Hir nodes whose data has changed or which // have been removed. These are "raw" source nodes, which means // that they still use the original `DefPathIndex` values from the -- cgit 1.4.1-3-g733a5