Skip to content

Unsafe blocks inside compiler macros silence unused_unsafe warning #12418

Closed
@huonw

Description

@huonw
#[deny(unused_unsafe)];

fn main() {
    unsafe { println!("foo") }
}

Compiles with no warning.

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