You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the nightly feature let_chains, any file that contains a let chain can no longer be formatted.
Minimal example:
#![feature(let_chains)]fnmain(){let a = Some(true);ifletSome(b) = a && b
{println!("Hello, world!");}}
The syntax highlighting or the quick fixes still work.
If I comment && b, the formatting works.
Also happens with while let &&
I am using:
latest version of the rust-analyzer extension (0.3.1443).
Linux (Manjaro)
Rust nightly-2023-03-18
VSCodium 1.75.1
I couldn't find an existing issue on this, which strikes me as strange since it is a very easy to run into it, for a somewhat popular nightly feature. Sorry if this is a duplicate.
Also, I filed it as a bug (since it breaks the formatting of the whole file), but it could very well be a missing feature depending how you look at it.
The text was updated successfully, but these errors were encountered:
When using the nightly feature
let_chains
, any file that contains a let chain can no longer be formatted.Minimal example:
&& b
, the formatting works.while let &&
I am using:
I couldn't find an existing issue on this, which strikes me as strange since it is a very easy to run into it, for a somewhat popular nightly feature. Sorry if this is a duplicate.
Also, I filed it as a bug (since it breaks the formatting of the whole file), but it could very well be a missing feature depending how you look at it.
The text was updated successfully, but these errors were encountered: