Skip to content

static mut transform produces warning with unsafe-op-in-unsafe-fn #537

@ia0

Description

@ia0
#![warn(unsafe_op_in_unsafe_fn)]
#[entry]
fn main() -> ! {
    // The next line generates a warning while it shouldn't.
    static mut CLOCKS: MaybeUninit<Clocks> = MaybeUninit::new();
    // ...
}

I see in #411 (comment) that maybe this static mut transform is going to be deprecated. Is that true?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions