Combine individual limit queries into single limits
query
This commit is contained in:
parent
ff15b5e2c7
commit
7e5a88a56c
20 changed files with 75 additions and 55 deletions
|
@ -163,7 +163,7 @@ fn dtorck_constraint_for_ty<'tcx>(
|
|||
) -> Result<(), NoSolution> {
|
||||
debug!("dtorck_constraint_for_ty({:?}, {:?}, {:?}, {:?})", span, for_ty, depth, ty);
|
||||
|
||||
if !tcx.recursion_limit(()).value_within_limit(depth) {
|
||||
if !tcx.recursion_limit().value_within_limit(depth) {
|
||||
constraints.overflows.push(ty);
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue