Combine individual limit queries into single limits query
This commit is contained in:
@@ -221,7 +221,7 @@ fn layout_raw<'tcx>(
|
||||
ty::tls::with_related_context(tcx, move |icx| {
|
||||
let (param_env, ty) = query.into_parts();
|
||||
|
||||
if !tcx.recursion_limit(()).value_within_limit(icx.layout_depth) {
|
||||
if !tcx.recursion_limit().value_within_limit(icx.layout_depth) {
|
||||
tcx.sess.fatal(&format!("overflow representing the type `{}`", ty));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user