Skip to content

Commit 13c1956

Browse files
committed
Rollup merge of rust-lang#33248 - jseyfried:fix_save_analysis_bug, r=nrc
rustc_save_analysis: fix a bug in which glob imports are not dumped This fixes rust-lang#33213, a bug that prevents glob imports from being included in the save-analysis data. r? @nrc
2 parents c0c08e2 + e9c4225 commit 13c1956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_save_analysis/dump_visitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1032,8 +1032,8 @@ impl<'v, 'l, 'tcx: 'l, 'll, D: Dump +'ll> Visitor<'v> for DumpVisitor<'l, 'tcx,
10321032
}
10331033

10341034
let sub_span = self.span
1035-
.sub_span_of_token(path.span, token::BinOp(token::Star));
1036-
if !self.span.filter_generated(sub_span, path.span) {
1035+
.sub_span_of_token(item.span, token::BinOp(token::Star));
1036+
if !self.span.filter_generated(sub_span, item.span) {
10371037
self.dumper.use_glob(UseGlobData {
10381038
span: sub_span.expect("No span found for use glob"),
10391039
id: item.id,

0 commit comments

Comments
 (0)