mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
remove upstreamed intrinsic impls
This commit is contained in:
@@ -484,24 +484,6 @@ fn call_intrinsic(
|
||||
}
|
||||
}
|
||||
|
||||
"min_align_of_val" => {
|
||||
let &[mplace] = check_arg_count(args)?;
|
||||
let mplace = this.deref_operand(mplace)?;
|
||||
let (_, align) = this
|
||||
.size_and_align_of_mplace(mplace)?
|
||||
.expect("size_of_val called on extern type");
|
||||
this.write_scalar(Scalar::from_machine_usize(align.bytes(), this), dest)?;
|
||||
}
|
||||
|
||||
"size_of_val" => {
|
||||
let &[mplace] = check_arg_count(args)?;
|
||||
let mplace = this.deref_operand(mplace)?;
|
||||
let (size, _) = this
|
||||
.size_and_align_of_mplace(mplace)?
|
||||
.expect("size_of_val called on extern type");
|
||||
this.write_scalar(Scalar::from_machine_usize(size.bytes(), this), dest)?;
|
||||
}
|
||||
|
||||
// Other
|
||||
"assume" => {
|
||||
let &[cond] = check_arg_count(args)?;
|
||||
|
||||
Reference in New Issue
Block a user