Skip to content

Commit

Permalink
Auto merge of #15718 - Toby222:master, r=lnicola
Browse files Browse the repository at this point in the history
Fix typos exec_intrinsic

Fix names of intrinsics in error messages from exec_intrinsic
(moved from #116478)
  • Loading branch information
bors committed Oct 6, 2023
2 parents 03c5603 + 114f8a0 commit a158670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/hir-ty/src/mir/eval/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ impl Evaluator<'_> {
}
"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)
}
Expand All @@ -1065,7 +1065,7 @@ impl Evaluator<'_> {
}
"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;
Expand Down

0 comments on commit a158670

Please sign in to comment.