We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1d3fb commit a9d9a13Copy full SHA for a9d9a13
tests/tools/run-bindgen.py
@@ -8,7 +8,6 @@
8
BINDGEN_FLAGS_PREFIX = "// bindgen-flags: ";
9
CLANG_FLAGS_SEPARATOR = "-- "
10
COMMON_PRELUDE = """
11
-#![feature(untagged_unions)]
12
#![allow(non_snake_case)]
13
"""
14
@@ -18,12 +17,12 @@
18
17
19
[_, bindgen_path, c_path, rust_path] = sys.argv
20
21
-flags = []
+flags = ["--no-unstable-rust"]
22
23
with open(sys.argv[2]) as f:
24
for line in f:
25
if line.startswith(BINDGEN_FLAGS_PREFIX):
26
- flags = line.strip().split(BINDGEN_FLAGS_PREFIX)[1].split(" ")
+ flags.extend(line.strip().split(BINDGEN_FLAGS_PREFIX)[1].split(" "))
27
break
28
29
base_command = [bindgen_path, "-o", rust_path]
0 commit comments