@@ -113,13 +113,6 @@ impl Default for RegionckMode {
113113}
114114
115115impl RegionckMode {
116- pub fn suppressed ( self ) -> bool {
117- match self {
118- Self :: Solve => false ,
119- Self :: Erase { suppress_errors } => suppress_errors,
120- }
121- }
122-
123116 /// Indicates that the MIR borrowck will repeat these region
124117 /// checks, so we should ignore errors if NLL is (unconditionally)
125118 /// enabled.
@@ -420,15 +413,6 @@ pub enum SubregionOrigin<'tcx> {
420413#[ cfg( target_arch = "x86_64" ) ]
421414static_assert_size ! ( SubregionOrigin <' _>, 32 ) ;
422415
423- /// Places that type/region parameters can appear.
424- #[ derive( Clone , Copy , Debug ) ]
425- pub enum ParameterOrigin {
426- Path , // foo::bar
427- MethodCall , // foo.bar() <-- parameters on impl providing bar()
428- OverloadedOperator , // a + b when overloaded
429- OverloadedDeref , // *a when overloaded
430- }
431-
432416/// Times when we replace late-bound regions with variables:
433417#[ derive( Clone , Copy , Debug ) ]
434418pub enum LateBoundRegionConversionTime {
@@ -508,21 +492,6 @@ pub enum NLLRegionVariableOrigin {
508492 } ,
509493}
510494
511- impl NLLRegionVariableOrigin {
512- pub fn is_universal ( self ) -> bool {
513- match self {
514- NLLRegionVariableOrigin :: FreeRegion => true ,
515- NLLRegionVariableOrigin :: Placeholder ( ..) => true ,
516- NLLRegionVariableOrigin :: Existential { .. } => false ,
517- NLLRegionVariableOrigin :: RootEmptyRegion => false ,
518- }
519- }
520-
521- pub fn is_existential ( self ) -> bool {
522- !self . is_universal ( )
523- }
524- }
525-
526495// FIXME(eddyb) investigate overlap between this and `TyOrConstInferVar`.
527496#[ derive( Copy , Clone , Debug ) ]
528497pub enum FixupError < ' tcx > {
0 commit comments