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:
commit
6b163c301f
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user