diff options
| -rw-r--r-- | src/librustc/mir/interpret/value.rs | 10 | ||||
| -rw-r--r-- | src/librustc/ty/sty.rs | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index e5778528e38..a0367154b75 100644 --- a/src/librustc/mir/interpret/value.rs +++ b/src/librustc/mir/interpret/value.rs @@ -54,16 +54,6 @@ impl<'tcx> ConstValue<'tcx> { ConstValue::Scalar(val) => Some(val), } } -// -// #[inline] -// pub fn try_to_bits(&self, size: Size) -> Option<u128> { -// self.try_to_scalar()?.to_bits(size).ok() -// } -// -// #[inline] -// pub fn try_to_ptr(&self) -> Option<Pointer> { -// self.try_to_scalar()?.to_ptr().ok() -// } } /// A `Scalar` represents an immediate, primitive value existing outside of a diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index bb2fc9f0131..8f6fc02ab4b 100644 --- a/src/librustc/ty/sty.rs +++ b/src/librustc/ty/sty.rs @@ -2404,11 +2404,6 @@ impl<'tcx> ConstKind<'tcx> { pub fn try_to_bits(&self, size: ty::layout::Size) -> Option<u128> { self.try_to_scalar()?.to_bits(size).ok() } - - //#[inline] - //pub fn try_to_ptr(&self) -> Option<mir::interpret::Pointer> { - // self.try_to_scalar()?.to_ptr().ok() - //} } /// An inference variable for a const, for use in const generics. |
