diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-04-27 18:14:19 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-07-26 15:38:03 +0400 |
| commit | 177af4710464d9f743d64f8792afcb0ee553ba6b (patch) | |
| tree | 75ef30b1f4c836275fbdc0e4ad745e897e670ab6 /src/test/codegen/src-hash-algorithm | |
| parent | 96b9bb4620f4d48aa25c381c7ea77e0cab48ac5b (diff) | |
| download | rust-177af4710464d9f743d64f8792afcb0ee553ba6b.tar.gz rust-177af4710464d9f743d64f8792afcb0ee553ba6b.zip | |
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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
