fn minval_literal(&mut self, span: Span, ty: Ty<'tcx>) -> Operand<'tcx> {
        assert!(ty.is_signed());
        let param_ty = ty::ParamEnv::empty().and(self.hir.tcx().lift_to_global(&ty).unwrap());
        let bits = self.hir.tcx().layout_of(param_ty).unwrap().size.bits();
        let n = 1 << (bits - 1);
        let literal = ty::Const::from_bits(self.hir.tcx(), n, param_ty);

        self.literal_operand(span, ty, literal)
    }
// Helper to get the minimum value of the appropriate type
Helper to get the minimum value of the appropriate type
Helper to get the minimum value of the appropriate type
fn minval_literal(&mut self, span: Span, ty: Ty<'tcx>) -> Operand<'tcx> {
        assert!(ty.is_signed());
        let param_ty = ty::ParamEnv::empty().and(self.hir.tcx().lift_to_global(&ty).unwrap());
        let bits = self.hir.tcx().layout_of(param_ty).unwrap().size.bits();
        let n = 1 << (bits - 1);
        let literal = ty::Const::from_bits(self.hir.tcx(), n, param_ty);
        self.literal_operand(span, ty, literal)
    }
fn minval_literal ( & mut self , span : Span , ty : Ty < ' tcx > ) -> Operand < ' tcx > { assert ! ( ty is_signed ( ) ) ; let param_ty = ty :: ParamEnv :: empty ( ) . and ( self . hir . tcx ( ) . lift_to_global ( & ty ) . unwrap ( ) ) ; let bits = self . hir . tcx ( ) . layout_of ( param_ty ) . unwrap ( ) . size . bits ( ) ; let n = 1 << ( bits - 1 ) ; let literal = ty :: Const :: from_bits ( self . hir . tcx ( ) , n , param_ty ) ; self . literal_operand ( span , ty , literal ) }
Helper to get the minimum value of the appropriate type
Helper to get the minimum value of the appropriate type
&mut self
span
Span
ty
Ty<'tcx>
&mut self
span
Span
ty
Ty<'tcx>