File tree Expand file tree Collapse file tree 16 files changed +20
-62
lines changed Expand file tree Collapse file tree 16 files changed +20
-62
lines changed Original file line number Diff line number Diff line change @@ -136,17 +136,8 @@ jobs:
136
136
# FIXME: There are no pre-built static libclang libraries, so the
137
137
# `static` feature is not testable atm.
138
138
feature_runtime : [0, 1]
139
- feature_extra_asserts : [0]
140
139
141
140
include :
142
- # Test with extra asserts + docs just with latest llvm versions to
143
- # prevent explosion
144
- - os : ubuntu-latest
145
- llvm_version : " 16.0"
146
- release_build : 0
147
- no_default_features : 0
148
- feature_extra_asserts : 1
149
-
150
141
# FIXME: Seems installing multiarch packages fails:
151
142
#
152
143
# https://github.com/rust-lang/rust-bindgen/pull/2037/checks?check_run_id=2441799333
@@ -159,14 +150,12 @@ jobs:
159
150
# llvm_version: "16.0"
160
151
# main_tests: 0
161
152
# release_build: 0
162
- # feature_extra_asserts: 0
163
153
164
154
# Ensure stuff works on macos too
165
155
- os : macos-latest
166
156
llvm_version : " 16.0"
167
157
release_build : 0
168
158
no_default_features : 0
169
- feature_extra_asserts : 0
170
159
steps :
171
160
- uses : actions/checkout@v4
172
161
@@ -207,9 +196,8 @@ jobs:
207
196
BINDGEN_MAIN_TESTS : ${{matrix.main_tests}}
208
197
BINDGEN_RELEASE_BUILD : ${{matrix.release_build}}
209
198
BINDGEN_FEATURE_RUNTIME : ${{matrix.feature_runtime}}
210
- BINDGEN_FEATURE_EXTRA_ASSERTS : ${{matrix.feature_extra_asserts}}
211
199
BINDGEN_NO_DEFAULT_FEATURES : ${{matrix.no_default_features}}
212
- BINDGEN_RUST_FOR_LINUX_TEST : ${{matrix.os == 'ubuntu-latest' && matrix.llvm_version == '16.0' && matrix.feature_extra_asserts == 0 && 1 || 0}}
200
+ BINDGEN_RUST_FOR_LINUX_TEST : ${{matrix.os == 'ubuntu-latest' && matrix.llvm_version == '16.0' && 1 || 0}}
213
201
run : ./ci/test.sh
214
202
215
203
check-cfg :
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ prettyplease = ["bindgen/prettyplease"]
38
38
# # The following features are for internal use and they shouldn't be used if
39
39
# # you're not hacking on bindgen
40
40
# Features used for CI testing
41
- __testing_only_extra_assertions = [" bindgen/__testing_only_extra_assertions" ]
42
41
__testing_only_libclang_9 = [" bindgen/__testing_only_libclang_9" ]
43
42
__testing_only_libclang_16 = [" bindgen/__testing_only_libclang_16" ]
44
43
Original file line number Diff line number Diff line change @@ -18,6 +18,5 @@ cc.workspace = true
18
18
static = [" bindgen/static" ]
19
19
runtime = [" bindgen/runtime" ]
20
20
21
- __testing_only_extra_assertions = [" bindgen/__testing_only_extra_assertions" ]
22
21
__testing_only_libclang_9 = [" bindgen/__testing_only_libclang_9" ]
23
22
__testing_only_libclang_16 = [" bindgen/__testing_only_libclang_16" ]
Original file line number Diff line number Diff line change @@ -23,6 +23,5 @@ logging = ["bindgen/logging"]
23
23
static = [" bindgen/static" ]
24
24
runtime = [" bindgen/runtime" ]
25
25
26
- __testing_only_extra_assertions = [" bindgen/__testing_only_extra_assertions" ]
27
26
__testing_only_libclang_9 = [" bindgen/__testing_only_libclang_9" ]
28
27
__testing_only_libclang_16 = [" bindgen/__testing_only_libclang_16" ]
Original file line number Diff line number Diff line change 10
10
/// how long bindings generation takes for Stylo. Stylo bindings generation
11
11
/// takes too long to be a proper `#[bench]`.
12
12
#[ test]
13
- #[ cfg( not( any(
14
- debug_assertions,
15
- feature = "__testing_only_extra_assertions" ,
16
- ) ) ) ]
13
+ #[ cfg( not( any( debug_assertions, debug_assertions, ) ) ) ]
17
14
#[ cfg( any(
18
15
feature = "__testing_only_libclang_9" ,
19
16
feature = "__testing_only_libclang_16"
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ experimental = ["dep:annotate-snippets"]
56
56
# Features used by `bindgen-cli`
57
57
__cli = [" dep:clap" , " dep:clap_complete" ]
58
58
# Features used for CI testing
59
- __testing_only_extra_assertions = []
60
59
__testing_only_libclang_9 = []
61
60
__testing_only_libclang_16 = []
62
61
Original file line number Diff line number Diff line change @@ -4446,7 +4446,7 @@ impl TryToRustTy for TemplateInstantiation {
4446
4446
// This can happen if we generated an opaque type for a partial
4447
4447
// template specialization, and we've hit an instantiation of
4448
4448
// that partial specialization.
4449
- extra_assert ! ( def. is_opaque( ctx, & ( ) ) ) ;
4449
+ debug_assert ! ( def. is_opaque( ctx, & ( ) ) ) ;
4450
4450
return Err ( Error :: InstantiationOfOpaqueType ) ;
4451
4451
}
4452
4452
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ impl<'ctx> MonotoneFramework for CannotDerive<'ctx> {
698
698
699
699
impl < ' ctx > From < CannotDerive < ' ctx > > for HashMap < ItemId , CanDerive > {
700
700
fn from ( analysis : CannotDerive < ' ctx > ) -> Self {
701
- extra_assert ! ( analysis
701
+ debug_assert ! ( analysis
702
702
. can_derive
703
703
. values( )
704
704
. all( |v| * v != CanDerive :: Yes ) ) ;
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ impl<'ctx> MonotoneFramework for HasVtableAnalysis<'ctx> {
210
210
impl < ' ctx > From < HasVtableAnalysis < ' ctx > > for HashMap < ItemId , HasVtableResult > {
211
211
fn from ( analysis : HasVtableAnalysis < ' ctx > ) -> Self {
212
212
// We let the lack of an entry mean "No" to save space.
213
- extra_assert ! ( analysis
213
+ debug_assert ! ( analysis
214
214
. have_vtable
215
215
. values( )
216
216
. all( |v| { * v != HasVtableResult :: No } ) ) ;
You can’t perform that action at this time.
0 commit comments