Skip to content

Commit

Permalink
clippy: we've got a LateContext use it for TypingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Oct 31, 2024
1 parent d30a0b2 commit bad3edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ fn is_normalizable_helper<'tcx>(
}
// prevent recursive loops, false-negative is better than endless loop leading to stack overflow
cache.insert(ty, false);
let infcx = cx.tcx.infer_ctxt().build(TypingMode::from_param_env(param_env));
let infcx = cx.tcx.infer_ctxt().build(cx.typing_mode());
let cause = ObligationCause::dummy();
let result = if infcx.at(&cause, param_env).query_normalize(ty).is_ok() {
match ty.kind() {
Expand Down

0 comments on commit bad3edd

Please sign in to comment.