mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
5e7fb45533
* 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
12 lines
217 B
Rust
12 lines
217 B
Rust
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 {}
|
|
}
|