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

dont cap lints #24

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,6 @@ impl<'a> SysrootBuilder<'a> {
let default_flags = &[
// This is usually set by bootstrap via `RUSTC_FORCE_UNSTABLE`.
"-Zforce-unstable-if-unmarked",
// Don't fail when there are lints.
// The whole point of this crate is to build the standard library in nonstandard
// configurations, which may trip lints due to untested combinations of cfgs.
// This matches what cargo does for dependencies.
// We cannot set `--cap-lints=allow` because Cargo needs to parse warnings to understand the
// output of --print=file-names for crate-types that the target does not support.
"--cap-lints=warn",
// We allow `unexpected_cfgs` as the sysroot has tons of custom `cfg` that rustc does not know about.
"-Aunexpected_cfgs",
];
Expand Down
Loading