Skip to content

Commit a9d9a13

Browse files
committed
Run tests on stable.
1 parent 6e1d3fb commit a9d9a13

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/tools/run-bindgen.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
BINDGEN_FLAGS_PREFIX = "// bindgen-flags: ";
99
CLANG_FLAGS_SEPARATOR = "-- "
1010
COMMON_PRELUDE = """
11-
#![feature(untagged_unions)]
1211
#![allow(non_snake_case)]
1312
"""
1413

@@ -18,12 +17,12 @@
1817

1918
[_, bindgen_path, c_path, rust_path] = sys.argv
2019

21-
flags = []
20+
flags = ["--no-unstable-rust"]
2221

2322
with open(sys.argv[2]) as f:
2423
for line in f:
2524
if line.startswith(BINDGEN_FLAGS_PREFIX):
26-
flags = line.strip().split(BINDGEN_FLAGS_PREFIX)[1].split(" ")
25+
flags.extend(line.strip().split(BINDGEN_FLAGS_PREFIX)[1].split(" "))
2726
break
2827

2928
base_command = [bindgen_path, "-o", rust_path]

0 commit comments

Comments
 (0)