Open nvzqz opened 1 week ago
rust-analyzer version: 0.3.1940-standalone (f216be4a0 2024-04-27)
rustc version:
rustc -Vv rustc 1.77.2 (25ef9e3d8 2024-04-09) binary: rustc commit-hash: 25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04 commit-date: 2024-04-09 host: aarch64-apple-darwin release: 1.77.2 LLVM version: 17.0.6
editor or extension: VSCode
code snippet to reproduce:
#[divan::bench] fn my_benchmark(bencher: divan::Bencher) { bencher.bench(|| {/* ... */}); }
It used to be that methods like bench or with_inputs + bench_values would be suggested by Rust Analyzer. This no longer works.
bench
with_inputs
bench_values
Bencher uses a similar pattern to:
Bencher
struct Container<A>(A); impl<A: Fn()> Container<A> { fn invoke(&self) { (self.0)() } }
cc @davidbarsky I assume that this might be caused by your changes
rust-analyzer version: 0.3.1940-standalone (f216be4a0 2024-04-27)
rustc version:
editor or extension: VSCode
code snippet to reproduce:
It used to be that methods like
bench
orwith_inputs
+bench_values
would be suggested by Rust Analyzer. This no longer works.Bencher
uses a similar pattern to: