Skip to content

Commit

Permalink
refmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 28, 2020
1 parent 1f53fdc commit bd9e046
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/librustc_mir/interpret/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ impl<Tag> From<Pointer<Tag>> for Immediate<Tag> {

impl<'tcx, Tag> Immediate<Tag> {
pub fn new_slice(val: Scalar<Tag>, len: u64, cx: &impl HasDataLayout) -> Self {
Immediate::ScalarPair(
val.into(),
Scalar::from_machine_usize(len, cx).into(),
)
Immediate::ScalarPair(val.into(), Scalar::from_machine_usize(len, cx).into())
}

pub fn new_dyn_trait(val: Scalar<Tag>, vtable: Pointer<Tag>) -> Self {
Expand Down

0 comments on commit bd9e046

Please sign in to comment.