From ab5ac28a42f57146ec9327475a9728cff228bbbb Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Fri, 20 Apr 2018 22:23:08 +0100 Subject: [PATCH] backtick auto-discovery key usage advice --- src/cargo/util/toml/targets.rs | 2 +- tests/testsuite/bench.rs | 2 +- tests/testsuite/run.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/util/toml/targets.rs b/src/cargo/util/toml/targets.rs index d3a04fb5c..9e3c8a0af 100644 --- a/src/cargo/util/toml/targets.rs +++ b/src/cargo/util/toml/targets.rs @@ -603,7 +603,7 @@ files will be included as a {target_kind_human} target: {rem_targets_str} This is likely to break cargo build or cargo test as these files may not be ready to be compiled as a {target_kind_human} target today. You can future-proof yourself -and disable this warning by adding {autodiscover_flag_name} = false to your [package] +and disable this warning by adding `{autodiscover_flag_name} = false` to your [package] section. You may also move the files to a location where Cargo would not automatically infer them to be a target, such as in subfolders. diff --git a/tests/testsuite/bench.rs b/tests/testsuite/bench.rs index 187193668..595b47926 100644 --- a/tests/testsuite/bench.rs +++ b/tests/testsuite/bench.rs @@ -762,7 +762,7 @@ files will be included as a benchmark target: This is likely to break cargo build or cargo test as these files may not be ready to be compiled as a benchmark target today. You can future-proof yourself -and disable this warning by adding autobenches = false to your [package] +and disable this warning by adding `autobenches = false` to your [package] section. You may also move the files to a location where Cargo would not automatically infer them to be a target, such as in subfolders. diff --git a/tests/testsuite/run.rs b/tests/testsuite/run.rs index 4a6de2001..47360c4cd 100644 --- a/tests/testsuite/run.rs +++ b/tests/testsuite/run.rs @@ -455,7 +455,7 @@ files will be included as a example target: This is likely to break cargo build or cargo test as these files may not be ready to be compiled as a example target today. You can future-proof yourself -and disable this warning by adding autoexamples = false to your [package] +and disable this warning by adding `autoexamples = false` to your [package] section. You may also move the files to a location where Cargo would not automatically infer them to be a target, such as in subfolders. -- 2.30.2