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.
1 parent cb1cf6a commit e67c768Copy full SHA for e67c768
compiler/rustc_middle/src/mir/interpret/value.rs
@@ -162,6 +162,8 @@ impl Scalar<()> {
162
}
163
164
impl<'tcx, Tag> Scalar<Tag> {
165
+ pub const ZST: Self = Scalar::Int(ScalarInt::ZST);
166
+
167
/// Erase the tag from the scalar, if any.
168
///
169
/// Used by error reporting code to avoid having the error type depend on `Tag`.
@@ -178,8 +180,6 @@ impl<'tcx, Tag> Scalar<Tag> {
178
180
Scalar::Int(ScalarInt::null(cx.data_layout().pointer_size))
179
181
182
- pub const ZST: Self = Scalar::Int(ScalarInt::ZST);
-
183
#[inline(always)]
184
fn ptr_op(
185
self,
0 commit comments