Uh oh!
There was an error while loading. Please reload this page.
Remove all doc_comment!{} hacks by using #[doc = expr] where needed. - #79150
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jyn514
commented
Nov 18, 2020
This is so much nicer ❤️ |
This comment has been minimized.
This comment has been minimized.
fba6ee3 to
d9dff70Compared9dff70 to
0f00fbfCompare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0f00fbf to
356a680Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
356a680 to
7b68367Compare
This comment has been minimized.
This comment has been minimized.
m-ou-se
commented
Dec 30, 2020
r? @dtolnay |
This comment has been minimized.
This comment has been minimized.
2d180cc to
5694b8eCompareUh oh!
There was an error while loading. Please reload this page.
| /// Basic usage: | ||
| /// | ||
| /// ``` | ||
| #[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX, ", stringify!($Max), ");")] |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jyn514
commented
Dec 30, 2020
For posterity, you can review this by adding |
m-ou-se
commented
Dec 30, 2020
Thanks for the review! @bors r=jyn514 |
bors
commented
Dec 30, 2020
📌 Commit 4614cdd has been approved by |
…=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=1bors
commented
Dec 31, 2020
bors
commented
Dec 31, 2020
☀️ Test successful - checks-actions |
Remove unnecessary `forward_inner_docs` hack and replace it with `extended_key_value_attributes` feature. This is rust-lang#79150, but for compiler/.
Remove unnecessary `forward_inner_docs` hack and replace it with `extended_key_value_attributes` feature. This is rust-lang#79150, but for compiler/.
Remove unnecessary `forward_inner_docs` hack and replace it with `extended_key_value_attributes` feature. This is rust-lang#79150, but for compiler/.
This replaces about 200 cases of
by
Note: For a usable diff, make sure to enable 'ignore whitspace': https://github.com/rust-lang/rust/pull/79150/files?diff=unified&w=1