Skip to content

Commit 563c473

Browse files
committed
clippy: we've got a LateContext use it for TypingMode
1 parent aab149b commit 563c473

File tree

1 file changed

+1
-1
lines changed
  • src/tools/clippy/clippy_utils/src

1 file changed

+1
-1
lines changed

src/tools/clippy/clippy_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ fn is_normalizable_helper<'tcx>(
362362
}
363363
// prevent recursive loops, false-negative is better than endless loop leading to stack overflow
364364
cache.insert(ty, false);
365-
let infcx = cx.tcx.infer_ctxt().build(TypingMode::from_param_env(param_env));
365+
let infcx = cx.tcx.infer_ctxt().build(cx.typing_mode());
366366
let cause = ObligationCause::dummy();
367367
let result = if infcx.at(&cause, param_env).query_normalize(ty).is_ok() {
368368
match ty.kind() {

0 commit comments

Comments
 (0)