This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
// rustfmt-wrap_comments: true
2
2
// rustfmt-normalize_doc_attributes: true
3
3
4
+ // Only doc = "" attributes should be normalized
4
5
#![ doc = "Example doc attribute comment" ]
6
+ #![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
7
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
8
+ html_root_url = "https://doc.rust-lang.org/nightly/" ,
9
+ html_playground_url = "https://play.rust-lang.org/" , test( attr( deny( warnings) ) ) ) ]
10
+
5
11
6
12
// Long `#[doc = "..."]`
7
13
struct A { #[ doc = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ] b : i32 }
Original file line number Diff line number Diff line change 1
1
// rustfmt-wrap_comments: true
2
2
// rustfmt-normalize_doc_attributes: true
3
3
4
+ // Only doc = "" attributes should be normalized
4
5
//! Example doc attribute comment
6
+ #![ doc(
7
+ html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
8
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
9
+ html_root_url = "https://doc.rust-lang.org/nightly/" ,
10
+ html_playground_url = "https://play.rust-lang.org/" ,
11
+ test( attr( deny( warnings) ) )
12
+ ) ]
5
13
6
14
// Long `#[doc = "..."]`
7
15
struct A {
You can’t perform that action at this time.
0 commit comments