rust-analyzer in nightly-2025-06-23 has a bug where macros like println! erroneously have red error squiggles, making the IDE experience a bit unpleasant. Switching to nightly-2025-06-29 resolves this issue, only requiring a single line modification to the Rust-CUDA library:
In crates/rustc_codegen_nvvm/src/builder.rs, lines 1109-1111
before:
fn filter_landing_pad(&mut self, _pers_fn: &'ll Value) -> (&'ll Value, &'ll Value) {
todo!()
}
after:
fn filter_landing_pad(&mut self, _pers_fn: &'ll Value) -> () {
todo!()
}
Related issue in rust-analyzer: rust-lang/rust-analyzer#20051
If you'd like, I could create a fork of Rust-CUDA and make a PR?