Hi, I understand that edition 2024 is not stable yet, but I wanted to notify you in advance of its stabilization (which will be in the next stable rust release as far as I understood).
Currently, bindgen cannot generate correct bindings for edition 2024, because it does not take the new reserved gen keyword into consideration, i.e. it incorrectly does not generate a raw identifier (r#gen).
Versions
rustc 1.86.0-nightly (in edition 2024 mode)
bindgen 0.71.1 (library)
Example
C Function:
Generated:
unsafe extern "C" {
pub fn f(gen: i32);
}
Expected:
unsafe extern "C" {
pub fn f(r#gen: i32);
}