diff options
| author | bors <bors@rust-lang.org> | 2020-12-31 06:14:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-31 06:14:41 +0000 |
| commit | 8b002d5c3489a21db2c16e5af63cf5d234f6972c (patch) | |
| tree | 676f9617253c37e14f6d139dcd53dcdc9d314838 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 923e3d2400e9a56fed70d377db5e7728ed3e5192 (diff) | |
| parent | 4614cdd230602fa0e873d890b842d6a5fbfed72e (diff) | |
| download | rust-8b002d5c3489a21db2c16e5af63cf5d234f6972c.tar.gz rust-8b002d5c3489a21db2c16e5af63cf5d234f6972c.zip | |
Auto merge of #79150 - m-ou-se:bye-bye-doc-comment-hack, r=jyn514
Remove all doc_comment!{} hacks by using #[doc = expr] where needed.
This replaces about 200 cases of
`````rust
doc_comment! {
concat!("The smallest value that can be represented by this integer type.
# Examples
Basic usage:
```
", $Feature, "assert_eq!(", stringify!($SelfT), "::MIN, ", stringify!($Min), ");",
$EndFeature, "
```"),
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;
}
`````
by
```rust
/// The smallest value that can be represented by this integer type.
///
/// # Examples
///
/// Basic usage:
///
/// ```
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN, ", stringify!($Min), ");")]
/// ```
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;
```
---
**Note:** For a usable diff, make sure to enable 'ignore whitspace': https://github.com/rust-lang/rust/pull/79150/files?diff=unified&w=1
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
