Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request rust-lang#83 from gibix/workspace-idioms
Browse files Browse the repository at this point in the history
transitioning: specify behavior in workspace
  • Loading branch information
Centril committed Aug 14, 2018
2 parents f130514 + 4105902 commit 94e251a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/editions/transitioning-your-code-to-a-new-edition.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,14 @@ fix` will automatically fix any lints it can, so you'll only get warnings for
things that `cargo fix` couldn't fix. If you find it difficult to work through
the warnings, that's a bug!

Once you're warning-free with this command you're good to go. Enjoy the new
edition!
Once you're warning-free with this command you're good to go.

> The `--edition-idioms` flag applies only to the "current crate" if you want
> to run it against a workspace is necessary to use a workaround with
> `RUSTFLAGS` in order to execute it in all the workspace members.
>
> ```shell
> $ RUSTFLAGS='-Wrust_2018_idioms' cargo fix --all
> ```
Enjoy the new edition!

0 comments on commit 94e251a

Please sign in to comment.