Skip to content

Commit aa0c9dd

Browse files
calebcartwrighttopecongiro
authored andcommitted
tests: add normalize_doc_attributes config tests (rust-lang#3630)
1 parent 4b102fd commit aa0c9dd

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-normalize_doc_attributes: false
2+
// Normalize doc attributes
3+
4+
#![doc = " Example documentation"]
5+
6+
#[doc = " Example item documentation"]
7+
pub enum Foo {}
8+
9+
#[doc = " Lots of space"]
10+
pub enum Bar {}
11+
12+
#[doc = "no leading space"]
13+
pub mod FooBar {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-normalize_doc_attributes: true
2+
// Normalize doc attributes
3+
4+
#![doc = " Example documentation"]
5+
6+
#[doc = " Example item documentation"]
7+
pub enum Foo {}
8+
9+
#[doc = " Lots of space"]
10+
pub enum Bar {}
11+
12+
#[doc = "no leading space"]
13+
pub mod FooBar {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-normalize_doc_attributes: false
2+
// Normalize doc attributes
3+
4+
#![doc = " Example documentation"]
5+
6+
#[doc = " Example item documentation"]
7+
pub enum Foo {}
8+
9+
#[doc = " Lots of space"]
10+
pub enum Bar {}
11+
12+
#[doc = "no leading space"]
13+
pub mod FooBar {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// rustfmt-normalize_doc_attributes: true
2+
// Normalize doc attributes
3+
4+
//! Example documentation
5+
6+
/// Example item documentation
7+
pub enum Foo {}
8+
9+
/// Lots of space
10+
pub enum Bar {}
11+
12+
///no leading space
13+
pub mod FooBar {}

0 commit comments

Comments
 (0)