BlogDocs

Adds type inference from trait implementations.(#6590)

Merged
Comparing
esdrubal/5259
(
2589871
) with
master
(
6b05844
)
-1%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
22
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

traverse
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::traverse
0%
216.1 ms
215 ms
format
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::format
0%
464.2 ms
462.5 ms
prepare_rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::prepare_rename
0%
1.6 ms
1.6 ms
hover
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::hover
0%
1.7 ms
1.7 ms
parent_decl_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::parent_decl_at_position
0%
18.7 ms
18.7 ms
completion
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::completion
0%
22.9 ms
22.9 ms
tokens_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_at_position
0%
18.7 ms
18.7 ms
goto_definition
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::goto_definition
0%
1.6 ms
1.6 ms
find_all_references
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::find_all_references
0%
46.3 ms
46.3 ms
rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::rename
0%
46.3 ms
46.3 ms
code_action
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_action
0%
25.7 ms
25.7 ms
highlight
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::highlight
0%
44 ms
44 ms
idents_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::idents_at_position
0%
460.2 µs
460.2 µs
inlay_hints
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::inlay_hints
0%
18.6 ms
18.6 ms
token_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::token_at_position
0%
1.6 ms
1.6 ms
tokens_for_file
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_for_file
0%
1.6 ms
1.6 ms
on_enter
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::on_enter
0%
124.9 µs
125.2 µs
did_change_with_caching
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::did_change_with_caching
-1%
508 ms
510.7 ms
semantic_tokens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::semantic_tokens
-1%
3.1 ms
3.1 ms
code_lens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_lens
-2%
5.3 µs
5.4 µs
compile
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::compile
-2%
6 s
6.1 s
document_symbol
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::document_symbol
-10%
4.7 ms
5.3 ms

Commits

Click on a commit to change the comparison range
base
master
6b05844
-18%
Adds inference from trait implementations. When we have a type annotation with placeholders and we assign to it the result of a trait implementation call, if there is a single possible trait implementation we can use its type in the type annotation type. Fixes #5299
accc240
2 months ago
by esdrubal
+18%
Fixes cargo clippy.
ff65c4f
2 months ago
by esdrubal
+1%
Merge branch 'master' into esdrubal/5259
f9b5343
1 month ago
by IGI-111
-19%
Merge branch 'master' into esdrubal/5259
c4d2715
25 days ago
by JoshuaBatty
-25%
Merge branch 'master' into esdrubal/5259
22bb8da
24 days ago
by IGI-111
+42%
Merge branch 'master' into esdrubal/5259
2589871
24 days ago
by JoshuaBatty
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.