From 84b9169cae3291c6e100a667139334286179158f Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 6 May 2024 21:28:43 +0200 Subject: [PATCH] Add note about single column rustc-check-cfg --- src/doc/src/reference/build-scripts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/src/reference/build-scripts.md b/src/doc/src/reference/build-scripts.md index ee2416817..6b6943fa9 100644 --- a/src/doc/src/reference/build-scripts.md +++ b/src/doc/src/reference/build-scripts.md @@ -264,6 +264,8 @@ the _reachable_ cfg expressions. For details on the syntax of `CHECK_CFG`, see `rustc` [`--check-cfg` flag][option-check-cfg]. See also the [`unexpected_cfgs`][unexpected-cfgs] lint. +> Note: `cargo:rustc-check-cfg` (single-colon) can be used if your MSRV is below Rust 1.77 + The instruction can be used like this: ```rust,no_run