@@ -2,7 +2,6 @@ use rustc_infer::infer::canonical::{Canonical, QueryResponse};
2
2
use rustc_infer:: infer:: TyCtxtInferExt ;
3
3
use rustc_middle:: query:: Providers ;
4
4
use rustc_middle:: traits:: query:: NoSolution ;
5
- use rustc_middle:: traits:: DefiningAnchor ;
6
5
use rustc_middle:: ty:: { FnSig , Lift , PolyFnSig , Ty , TyCtxt , TypeFoldable } ;
7
6
use rustc_middle:: ty:: { ParamEnvAnd , Predicate } ;
8
7
use rustc_trait_selection:: infer:: InferCtxtBuilderExt ;
@@ -106,15 +105,10 @@ fn type_op_prove_predicate<'tcx>(
106
105
tcx : TyCtxt < ' tcx > ,
107
106
canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , ProvePredicate < ' tcx > > > ,
108
107
) -> 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
+ } )
118
112
}
119
113
120
114
/// The core of the `type_op_prove_predicate` query: for diagnostics purposes in NLL HRTB errors,
0 commit comments