rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.12k stars 1.58k forks source link

Internal InTypeConstId visible in completions #16263

Open mattfbacon opened 8 months ago

mattfbacon commented 8 months ago

rust-analyzer version: 1.75.0 (82e1608 2023-12-21)

rustc version: 1.75.0 (82e1608df 2023-12-21)

relevant settings: Neovim

Here's an example where the size of an array is not shown correctly, and instead it shows in type const InTypeConstId(287). This is the completion window.

A completion box showing the issue described above

lnicola commented 8 months ago

What's the signature of that function?

mattfbacon commented 8 months ago
pub fn get_abs_state(&self) -> io::Result<[input_absinfo; AbsoluteAxisType::COUNT]> {

It's evdev::Device::get_abs_state.