Skip to content

Commit fb7e604

Browse files
tests: backport an additional test case
1 parent c735994 commit fb7e604

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use rustc_ast::ast;
44
use rustc_ast::attr::HasAttrs;
5-
use rustc_span::{symbol::sym, BytePos, Span, Symbol, DUMMY_SP};
5+
use rustc_span::{symbol::sym, Span, Symbol};
66

77
use self::doc_comment::DocCommentFormatter;
88
use crate::comment::{contains_comment, rewrite_doc_comment, CommentStyle};

tests/target/issue_4545.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#[derive(Debug, Foo<T>)]
2+
enum Bar {}
3+
4+
#[derive(Debug, , Default)]
5+
struct Struct(i32);

0 commit comments

Comments
 (0)