]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/codegen.rs
Remove `LitKind::synthesize_token_lit`.
[rust.git] / compiler / rustc_trait_selection / src / traits / codegen.rs
index ca4299f7db394abb8df48cb1d075b36ca0199de1..61743d78e9e801be7ec2c5211d9e4f9b6a22538f 100644 (file)
@@ -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,