diff options
| author | Andrea Pretto <eulerdisk@gmail.com> | 2016-10-13 17:40:58 +0200 |
|---|---|---|
| committer | Andrea Pretto <eulerdisk@gmail.com> | 2016-10-14 11:01:43 +0200 |
| commit | 88b031e6efa417bb8cc0eecb18db13bfa93be19b (patch) | |
| tree | 2afa2ca94a83e42729b463ec9c42544d5355d59d /src | |
| parent | d34318dd538bf4c9175e4138b3e4188ea8211620 (diff) | |
| download | rust-88b031e6efa417bb8cc0eecb18db13bfa93be19b.tar.gz rust-88b031e6efa417bb8cc0eecb18db13bfa93be19b.zip | |
save-analysis: dump data only if get_path_data doesn't fail to resolve a path.
Fixes #37126.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_save_analysis/dump_visitor.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index 6d9cd88afb1..1c60ccb9765 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -854,9 +854,7 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> { let path_data = match path_data { Some(pd) => pd, None => { - span_bug!(path.span, - "Unexpected def kind while looking up path in `{}`", - self.span.snippet(path.span)) + return; } }; |
