about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-26 16:57:46 +0200
committerGitHub <noreply@github.com>2022-07-26 16:57:46 +0200
commit811b4b890ab2b9577abdd22e3f7e9957696bfd9e (patch)
treedc735d957fc4381d45161aac1515c8da2f03e150 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent2614e437f54ebf98b8336d35af0a5821990eeac9 (diff)
parented8c2c28f0f0072dbb0ceae36b278d681d997fad (diff)
downloadrust-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:
![2022-07-14_15-00](https://user-images.githubusercontent.com/38225716/178968170-913c1dd5-8875-4a95-9848-b075a0bb8998.png)

<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