Skip to content

Commit

Permalink
Bump arbitrary from 1.3.2 to 1.4.0 (#651)
Browse files Browse the repository at this point in the history
* Bump arbitrary from 1.3.2 to 1.4.0

Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary) from 1.3.2 to 1.4.0.
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md)
- [Commits](rust-fuzz/arbitrary@v1.3.2...v1.4.0)

---
updated-dependencies:
- dependency-name: arbitrary
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump image

* Fix tests

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
dependabot[bot] and bkchr authored Nov 5, 2024
1 parent 3093640 commit 91d436e
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
IMAGE: paritytech/ci-unified:bullseye-1.79.0
IMAGE: paritytech/ci-unified:bullseye-1.81.0
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bitvec = { version = "1", default-features = false, features = ["alloc"], option
bytes = { version = "1", default-features = false, optional = true }
byte-slice-cast = { version = "1.2.2", default-features = false }
generic-array = { version = "0.14.7", optional = true }
arbitrary = { version = "1.3.2", features = ["derive"], optional = true }
arbitrary = { version = "1.4.0", features = ["derive"], optional = true }
impl-trait-for-tuples = "0.2.2"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ fn wrap_with_dummy_const(
/// * if variant has attribute: `#[codec(index = "$n")]` then n
/// * else if variant has discriminant (like 3 in `enum T { A = 3 }`) then the discriminant.
/// * else its position in the variant set, excluding skipped variants, but including variant with
/// discriminant or attribute. Warning this position does collision with discriminant or attribute
/// index.
/// discriminant or attribute. Warning this position does collision with discriminant or attribute
/// index.
///
/// variant attributes:
/// * `#[codec(skip)]`: the variant is not encoded.
Expand Down
2 changes: 1 addition & 1 deletion fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
[dependencies]
parity-scale-codec = { path = "..", features = ["derive", "bit-vec", "fuzz"] }
honggfuzz = "0.5.56"
arbitrary = { version = "1.3.2", features = ["derive"] }
arbitrary = { version = "1.4.0", features = ["derive"] }
bitvec = { version = "1", features = ["alloc"] }
40 changes: 20 additions & 20 deletions tests/max_encoded_len_ui/crate_str.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
5 | struct Example;
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `MaxEncodedLen`
--> src/max_encoded_len.rs
Expand All @@ -33,16 +33,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
8 | let _ = Example::max_encoded_len();
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `max_encoded_len`
--> src/max_encoded_len.rs
Expand Down
40 changes: 20 additions & 20 deletions tests/max_encoded_len_ui/incomplete_attr.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
5 | struct Example;
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `MaxEncodedLen`
--> src/max_encoded_len.rs
Expand All @@ -33,16 +33,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
8 | let _ = Example::max_encoded_len();
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `max_encoded_len`
--> src/max_encoded_len.rs
Expand Down
40 changes: 20 additions & 20 deletions tests/max_encoded_len_ui/missing_crate_specifier.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
5 | struct Example;
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `MaxEncodedLen`
--> src/max_encoded_len.rs
Expand All @@ -33,16 +33,16 @@ error[E0277]: the trait bound `Example: Encode` is not satisfied
8 | let _ = Example::max_encoded_len();
| ^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `Example`, which is required by `Example: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `Example` to implement `Encode`
note: required by a bound in `max_encoded_len`
--> src/max_encoded_len.rs
Expand Down
20 changes: 10 additions & 10 deletions tests/max_encoded_len_ui/not_encode.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ error[E0277]: the trait bound `NotEncode: Encode` is not satisfied
4 | struct NotEncode;
| ^^^^^^^^^ the trait `WrapperTypeEncode` is not implemented for `NotEncode`, which is required by `NotEncode: Encode`
|
= help: the following other types implement trait `Encode`:
()
(A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
(G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)
and $N others
= help: the following other types implement trait `WrapperTypeEncode`:
&T
&mut T
Arc<T>
Box<T>
Cow<'a, T>
Rc<T>
String
Vec<T>
parity_scale_codec::Ref<'a, T, U>
= note: required for `NotEncode` to implement `Encode`
note: required by a bound in `MaxEncodedLen`
--> src/max_encoded_len.rs
Expand Down

0 comments on commit 91d436e

Please sign in to comment.