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
relevant settings: I don't believe I've set anything particular. I can share the rust-analyzer settings file if need be.
Hello, I'm having an issue with ra where it reports a use of undeclared label `'my_label` (which I easily visualize with error lens on code).
Neither cargo check nor clippy report any warning (much less error as is the case with ra) regarding this when I run them in my terminal.
I'm not sure about a minimal example but here's one I quickly crafted from the actual snippet that causing me the issue.
structPlaceHolder;implIteratorforPlaceHolder{typeItem = Result<Option<()>,()>;fnnext(&mutself) -> Option<Self::Item>{Some(Ok(Some(())))}}fnmain(){letmut placeholder = PlaceHolder;'my_label:whileletSome(a) = match placeholder.next().unwrap(){Ok(_) => todo!(),Err(err) => {continue'my_label;// use of undeclared label `'my_label`}}{
a
}}
The text was updated successfully, but these errors were encountered:
rust-analyzer version: 0.3.1631-standalone
rustc version: rustc 1.72.0 (5680fa18f 2023-08-23)
relevant settings: I don't believe I've set anything particular. I can share the rust-analyzer settings file if need be.
Hello, I'm having an issue with ra where it reports a
use of undeclared label `'my_label`
(which I easily visualize with error lens on code).Neither
cargo check
norclippy
report any warning (much less error as is the case with ra) regarding this when I run them in my terminal.I'm not sure about a minimal example but here's one I quickly crafted from the actual snippet that causing me the issue.
The text was updated successfully, but these errors were encountered: