From: Dale Wijnand Date: Fri, 20 Apr 2018 21:23:08 +0000 (+0100) Subject: backtick auto-discovery key usage advice X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~52^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ab5ac28a42f57146ec9327475a9728cff228bbbb;p=cargo.git backtick auto-discovery key usage advice --- 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.