Skip to content

dead code warning misfires on unsafe pointers #10956

Closed
@metajack

Description

@metajack

This code in servo triggers the dead code warning. It claims struct NSAlert; is not used, even though it's used as part of a public struct a few lines later.

https://github.com/mozilla-servo/rust-alert/blob/master/macos.rs#L20-L28

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions