@@ -2,7 +2,6 @@ use rustc_infer::infer::canonical::{Canonical, QueryResponse};
22use rustc_infer:: infer:: TyCtxtInferExt ;
33use rustc_middle:: query:: Providers ;
44use rustc_middle:: traits:: query:: NoSolution ;
5- use rustc_middle:: traits:: DefiningAnchor ;
65use rustc_middle:: ty:: { FnSig , Lift , PolyFnSig , Ty , TyCtxt , TypeFoldable } ;
76use rustc_middle:: ty:: { ParamEnvAnd , Predicate } ;
87use rustc_trait_selection:: infer:: InferCtxtBuilderExt ;
@@ -106,15 +105,10 @@ fn type_op_prove_predicate<'tcx>(
106105 tcx : TyCtxt < ' tcx > ,
107106 canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , ProvePredicate < ' tcx > > > ,
108107) -> Result < & ' tcx Canonical < ' tcx , QueryResponse < ' tcx , ( ) > > , NoSolution > {
109- // HACK This bubble is required for this test to pass:
110- // impl-trait/issue-99642.rs
111- tcx. infer_ctxt ( ) . with_opaque_type_inference ( DefiningAnchor :: Bubble ) . enter_canonical_trait_query (
112- & canonicalized,
113- |ocx, key| {
114- type_op_prove_predicate_with_cause ( ocx, key, ObligationCause :: dummy ( ) ) ;
115- Ok ( ( ) )
116- } ,
117- )
108+ tcx. infer_ctxt ( ) . enter_canonical_trait_query ( & canonicalized, |ocx, key| {
109+ type_op_prove_predicate_with_cause ( ocx, key, ObligationCause :: dummy ( ) ) ;
110+ Ok ( ( ) )
111+ } )
118112}
119113
120114/// The core of the `type_op_prove_predicate` query: for diagnostics purposes in NLL HRTB errors,
0 commit comments