@@ -23,8 +23,6 @@ pub trait InferCtxtExt<'tcx> {
2323 value_span : Span ,
2424 ) -> InferOk < ' tcx , T > ;
2525
26- fn constrain_opaque_types ( & self ) ;
27-
2826 fn constrain_opaque_type (
2927 & self ,
3028 opaque_type_key : OpaqueTypeKey < ' tcx > ,
@@ -254,14 +252,6 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
254252 /// - `opaque_types` -- the map produced by `instantiate_opaque_types`
255253 /// - `free_region_relations` -- something that can be used to relate
256254 /// the free regions (`'a`) that appear in the impl trait.
257- fn constrain_opaque_types ( & self ) {
258- let opaque_types = self . inner . borrow ( ) . opaque_types . clone ( ) ;
259- for ( opaque_type_key, opaque_defn) in opaque_types {
260- self . constrain_opaque_type ( opaque_type_key, & opaque_defn) ;
261- }
262- }
263-
264- /// See `constrain_opaque_types` for documentation.
265255 #[ instrument( level = "debug" , skip( self ) ) ]
266256 fn constrain_opaque_type (
267257 & self ,
@@ -363,7 +353,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
363353 /// purpose of this function is to do that translation.
364354 ///
365355 /// (*) C1 and C2 were introduced in the comments on
366- /// `constrain_opaque_types `. Read that comment for more context.
356+ /// `constrain_opaque_type `. Read that comment for more context.
367357 ///
368358 /// # Parameters
369359 ///
0 commit comments