@@ -421,19 +421,6 @@ pub fn mk_coercety(cx: &InferCtxt,
421
421
} )
422
422
}
423
423
424
- pub fn can_mk_coercety ( cx : & InferCtxt , a : ty:: t , b : ty:: t ) -> ures {
425
- debug ! ( "can_mk_coercety({} -> {})" , a. inf_str( cx) , b. inf_str( cx) ) ;
426
- indent ( || {
427
- cx. probe ( || {
428
- let trace = TypeTrace {
429
- origin : Misc ( codemap:: DUMMY_SP ) ,
430
- values : Types ( expected_found ( true , a, b) )
431
- } ;
432
- Coerce ( cx. combine_fields ( true , trace) ) . tys ( a, b)
433
- } )
434
- } ) . to_ures ( )
435
- }
436
-
437
424
// See comment on the type `resolve_state` below
438
425
pub fn resolve_type ( cx : & InferCtxt ,
439
426
a : ty:: t ,
@@ -631,10 +618,6 @@ impl<'a> InferCtxt<'a> {
631
618
result
632
619
}
633
620
634
- pub fn next_int_var( & self ) -> ty:: t {
635
- ty : : mk_int_var( self . tcx, self . next_int_var_id( ) )
636
- }
637
-
638
621
pub fn next_float_var_id( & self ) -> FloatVid {
639
622
let mut float_var_counter = self . float_var_counter. get( ) ;
640
623
let mut float_var_bindings = self . float_var_bindings. borrow_mut( ) ;
@@ -644,21 +627,10 @@ impl<'a> InferCtxt<'a> {
644
627
result
645
628
}
646
629
647
- pub fn next_float_var( & self ) -> ty:: t {
648
- ty : : mk_float_var( self . tcx, self . next_float_var_id( ) )
649
- }
650
-
651
630
pub fn next_region_var( & self , origin: RegionVariableOrigin ) -> ty:: Region {
652
631
ty : : ReInfer ( ty:: ReVar ( self . region_vars. new_region_var( origin) ) )
653
632
}
654
633
655
- pub fn next_region_vars( & self ,
656
- origin: RegionVariableOrigin ,
657
- count: uint)
658
- -> Vec < ty:: Region > {
659
- Vec :: from_fn( count, |_| self . next_region_var( origin) )
660
- }
661
-
662
634
pub fn region_vars_for_defs( & self ,
663
635
span: Span ,
664
636
defs: & [ ty:: RegionParameterDef ] )
0 commit comments