@@ -138,13 +138,14 @@ impl Deprecation {
138
138
}
139
139
}
140
140
141
- /// Attributes represent parsed, *built in*, inert attributes. That means,
142
- /// attributes that are not actually ever expanded.
143
- /// For more information on this, see the module docs on the rustc_attr_parsing crate.
141
+ /// Represent parsed, *built in*, inert attributes.
142
+ ///
143
+ /// That means attributes that are not actually ever expanded.
144
+ /// For more information on this, see the module docs on the [`rustc_attr_parsing`] crate.
144
145
/// They're instead used as markers, to guide the compilation process in various way in most every stage of the compiler.
145
146
/// These are kept around after the AST, into the HIR and further on.
146
147
///
147
- /// The word parsed could be a little misleading here, because the parser already parses
148
+ /// The word " parsed" could be a little misleading here, because the parser already parses
148
149
/// attributes early on. However, the result, an [`ast::Attribute`]
149
150
/// is only parsed at a high level, still containing a token stream in many cases. That is
150
151
/// because the structure of the contents varies from attribute to attribute.
@@ -153,7 +154,9 @@ impl Deprecation {
153
154
/// the place where `must_use` is checked) little to no extra parsing or validating needs to
154
155
/// happen.
155
156
///
156
- /// For more docs, look in [`rustc_attr`](https://doc.rust-lang.org/stable/nightly-rustc/rustc_attr/index.html)
157
+ /// For more docs, look in [`rustc_attr_parsing`].
158
+ ///
159
+ /// [`rustc_attr_parsing`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_attr_parsing/index.html
157
160
#[ derive( Clone , Debug , HashStable_Generic , Encodable , Decodable , PrintAttribute ) ]
158
161
pub enum AttributeKind {
159
162
// tidy-alphabetical-start
0 commit comments