Closed
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 impl
s with the proper lint attributes.
#[deny(unstable)];
#[allow(unstable)]
#[unstable]
#[deriving(Clone)]
struct X;
#[allow(unstable)]
#[deriving(Clone)]
struct A { x: X }
fn main() { }