Fix #33213, a bug in which glob imports are not included in save-analysis data
This commit is contained in:
parent
115c6c810c
commit
e9c42257d5
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
|
let sub_span = self.span
|
||||||
.sub_span_of_token(path.span, token::BinOp(token::Star));
|
.sub_span_of_token(item.span, token::BinOp(token::Star));
|
||||||
if !self.span.filter_generated(sub_span, path.span) {
|
if !self.span.filter_generated(sub_span, item.span) {
|
||||||
self.dumper.use_glob(UseGlobData {
|
self.dumper.use_glob(UseGlobData {
|
||||||
span: sub_span.expect("No span found for use glob"),
|
span: sub_span.expect("No span found for use glob"),
|
||||||
id: item.id,
|
id: item.id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue