Fix prelude injection

This commit is contained in:
Lukas Wirth 2022-09-15 12:12:22 +02:00
parent 2b61be2975
commit a9f103e2fa

View File

@ -534,6 +534,7 @@ fn inject_prelude(&mut self, crate_attrs: &Attrs) {
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!(