-
Notifications
You must be signed in to change notification settings - Fork 13.8k
rustdoc: Add support for #[rustc_must_implement_one_of]
#99235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3da2553
9b9693c
d566334
7f1af42
1c4c398
ed8c2c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ details.rustdoc-toggle > summary::before { | |
.stab.empty-impl { background: #FFF5D6; border-color: #FFC600; } | ||
.stab.unstable { background: #FFF5D6; border-color: #FFC600; } | ||
.stab.deprecated { background: #ffc4c4; border-color: #db7b7b; } | ||
.stab.must_implement { background: #F3DFFF; border-color: #b07bdb; } | ||
|
||
.stab.portability { background: #F3DFFF; border-color: #b07bdb; } | ||
.stab.portability > code { background: none; } | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#![crate_name = "c"] | ||
#![feature(rustc_attrs)] | ||
|
||
#[rustc_must_implement_one_of(a, b)] | ||
// @matches c/trait.Trait.html '//*[@class="stab must_implement"]' \ | ||
// 'At least one of `a`, `b` methods is required.$' | ||
pub trait Trait { | ||
fn a() {} | ||
fn b() {} | ||
} | ||
GuillaumeGomez marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.