"Fill match arms" inside #[async_trait]
-annotated impl fills incorrectly (extra closing brace, incorrect indentation)
#18863
Labels
rust-analyzer version:
rust-analyzer 1.83.0 (90b35a62 2024-11-26)
rustc version:
rustc 1.83.0 (90b35a623 2024-11-26)
editor or extension: Observed with both helix 25.1 (dabfb6ce) with the stock configuration, and nvim v0.10.3 both with rustaceanvim and with rust-analyzer directly configured through nvim-lspconfig. This doesn't appear to be sensitive to editor or extension version.
relevant settings: No settings appear to be relevant, this happens with multiple editors. Rust is installed through Rustup, and the editors are using the
rust-analyzer
binary installed viarustup component add rust-analyzer
.code snippet to reproduce:
Go to the line containing
match result {}
and choose the "Fill match arms" code action. This produces the following output:The text was updated successfully, but these errors were encountered: