File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
rustc_const_eval/src/util Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
//! FIXME: Move this to a more general place. The utility of this extends to
4
4
//! other areas of the compiler as well.
5
5
6
- use rustc_infer:: infer:: { DefiningAnchor , TyCtxtInferExt } ;
6
+ use rustc_infer:: infer:: TyCtxtInferExt ;
7
7
use rustc_infer:: traits:: ObligationCause ;
8
8
use rustc_middle:: ty:: { ParamEnv , Ty , TyCtxt } ;
9
9
use rustc_trait_selection:: traits:: ObligationCtxt ;
@@ -41,8 +41,7 @@ pub fn is_subtype<'tcx>(
41
41
return true ;
42
42
}
43
43
44
- let mut builder =
45
- tcx. infer_ctxt ( ) . ignoring_regions ( ) . with_opaque_type_inference ( DefiningAnchor :: Bubble ) ;
44
+ let mut builder = tcx. infer_ctxt ( ) . ignoring_regions ( ) ;
46
45
let infcx = builder. build ( ) ;
47
46
let ocx = ObligationCtxt :: new_with_opaque_type_bubbling ( & infcx) ;
48
47
let cause = ObligationCause :: dummy ( ) ;
Original file line number Diff line number Diff line change @@ -1318,7 +1318,6 @@ impl<'tcx> InferCtxt<'tcx> {
1318
1318
1319
1319
#[ instrument( level = "debug" , skip( self ) , ret) ]
1320
1320
pub fn take_opaque_types ( & self ) -> opaque_types:: OpaqueTypeMap < ' tcx > {
1321
- debug_assert_ne ! ( self . old_defining_use_anchor, DefiningAnchor :: Error ) ;
1322
1321
std:: mem:: take ( & mut self . inner . borrow_mut ( ) . opaque_type_storage . opaque_types )
1323
1322
}
1324
1323
You can’t perform that action at this time.
0 commit comments