Introduce AttrKind

This commit is contained in:
Kirill Bulatov 2020-02-12 16:44:52 +02:00
parent 1596b31698
commit 848c576266
3 changed files with 16 additions and 8 deletions

View file

@ -18,8 +18,8 @@ use crate::{
pub use self::{
expr_extensions::{ArrayExprKind, BinOp, ElseBranch, LiteralKind, PrefixOp, RangeOp},
extensions::{
FieldKind, PathSegmentKind, SelfParamKind, SlicePatComponents, StructKind, TypeBoundKind,
VisibilityKind,
AttrKind, FieldKind, PathSegmentKind, SelfParamKind, SlicePatComponents, StructKind,
TypeBoundKind, VisibilityKind,
},
generated::*,
tokens::*,
@ -218,7 +218,7 @@ fn test_doc_comment_multi_line_block_strips_suffix() {
fn test_comments_preserve_trailing_whitespace() {
let file = SourceFile::parse(
r#"
/// Representation of a Realm.
/// Representation of a Realm.
/// In the specification these are called Realm Records.
struct Realm {}"#,
)