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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer 0.4.2088-standalone (0f7f68dad 2024-08-27)
rust-analyzer 0.4.2088-standalone (0f7f68dad 2024-08-27)
rustc version: rustc 1.82.0-nightly (515395af0 2024-08-26)
rustc 1.82.0-nightly (515395af0 2024-08-26)
editor or extension: VSCode, extension version v0.4.2088 (pre-release)
v0.4.2088 (pre-release)
relevant settings: N/A (i think?)
repository link (if public, optional): N/A
code snippet to reproduce:
fn main() { static mut STACK: () = (); let _ = std::ptr::addr_of!(STACK); }
On stable (1.80.1) this code does error in both rustc and rust-analyzer, but on nightly it only errors in rust-analyzer.
The text was updated successfully, but these errors were encountered:
addr_of[_mut]!(EXTERN_OR_MUT_STATIC)
13ac53e
&raw mut STATIC_MUT
unsafe
Successfully merging a pull request may close this issue.
rust-analyzer version:
rust-analyzer 0.4.2088-standalone (0f7f68dad 2024-08-27)
rustc version:
rustc 1.82.0-nightly (515395af0 2024-08-26)
editor or extension: VSCode, extension version
v0.4.2088 (pre-release)
relevant settings: N/A (i think?)
repository link (if public, optional): N/A
code snippet to reproduce:
On stable (1.80.1) this code does error in both rustc and rust-analyzer, but on nightly it only errors in rust-analyzer.
The text was updated successfully, but these errors were encountered: