Remove cruft.
This commit is contained in:
parent
3ebfa1856e
commit
f9ff78bdd5
2 changed files with 0 additions and 15 deletions
|
@ -54,16 +54,6 @@ impl<'tcx> ConstValue<'tcx> {
|
||||||
ConstValue::Scalar(val) => Some(val),
|
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
|
/// A `Scalar` represents an immediate, primitive value existing outside of a
|
||||||
|
|
|
@ -2404,11 +2404,6 @@ impl<'tcx> ConstKind<'tcx> {
|
||||||
pub fn try_to_bits(&self, size: ty::layout::Size) -> Option<u128> {
|
pub fn try_to_bits(&self, size: ty::layout::Size) -> Option<u128> {
|
||||||
self.try_to_scalar()?.to_bits(size).ok()
|
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.
|
/// An inference variable for a const, for use in const generics.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue