<!-- Troubleshooting guide: https://rust-analyzer.github.io/manual.html#troubleshooting Forum for questions: https://users.rust-lang.org/c/ide/14 Before submitting, please make sure that you're not running into one of these known issues: 1. on-the-fly diagnostics are mostly unimplemented (`cargo check` diagnostics will be shown when saving a file): #3107 Otherwise please try to provide information which will help us to fix the issue faster. Minimal reproducible examples with few dependencies are especially lovely <3. --> **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**: ```rust 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.