diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-11-18 14:10:36 +0000 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-11-25 00:04:52 -0300 |
| commit | 08afabddac12adc114a8f963f1a10c47f3b3b2d9 (patch) | |
| tree | 047eed200085356cfbd40c94d3c8c90337e12759 /compiler/rustc_trait_selection/src/traits/codegen.rs | |
| parent | 65a6e22668c32c81dbe6a996a7012270c01eb114 (diff) | |
| download | rust-08afabddac12adc114a8f963f1a10c47f3b3b2d9.tar.gz rust-08afabddac12adc114a8f963f1a10c47f3b3b2d9.zip | |
get rid of to_poly_trait_predicate
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/codegen.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/codegen.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/codegen.rs b/compiler/rustc_trait_selection/src/traits/codegen.rs index ca4299f7db3..61743d78e9e 100644 --- a/compiler/rustc_trait_selection/src/traits/codegen.rs +++ b/compiler/rustc_trait_selection/src/traits/codegen.rs @@ -39,8 +39,7 @@ pub fn codegen_select_candidate<'tcx>( let mut selcx = SelectionContext::new(&infcx); let obligation_cause = ObligationCause::dummy(); - let obligation = - Obligation::new(tcx, obligation_cause, param_env, trait_ref.to_poly_trait_predicate()); + let obligation = Obligation::new(tcx, obligation_cause, param_env, trait_ref); let selection = match selcx.select(&obligation) { Ok(Some(selection)) => selection, |
