diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-07-26 16:57:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-26 16:57:46 +0200 |
| commit | 811b4b890ab2b9577abdd22e3f7e9957696bfd9e (patch) | |
| tree | dc735d957fc4381d45161aac1515c8da2f03e150 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 2614e437f54ebf98b8336d35af0a5821990eeac9 (diff) | |
| parent | ed8c2c28f0f0072dbb0ceae36b278d681d997fad (diff) | |
| download | rust-811b4b890ab2b9577abdd22e3f7e9957696bfd9e.tar.gz rust-811b4b890ab2b9577abdd22e3f7e9957696bfd9e.zip | |
Rollup merge of #99235 - WaffleLapkin:rustdoc_implement_support_for_must_implement, r=GuillaumeGomez
rustdoc: Add support for `#[rustc_must_implement_one_of]`
This PR adds support for `#[rustc_must_implement_one_of]` attribute added in #92164. There is a desire to eventually use this attribute of `Read`, so making it show up in docs is a good thing.
I "stole" the styling from cfg notes, not sure what would be a proper styling. Currently it looks like this:

<details><summary>Code to reproduce</summary>
<p>
```rust
#![feature(rustc_attrs)]
#[rustc_must_implement_one_of(a, b)]
pub trait Trait {
fn req();
fn a(){ Self::b() }
fn b(){ Self::a() }
}
```
</p>
</details>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
