Skip to content

Commit

Permalink
Auto merge of #3281 - RalfJung:typo, r=RalfJung
Browse files Browse the repository at this point in the history
fix typo in operator.rs
  • Loading branch information
bors committed Jan 27, 2024
2 parents 5d4edf1 + 1bfe76b commit 53a8cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {

Ok(match bin_op {
Eq | Ne | Lt | Le | Gt | Ge => {
assert_eq!(left.layout.abi, right.layout.abi); // types an differ, e.g. fn ptrs with different `for`
assert_eq!(left.layout.abi, right.layout.abi); // types can differ, e.g. fn ptrs with different `for`
let size = this.pointer_size();
// Just compare the bits. ScalarPairs are compared lexicographically.
// We thus always compare pairs and simply fill scalars up with 0.
Expand Down

0 comments on commit 53a8cba

Please sign in to comment.