forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: add normalize_doc_attributes config tests (rust-lang#3630)
- Loading branch information
1 parent
4b102fd
commit aa0c9dd
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// rustfmt-normalize_doc_attributes: false | ||
// Normalize doc attributes | ||
|
||
#![doc = " Example documentation"] | ||
|
||
#[doc = " Example item documentation"] | ||
pub enum Foo {} | ||
|
||
#[doc = " Lots of space"] | ||
pub enum Bar {} | ||
|
||
#[doc = "no leading space"] | ||
pub mod FooBar {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// rustfmt-normalize_doc_attributes: true | ||
// Normalize doc attributes | ||
|
||
#![doc = " Example documentation"] | ||
|
||
#[doc = " Example item documentation"] | ||
pub enum Foo {} | ||
|
||
#[doc = " Lots of space"] | ||
pub enum Bar {} | ||
|
||
#[doc = "no leading space"] | ||
pub mod FooBar {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// rustfmt-normalize_doc_attributes: false | ||
// Normalize doc attributes | ||
|
||
#![doc = " Example documentation"] | ||
|
||
#[doc = " Example item documentation"] | ||
pub enum Foo {} | ||
|
||
#[doc = " Lots of space"] | ||
pub enum Bar {} | ||
|
||
#[doc = "no leading space"] | ||
pub mod FooBar {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// rustfmt-normalize_doc_attributes: true | ||
// Normalize doc attributes | ||
|
||
//! Example documentation | ||
/// Example item documentation | ||
pub enum Foo {} | ||
|
||
/// Lots of space | ||
pub enum Bar {} | ||
|
||
///no leading space | ||
pub mod FooBar {} |