doc comments: Less attribute mimicking
This commit is contained in:
parent
3a087ad3a9
commit
3d57b8bcc0
9 changed files with 81 additions and 103 deletions
|
@ -2364,10 +2364,6 @@ pub enum AttrKind {
|
|||
/// A doc comment (e.g. `/// ...`, `//! ...`, `/** ... */`, `/*! ... */`).
|
||||
/// Doc attributes (e.g. `#[doc="..."]`) are represented with the `Normal`
|
||||
/// variant (which is much less compact and thus more expensive).
|
||||
///
|
||||
/// Note: `self.has_name(sym::doc)` and `self.check_name(sym::doc)` succeed
|
||||
/// for this variant, but this may change in the future.
|
||||
/// ```
|
||||
DocComment(Symbol),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue