Skip to content

Commit f7231c7

Browse files
author
Gabi Ganam
committed
Fix generated constants: f64::INFINITY, f64::NEG_ INFINITY, f64::NAN
rust-lang#2853
1 parent 7491c74 commit f7231c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindgen-tests/tests/expectations/tests/infinite-macro.rs

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen/codegen/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub(crate) mod ast_ty {
315315

316316
if f.is_nan() {
317317
return Ok(quote! {
318-
::#prefix::f64::NAN
318+
f64::NAN
319319
});
320320
}
321321

0 commit comments

Comments
 (0)