Skip to content

Commit 755953f

Browse files
committed
recur into aliases TODO test
1 parent 73bf8de commit 755953f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_next_trait_solver/src/solve/assembly

compiler/rustc_next_trait_solver/src/solve/assembly/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ where
12941294
}
12951295
}
12961296
ty::Infer(_) => ControlFlow::Break(Ok(Certainty::AMBIGUOUS)),
1297-
_ if ty.has_type_flags(TypeFlags::HAS_PLACEHOLDER | TypeFlags::HAS_INFER) => {
1297+
_ if ty.has_type_flags(TypeFlags::HAS_PLACEHOLDER | TypeFlags::HAS_INFER | TypeFlags::HAS_ALIAS) => {
12981298
self.recursion_depth += 1;
12991299
if self.recursion_depth > self.ecx.cx().recursion_limit() {
13001300
return ControlFlow::Break(Ok(Certainty::Maybe {
@@ -1328,7 +1328,7 @@ where
13281328
}
13291329
}
13301330
ty::ConstKind::Infer(_) => ControlFlow::Break(Ok(Certainty::AMBIGUOUS)),
1331-
_ if ct.has_type_flags(TypeFlags::HAS_PLACEHOLDER | TypeFlags::HAS_INFER) => {
1331+
_ if ct.has_type_flags(TypeFlags::HAS_PLACEHOLDER | TypeFlags::HAS_INFER | TypeFlags::HAS_ALIAS) => {
13321332
ct.super_visit_with(self)
13331333
}
13341334
_ => ControlFlow::Continue(()),

0 commit comments

Comments
 (0)