Skip to content

Commit

Permalink
Merge pull request #24 from RalfJung/lints
Browse files Browse the repository at this point in the history
dont cap lints
  • Loading branch information
RalfJung authored Sep 26, 2024
2 parents 10ebcf6 + 7ffe3d4 commit 6ebd8d6
Showing 1 changed file with 0 additions and 7 deletions.
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

0 comments on commit 6ebd8d6

Please sign in to comment.