Skip to content

Commit

Permalink
tests: backport an additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Nov 29, 2020
1 parent 3195942 commit a6d8d54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use rustc_ast::ast;
use rustc_ast::attr::HasAttrs;
use rustc_span::{symbol::sym, BytePos, Span, Symbol, DUMMY_SP};
use rustc_span::{symbol::sym, Span, Symbol};

use self::doc_comment::DocCommentFormatter;
use crate::comment::{contains_comment, rewrite_doc_comment, CommentStyle};
Expand Down
5 changes: 5 additions & 0 deletions tests/target/issue_4545.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#[derive(Debug, Foo<T>)]
enum Bar {}

#[derive(Debug, , Default)]
struct Struct(i32);

0 comments on commit a6d8d54

Please sign in to comment.