We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f53fdc commit bd9e046Copy full SHA for bd9e046
src/librustc_mir/interpret/operand.rs
@@ -54,10 +54,7 @@ impl<Tag> From<Pointer<Tag>> for Immediate<Tag> {
54
55
impl<'tcx, Tag> Immediate<Tag> {
56
pub fn new_slice(val: Scalar<Tag>, len: u64, cx: &impl HasDataLayout) -> Self {
57
- Immediate::ScalarPair(
58
- val.into(),
59
- Scalar::from_machine_usize(len, cx).into(),
60
- )
+ Immediate::ScalarPair(val.into(), Scalar::from_machine_usize(len, cx).into())
61
}
62
63
pub fn new_dyn_trait(val: Scalar<Tag>, vtable: Pointer<Tag>) -> Self {
0 commit comments