You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
voidf(intgen);
Generated:
unsafeextern"C"{pubfnf(gen:i32);}
Expected:
unsafeextern"C"{pubfnf(r#gen:i32);}
The text was updated successfully, but these errors were encountered:
Mangling identifiers is done in rust_mangle. This wouldn't result in the format that you've suggested (r#gen), instead it suffixes the identifier with an underscore (gen_), but that's the behaviour for all other keywords too.
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:
Expected:
The text was updated successfully, but these errors were encountered: