BlogDocs

Fixes panic error on decl_to_type_info.(#6552)

Merged
Merging
esdrubal/panic_in_decl_to_type_info
(
4b4019b
) into
master
(
a073a95
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
22
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

semantic_tokens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::semantic_tokens
+1%
3 ms
3 ms
document_symbol
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::document_symbol
+1%
4.3 ms
4.3 ms
tokens_for_file
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_for_file
0%
1.6 ms
1.6 ms
format
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::format
0%
380.4 ms
378.8 ms
completion
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::completion
0%
22.9 ms
22.9 ms
goto_definition
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::goto_definition
0%
1.6 ms
1.6 ms
compile
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::compile
0%
5.4 s
5.4 s
inlay_hints
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::inlay_hints
0%
3.2 ms
3.2 ms
tokens_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_at_position
0%
18.7 ms
18.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
hover
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::hover
0%
1.7 ms
1.7 ms
prepare_rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::prepare_rename
0%
1.6 ms
1.6 ms
highlight
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::highlight
0%
44 ms
44 ms
traverse
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::traverse
0%
222.8 ms
222.9 ms
rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::rename
0%
46.3 ms
46.3 ms
find_all_references
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::find_all_references
0%
46.3 ms
46.3 ms
idents_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::idents_at_position
0%
460.1 µs
460.1 µs
token_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::token_at_position
0%
1.6 ms
1.6 ms
code_action
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_action
0%
25.7 ms
25.7 ms
did_change_with_caching
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::did_change_with_caching
0%
504.7 ms
504.8 ms
on_enter
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::on_enter
0%
125.5 µs
125.6 µs
code_lens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_lens
-1%
6.1 µs
6.2 µs

Commits

Click on a commit to change the comparison range
base
master
a073a95
0%
Fixes panic error on decl_to_type_info. Doing an unwrap without checking if the value was none was causing a panic. Fixed by throwing an error so we can also see the previous errors. Fixes #6330
248a957
26 days ago
by esdrubal
0%
Merge branch 'master' into esdrubal/panic_in_decl_to_type_info
ae0ab93
25 days ago
by JoshuaBatty
0%
Merge branch 'master' into esdrubal/panic_in_decl_to_type_info
4b4019b
25 days ago
by sdankel
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.