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 @@ fn inject_prelude(&mut self, crate_attrs: &Attrs) {
match per_ns.types {
Some((ModuleDefId::ModuleId(m), _)) => {
self.def_map.prelude = Some(m);
break;
}
types => {
tracing::debug!(