mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 13:27:11 +03:00
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:
@@ -1032,8 +1032,8 @@ fn visit_item(&mut self, item: &ast::Item) {
|
||||
}
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user