Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deny warnings in CI and add check-cfg directives #603

Merged
merged 4 commits into from
May 11, 2024

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented May 6, 2024

There are currently a lot of warnings printed in CI, a lot of which come from the new check config. Update CI to deny warnings.

@tgross35 tgross35 force-pushed the ci-deny-warnings branch 9 times, most recently from 02f0ea7 to 3a04f18 Compare May 6, 2024 08:33
@tgross35 tgross35 marked this pull request as draft May 6, 2024 08:33
@tgross35 tgross35 force-pushed the ci-deny-warnings branch 4 times, most recently from 9999f16 to 7d8114f Compare May 6, 2024 09:14
build.rs Outdated Show resolved Hide resolved
build.rs Outdated Show resolved Hide resolved
Comment on lines +13 to 14
println!("cargo::rustc-check-cfg=cfg(feature, values(\"unstable\"))");
println!("cargo:rustc-cfg=feature=\"unstable\"");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be replaced by a real custom config and not a faux Cargo feature, ie unstable and not feature = "unstable".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes from libm so I could probably do it here rust-lang/libm#296

Thanks for the quick review

tgross35 added a commit to tgross35/compiler-builtins that referenced this pull request May 6, 2024
tgross35 added a commit to tgross35/compiler-builtins that referenced this pull request May 6, 2024
tgross35 added a commit to tgross35/compiler-builtins that referenced this pull request May 6, 2024
tgross35 added a commit to tgross35/compiler-builtins that referenced this pull request May 6, 2024
@tgross35 tgross35 marked this pull request as ready for review May 6, 2024 09:38
@tgross35 tgross35 changed the title Deny warnings in CI Deny warnings in CI and add check-cfg directives May 10, 2024
@Amanieu Amanieu enabled auto-merge May 11, 2024 07:57
@Amanieu Amanieu merged commit d4bc562 into rust-lang:master May 11, 2024
23 checks passed
@tgross35 tgross35 deleted the ci-deny-warnings branch May 11, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants