-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-extern_types`#![feature(extern_types)]``#![feature(extern_types)]`
Description
#![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
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-extern_types`#![feature(extern_types)]``#![feature(extern_types)]`