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> {
54
54
ConstValue :: Scalar ( val) => Some ( val) ,
55
55
}
56
56
}
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
- // }
67
57
}
68
58
69
59
/// 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> {
2404
2404
pub fn try_to_bits ( & self , size : ty:: layout:: Size ) -> Option < u128 > {
2405
2405
self . try_to_scalar ( ) ?. to_bits ( size) . ok ( )
2406
2406
}
2407
-
2408
- //#[inline]
2409
- //pub fn try_to_ptr(&self) -> Option<mir::interpret::Pointer> {
2410
- // self.try_to_scalar()?.to_ptr().ok()
2411
- //}
2412
2407
}
2413
2408
2414
2409
/// An inference variable for a const, for use in const generics.
You can’t perform that action at this time.
0 commit comments