We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae15df commit 3cc0f02Copy full SHA for 3cc0f02
src/tools/miri/src/operator.rs
@@ -24,7 +24,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
24
25
Ok(match bin_op {
26
Eq | Ne | Lt | Le | Gt | Ge => {
27
- 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`
28
let size = this.pointer_size();
29
// Just compare the bits. ScalarPairs are compared lexicographically.
30
// We thus always compare pairs and simply fill scalars up with 0.
0 commit comments