rust/compiler/rustc_attr
Maybe Waffle 177af47104 Implement #[rustc_default_body_unstable]
This attribute allows to mark default body of a trait function as
unstable. This means that implementing the trait without implementing
the function will require enabling unstable feature.

This is useful in conjunction with `#[rustc_must_implement_one_of]`,
we may want to relax requirements for a trait, for example allowing
implementing either of `PartialEq::{eq, ne}`, but do so in a safe way
-- making implementation of only `PartialEq::ne` unstable.
2022-07-26 15:38:03 +04:00
..
src Implement #[rustc_default_body_unstable] 2022-07-26 15:38:03 +04:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00