diff options
| author | bors <bors@rust-lang.org> | 2024-01-27 12:52:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-27 12:52:34 +0000 |
| commit | 0186c24d9e27d12b7b2b3721663783293ffbab0b (patch) | |
| tree | de9e17c94b91b775fe5a3ea780819748e5afb852 | |
| parent | fae15df5c60ccf0f9eaa96651c869d2c2001fddb (diff) | |
| parent | 3cc0f02dac78a1af69e395e2449f66d14926bb21 (diff) | |
| download | rust-0186c24d9e27d12b7b2b3721663783293ffbab0b.tar.gz rust-0186c24d9e27d12b7b2b3721663783293ffbab0b.zip | |
Auto merge of #3281 - RalfJung:typo, r=RalfJung
fix typo in operator.rs
| -rw-r--r-- | src/tools/miri/src/operator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/operator.rs b/src/tools/miri/src/operator.rs index 14076444696..6f19dead2e9 100644 --- a/src/tools/miri/src/operator.rs +++ b/src/tools/miri/src/operator.rs @@ -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. |
