We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd47af commit 48b3d8aCopy full SHA for 48b3d8a
compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -2720,7 +2720,10 @@ impl<'tcx> TypeRelation<'tcx> for SameTypeModuloInfer<'_, 'tcx> {
2720
a: ty::Region<'tcx>,
2721
b: ty::Region<'tcx>,
2722
) -> RelateResult<'tcx, ty::Region<'tcx>> {
2723
- if (a.is_var() && b.is_free_or_static()) || (b.is_var() && a.is_free_or_static()) || a == b
+ if (a.is_var() && b.is_free_or_static())
2724
+ || (b.is_var() && a.is_free_or_static())
2725
+ || (a.is_var() && b.is_var())
2726
+ || a == b
2727
{
2728
Ok(a)
2729
} else {
0 commit comments