mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
completions: speed up completions by filtering non-applicable traits
This commit is contained in:
parent
9f0495761a
commit
c246a93046
6 changed files with 243 additions and 4 deletions
|
@ -139,6 +139,7 @@ fn solve(
|
|||
block: Option<BlockId>,
|
||||
goal: &chalk_ir::UCanonical<chalk_ir::InEnvironment<chalk_ir::Goal<Interner>>>,
|
||||
) -> Option<chalk_solve::Solution<Interner>> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "solve", ?krate, ?block).entered();
|
||||
let context = ChalkContext { db, krate, block };
|
||||
tracing::debug!("solve goal: {:?}", goal);
|
||||
let mut solver = create_chalk_solver();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue