rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

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

Open SludgePhD opened this issue 5 months ago • 1 comments

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 avatar Jun 04 '25 19:06 SludgePhD

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

ChayimFriedman2 avatar Jun 11 '25 01:06 ChayimFriedman2