Skip to content

error[E0133]: use of extern static is unsafe and requires unsafe function or block #42

Description

@glandium
$ cargo check --features gecko-ffi
    Checking thin-vec v0.2.10 (/tmp/thin-vec)
error[E0133]: use of extern static is unsafe and requires unsafe function or block
    --> src/lib.rs:1536:47
     |
1536 |         self.ptr.as_ptr() as *const Header == &EMPTY_HEADER
     |                                               ^^^^^^^^^^^^^ use of extern static
     |
     = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior

For more information about this error, try `rustc --explain E0133`.
error: could not compile `thin-vec` due to previous error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions