forked from rust-lang/rustfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pick up comments between visibility modifier and item name (rust-lang…
…#4239) * Pick up comments between visibility modifier and item name I don't think this hurts to fix. rust-lang#2781, which surfaced this issue, has a number of comments relating to similar but slightly different issues (i.e. dropped comments in other places). I can mark rust-lang#2781 as closed and then will open new issues for the comments that are not already resolved or tracked. Closes rust-lang#2781 * fixup! Pick up comments between visibility modifier and item name * fixup! Pick up comments between visibility modifier and item name
- Loading branch information
1 parent
a6d8d54
commit c50bfa8
Showing
3 changed files
with
57 additions
and
12 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
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,11 @@ | ||
pub // Oh, no. A line comment. | ||
struct Foo {} | ||
|
||
pub /* Oh, no. A block comment. */ struct Foo {} | ||
|
||
mod inner { | ||
pub // Oh, no. A line comment. | ||
struct Foo {} | ||
|
||
pub /* Oh, no. A block comment. */ struct Foo {} | ||
} |
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,11 @@ | ||
pub // Oh, no. A line comment. | ||
struct Foo {} | ||
|
||
pub /* Oh, no. A block comment. */ struct Foo {} | ||
|
||
mod inner { | ||
pub // Oh, no. A line comment. | ||
struct Foo {} | ||
|
||
pub /* Oh, no. A block comment. */ struct Foo {} | ||
} |