Skip to content

missing_debug_implementations lint is ignored for extern_types #46662

Open
@crumblingstatue

Description

@crumblingstatue
#![feature(extern_types)]

#![warn(missing_debug_implementations)]

pub enum Foo {}
extern "C" {
    pub type Bar;
}

Foo gets a warning, but Bar doesn't:

warning: type does not implement `fmt::Debug`; consider adding #[derive(Debug)] or a manual implementation
 --> foo.rs:5:1
  |
5 | pub enum Foo {}
  | ^^^^^^^^^^^^^^^
  |
note: lint level defined here
 --> foo.rs:3:9
  |
3 | #![warn(missing_debug_implementations)]
  |  

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.F-extern_types`#![feature(extern_types)]`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions