lapla
7f096cff9d
Fix wrong suggestion for println_empty_string with non-parenthesis delimiters
2026-04-12 20:47:54 +09:00
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
Matthias Krüger
435299be30
rustfmt tests
2018-12-09 23:26:16 +01:00
Manish Goregaokar
e9c025ea70
Add license header to Rust files
2018-10-06 09:43:08 -07:00
MSI\Stew's Laptop
d175c797e5
fixing error message for empty println macro
2018-04-15 14:00:28 +02:00
Malo Jaffré
22f3ca0e2c
Add PRINTLN_EMPTY_STRING lint.
2017-10-20 16:45:32 +02:00