We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RegionKind: PartialEq
ReError
1 parent ed8651c commit 3222725Copy full SHA for 3222725
compiler/rustc_type_ir/src/sty.rs
@@ -1022,10 +1022,11 @@ impl<I: Interner> PartialEq for RegionKind<I> {
1022
(ReVar(a_r), ReVar(b_r)) => a_r == b_r,
1023
(RePlaceholder(a_r), RePlaceholder(b_r)) => a_r == b_r,
1024
(ReErased, ReErased) => true,
1025
+ (ReError(_), ReError(_)) => true,
1026
_ => {
1027
debug_assert!(
1028
false,
- "This branch must be unreachable, maybe the match is missing an arm? self = self = {self:?}, other = {other:?}"
1029
+ "This branch must be unreachable, maybe the match is missing an arm? self = {self:?}, other = {other:?}"
1030
);
1031
true
1032
}
0 commit comments