Skip to content

Commit cef568c

Browse files
committed
rustfmt can fix anon parameters automatically
1 parent 850e3b0 commit cef568c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/0000-deprecate-anonymous-parameters.md

+5
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ allow-by-default lint, a clippy lint, and an IntelliJ Rust inspection, but do
168168
not produce compiler warnings by default. This will make the update process more
169169
gradual, but will delay the benefits of deprecation.
170170

171+
### Automatic transition
172+
173+
Rustfmt and IntelliJ Rust can automatically change anonymous parameters to
174+
`_`. However it is better to manually add real names to make it obvious what
175+
name is expected on the `impl` side.
171176

172177
# Drawbacks
173178
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)