There was an error while loading. Please reload this page.
LateContext
TypingMode
1 parent aab149b commit 563c473Copy full SHA for 563c473
1 file changed
src/tools/clippy/clippy_utils/src/ty.rs
@@ -362,7 +362,7 @@ fn is_normalizable_helper<'tcx>(
362
}
363
// prevent recursive loops, false-negative is better than endless loop leading to stack overflow
364
cache.insert(ty, false);
365
- let infcx = cx.tcx.infer_ctxt().build(TypingMode::from_param_env(param_env));
+ let infcx = cx.tcx.infer_ctxt().build(cx.typing_mode());
366
let cause = ObligationCause::dummy();
367
let result = if infcx.at(&cause, param_env).query_normalize(ty).is_ok() {
368
match ty.kind() {
0 commit comments