Skip to content

Commit

Permalink
chore: cargo update (#181)
Browse files Browse the repository at this point in the history
* chore: cargo update

    Updating alloy-json-abi v0.8.14 -> v0.8.18
    Updating alloy-primitives v0.8.14 -> v0.8.18
    Updating alloy-sol-type-parser v0.8.14 -> v0.8.18
    Updating annotate-snippets v0.11.4 -> v0.11.5
    Updating anyhow v1.0.94 -> v1.0.95
    Adding bit-set v0.8.0
    Adding bit-vec v0.8.0
    Updating bstr v1.11.0 -> v1.11.3
    Updating cc v1.2.3 -> v1.2.7
    Updating colored v2.1.0 -> v2.2.0
    Updating console v0.15.8 -> v0.15.10
    Updating crossbeam-channel v0.5.13 -> v0.5.14
    Updating crossbeam-deque v0.8.5 -> v0.8.6
    Updating crossbeam-utils v0.8.20 -> v0.8.21
    Updating encode_unicode v0.3.6 -> v1.0.0
    Updating expect-test v1.5.0 -> v1.5.1
    Updating foldhash v0.1.3 -> v0.1.4
    Removing hex-literal v0.4.1
    Updating libc v0.2.167 -> v0.2.169
    Removing libm v0.2.11
    Updating proptest v1.5.0 -> v1.6.0
    Updating quote v1.0.37 -> v1.0.38
    Updating redox_syscall v0.5.7 -> v0.5.8
    Updating rustix v0.38.41 -> v0.38.42
    Updating rustversion v1.0.18 -> v1.0.19
    Updating scc v2.2.5 -> v2.3.0
    Updating sdd v3.0.4 -> v3.0.5
    Updating semver v1.0.23 -> v1.0.24
    Updating serde v1.0.215 -> v1.0.217
    Updating serde_derive v1.0.215 -> v1.0.217
    Updating serde_json v1.0.133 -> v1.0.134
    Updating syn v2.0.90 -> v2.0.95
    Updating tempfile v3.14.0 -> v3.15.0
    Updating thiserror v2.0.6 -> v2.0.9
    Updating thiserror-impl v2.0.6 -> v2.0.9
    Updating tracing-tracy v0.11.3 -> v0.11.4
    Updating tracy-client v0.17.5 -> v0.18.0
    Updating tracy-client-sys v0.24.2 -> v0.24.3
    Removing windows-sys v0.48.0
    Removing windows-targets v0.48.5
    Removing windows_aarch64_gnullvm v0.48.5
    Removing windows_aarch64_msvc v0.48.5
    Removing windows_i686_gnu v0.48.5
    Removing windows_i686_msvc v0.48.5
    Removing windows_x86_64_gnu v0.48.5
    Removing windows_x86_64_gnullvm v0.48.5
    Removing windows_x86_64_msvc v0.48.5
    Updating winnow v0.6.20 -> v0.6.22

* chore: upgrade itertools, petgraph

* bless

* feat: enable simd feature on annotate-snippets
  • Loading branch information
DaniPopes authored Jan 5, 2025
1 parent ce151c5 commit 37e5faf
Show file tree
Hide file tree
Showing 13 changed files with 193 additions and 252 deletions.
357 changes: 147 additions & 210 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ clap_builder = "4.4"
# diagnostics
anstream = "0.6.18"
anstyle = "1.0"
annotate-snippets = "0.11.1"
annotate-snippets = { version = "0.11.5", features = ["simd"] }

# serde
serde = "1.0"
Expand Down Expand Up @@ -153,15 +153,15 @@ either = "1"
hex = { package = "const-hex", version = "1.10" }
index_vec = "0.1.3"
indexmap = "2.2"
itertools = ">=0.10, <=0.13"
itertools = ">=0.10, <=0.14"
itoa = "1.0"
lasso = "0.7.3"
libc = "0.2"
md-5 = "0.10"
memchr = "2.7"
once_map = { version = "0.4.20", default-features = false, features = ["std"] }
paste = "1.0"
petgraph = "0.6"
petgraph = "0.7"
rustc-hash = "2.0"
scc = "2"
scoped-tls = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/lexer/string_escapes_crlf.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ LL | bytes constant s = hex"\
error: cannot skip multiple lines with `\`
--> ROOT/tests/ui/lexer/string_escapes_crlf.sol:LL:CC
|
LL |
LL |
| ^
|

error: cannot skip multiple lines with `\`
--> ROOT/tests/ui/lexer/string_escapes_crlf.sol:LL:CC
|
LL |
LL |
| ^
|

Expand Down Expand Up @@ -58,13 +58,13 @@ error: invalid hex digit
--> ROOT/tests/ui/lexer/string_escapes_crlf.sol:LL:CC
|
LL | ...
| ^
|^
|

error: invalid hex digit
--> ROOT/tests/ui/lexer/string_escapes_crlf.sol:LL:CC
|
LL |
LL |
| ^
|

Expand Down
6 changes: 3 additions & 3 deletions tests/ui/lexer/string_escapes_lf.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ LL | bytes constant s = hex"\
error: cannot skip multiple lines with `\`
--> ROOT/tests/ui/lexer/string_escapes_lf.sol:LL:CC
|
LL |
LL |
| ^
|

error: cannot skip multiple lines with `\`
--> ROOT/tests/ui/lexer/string_escapes_lf.sol:LL:CC
|
LL |
LL |
| ^
|

Expand All @@ -43,7 +43,7 @@ LL | bytes constant s = hex"\
error: invalid hex digit
--> ROOT/tests/ui/lexer/string_escapes_lf.sol:LL:CC
|
LL |
LL |
| ^
|

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/parser/multiline_error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LL | new string[](3)
| ^ expected one of `(`, `.`, `;`, `?`, `[`, or `{`
LL |
LL |
LL |
LL |
LL | new string[](4)
| ^^^ unexpected token
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/resolve/conflicts.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LL | contract C {
| - note: previous declaration declared here
LL | // OK
...
LL |
LL |
LL | contract C {}
| ^
|
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/resolve/import_conflicts.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: identifier `MyUdvt` already declared
LL | import {MyUdvt, MyUdvt as MyUdvt} from "./auxiliary/udvt.sol";
| ------ note: previous declaration declared here
LL | import {MyUdvt as MyUdvt2, MyUdvt as MyUdvt2} from "./auxiliary/udvt.sol";
LL |
LL |
LL | import "./auxiliary/udvt.sol" as MyUdvt;
| ^^^^^^
|
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/resolve/inheritance_conflicts.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: identifier `x` already declared
LL | uint public x = 0;
| - note: previous declaration declared here
LL | }
LL |
LL |
LL | contract B is A {
LL | uint public x = 1;
| ^
Expand All @@ -16,7 +16,7 @@ error: identifier `y` already declared
LL | uint public y = 2;
| - note: previous declaration declared here
LL | }
LL |
LL |
LL | contract BB {
LL | uint public y = 3;
| ^
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/typeck/duplicate_overloaded_items.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ error: event with same name and parameter types declared twice
LL | event E5();
| -- note: other declaration
LL | }
LL |
LL |
LL | contract D is C2 {
LL | event E5() anonymous;
| ^^
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/typeck/duplicate_selectors.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: function signature hash collision
LL | function mintEfficientN2M_001Z5BWH() public {}
| ---------------------------------------------- note: first function
LL | }
LL |
LL |
LL | contract D is C {
| ^
LL |
Expand Down
42 changes: 25 additions & 17 deletions tests/ui/typeck/eval.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function a(uint[x / 0] memory) public {}
| ^^^^^
| ----- note: division by zero
| -----
| |
| note: division by zero
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function d(uint[0 - 1] memory) public {}
| ^^^^^
| ----- note: arithmetic overflow
| -----
| |
| note: arithmetic overflow
|

error: evaluation of constant value failed
Expand Down Expand Up @@ -56,56 +58,62 @@ error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function i(uint[block.timestamp] memory) public {}
| ^^^^^^^^^^^^^^^
| --------------- note: unsupported expression
| ---------------
| |
| note: unsupported expression
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function j(uint["lol"] memory) public {}
| ^^^^^
| ----- note: unsupported literal
| -----
| |
| note: unsupported literal
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function k(uint[--x] memory) public {}
| ^^^
| --- note: unsupported unary operation
| ---
| |
| note: unsupported unary operation
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function l(uint[stateVar] memory) public {}
| ^^^^^^^^
| -------- note: only constant variables are allowed
| --------
| |
| note: only constant variables are allowed
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | function l(uint[stateVarPublic] memory) public {}
| ^^^^^^^^^^^^^^
| -------------- note: unsupported expression
| --------------
| |
| note: unsupported expression
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | uint[bigLiteral + 1] public tooBig1;
| ^^^^^^^^^^^^^^
| -------------- note: arithmetic overflow
| --------------
| |
| note: arithmetic overflow
|

error: evaluation of constant value failed
--> ROOT/tests/ui/typeck/eval.sol:LL:CC
|
LL | uint constant tooBigLiteral = 115792089237316195423570985008687907853269984665640564039457584007913129639936;
| ------------------------------------------------------------------------------ note: integer value is too big
LL |
LL |
...
LL | uint[bigLiteral + 1] public tooBig1;
LL | uint[tooBigLiteral] public tooBig2;
Expand Down
6 changes: 2 additions & 4 deletions tests/ui/typeck/recursive_function_parameter.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
error: recursive struct definition
--> ROOT/tests/ui/typeck/recursive_function_parameter.sol:LL:CC
|
LL | struct A {
| _____^
LL | / struct A {
LL | | B b;
LL | | }
| |_____^
Expand All @@ -11,8 +10,7 @@ LL | | }
error: recursive struct definition
--> ROOT/tests/ui/typeck/recursive_function_parameter.sol:LL:CC
|
LL | struct B {
| _____^
LL | / struct B {
LL | | A a;
LL | | }
| |_____^
Expand Down
6 changes: 2 additions & 4 deletions tests/ui/typeck/recursive_types.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
error: recursive struct definition
--> ROOT/tests/ui/typeck/recursive_types.sol:LL:CC
|
LL | struct A {
| _____^
LL | / struct A {
LL | | B b;
LL | | }
| |_____^
Expand All @@ -11,8 +10,7 @@ LL | | }
error: recursive struct definition
--> ROOT/tests/ui/typeck/recursive_types.sol:LL:CC
|
LL | struct B {
| _____^
LL | / struct B {
LL | | A a;
LL | | }
| |_____^
Expand Down

0 comments on commit 37e5faf

Please sign in to comment.