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 c63861b commit b8541ebCopy full SHA for b8541eb
compiler/rustc_lint/src/for_loops_over_fallibles.rs
@@ -148,8 +148,7 @@ fn suggest_question_mark<'tcx>(
148
149
ocx.register_bound(
150
cause,
151
- // FIXME: using the empty param env is wrong, should use the one from `body_id`.
152
- ty::ParamEnv::empty(),
+ cx.param_env,
153
// Erase any region vids from the type, which may not be resolved
154
infcx.tcx.erase_regions(ty),
155
into_iterator_did,
0 commit comments