mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
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 @@ 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!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user