diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-08-09 10:25:31 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-08-09 10:25:36 -0400 |
| commit | 76eecc733c1bdb984fc2892567ecd11f9f6eb4c3 (patch) | |
| tree | a4d64603890b152aa0f0c7bf3dc8c1c7787bbd8c | |
| parent | ecbcf1b1b56995f2a498b0b5b98d7269dcaa4fce (diff) | |
| download | rust-76eecc733c1bdb984fc2892567ecd11f9f6eb4c3.tar.gz rust-76eecc733c1bdb984fc2892567ecd11f9f6eb4c3.zip | |
pacify the mercilous tidy
| -rw-r--r-- | src/librustc/hir/map/def_collector.rs | 6 | ||||
| -rw-r--r-- | 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 |
