diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-25 16:07:48 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-25 16:12:44 +0000 |
| commit | 46b01abbcd4160f0d4241bc8ec27121713d9abae (patch) | |
| tree | 3047ab7b49f67b13795edd9bfc8950d12224254d /compiler/rustc_trait_selection/src/infer.rs | |
| parent | 2d8c905e159ecc86cb747cbf2c69668b0750ea7b (diff) | |
| download | rust-46b01abbcd4160f0d4241bc8ec27121713d9abae.tar.gz rust-46b01abbcd4160f0d4241bc8ec27121713d9abae.zip | |
Replace `tcx.mk_trait_ref` with `ty::TraitRef::new`
Diffstat (limited to 'compiler/rustc_trait_selection/src/infer.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/infer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/infer.rs b/compiler/rustc_trait_selection/src/infer.rs index 911cc0b88c4..1d1a169aa9e 100644 --- a/compiler/rustc_trait_selection/src/infer.rs +++ b/compiler/rustc_trait_selection/src/infer.rs @@ -66,7 +66,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> { params: impl IntoIterator<Item: Into<GenericArg<'tcx>>>, param_env: ty::ParamEnv<'tcx>, ) -> traits::EvaluationResult { - let trait_ref = self.tcx.mk_trait_ref(trait_def_id, params); + let trait_ref = ty::TraitRef::new(self.tcx, trait_def_id, params); let obligation = traits::Obligation { cause: traits::ObligationCause::dummy(), |
