removing assert that can cause crashes
This commit is contained in:
parent
3c35557872
commit
b2eefa5b83
|
@ -4670,13 +4670,7 @@ impl TypeParser for Codegen<'_> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn find_local_ty(&mut self, ident: Ident) -> Option<ty::Id> {
|
fn find_local_ty(&mut self, ident: Ident) -> Option<ty::Id> {
|
||||||
self.ci
|
self.ci.scope.vars.iter().rfind(|v| (v.id == ident && v.value() == NEVER)).map(|v| v.ty)
|
||||||
.scope
|
|
||||||
.vars
|
|
||||||
.iter()
|
|
||||||
.rfind(|v| (v.id == ident && v.value() == NEVER))
|
|
||||||
.map(|v| v.ty)
|
|
||||||
.inspect(|&ty| debug_assert_ne!(ty, ty::Id::NEVER))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue