rust-analyzer version: rust-analyzer 0.4.2991-standalone
rustc version: rustc 1.97.0-nightly (36ba2c771 2026-04-23)
editor or extension: Vim
code snippet to reproduce:
The unknown type should be excluded, and perhaps the never type should also be excluded
fn main() {
let unknown;
let _: i32 = todo!();
} ╭Choose action─────────────────────────────────────────────────────────────────────╮
│1. Inline macro │
│2. Replace todo!() with unknown │
│3. Replace todo!() with i32::from_be(unknown) │
│4. Replace todo!() with i32::from_le(i32::from_be(unknown)) │
│5. Replace todo!() with i32::from_be_bytes(unknown) │
│6. Replace todo!() with i32::from_le_bytes(unknown) │
│7. Replace todo!() with i32::from_ne_bytes(unknown) │
│8. Replace todo!() with i32::min_value() │
│9. Replace todo!() with i32::max_value() │
│10. Replace todo!() with i32::from_be(todo!()) │
│11. Replace todo!() with i32::from_le(todo!()) │
│12. Replace todo!() with i32::from_str_radix(unknown, unknown).expect(unknown) │
│13. Replace todo!() with i32::from_str_radix(unknown, unknown).unwrap() │
│14. Replace todo!() with i32::from_str_radix(unknown, unknown).unwrap_or_default()│
│15. Replace todo!() with i32::from_str_radix(unknown, unknown).unwrap_or(todo!()) │
╰──────────────────────────────────────────────────────────────────────────────────╯
rust-analyzer version: rust-analyzer 0.4.2991-standalone
rustc version: rustc 1.97.0-nightly (36ba2c771 2026-04-23)
editor or extension: Vim
code snippet to reproduce:
The unknown type should be excluded, and perhaps the never type should also be excluded