diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-02-17 18:41:24 +0100 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-02-19 18:35:34 +0100 |
| commit | aa7edf70739528746d55915b96c63bd3ec43f3a7 (patch) | |
| tree | 1802a97fbe004026225cac14c6e77365756e6667 /compiler/rustc_hir_analysis/src | |
| parent | 488d0c9efd355f712db4ea34856ddbeea26a7049 (diff) | |
| download | rust-aa7edf70739528746d55915b96c63bd3ec43f3a7.tar.gz rust-aa7edf70739528746d55915b96c63bd3ec43f3a7.zip | |
Use the correct ParamEnv
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/astconv/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/mod.rs b/compiler/rustc_hir_analysis/src/astconv/mod.rs index 92bff68cdbc..f0dd4a5d5ac 100644 --- a/compiler/rustc_hir_analysis/src/astconv/mod.rs +++ b/compiler/rustc_hir_analysis/src/astconv/mod.rs @@ -2219,12 +2219,12 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { return Ok(None); } + let param_env = tcx.param_env(block.owner.to_def_id()); let cause = ObligationCause::misc(span, block.owner.def_id); let mut unsatisfied_predicates = Vec::new(); for &(impl_, (assoc_item, def_scope)) in &candidates { let infcx = tcx.infer_ctxt().ignoring_regions().build(); - let param_env = tcx.param_env(impl_); let impl_ty = tcx.type_of(impl_); let impl_substs = self.fresh_item_substs(impl_, &infcx); |
