We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f5d7e1 commit 5f52669Copy full SHA for 5f52669
src/librustc/middle/typeck/check/regionck.rs
@@ -615,7 +615,7 @@ pub mod guarantor {
615
// expressions, both of which always yield a region variable, so
616
// mk_subr should never fail.
617
let rptr_ty = rcx.resolve_node_type(id);
618
- if !ty::type_is_error(rptr_ty) {
+ if !ty::type_is_error(rptr_ty) && !ty::type_is_bot(rptr_ty) {
619
let tcx = rcx.fcx.ccx.tcx;
620
debug!("rptr_ty=%s", ty_to_str(tcx, rptr_ty));
621
let r = ty::ty_region(tcx, span, rptr_ty);
0 commit comments