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
editor or extension: VSCode. I uninstalled all other extensions and the bug is still there.
relevant settings: I am using the stock codespaces image (Ubuntu) mcr.microsoft.com/devcontainers/universal:2, with rust installed with the installation script.
repository link (if public, optional): The original bug appeared in my project here, but I have a minimal reproducable example below
code snippet to reproduce:
use itertools::izip;fnmain(){letmut yp_sn = vec![0;5];let yp = vec![0;5];let x = vec![0;5];for(x, yp_sn, _yp)inizip!(x, yp_sn.iter_mut(), yp){*yp_sn = x;}}
rust analyzer shows that cannot mutate immutable variable `yp_sn` , but I can compile successfully with cargo build. If I add mut yp_sn, it shows a warning that the variable does not need to be mutable.
The text was updated successfully, but these errors were encountered:
rust-analyzer version: rust-analyzer version: 0.3.2002-standalone [/home/codespace/.vscode-remote/extensions/rust-lang.rust-analyzer-0.3.2002-linux-x64/server/rust-analyzer]
rustc version: rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension: VSCode. I uninstalled all other extensions and the bug is still there.
relevant settings: I am using the stock codespaces image (Ubuntu)
mcr.microsoft.com/devcontainers/universal:2
, with rust installed with the installation script.repository link (if public, optional): The original bug appeared in my project here, but I have a minimal reproducable example below
code snippet to reproduce:
rust analyzer shows that
cannot mutate immutable variable `yp_sn`
, but I can compile successfully withcargo build
. If I addmut yp_sn
, it shows a warning that the variable does not need to be mutable.The text was updated successfully, but these errors were encountered: