File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,6 @@ impl<'tcx> ConstValue<'tcx> {
5454 ConstValue :: Scalar ( val) => Some ( val) ,
5555 }
5656 }
57- //
58- // #[inline]
59- // pub fn try_to_bits(&self, size: Size) -> Option<u128> {
60- // self.try_to_scalar()?.to_bits(size).ok()
61- // }
62- //
63- // #[inline]
64- // pub fn try_to_ptr(&self) -> Option<Pointer> {
65- // self.try_to_scalar()?.to_ptr().ok()
66- // }
6757}
6858
6959/// A `Scalar` represents an immediate, primitive value existing outside of a
Original file line number Diff line number Diff line change @@ -2404,11 +2404,6 @@ impl<'tcx> ConstKind<'tcx> {
24042404 pub fn try_to_bits ( & self , size : ty:: layout:: Size ) -> Option < u128 > {
24052405 self . try_to_scalar ( ) ?. to_bits ( size) . ok ( )
24062406 }
2407-
2408- //#[inline]
2409- //pub fn try_to_ptr(&self) -> Option<mir::interpret::Pointer> {
2410- // self.try_to_scalar()?.to_ptr().ok()
2411- //}
24122407}
24132408
24142409/// An inference variable for a const, for use in const generics.
You can’t perform that action at this time.
0 commit comments