Kamal Ahmad
fcd064da75
expect_fun_call: only lint const fn's if they're not inside a const context
2025-07-14 18:57:15 +05:00
Kamal Ahmad
07e2d96eff
Fix expect_fun_call producing invalid suggestions
2025-06-24 17:16:13 +05:00
Guillaume Gomez
f666fd6417
Update UI tests
2025-02-15 13:38:16 +01:00
Alex Macleod
3474df6a8e
Rewrite empty_line_after_doc_comments and empty_line_after_outer_attr
2024-08-24 18:07:31 +00:00
Oli Scherer
3d88fae050
Update ui test crate
2023-08-11 14:02:28 +00:00
Pavan Kumar Sunkara
bfd5abad4b
Fix all the other tests
2023-06-12 16:21:06 +01:00
Oli Scherer
def1705a27
Update to a compiletest-rs version that requires //@ for commands
2023-04-20 14:44:03 +00:00
Alex Macleod
9226066bcb
FormatArgsExpn: Find comma spans and ignore weird proc macro spans
2022-10-05 16:10:52 +00:00
Yuri Astrakhan
eb3970285b
fallout: fix tests to allow uninlined_format_args
...
In order to switch `clippy::uninlined_format_args` from pedantic to
style, all existing tests must not raise a warning. I did not want to
change the actual tests, so this is a relatively minor change that:
* add `#![allow(clippy::uninlined_format_args)]` where needed
* normalizes all allow/deny/warn attributes
* all allow attributes are grouped together
* sorted alphabetically
* the `clippy::*` attributes are listed separate from the other ones.
* deny and warn attributes are listed before the allowed ones
changelog: none
2022-10-02 15:13:22 -04:00
Alex Macleod
4bae06d73c
Use source callsite in FormatArgsExpn::inputs_span
2022-02-05 13:05:08 +00:00
Samuel E. Moelius III
47014d81a1
Fix adjacent tests
2021-10-15 12:44:49 -04:00
Michael Wright
1559f8bf34
Fix expect_fun_call false negative on references
...
Closes #4912
2019-12-19 06:57:56 +02:00
Michael Wright
464ed58861
Ensure expect_fun_call bad suggestion is fixed
...
Closes #3839
2019-03-06 07:00:05 +02:00
Michael Wright
5284b95a06
Fix expect_fun_call lint suggestions
...
This commit corrects some bad suggestions produced by the
`expect_fun_call` lint and enables `rust-fix` checking on the tests.
Addresses #3630
2019-01-24 06:58:53 +02:00
Shotaro Yamada
2ee713dc7b
Catch up with format_args change
...
Catches up with a change in rust-lang/rust#57537
Happened to fix a bug in `expect_fun_call`, that is the lint ignores more than
one arguments to `format`.
2019-01-19 21:18:31 +09: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
Matthias Krüger
435299be30
rustfmt tests
2018-12-09 23:26:16 +01:00
Philipp Hansch
26569f3dde
UI test cleanup: Extract expect_fun_call tests
...
Note that the new stderr file does not include a `shadow-unrelated`
error, because the new UI test file does not use `#![warn(clippy::all)]`
2018-11-02 07:18:56 +01:00