Philipp Krones
02e812af4d
Merge remote-tracking branch 'upstream/master' into rustup
2025-02-27 21:51:42 +01:00
Michael Goulet
a04e819b93
Trim suggestion part before generating highlights
2025-02-21 00:54:01 +00:00
Philipp Krones
12025085b9
Merge remote-tracking branch 'upstream/master' into rustup
2025-02-20 15:26:07 +01:00
Guillaume Gomez
f666fd6417
Update UI tests
2025-02-15 13:38:16 +01:00
Michael Goulet
fc532c5b32
Trim suggestion parts to the subset that is purely additive
2025-02-14 00:44:10 -08: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
1ac76a2062
Merge commit ' cb806113e0' into clippy-subtree-update
2024-08-08 19:13:50 +02:00
xFrednet
0532104247
Migrating restriction lints to span_lint_and_then (e -> i)
2024-08-03 10:18:15 +02:00
Philipp Krones
abdd057163
Merge commit ' 68a799aea9' into clippy-subtree-update
2024-06-27 18:56:04 +02:00
Philipp Krones
e9e7a815a7
Merge remote-tracking branch 'upstream/master' into rustup
2024-06-27 18:49:59 +02:00
xFrednet
1b4c281fe7
RFC 2383: Stabilize lint_reasons in Clippy 🖇️
2024-06-25 17:50:48 +02:00
Renato Lochetti
b147b6d03d
Don't lint implicit_return on proc macros
2024-06-19 19:16:09 +01:00
Philipp Krones
7be6e2178e
Merge commit ' 10136170fe' 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 ' 080b587854' into clippyup
2023-08-24 21:32:12 +02:00
flip1995
e674d0a599
Merge commit ' e181011378' into clippyup
2021-11-04 12:52:36 +00:00
Esteban Kuber
652b6a771f
update clippy
2021-08-11 14:21:33 +00:00
flip1995
d605882023
Merge commit ' b71f340560' into clippyup
2021-05-06 12:20:44 +02:00
flip1995
f2f2a005b4
Merge commit ' 6ed6f1e6a1' into clippyup
2021-03-12 15:30:50 +01:00
David Tolnay
ef28361293
Downgrade match_bool to pedantic
2020-04-23 16:30:06 -07:00
Yuki Okushi
07e33633a3
Update stderrs
2020-01-07 18:38:12 +09:00
Manish Goregaokar
ee9e1af4ed
implicit_return: make it use a rustfix test
2019-09-21 10:01:06 +09:00
daxpedda
a2b63af746
Removed lintining on never type.
...
Abstracted repeating strings into statics.
2019-07-16 14:46:33 +02:00
daxpedda
6c067bf50e
false positives fixes of implicit_return
...
- Handle returning macro statements properly
- Handle functions that return never type
- Handle functions that panic but do not return never type
2019-07-15 16:02:50 +02:00
daxpedda
2183cfcc13
Fix implicit_return false positives.
2019-01-20 13:45:22 +01: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
38fabcbdf2
tests: fix formatting and update test output
...
fix script one last time™
2018-12-27 17:03:53 +01:00
daxpedda
6870638c3f
Fix an endless loop in the tests.
2018-12-16 22:20:05 +01:00
daxpedda
35058287ce
Fix implicit_return false positives.
2018-12-16 15:42:02 +01:00
Matthias Krüger
f1d5194e3d
tests: revert some changs and add further rustfmt::skip attributes.
2018-12-11 00:59:59 +01:00
Matthias Krüger
7bcc2cd9c8
update test stderr
2018-12-10 08:22:07 +01:00
daxpedda
973d676cd1
Fix bug in implicit_return.
...
Bug was already covered by test, but test was not checked for.
2018-12-06 12:22:54 +01:00
daxpedda
aed2b986e6
Renamed to implicit_return.
...
Covered all other kinds besides `ExprKind::Lit`.
Added check for replacing `break` with `return`.
2018-12-05 14:39:09 +01:00