Skip to content

Commit 7a1a699

Browse files
committed
make Stability docs a bit more readable, and fix some rustdoc warnings
1 parent fd61d06 commit 7a1a699

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/librustc_attr/builtin.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ pub fn find_unwind_attr(diagnostic: Option<&Handler>, attrs: &[Attribute]) -> Op
119119
})
120120
}
121121

122-
/// Represents the #[stable], #[unstable], #[rustc_deprecated] attributes.
122+
/// Represents the following attributes:
123+
///
124+
/// - `#[stable]`
125+
/// - `#[unstable]`
126+
/// - `#[rustc_deprecated]`
123127
#[derive(RustcEncodable, RustcDecodable, Copy, Clone, Debug, PartialEq, Eq, Hash)]
124128
#[derive(HashStable_Generic)]
125129
pub struct Stability {
@@ -128,7 +132,7 @@ pub struct Stability {
128132
pub rustc_depr: Option<RustcDeprecation>,
129133
}
130134

131-
/// Represents the #[rustc_const_unstable] and #[rustc_const_stable] attributes.
135+
/// Represents the `#[rustc_const_unstable]` and `#[rustc_const_stable]` attributes.
132136
#[derive(RustcEncodable, RustcDecodable, Copy, Clone, Debug, PartialEq, Eq, Hash)]
133137
#[derive(HashStable_Generic)]
134138
pub struct ConstStability {

0 commit comments

Comments
 (0)