Auto merge of #13235 - Veykril:prelude-handling, r=Veykril

Fix prelude injection

Fixes the regression of unknown types introduced in https://github.com/rust-lang/rust-analyzer/pull/13175
This commit is contained in:
bors 2022-09-15 10:13:11 +00:00
commit 6b163c301f

View file

@ -534,6 +534,7 @@ impl DefCollector<'_> {
match per_ns.types { match per_ns.types {
Some((ModuleDefId::ModuleId(m), _)) => { Some((ModuleDefId::ModuleId(m), _)) => {
self.def_map.prelude = Some(m); self.def_map.prelude = Some(m);
break;
} }
types => { types => {
tracing::debug!( tracing::debug!(