-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc comments on modules are included twice in AST #12646
Comments
A minimal test seems to be: /// The 'test' module is elegant in its minimalism.
mod test; with an empty |
I retried the minimal test cases described here and the problem appears to have been resolved at some point. Shall I close the ticket or is there some additional procedure to consider? |
Nope, that's it. |
fasterthanlime
pushed a commit
to fasterthanlime/rust
that referenced
this issue
Jul 22, 2022
fix: escape receiver texts in completion This PR fixes rust-lang#11897 by escaping '\\' and '$' in the text of the receiver position expression. See [here](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax) for the specification of the snippet syntax (especially [this section](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#grammar) discusses escaping). Although not all occurrences of '\\' and '$' have to be replaced, I chose to replace all as that's simpler and easier to understand. There *are* more clever ways to implement it, but I thought they were premature optimization for the time being (maybe I should put FIXME notes?).
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Apr 18, 2024
… r=blyxyas Turn `duplicated_attributes` into a late lint Fixes rust-lang#12537. changelog: Turn `duplicated_attributes` into a late lint
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following up on an issue first discovered in #12386.
///
-style Doc comments placed onpub mod
lines appear twice in the AST.In this minimal example, there are two files: mod.rs and test.rs.
mod.rs contains:
test.rs contains:
Compiling with
rustc -Z ast-json mod.rs
produces the following AST fragment:The complete AST can be found here.
The text was updated successfully, but these errors were encountered: