fn neg_1_literal(&mut self, span: Span, ty: Ty<'tcx>) -> Operand<'tcx> {
        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 = (!0u128) >> (128 - bits);
        let literal = ty::Const::from_bits(self.hir.tcx(), n, param_ty);

        self.literal_operand(span, ty, literal)
    }
// Helper to get a `-1` value of the appropriate type
Helper to get a `-1` value of the appropriate type
Helper to get a ` - 1 ` value of the appropriate type
fn neg_1_literal(&mut self, span: Span, ty: Ty<'tcx>) -> Operand<'tcx> {
        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 = (!0u128) >> (128 - bits);
        let literal = ty::Const::from_bits(self.hir.tcx(), n, param_ty);
        self.literal_operand(span, ty, literal)
    }
fn neg_1_literal ( & mut self , span : Span , ty : Ty < ' tcx > ) -> Operand < ' tcx > { 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 = ( ! 0u128 ) >> ( 128 - bits ) ; let literal = ty :: Const :: from_bits ( self . hir . tcx ( ) , n , param_ty ) ; self . literal_operand ( span , ty , literal ) }
Helper to get a `-1` value of the appropriate type
Helper to get a ` - 1 ` value of the appropriate type
&mut self
span
Span
ty
Ty<'tcx>
&mut self
span
Span
ty
Ty<'tcx>