diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-10-31 11:05:58 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-10-31 11:53:38 +1300 |
| commit | 4895deaeea03d8d1a7329a0ff55849201a75a8b6 (patch) | |
| tree | 49e62a729258706f444b0a605ee32f7ea89300ce /src/librustc_save_analysis | |
| parent | f586ac9ef9266f6e257c3ec41e126336a543025f (diff) | |
| download | rust-4895deaeea03d8d1a7329a0ff55849201a75a8b6.tar.gz rust-4895deaeea03d8d1a7329a0ff55849201a75a8b6.zip | |
save-analysis: make sure we save the def for the last segment of a path
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/dump_visitor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index c0b718e4863..839b8956b4c 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -771,8 +771,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> { } fn process_path(&mut self, id: NodeId, path: &'l ast::Path) { - debug!("process_path {:?}", path); - if generated_code(path.span) { + if self.span.filter_generated(path.span) { return; } self.dump_path_ref(id, path); |
