Skip to content

Commit 0db962b

Browse files
committed
remove underscore prefix from feature name
1 parent bb98fbc commit 0db962b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rust:
1515
- stable
1616

1717
env:
18-
- CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.8 BINDGEN_FEATURES=__testing_only_llvm_stable
18+
- CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.8 BINDGEN_FEATURES=testing_only_llvm_stable
1919
- CARGO_TARGET_DIR=/tmp/bindgen LLVM_VERSION=3.9 BINDGEN_FEATURES=
2020

2121
cache:

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ version = "0.29"
6666
[features]
6767
assert_no_dangling_items = []
6868
default = ["logging"]
69-
__testing_only_llvm_stable = []
69+
testing_only_llvm_stable = []
7070
logging = ["env_logger", "log"]
7171
static = []
7272
# This feature only exists for CI -- don't use it!

bindgen-integration/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ bindgen = { path = ".." }
1111
gcc = "0.3"
1212

1313
[features]
14-
__testing_only_llvm_stable = ["bindgen/__testing_only_llvm_stable"]
14+
testing_only_llvm_stable = ["bindgen/testing_only_llvm_stable"]

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn main() {
2525
let bind_args: Vec<_> = env::args().collect();
2626

2727
let version = clang_version();
28-
let expected_version = if cfg!(feature = "__testing_only_llvm_stable") {
28+
let expected_version = if cfg!(feature = "testing_only_llvm_stable") {
2929
(3, 8)
3030
} else {
3131
(3, 9)

tests/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn create_bindgen_builder(header: &PathBuf) -> Result<Option<Builder>, Error> {
8484
.unwrap();
8585
flags.extend(extra_flags.into_iter());
8686
} else if line.contains("bindgen-unstable") &&
87-
cfg!(feature = "__testing_only_llvm_stable") {
87+
cfg!(feature = "testing_only_llvm_stable") {
8888
return Ok(None);
8989
} else if line.contains("bindgen-osx-only") {
9090
let prepend_flags = ["--raw-line", "#![cfg(target_os=\"macos\")]"];

0 commit comments

Comments
 (0)