Skip to content

Commit 89956e4

Browse files
committed
w
1 parent 77ad292 commit 89956e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_transform/src/deduce_param_attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub(super) fn deduced_param_attrs<'tcx>(
198198
// see [1].
199199
//
200200
// [1]: https://github.com/rust-lang/rust/pull/103172#discussion_r999139997
201-
let typing_env = ty::TypingEnv::post_analysis(tcx, def_id);
201+
let typing_env = body.typing_env(tcx);
202202
let mut deduced_param_attrs = tcx.arena.alloc_from_iter(
203203
body.local_decls.iter().skip(1).take(body.arg_count).enumerate().map(
204204
|(arg_index, local_decl)| DeducedParamAttrs {

0 commit comments

Comments
 (0)