Fix #33213, a bug in which glob imports are not included in save-analysis data
This commit is contained in:
parent
115c6c810c
commit
e9c42257d5
@ -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…
Reference in New Issue
Block a user