Open gabiganam opened 1 week ago
#define POSITIVE_INFINITE (1.0/0.0) #define NEGATIVE_INFINITE (-1.0/0.0)
pub const POSITIVE_INFINITE: f64 = ::std::f64::INFINITY; pub const NEGATIVE_INFINITE: f64 = ::std::f64::NEG_INFINITY;
pub const POSITIVE_INFINITE: f64 = f64::INFINITY; pub const NEGATIVE_INFINITE: f64 = f64::NEG_INFINITY;
Due to new lint rule: https://rust-lang.github.io/rust-clippy/master/index.html#/legacy_numeric_constants
Source code seems to be: https://github.com/rust-lang/rust-bindgen/blob/cf9b02f57cc6138f60b4d35a5ff109b433dd8238/bindgen/codegen/helpers.rs#L325
Input C/C++ Header
Actual Results
Expected Results
Due to new lint rule: https://rust-lang.github.io/rust-clippy/master/index.html#/legacy_numeric_constants
Source code seems to be: https://github.com/rust-lang/rust-bindgen/blob/cf9b02f57cc6138f60b4d35a5ff109b433dd8238/bindgen/codegen/helpers.rs#L325