diff options
| author | bors <bors@rust-lang.org> | 2018-09-25 03:42:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-09-25 03:42:46 +0000 |
| commit | 287187230b8d76686883d1ea32940294ec0fd5c9 (patch) | |
| tree | dd5d8586b56ea56db9e8aca684638098058cc3d7 /src/liballoc_system | |
| parent | 3a2190a9cd4e38a9543ff697dd51ca8b6b68f50d (diff) | |
| parent | 3932249249fa56dd1515c487a5a9eb02cb631775 (diff) | |
| download | rust-287187230b8d76686883d1ea32940294ec0fd5c9.tar.gz rust-287187230b8d76686883d1ea32940294ec0fd5c9.zip | |
Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakis
Support an explicit annotation for marker traits From the tracking issue for rust-lang/rfcs#1268: > It seems obvious that we should make a `#[marker]` annotation. ~ https://github.com/rust-lang/rust/issues/29864#issuecomment-368959441 This PR allows you to put `#[marker]` on a trait, at which point: - [x] The trait must not have any items ~~All of the trait's items must have defaults~~ - [x] Any impl of the trait must be empty (not override any items) - [x] But impls of the trait are allowed to overlap r? @nikomatsakis
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
