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
776: Silence UB warnings caused by bindgen r=Bromeon a=Bromeon
Since the update to rustc 1.53, bindgen using UB causes warnings.
See rust-lang/rust-bindgen#1651 for detail.
Warnings all in the style of:
```
warning: dereferencing a null pointer
--> ../godot-rust/target/<toolchain>/debug/build/gdnative-sys-7023d0a45a684438/out/bindings.rs:98:19
|
98 | unsafe { &(*(::std::ptr::null::<godot_string>()))._dont_touch_that as *const _ as usize },
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this code causes undefined behavior when executed
|
= note: `#[warn(deref_nullptr)]` on by default
```
Co-authored-by: Jan Haller <[email protected]>
0 commit comments