doc comments: Less attribute mimicking

This commit is contained in:
Vadim Petrochenkov 2019-12-07 21:28:29 +03:00
parent 3a087ad3a9
commit 3d57b8bcc0
9 changed files with 81 additions and 103 deletions

View file

@ -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),
}