Auto merge of #15718 - Toby222:master, r=lnicola
Fix typos exec_intrinsic Fix names of intrinsics in error messages from exec_intrinsic (moved from rust-lang/rust#116478)
This commit is contained in:
commit
a158670432
@ -1045,7 +1045,7 @@ fn exec_intrinsic(
|
||||
}
|
||||
"transmute" => {
|
||||
let [arg] = args else {
|
||||
return Err(MirEvalError::TypeError("trasmute arg is not provided"));
|
||||
return Err(MirEvalError::TypeError("transmute arg is not provided"));
|
||||
};
|
||||
destination.write_from_interval(self, arg.interval)
|
||||
}
|
||||
@ -1065,7 +1065,7 @@ fn exec_intrinsic(
|
||||
}
|
||||
"ctlz" | "ctlz_nonzero" => {
|
||||
let [arg] = args else {
|
||||
return Err(MirEvalError::TypeError("cttz arg is not provided"));
|
||||
return Err(MirEvalError::TypeError("ctlz arg is not provided"));
|
||||
};
|
||||
let result =
|
||||
u128::from_le_bytes(pad16(arg.get(self)?, false)).leading_zeros() as usize;
|
||||
|
Loading…
Reference in New Issue
Block a user