save-analysis: dump data only if get_path_data doesn't fail to resolve a path.
Fixes #37126.
This commit is contained in:
parent
d34318dd53
commit
88b031e6ef
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue