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 655600c commit e26e42fCopy full SHA for e26e42f
compiler/rustc_middle/src/mir/interpret/value.rs
@@ -196,6 +196,11 @@ impl<Prov> Scalar<Prov> {
196
Self::from_int(i, Size::from_bits(64))
197
}
198
199
+ #[inline]
200
+ pub fn from_i128(i: i128) -> Self {
201
+ Self::from_int(i, Size::from_bits(128))
202
+ }
203
+
204
#[inline]
205
pub fn from_target_isize(i: i64, cx: &impl HasDataLayout) -> Self {
206
Self::from_int(i, cx.data_layout().pointer_size)
0 commit comments