use the correct param env
This commit is contained in:
parent
c63861b9d5
commit
b8541eb767
1 changed files with 1 additions and 2 deletions
|
@ -148,8 +148,7 @@ fn suggest_question_mark<'tcx>(
|
||||||
|
|
||||||
ocx.register_bound(
|
ocx.register_bound(
|
||||||
cause,
|
cause,
|
||||||
// FIXME: using the empty param env is wrong, should use the one from `body_id`.
|
cx.param_env,
|
||||||
ty::ParamEnv::empty(),
|
|
||||||
// Erase any region vids from the type, which may not be resolved
|
// Erase any region vids from the type, which may not be resolved
|
||||||
infcx.tcx.erase_regions(ty),
|
infcx.tcx.erase_regions(ty),
|
||||||
into_iterator_did,
|
into_iterator_did,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue