File tree 1 file changed +3
-10
lines changed
compiler/rustc_infer/src/infer
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -569,14 +569,6 @@ impl<'tcx> InferCtxtBuilder<'tcx> {
569
569
self
570
570
}
571
571
572
- pub fn with_defining_opaque_types (
573
- mut self ,
574
- defining_opaque_types : & ' tcx ty:: List < LocalDefId > ,
575
- ) -> Self {
576
- self . defining_opaque_types = defining_opaque_types;
577
- self
578
- }
579
-
580
572
pub fn with_next_trait_solver ( mut self , next_trait_solver : bool ) -> Self {
581
573
self . next_trait_solver = next_trait_solver;
582
574
self
@@ -605,14 +597,15 @@ impl<'tcx> InferCtxtBuilder<'tcx> {
605
597
/// the bound values in `C` to their instantiated values in `V`
606
598
/// (in other words, `S(C) = V`).
607
599
pub fn build_with_canonical < T > (
608
- self ,
600
+ mut self ,
609
601
span : Span ,
610
602
canonical : & Canonical < ' tcx , T > ,
611
603
) -> ( InferCtxt < ' tcx > , T , CanonicalVarValues < ' tcx > )
612
604
where
613
605
T : TypeFoldable < TyCtxt < ' tcx > > ,
614
606
{
615
- let infcx = self . with_defining_opaque_types ( canonical. defining_opaque_types ) . build ( ) ;
607
+ self . defining_opaque_types = canonical. defining_opaque_types ;
608
+ let infcx = self . build ( ) ;
616
609
let ( value, args) = infcx. instantiate_canonical ( span, canonical) ;
617
610
( infcx, value, args)
618
611
}
You can’t perform that action at this time.
0 commit comments