Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
Ralf Jung
f6a49ba416
patterns: don't ice when encountering a raw str slice
2023-11-12 09:43:08 +01:00
Ralf Jung
af6c7e0ca1
also lint against fn ptr and raw ptr nested inside the const
2023-10-28 17:02:18 +02:00
Ralf Jung
bec88ad4aa
patterns: reject raw pointers that are not just integers
2023-10-28 17:02:18 +02:00
Oli Scherer
d1fd11f3f9
Prevent spurious unreachable pattern lints
...
Means you'll get more `non-exhaustive` patterns
2023-10-11 12:49:57 +00:00
Alex Macleod
5453a9f34d
Add a note to duplicate diagnostics
2023-10-05 01:04:41 +00:00
Ralf Jung
a1d6fc4340
rename lint; add tracking issue
2023-09-25 19:05:10 +02:00
Ralf Jung
c5fccb98ea
work towards rejecting consts in patterns that do not implement PartialEq
2023-09-24 16:36:26 +02:00
David Wood
181d7b463b
tests: unset RUSTC_LOG_COLOR
...
Setting `RUSTC_LOG_COLOR=always` is sometimes useful if tools that one
pipes `RUSTC_LOG` into support coloured output, but it makes this test
fail.
Signed-off-by: David Wood <david@davidtw.co>
2023-06-29 11:15:45 +01:00
Camille GILLOT
05082f57af
Perform match checking on THIR.
2023-04-03 15:59:21 +00:00
Jamen Marz
73c34cbaf7
Add notes to non-structural const in pattern error message
2023-03-27 11:08:11 -04:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00