We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-analyzer version: rust-analyzer version: 0.4.1943-standalone
rustc version: rustc 1.77.0 (aedd173a2 2024-03-17)
editor or extension: code oss, arch linux
relevant settings: None
code snippet to reproduce:
pub const FN: &[fn(usize, usize) -> usize] = &[or, xor]; pub fn or(a: usize, b: usize) -> usize { a | b } pub fn xor(a: usize, b: usize) -> usize { a ^ b }
hovering over the FN constant shows
FN
pub const FN: &[fn(usize, usize) -> usize] = &[0x3E8 as fn(usize, usize) -> usize, 0x3E9 as fn(usize, usize) -> usize]
which is not very useful (the internal constants and repeating the type)
The text was updated successfully, but these errors were encountered:
Might be related to
rust-analyzer/crates/hir-ty/src/display.rs
Lines 670 to 674 in 9ec04ed
It seems like an address or something else.
Sorry, something went wrong.
No branches or pull requests
rust-analyzer version: rust-analyzer version: 0.4.1943-standalone
rustc version: rustc 1.77.0 (aedd173a2 2024-03-17)
editor or extension: code oss, arch linux
relevant settings: None
code snippet to reproduce:
hovering over the
FN
constant showswhich is not very useful (the internal constants and repeating the type)
The text was updated successfully, but these errors were encountered: