Skip to content

Commit

Permalink
Auto merge of rust-lang#13235 - Veykril:prelude-handling, r=Veykril
Browse files Browse the repository at this point in the history
Fix prelude injection

Fixes the regression of unknown types introduced in rust-lang/rust-analyzer#13175
  • Loading branch information
bors committed Sep 15, 2022
2 parents 2b61be2 + a9f103e commit 6b163c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/hir-def/src/nameres/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ impl DefCollector<'_> {
match per_ns.types {
Some((ModuleDefId::ModuleId(m), _)) => {
self.def_map.prelude = Some(m);
break;
}
types => {
tracing::debug!(
Expand Down

0 comments on commit 6b163c3

Please sign in to comment.