diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-01 19:49:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-01 19:49:16 +0200 |
| commit | 2a3c2b335bb119ed34ece69edc837778266c821d (patch) | |
| tree | 4358d347a6e13f936bfa83acc9dedc399485fca1 | |
| parent | 8d9912ef49ceed0b813d7b75344fe9e261044f93 (diff) | |
| parent | 7a1a69911b96555396ffafe7d28a9f59912db72e (diff) | |
| download | rust-2a3c2b335bb119ed34ece69edc837778266c821d.tar.gz rust-2a3c2b335bb119ed34ece69edc837778266c821d.zip | |
Rollup merge of #71752 - tshepang:more-readable, r=jonas-schievink
make Stability doc a more readable (and fix rustdoc warning)
| -rw-r--r-- | src/librustc_attr/builtin.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc_attr/builtin.rs b/src/librustc_attr/builtin.rs index c2b2e7ce59f..0a6a4821e27 100644 --- a/src/librustc_attr/builtin.rs +++ b/src/librustc_attr/builtin.rs @@ -119,7 +119,11 @@ pub fn find_unwind_attr(diagnostic: Option<&Handler>, attrs: &[Attribute]) -> Op }) } -/// Represents the #[stable], #[unstable], #[rustc_deprecated] attributes. +/// Represents the following attributes: +/// +/// - `#[stable]` +/// - `#[unstable]` +/// - `#[rustc_deprecated]` #[derive(RustcEncodable, RustcDecodable, Copy, Clone, Debug, PartialEq, Eq, Hash)] #[derive(HashStable_Generic)] pub struct Stability { @@ -128,7 +132,7 @@ pub struct Stability { pub rustc_depr: Option<RustcDeprecation>, } -/// Represents the #[rustc_const_unstable] and #[rustc_const_stable] attributes. +/// Represents the `#[rustc_const_unstable]` and `#[rustc_const_stable]` attributes. #[derive(RustcEncodable, RustcDecodable, Copy, Clone, Debug, PartialEq, Eq, Hash)] #[derive(HashStable_Generic)] pub struct ConstStability { |
