We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zst
1 parent 3ef9dfd commit b8751c1Copy full SHA for b8751c1
compiler/rustc_middle/src/mir/interpret/value.rs
@@ -180,7 +180,7 @@ impl<'tcx, Tag> Scalar<Tag> {
180
181
#[inline]
182
pub fn zst() -> Self {
183
- Scalar::Int(ScalarInt::zst())
+ Scalar::Int(ScalarInt::ZST)
184
}
185
186
#[inline(always)]
compiler/rustc_middle/src/ty/consts/int.rs
@@ -183,11 +183,6 @@ impl ScalarInt {
);
- #[inline]
187
- pub fn zst() -> Self {
188
- Self::null(Size::ZERO)
189
- }
190
-
191
192
pub fn null(size: Size) -> Self {
193
Self { data: 0, size: size.bytes() as u8 }
0 commit comments