Skip to content

Commit

Permalink
Auto merge of #1213 - lcnr:master, r=RalfJung
Browse files Browse the repository at this point in the history
rm custom `intrinsics::discriminant_value`

@RalfJung requires rust-lang/rust#69825
  • Loading branch information
bors committed Mar 12, 2020
2 parents 4fc8542 + 6fd3c91 commit 0f22d8a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/shims/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
}
}

"discriminant_value" => {
let place = this.deref_operand(args[0])?;
let discr_val = this.read_discriminant(place.into())?.0;
this.write_scalar(Scalar::from_uint(discr_val, dest.layout.size), dest)?;
}

#[rustfmt::skip]
| "sinf32"
| "fabsf32"
Expand Down

0 comments on commit 0f22d8a

Please sign in to comment.