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
This commit is contained in:
commit
13c1956f7c
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue