1
Fork 0

Remove cruft.

This commit is contained in:
Camille GILLOT 2019-11-09 00:06:37 +01:00
parent 3ebfa1856e
commit f9ff78bdd5
2 changed files with 0 additions and 15 deletions

View file

@ -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

View file

@ -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.