Skip to content

Commit 8319abc

Browse files
committed
Remove warning about arbitrarily set CLI cfgs
Now that explicit_builtin_cfgs_in_flags is deny-by-default, I don't think we need this warning anymore.
1 parent 57d088a commit 8319abc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/conditional-compilation.md

-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ configuration option from within the source code of the crate being compiled.
8787
> by [Cargo][cargo-feature] for specifying compile-time options and optional
8888
> dependencies.
8989
90-
> [!WARNING]
91-
> Arbitrarily-set configuration options can clash with compiler-set configuration options. For example, it is possible to do `rustc --cfg "unix" program.rs` while compiling to a Windows target, and have both `unix` and `windows` configuration options set at the same time. Doing this would be unwise.
92-
>
93-
> Since Rust 1.82 `rustc` prevents setting configuration options that can clash with it's set of builtin configurations with the deny-by-default [`explicit_builtin_cfgs_in_flags`](https://doc.rust-lang.org/rustc/lints/listing/deny-by-default.html#explicit-builtin-cfgs-in-flags) lint.
94-
9590
r[cfg.target_arch]
9691
### `target_arch`
9792

0 commit comments

Comments
 (0)