mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue