Skip to content

Commit 880de82

Browse files
lu-zeroemilio
authored andcommitted
Move warnings check on the CI
Always building with `deny(warnings)` leads to messups such as https://docs.rs/crate/bindgen/0.52.0/builds/199624
1 parent b44be6e commit 880de82

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

ci/assert-warnings.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
set -xeu
4+
cd "$(dirname "$0")/.."
5+
6+
cargo rustc --lib --features "$BINDGEN_FEATURES" -- -Dwarnings

ci/script.sh

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ case "$BINDGEN_JOB" in
3838

3939
"misc")
4040
./ci/assert-docs.sh
41+
./ci/assert-warnings.sh
4142
./ci/test-book.sh
4243
./ci/no-includes.sh
4344
./ci/assert-rustfmt.sh

src/features.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Contains code for selecting features
22
33
#![deny(missing_docs)]
4-
#![deny(warnings)]
54
#![deny(unused_extern_crates)]
65

76
use std::io;

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//! See the [Users Guide](https://rust-lang.github.io/rust-bindgen/) for
99
//! additional documentation.
1010
#![deny(missing_docs)]
11-
#![deny(warnings)]
1211
#![deny(unused_extern_crates)]
1312
// To avoid rather annoying warnings when matching with CXCursor_xxx as a
1413
// constant.

0 commit comments

Comments
 (0)