Commit Graph

9 Commits

Author SHA1 Message Date
Yuri Astrakhan f72e055625 Add unnecessary_trailing_comma lint
Suggest removing an unnecessary trailing comma before the closing
parenthesis in single-line format-like macro invocations (e.g.
println!, format!, write!). The lint currently only runs on
format-like macros because it relies on format-argument parsing;
arbitrary user macros are not supported to avoid incorrect
suggestions.

- Lint is in the `style` group (allow-by-default)
- Single-line only: multi-line macro invocations are not linted
- Machine-applicable fix: removes the trailing comma
2026-02-17 14:30:43 -05:00
irelaxcn 675fd681aa Fix println_empty_string suggestion caused error when there is a , after arg.
Make `writeln_empty_string` don't provide an auto-fix suggestion when
there is a comment in the macro call span.
2025-12-20 01:38:31 +08:00
Guillaume Gomez f666fd6417 Update UI tests 2025-02-15 13:38:16 +01:00
Oli Scherer 3d88fae050 Update ui test crate 2023-08-11 14:02:28 +00:00
Oli Scherer def1705a27 Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
Eduardo Broto 3187cad8ec Factor out some code in write.rs
Get rid of the too-many-lines error.
2020-12-08 23:17:12 +01:00
ThibsG 53094de08e Merge fixes 2020-02-04 22:53:24 +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
Philipp Hansch 319f18e54d Add run-rustfix where it already passes 2019-01-04 11:22:38 +01:00