Give variant spans used in derives the correct expansion id
This fixes a problem in save-analysis where it mistakes a path to a variant as the variant itself.
This commit is contained in:
parent
07436946b6
commit
16e1d36c08
2 changed files with 3 additions and 1 deletions
|
|
@ -166,6 +166,7 @@ impl<'l, 'tcx: 'l, 'll, D: Dump + 'll> DumpVisitor<'l, 'tcx, 'll, D> {
|
|||
loc.file.name,
|
||||
loc.line);
|
||||
}
|
||||
error!(" master span: {:?}: `{}`", path.span, self.span.snippet(path.span));
|
||||
return vec!();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue