rust/compiler/rustc_lint
Michael Goulet a0d77f37f3
Rollup merge of #141536 - Urgau:ambi_wide_ptr-cmp-diag, r=fee1-dead
Improve `ambiguous_wide_pointer_comparisons` lint compare diagnostics

This PR improves the `ambiguous_wide_pointer_comparisons` lint compare diagnostics: `cmp`/`partial_cmp`, but also the operators `<`/`>`/`>=`/`<=`, by:
1. removing the reference to `std::ptr::addr_eq` which only works for equality
2. and adding an `#[expect]` suggestion for keeping the current behavior

Fixes rust-lang/rust#141510
2025-05-27 13:01:36 +02:00
..
src Rollup merge of #141536 - Urgau:ambi_wide_ptr-cmp-diag, r=fee1-dead 2025-05-27 13:01:36 +02:00
Cargo.toml Remove rustc_attr_data_structures re-export from rustc_attr_parsing 2025-05-18 18:14:43 +02:00
messages.ftl Rollup merge of #141536 - Urgau:ambi_wide_ptr-cmp-diag, r=fee1-dead 2025-05-27 13:01:36 +02:00