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
staticLINKME_STOP: <#ty as #linkme_path::__private::Slice>::Element;
As pointed out in rust-lang/rust#46188 (comment), statics are considered always-dereferenceable, so it’s probably unsound. As the stop static is never actually read from, I think it could be made zero-sized to remove the unsoundness?
The text was updated successfully, but these errors were encountered:
Currently linkme generates an extern static of
Element
type for the “stop section” symbol:linkme/impl/src/declaration.rs
Lines 139 to 143 in 0e5e28b
As pointed out in rust-lang/rust#46188 (comment), statics are considered always-dereferenceable, so it’s probably unsound. As the stop static is never actually read from, I think it could be made zero-sized to remove the unsoundness?
The text was updated successfully, but these errors were encountered: