@@ -23,8 +23,6 @@ pub trait InferCtxtExt<'tcx> {
23
23
value_span : Span ,
24
24
) -> InferOk < ' tcx , T > ;
25
25
26
- fn constrain_opaque_types ( & self ) ;
27
-
28
26
fn constrain_opaque_type (
29
27
& self ,
30
28
opaque_type_key : OpaqueTypeKey < ' tcx > ,
@@ -254,14 +252,6 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
254
252
/// - `opaque_types` -- the map produced by `instantiate_opaque_types`
255
253
/// - `free_region_relations` -- something that can be used to relate
256
254
/// 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.
265
255
#[ instrument( level = "debug" , skip( self ) ) ]
266
256
fn constrain_opaque_type (
267
257
& self ,
@@ -363,7 +353,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
363
353
/// purpose of this function is to do that translation.
364
354
///
365
355
/// (*) 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.
367
357
///
368
358
/// # Parameters
369
359
///
0 commit comments