Samuel Tardieu
db4bd96575
Ensure that peeling does not recurse into macros
...
We do not want to remove casts done inside macros. Also, when printing
the suggestion, take it from the same context as the origin expression
(the root context).
2025-04-03 01:38:53 +02:00
Samuel Tardieu
336d34481e
Apply ptr_eq lint only if cmp_null is not applicable
...
The `cmp_null` lint is more specialized than `ptr_eq`. The former should
take precedence, unless the user allows it.
2025-03-02 16:21:12 +01:00
Samuel Tardieu
d7d0abd2ad
Lint more cases of ptr::eq()
...
Also, do not strip conversions of a function pointer to a `*const`, as
no implicit conversion will take place.
2025-03-02 15:50:13 +01:00
Guillaume Gomez
f666fd6417
Update UI tests
2025-02-15 13:38:16 +01:00
Oli Scherer
3d88fae050
Update ui test crate
2023-08-11 14:02:28 +00:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@ for commands
2023-04-20 14:44:03 +00:00
Bruno BELANYI
5bad9175fb
New lint: Recommend using ptr::eq when possible
...
This is based almost entirely on the code available in the previous PR #4596 .
2020-10-07 11:48:06 +02:00