i installed nightly, set my default toolchain to nightly and then restarted the rust-analyzer server on vs code, and without even enabling any features, every single usage of format!
, or any macros that use it (like println!
) now have two errors:
expected 3 arguments, found 4 - rust-analyzer(E0107)
call to unsafe function is unsafe and requires an unsafe function or block - rust-analyzer(E0133)
confirmed it was rust-analyzer because this doesn't happen with cargo (+nightly) check, confirmed it was nightly because this doesnt happen on stable, confirmed it wasnt my project by making an entirely new crate, the default println!("Hello World!")
in main.rs from cargo new also had these errors. i have updated both stable and nightly toolchains, uninstalled and reinstalled the rust-analyzer extension, installed it via rustup component add rust-analyzer
on nightly toolchain, nothing works! i even expanded the macro to see where the error was coming from, its from format_args!
which is, of course, compiler built-in.
what on earth is happening?!?!?