-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Closed
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.
Description
Otherwise it can be very annoying to use lint-affected items selectively. For example, the following code tries to use an unstable item X from a stable item A, but boilerplates generated from #[deriving(Clone)] do not have #[allow(unstable)] attached, so it fails to compile. Currently the only way available is to manually add impls with the proper lint attributes.
#[deny(unstable)];
#[allow(unstable)]
#[unstable]
#[deriving(Clone)]
struct X;
#[allow(unstable)]
#[deriving(Clone)]
struct A { x: X }
fn main() { }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.