Skip to content

BuildHasher is not completed when typing RandomState::new().build_hasher #19925

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

Open
SludgePhD opened this issue Jun 4, 2025 · 1 comment
Open
Assignees
Labels
A-completion autocompletion C-bug Category: bug

Comments

@SludgePhD
Copy link

rust-analyzer version: 0.3.2482-standalone

rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)

editor or extension: VSCode; v0.3.2482

relevant settings: none

code snippet to reproduce:

use std::hash::RandomState;

fn f() {
    RandomState::new().build_hasher
}
@SludgePhD SludgePhD added the C-bug Category: bug label Jun 4, 2025
@ShoyuVanilla ShoyuVanilla added the A-completion autocompletion label Jun 5, 2025
@ChayimFriedman2 ChayimFriedman2 self-assigned this Jun 8, 2025
@ChayimFriedman2
Copy link
Contributor

For context: this turned surprisingly tricky to do, see #t-compiler/rust-analyzer > Optimization causing funny bugs.

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

No branches or pull requests

3 participants