fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
639 B17 linesraw
1error: use `std::ptr::eq` when comparing raw pointers
2  --> $DIR/ptr_eq.rs:19:13
3   |
4LL |     let _ = a as *const _ as usize == b as *const _ as usize;
5   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(a, b)`
6   |
7   = note: `-D clippy::ptr-eq` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::ptr_eq)]`
9
10error: use `std::ptr::eq` when comparing raw pointers
11  --> $DIR/ptr_eq.rs:20:13
12   |
13LL |     let _ = a as *const _ == b as *const _;
14   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(a, b)`
15
16error: aborting due to 2 previous errors
17