From 410590265b6b3bbd7ae3b4a67b777edb9cbc2731 Mon Sep 17 00:00:00 2001 From: gibix Date: Tue, 14 Aug 2018 02:15:42 +0200 Subject: [PATCH] transitioning: specify behavior in workspace --- .../transitioning-your-code-to-a-new-edition.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/editions/transitioning-your-code-to-a-new-edition.md b/src/editions/transitioning-your-code-to-a-new-edition.md index 7ae98764..c445e972 100644 --- a/src/editions/transitioning-your-code-to-a-new-edition.md +++ b/src/editions/transitioning-your-code-to-a-new-edition.md @@ -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!