We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LateContext
TypingMode
1 parent d30a0b2 commit bad3eddCopy full SHA for bad3edd
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