about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-04-27 18:14:19 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-07-26 15:38:03 +0400
commit177af4710464d9f743d64f8792afcb0ee553ba6b (patch)
tree75ef30b1f4c836275fbdc0e4ad745e897e670ab6 /src/test/codegen/src-hash-algorithm
parent96b9bb4620f4d48aa25c381c7ea77e0cab48ac5b (diff)
downloadrust-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