Skip to content

Commit bf3ec50

Browse files
committed
remove idiom lints
1 parent 16232b0 commit bf3ec50

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

_posts/2018-10-29-help-test-rust-2018.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,4 @@ edition = "2018"
113113
```
114114

115115
See that `edition = "2018"`? That's what opts you in to the new features.
116-
Set it, `cargo +beta build`, and you should be good to go!
117-
118-
## Writing idiomatic code
119-
120-
We have some new lints that suggest using certain idioms in your Rust 2018
121-
code. We don't have them turned on by default yet. To see what your code would
122-
look like, you can use `cargo fix`:
123-
124-
```console
125-
$ cargo +beta fix --edition-idioms
126-
```
127-
128-
If things look great, or things look terrible, please let us know! We hope to make
129-
these lints warn by default after gaining some experience with them and working
130-
out the bugs.
131-
132-
> The `--edition-idioms` flag applies only to the "current crate"; if you want
133-
> to run it against a workspace is necessary to use a workaround with `RUSTFLAGS`
134-
> in order to execute it in all the workspace members.
135-
>
136-
> $ RUSTFLAGS='-Wrust_2018_idioms' cargo fix --all
116+
Set it, `cargo +beta build`, and you should be good to go!

0 commit comments

Comments
 (0)