We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rust-analyzer version: 0.3.2282-standalone (2df4ecf 2025-01-26)
rustc version: rustc 1.83.0 (90b35a623 2024-11-26)
editor or extension: VSCode extension version 0.3.2282
code snippet to reproduce:
fn need_bytes_mut(_: &mut [u8]) {} fn main() { let mut string = String::new(); match unsafe { string.as_bytes_mut() } { [] => {} bytes => { need_bytes_mut(bytes); } } }
The code compiles, but type hint for bytes is unkown and RA reports an error. If line 6 is deleted, everything will be fine.
bytes
And str's method as_bytes_mut is not resolved, no auto-comple, no quick doc lookup.
str
as_bytes_mut
The text was updated successfully, but these errors were encountered:
It works fine for me. Perhaps you have a corrupted sysroot? Try rustup component remove rust-src then rustup component install rust-src.
rustup component remove rust-src
rustup component install rust-src
Sorry, something went wrong.
Thanks for your advice. I tried and it doesn't work. The earlier version of vscode RA extension 0.3.2273 works fine.
No branches or pull requests
rust-analyzer version: 0.3.2282-standalone (2df4ecf 2025-01-26)
rustc version: rustc 1.83.0 (90b35a623 2024-11-26)
editor or extension: VSCode extension version 0.3.2282
code snippet to reproduce:
The code compiles, but type hint for
bytes
is unkown and RA reports an error. If line 6 is deleted, everything will be fine.And
str
's methodas_bytes_mut
is not resolved, no auto-comple, no quick doc lookup.The text was updated successfully, but these errors were encountered: