roife
roife
@rustbot ready
@rustbot claim
I have fixed both the second problem (`*self` should be `*this`) as well as the third one. For the third question, the problem also lies in the expansion of macro....
The node type of `A` in the pattern is `ast::Name` rather than `ast::NameRef`, so r-a does not consider `A` to be a use and does not look for its definition....
Oh I find it is better to use `derived-mode-p`, so `rustfmt` and `cargo check` will also benefit from it.
It seems that NLTokenizer does not provide the related functionality (See https://developer.apple.com/documentation/naturallanguage/nltokenizer), so we need to handle it manually. Actually, for English characters (or more precisely, ASCII characters), emt will...
What version of the rust-analyzer server are you using? Does your code contain any wide characters? A minimal reproducible example would be helpful for reproducing the issue.
> render the HIR pattern tree for this Can we reuse this function to render the pattern tree? https://github.com/rust-lang/rust-analyzer/blob/08c7bbc2dbe4dcc8968484f1a0e1e6fe7a1d4f6d/crates/hir-def/src/body/pretty.rs#L522 The only problem is that it would render missing components as...
As a workaround, you can also set `rust-analyzer.check.command` to `clippy`, so that r-a will use clippy for flycheck, and you'll be able to directly use auto-fixes from clippy.