-
Notifications
You must be signed in to change notification settings - Fork 898
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 (#4239)
* Pick up comments between visibility modifier and item name I don't think this hurts to fix. #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 #2781 as closed and then will open new issues for the comments that are not already resolved or tracked. Closes #2781 * fixup! Pick up comments between visibility modifier and item name * fixup! Pick up comments between visibility modifier and item name
- Loading branch information
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 {} | ||
} |