Oli Scherer
3d88fae050
Update ui test crate
2023-08-11 14:02:28 +00:00
Michael Wright
a6d8afd958
Fix range_{plus,minus}_one
bad suggestions
...
Fixes #9431 .
The current `range_plus_one` and `range_minus_one` suggestions
are completely incorrect when macros are involved.
This commit resolves this by disabling the lints for any range
expression that is expanded from a macro. The reasons for this
are that it is very difficult to create a correct suggestion in
this case and that false negatives are less important for
pedantic lints.
2022-09-08 20:04:43 +02:00
Christian Duerr
afa4148cc6
Fix tests a bit more
2020-07-10 17:53:01 +02:00
Andre Bogus
5823e9468d
New is_integer_const
to check more const ints
...
This mostly affects loop checks and the modulo_one lint. Tests
were also updated where applicable.
2019-09-10 17:46:39 +02:00
Philipp Hansch
55aa9d2767
Add run-rustfix for range_plus_minus_one tests
2019-08-22 07:47:30 +02:00
Philipp Hansch
38d4ac7cea
Remove all copyright license headers
...
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2019-01-08 21:46:39 +01:00
flip1995
d2dbd0b8a5
Update *.stderr files
2018-12-28 12:41:12 +01:00
Matthias Krüger
7bcc2cd9c8
update test stderr
2018-12-10 08:22:07 +01:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
daubaris
b825578a4a
backticks and testcase
2018-09-03 18:24:38 +03:00
daubaris
846c3dba2c
resolved conflicts
2018-09-01 09:37:42 +03:00
daubaris
679bc32f46
range_plus_one suggestion should not remove braces fix
2018-08-30 20:06:13 +03:00
flip1995
e9af09c274
Adapt the *.stderr files of the ui-tests to the tool_lints
2018-08-29 11:08:29 -07:00
Oliver Schneider
8749927973
Rustup
2018-03-16 09:44:20 +01:00
Manish Goregaokar
4b9a0b8644
Update spans
2018-01-29 09:48:11 +05:30
Oliver Schneider
4f21b5b112
Update changed ui tests
2018-01-17 14:44:40 +01:00
Niklas Fiekas
16781a1d89
Add tests for range_plus_one and range_minus_one
2017-10-08 14:15:37 +02:00