-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New rustc nightly suggests adding a build.rs to use conditional compilation #124800
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-check-cfg--check-cfg--check-cfgL-unexpected_cfgsLint: unexpected_cfgsLint: unexpected_cfgsP-highHigh priorityHigh priorityT-cargoRelevant to the cargo team, which will review and decide on the PR/issue.Relevant to the cargo team, which will review and decide on the PR/issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Milestone
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-check-cfg--check-cfg--check-cfgL-unexpected_cfgsLint: unexpected_cfgsLint: unexpected_cfgsP-highHigh priorityHigh priorityT-cargoRelevant to the cargo team, which will review and decide on the PR/issue.Relevant to the cargo team, which will review and decide on the PR/issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
We use conditional compilation in a lot of places (eg the
fuzzingcfg flag is standard to conditionally compile when fuzzing in the rust-fuzz ecosystem) and have a hard rule against unnecessarybuild.rss (as running build-time code is a red flag when auditing a crate and requires special care). Latest rustc nightly now generates a huge pile of warnings encouraging us to add abuild.rsto make them go away, which isn't really acceptable. It seems this is encouraging bad practice to respond to a common practice - is there some way to just listfuzzingand some other super common flags and allow those?