Commit Graph

35 Commits

Author SHA1 Message Date
Philipp Krones 12025085b9 Merge remote-tracking branch 'upstream/master' into rustup 2025-02-20 15:26:07 +01:00
Guillaume Gomez 1f94d55a18 Fix new tests updates 2025-02-15 13:38:42 +01:00
Guillaume Gomez f666fd6417 Update UI tests 2025-02-15 13:38:16 +01:00
Esteban Küber 3a0b1ae59d Show diff suggestion format on verbose replacement
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
2025-02-10 20:21:39 +00:00
Philipp Krones 5aa9d7ae7f Merge commit '3e3715c31236bff56f1c63a1de2c7bbdfcfb0923' into clippy-subtree-update 2025-02-06 15:00:24 +01:00
lapla-cogito 07ede9c027 ignore manual_slice_fill in other test files 2025-02-03 10:09:40 +09:00
Philipp Krones 7be6e2178e Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-subtree-update 2024-02-27 15:50:17 +01:00
Alex Macleod 1d107ab2be Remove $DIR replacement in test output 2024-02-17 12:34:54 +00:00
Urgau a86e758228 Adjust clippy tests with new rustc help suggestion for lints 2023-09-04 14:22:02 +02:00
Philipp Krones cc61aeea54 Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyup 2023-08-24 21:32:12 +02:00
Philipp Krones cb3ecf7b79 Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup 2023-07-02 14:59:02 +02:00
Philipp Krones e7fe1f9c14 Merge commit '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyup 2023-02-10 14:01:19 +01:00
Philipp Krones d75b25faab Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup 2022-10-06 09:44:38 +02:00
Esteban Kuber 652b6a771f update clippy 2021-08-11 14:21:33 +00:00
flip1995 f2f2a005b4 Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup 2021-03-12 15:30:50 +01:00
Yuki Okushi 46b787d1b8 Split up needless_range_loop ui test 2020-01-24 17:21:50 +09:00
flip1995 4a52dd6c53 Rustup to rust-lang/rust#65773 2019-10-26 21:54:04 +02:00
Philipp Hansch 0fbe49d8a6 UI test cleanup: Extract needless_range_loop tests 2019-04-24 08:01:16 +02:00
Michael Wright 217965e855 Fix needless_range_loop bad suggestion
Detect if the index variable is used inside a closure.

Fixes #2542
2019-02-11 07:03:12 +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
HMPerson1 2e9172aea2 Check for known array length in needless_range_loop 2018-10-19 16:34:16 -04:00
Owen Sanchez 456843f1cd Swap order of methods in needless_range_loop suggestion in some cases 2018-10-14 20:14:16 -07:00
Manish Goregaokar e9c025ea70 Add license header to Rust files 2018-10-06 09:43:08 -07:00
flip1995 e9af09c274 Adapt the *.stderr files of the ui-tests to the tool_lints 2018-08-29 11:08:29 -07:00
Mateusz Mikuła 8ed8ee895a Update to nightly 2018-05-28 2018-05-29 10:56:58 +02: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
Laurent Mazare e7f4a9bb46 Fix for the new nightly version. 2017-11-20 07:47:28 +00:00
Oliver Schneider b464432972 Merge branch 'master' of github.com:Manishearth/rust-clippy into rust-test 2017-11-14 16:31:52 +01:00
Oliver Schneider 09d988521d Merge pull request #2214 from rust-lang-nursery/nrlfp
Improve `needless_range_loop`
2017-11-10 10:11:20 +01:00
Oliver Schneider 299f1270a6 Rustup 2017-11-10 08:58:54 +01:00
Oliver Schneider 652df0fb79 Differentiate between mutable iteration and immutable iteration in needless_range_loop 2017-11-07 14:41:54 +01:00
Andriy S. from cobalt 1dc0b5c9ec tests for needless_range_loop 2017-10-08 22:37:04 +03:00