Skip to content

Commit b23c6eb

Browse files
committed
Bump scarb to latest nigtly version
1 parent 4c2691a commit b23c6eb

10 files changed

+29
-19
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scarb dev-2025-12-10
1+
scarb nightly-2026-01-09

tests/e2e/completions/macros.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,16 @@ fn partially_typed_top_level_macro_after_items() {
375375
text_edits = ["""
376376
use core::sha256::compute_sha256_u32_array;
377377
378+
"""]
379+
380+
[[completions]]
381+
completion_label = "compute_sha256_u32_array_safe(...)"
382+
completion_label_path = "(use core::sha256::compute_sha256_u32_array_safe)"
383+
completion_label_type_info = "fn(input: Array<u32>, last_input_word: u32, last_input_num_bytes: BoundedInt<0, 3>) -> [u32; 8]"
384+
insert_text = "compute_sha256_u32_array_safe(${1:input}, ${2:last_input_word}, ${3:last_input_num_bytes})"
385+
text_edits = ["""
386+
use core::sha256::compute_sha256_u32_array_safe;
387+
378388
"""]
379389
"#);
380390
}

tests/e2e/hover/keywords.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ fn kw_loop() {
354354
let mut i = 0;
355355
loop {
356356
if i >= xs.len() { return 0; }
357-
let v = *xs.at(i).unwrap();
358-
if v > 0 { return v; }
357+
let v = *xs.at(i);
358+
if v != 0 { return v; }
359359
i = i + 1;
360360
}
361361
}
@@ -725,7 +725,7 @@ fn kw_return() {
725725
Exits a function, optionally returning a value.
726726
### Example
727727
```cairo
728-
fn clamp01(x: i32) -> u32 {
728+
fn clamp01(x: i32) -> i32 {
729729
if x < 0 { return 0; }
730730
if x > 1 { return 1; }
731731
x
@@ -753,7 +753,7 @@ fn kw_break() {
753753
754754
### The `break` keyword.
755755
756-
Exits a loop early. Can only be used inside a `loop` expression.
756+
Exits a loop early. Can only be used inside `loop`, `while` or `for` loop blocks.
757757
### Example
758758
```cairo
759759
fn first_gt(xs: Array<u32>, cmp: u32) -> Option<u32> {

tests/e2e/scarb/scarb_toml_change/snapshots/e2e__scarb__scarb_toml_change__removing_dependency__removing_dependency.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ analyzed_crates = '''
9797
"settings": {
9898
"name": "core",
9999
"edition": "2025_12",
100-
"version": "2.14.0",
100+
"version": "2.15.0",
101101
"cfg_set": [
102102
[
103103
"target",
@@ -117,7 +117,7 @@ analyzed_crates = '''
117117
"negative_impls": true,
118118
"associated_item_constraints": true,
119119
"coupons": true,
120-
"user_defined_inline_macros": false,
120+
"user_defined_inline_macros": true,
121121
"repr_ptrs": false
122122
}
123123
},

tests/e2e/scarb/scarb_toml_change/snapshots/e2e__scarb__scarb_toml_change__removing_member__removing_member.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ analyzed_crates = '''
9898
"settings": {
9999
"name": "core",
100100
"edition": "2025_12",
101-
"version": "2.14.0",
101+
"version": "2.15.0",
102102
"cfg_set": [
103103
[
104104
"target",
@@ -118,7 +118,7 @@ analyzed_crates = '''
118118
"negative_impls": true,
119119
"associated_item_constraints": true,
120120
"coupons": true,
121-
"user_defined_inline_macros": false,
121+
"user_defined_inline_macros": true,
122122
"repr_ptrs": false
123123
}
124124
},

tests/e2e/scarb/snapshots/e2e__scarb__opening_multiple_workspaces__opening_dependency_first.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ analyzed_crates = '''
1515
"settings": {
1616
"name": "core",
1717
"edition": "2025_12",
18-
"version": "2.14.0",
18+
"version": "2.15.0",
1919
"cfg_set": [
2020
[
2121
"target",
@@ -35,7 +35,7 @@ analyzed_crates = '''
3535
"negative_impls": true,
3636
"associated_item_constraints": true,
3737
"coupons": true,
38-
"user_defined_inline_macros": false,
38+
"user_defined_inline_macros": true,
3939
"repr_ptrs": false
4040
}
4141
},
@@ -141,7 +141,7 @@ analyzed_crates_diff = '''
141141
"settings": {
142142
"name": "core",
143143
"edition": "2025_12",
144-
"version": "2.14.0",
144+
"version": "2.15.0",
145145
"cfg_set": [
146146
[
147147
"target",
@@ -165,7 +165,7 @@ analyzed_crates_diff = '''
165165
"negative_impls": true,
166166
"associated_item_constraints": true,
167167
"coupons": true,
168-
"user_defined_inline_macros": false,
168+
"user_defined_inline_macros": true,
169169
"repr_ptrs": false
170170
}
171171
@@ -47,30 +51,34 @@

tests/e2e/scarb/snapshots/e2e__scarb__simple_deps__simple_deps.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ expression: "normalize(&ls, analyzed_crates)"
9696
"settings": {
9797
"name": "core",
9898
"edition": "2025_12",
99-
"version": "2.14.0",
99+
"version": "2.15.0",
100100
"cfg_set": [
101101
[
102102
"target",
@@ -116,7 +116,7 @@ expression: "normalize(&ls, analyzed_crates)"
116116
"negative_impls": true,
117117
"associated_item_constraints": true,
118118
"coupons": true,
119-
"user_defined_inline_macros": false,
119+
"user_defined_inline_macros": true,
120120
"repr_ptrs": false
121121
}
122122
},

tests/e2e/scarb/unmanaged_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn test_unmanaged_core_on_invalid_scarb_toml() {
2929
"settings": {
3030
"name": null,
3131
"edition": "2025_12",
32-
"version": "2.14.0",
32+
"version": "2.15.0",
3333
"cfg_set": null,
3434
"dependencies": {},
3535
"experimental_features": {

tests/e2e/snapshots/e2e__analysis__view_analyzed_crates.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ expression: "normalize(&ls, output)"
1414
"settings": {
1515
"name": null,
1616
"edition": "2025_12",
17-
"version": "2.14.0",
17+
"version": "2.15.0",
1818
"cfg_set": null,
1919
"dependencies": {},
2020
"experimental_features": {

tests/e2e/snapshots/e2e__analysis__view_analyzed_crates_assert_macros.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ expression: "normalize(&ls, output)"
5858
"settings": {
5959
"name": "core",
6060
"edition": "2025_12",
61-
"version": "2.14.0",
61+
"version": "2.15.0",
6262
"cfg_set": [
6363
[
6464
"target",
@@ -78,7 +78,7 @@ expression: "normalize(&ls, output)"
7878
"negative_impls": true,
7979
"associated_item_constraints": true,
8080
"coupons": true,
81-
"user_defined_inline_macros": false,
81+
"user_defined_inline_macros": true,
8282
"repr_ptrs": false
8383
}
8484
},

0 commit comments

Comments
 (0)