Skip to content

Commit 93f962a

Browse files
Gabi Ganampvdrz
Gabi Ganam
authored andcommitted
Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN
#2853
1 parent 42295d5 commit 93f962a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bindgen/codegen/helpers.rs

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ pub(crate) mod ast_ty {
340340
}
341341
}
342342
} else {
343+
// Negative infinity
343344
if rust_target >= RustTarget::Stable_1_43 {
344345
quote! {
345346
f64::NEG_INFINITY

bindgen/features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ define_rust_targets! {
107107
Stable_1_59(59) => { const_cstr: #54745 },
108108
Stable_1_47(47) => { larger_arrays: #74060 },
109109
Stable_1_43(43) => { non_exhaustive: #44109 },
110-
Stable_1_40(40) => {},
110+
Stable_1_40(40) => { associated_constants: #68952},
111111
Stable_1_36(36) => { maybe_uninit: #60445 },
112112
Stable_1_33(33) => { repr_packed_n: #57049 },
113113
#[deprecated]

0 commit comments

Comments
 (0)