diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-29 16:03:31 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-04-29 19:17:57 +0530 |
| commit | 13c1956f7c548fe7f81060e00233be2cb1a86a70 (patch) | |
| tree | 6c7e1b755fb6811976129fcda2475ae92e756b05 /src | |
| parent | c0c08e2d77a4dab0414b08c4e9008113bf3fee67 (diff) | |
| parent | e9c42257d5642b5a57a1bac4bb9904e24b80188f (diff) | |
| download | rust-13c1956f7c548fe7f81060e00233be2cb1a86a70.tar.gz rust-13c1956f7c548fe7f81060e00233be2cb1a86a70.zip | |
Rollup merge of #33248 - jseyfried:fix_save_analysis_bug, r=nrc
rustc_save_analysis: fix a bug in which glob imports are not dumped This fixes #33213, a bug that prevents glob imports from being included in the save-analysis data. r? @nrc
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_save_analysis/dump_visitor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index a4efb68e63c..724bd7341e3 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -1032,8 +1032,8 @@ impl<'v, 'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'v> for DumpVisitor<'l, 'tcx, } let sub_span = self.span - .sub_span_of_token(path.span, token::BinOp(token::Star)); - if !self.span.filter_generated(sub_span, path.span) { + .sub_span_of_token(item.span, token::BinOp(token::Star)); + if !self.span.filter_generated(sub_span, item.span) { self.dumper.use_glob(UseGlobData { span: sub_span.expect("No span found for use glob"), id: item.id, |
