about summary refs log tree commit diff
path: root/src/librustc_save_analysis
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-10-28 17:05:48 +0200
committerGitHub <noreply@github.com>2016-10-28 17:05:48 +0200
commit1d7e1b3552053f3b4a968f5fa04683d8c8f0b27d (patch)
tree95b2599a6ae3374ae477e2d3846071f120b6fff9 /src/librustc_save_analysis
parentf12e66e642b8cc44c93557e17ae9817ac8ce82b4 (diff)
parent16e1d36c0851b6cb47a215a8fe94178fd39eab04 (diff)
downloadrust-1d7e1b3552053f3b4a968f5fa04683d8c8f0b27d.tar.gz
rust-1d7e1b3552053f3b4a968f5fa04683d8c8f0b27d.zip
Rollup merge of #37436 - nrc:save-span-errs, r=petrochenkov
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.

r? @petrochenkov
Diffstat (limited to 'src/librustc_save_analysis')
-rw-r--r--src/librustc_save_analysis/dump_visitor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs
index 53a5f319323..73d0e5e50c6 100644
--- a/src/librustc_save_analysis/dump_visitor.rs
+++ b/src/librustc_save_analysis/dump_visitor.rs
@@ -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!();
         }