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.
1 parent 77ad292 commit 89956e4Copy full SHA for 89956e4
compiler/rustc_mir_transform/src/deduce_param_attrs.rs
@@ -198,7 +198,7 @@ pub(super) fn deduced_param_attrs<'tcx>(
198
// see [1].
199
//
200
// [1]: https://github.com/rust-lang/rust/pull/103172#discussion_r999139997
201
- let typing_env = ty::TypingEnv::post_analysis(tcx, def_id);
+ let typing_env = body.typing_env(tcx);
202
let mut deduced_param_attrs = tcx.arena.alloc_from_iter(
203
body.local_decls.iter().skip(1).take(body.arg_count).enumerate().map(
204
|(arg_index, local_decl)| DeducedParamAttrs {
0 commit comments