Skip to content

little information for HashMap through IDE (things like size and implementation) #16403

New issue

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

Closed
antonilol opened this issue Jan 19, 2024 · 3 comments
Labels
C-bug Category: bug

Comments

@antonilol
Copy link

rust-analyzer version: 0.4.1810-standalone

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

relevant settings: None

size doesnt show:
expected (like Vec):
image

actual:
image

cant see implementation:
image
most function do the same thing on self.base, which has an {unknown} type in rust-analyzer, so cant Ctrl+click on them (go to definition)

but i think this code should exist to be able to compile programs that use HashMap, is making rust analyzer aware of where this code is a fix to this?

@antonilol antonilol added the C-bug Category: bug label Jan 19, 2024
@antonilol
Copy link
Author

just noticed there is a space in front of // size = 24 (0x18), align = 0x8 of the Vec

@HKalbasi
Copy link
Member

This is #7637 (HashMap depends on hashbrown crate and r-a doesn't see it)

@antonilol
Copy link
Author

can be closed as duplicate then, was looking for HashMap and couldnt find any duplicates then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants