Skip to content

Commit 9cf8087

Browse files
authored
[ci] Update pinned toolchain versions (#185)
Also rename `tests/ui` to `tests/ui-nightly` since it now only contains nightly tests (it used to also contain beta tests when we tested on beta in CI). Same for zerocopy-derive.
1 parent 95a8c0e commit 9cf8087

35 files changed

+120
-129
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ jobs:
186186
set -e
187187
cargo fmt --check -p zerocopy
188188
cargo fmt --check -p zerocopy-derive
189-
rustfmt --check tests/ui/*.rs
190-
rustfmt --check zerocopy-derive/tests/ui/*.rs
189+
rustfmt --check tests/ui-nightly/*.rs
190+
rustfmt --check zerocopy-derive/tests/ui-nightly/*.rs
191191
192192
check_readme:
193193
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ all-features = true
2525

2626
[package.metadata.ci]
2727
# The versions of the stable and nightly compiler toolchains to use in CI.
28-
pinned-stable = "1.65.0"
29-
pinned-nightly = "nightly-2022-11-04"
28+
pinned-stable = "1.69.0"
29+
pinned-nightly = "nightly-2023-05-25"
3030

3131
[features]
3232
default = ["byteorder"]

tests/trybuild.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
// pin to specific versions in CI (a specific stable version, a specific date of
99
// the nightly compiler, and a specific MSRV). Updating those pinned versions
1010
// may also require updating these tests.
11-
// - `tests/ui` - Contains the source of truth for our UI test source files
12-
// (`.rs`), and contains `.err` and `.out` files for nightly and beta
13-
// - `tests/ui-stable` - Contains symlinks to the `.rs` files in `tests/ui`, and
14-
// contains `.err` and `.out` files for stable
15-
// - `tests/ui-msrv` - Contains symlinks to the `.rs` files in `tests/ui`, and
16-
// contains `.err` and `.out` files for MSRV
11+
// - `tests/ui-nightly` - Contains the source of truth for our UI test source
12+
// files (`.rs`), and contains `.err` and `.out` files for nightly
13+
// - `tests/ui-stable` - Contains symlinks to the `.rs` files in
14+
// `tests/ui-nightly`, and contains `.err` and `.out` files for stable
15+
// - `tests/ui-msrv` - Contains symlinks to the `.rs` files in
16+
// `tests/ui-nightly`, and contains `.err` and `.out` files for MSRV
1717

18-
#[rustversion::any(nightly, beta)]
19-
const SOURCE_FILES_GLOB: &str = "tests/ui/*.rs";
18+
#[rustversion::any(nightly)]
19+
const SOURCE_FILES_GLOB: &str = "tests/ui-nightly/*.rs";
2020
#[rustversion::all(stable, not(stable(1.65.0)))]
2121
const SOURCE_FILES_GLOB: &str = "tests/ui-stable/*.rs";
2222
#[rustversion::stable(1.65.0)]

tests/ui-msrv/transmute-illegal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/transmute-illegal.rs
1+
../ui-nightly/transmute-illegal.rs
File renamed without changes.
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
error[E0277]: the trait bound `*const usize: AsBytes` is not satisfied
2-
--> tests/ui/transmute-illegal.rs:10:30
2+
--> tests/ui-nightly/transmute-illegal.rs:10:30
33
|
44
10 | const POINTER_VALUE: usize = zerocopy::transmute!(&0usize as *const usize);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
| |
77
| the trait `AsBytes` is not implemented for `*const usize`
88
| required by a bound introduced by this call
99
|
10-
= help: the following other types implement trait `AsBytes`:
11-
f32
12-
f64
13-
i128
14-
i16
15-
i32
16-
i64
17-
i8
18-
isize
19-
and $N others
10+
= help: the trait `AsBytes` is implemented for `usize`
2011
note: required by a bound in `POINTER_VALUE::transmute`
21-
--> tests/ui/transmute-illegal.rs:10:30
12+
--> tests/ui-nightly/transmute-illegal.rs:10:30
2213
|
2314
10 | const POINTER_VALUE: usize = zerocopy::transmute!(&0usize as *const usize);
24-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `POINTER_VALUE::transmute`
15+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `transmute`
2516
= note: this error originates in the macro `zerocopy::transmute` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui-stable/transmute-illegal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/transmute-illegal.rs
1+
../ui-nightly/transmute-illegal.rs

tests/ui-stable/transmute-illegal.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ note: required by a bound in `POINTER_VALUE::transmute`
1212
--> tests/ui-stable/transmute-illegal.rs:10:30
1313
|
1414
10 | const POINTER_VALUE: usize = zerocopy::transmute!(&0usize as *const usize);
15-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `POINTER_VALUE::transmute`
15+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `transmute`
1616
= note: this error originates in the macro `zerocopy::transmute` (in Nightly builds, run with -Z macro-backtrace for more info)

zerocopy-derive/tests/trybuild.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
// pin to specific versions in CI (a specific stable version, a specific date of
99
// the nightly compiler, and a specific MSRV). Updating those pinned versions
1010
// may also require updating these tests.
11-
// - `tests/ui` - Contains the source of truth for our UI test source files
12-
// (`.rs`), and contains `.err` and `.out` files for nightly and beta
13-
// - `tests/ui-stable` - Contains symlinks to the `.rs` files in `tests/ui`, and
14-
// contains `.err` and `.out` files for stable
15-
// - `tests/ui-msrv` - Contains symlinks to the `.rs` files in `tests/ui`, and
16-
// contains `.err` and `.out` files for MSRV
11+
// - `tests/ui-nightly` - Contains the source of truth for our UI test source
12+
// files (`.rs`), and contains `.err` and `.out` files for nightly
13+
// - `tests/ui-stable` - Contains symlinks to the `.rs` files in
14+
// `tests/ui-nightly`, and contains `.err` and `.out` files for stable
15+
// - `tests/ui-msrv` - Contains symlinks to the `.rs` files in
16+
// `tests/ui-nightly`, and contains `.err` and `.out` files for MSRV
1717

18-
#[rustversion::any(nightly, beta)]
19-
const SOURCE_FILES_GLOB: &str = "tests/ui/*.rs";
18+
#[rustversion::any(nightly)]
19+
const SOURCE_FILES_GLOB: &str = "tests/ui-nightly/*.rs";
2020
#[rustversion::all(stable, not(stable(1.65.0)))]
2121
const SOURCE_FILES_GLOB: &str = "tests/ui-stable/*.rs";
2222
#[rustversion::stable(1.65.0)]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/derive_transparent.rs
1+
../ui-nightly/derive_transparent.rs

zerocopy-derive/tests/ui-msrv/enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/enum.rs
1+
../ui-nightly/enum.rs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/enum_from_bytes_u8_too_few.rs
1+
../ui-nightly/enum_from_bytes_u8_too_few.rs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/late_compile_pass.rs
1+
../ui-nightly/late_compile_pass.rs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/struct.rs
1+
../ui-nightly/struct.rs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../ui/union.rs
1+
../ui-nightly/union.rs

zerocopy-derive/tests/ui/derive_transparent.stderr renamed to zerocopy-derive/tests/ui-nightly/derive_transparent.stderr

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the trait bound `NotZerocopy: FromZeroes` is not satisfied
2-
--> tests/ui/derive_transparent.rs:33:18
2+
--> tests/ui-nightly/derive_transparent.rs:33:18
33
|
44
33 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeroes);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeroes` is not implemented for `NotZerocopy`
@@ -15,19 +15,19 @@ error[E0277]: the trait bound `NotZerocopy: FromZeroes` is not satisfied
1515
I64<O>
1616
and $N others
1717
note: required for `TransparentStruct<NotZerocopy>` to implement `FromZeroes`
18-
--> tests/ui/derive_transparent.rs:23:19
18+
--> tests/ui-nightly/derive_transparent.rs:23:19
1919
|
2020
23 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)]
21-
| ^^^^^^^^^^
21+
| ^^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
2222
note: required by a bound in `_::{closure#0}::assert_impl_all`
23-
--> tests/ui/derive_transparent.rs:33:1
23+
--> tests/ui-nightly/derive_transparent.rs:33:1
2424
|
2525
33 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeroes);
26-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::assert_impl_all`
26+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
2727
= note: this error originates in the derive macro `FromZeroes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
2828

2929
error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
30-
--> tests/ui/derive_transparent.rs:34:18
30+
--> tests/ui-nightly/derive_transparent.rs:34:18
3131
|
3232
34 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
3333
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `NotZerocopy`
@@ -43,19 +43,19 @@ error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
4343
I64<O>
4444
and $N others
4545
note: required for `TransparentStruct<NotZerocopy>` to implement `FromBytes`
46-
--> tests/ui/derive_transparent.rs:23:31
46+
--> tests/ui-nightly/derive_transparent.rs:23:31
4747
|
4848
23 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)]
49-
| ^^^^^^^^^
49+
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
5050
note: required by a bound in `_::{closure#0}::assert_impl_all`
51-
--> tests/ui/derive_transparent.rs:34:1
51+
--> tests/ui-nightly/derive_transparent.rs:34:1
5252
|
5353
34 | assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
54-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::assert_impl_all`
54+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
5555
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
5656

5757
error[E0277]: the trait bound `NotZerocopy: AsBytes` is not satisfied
58-
--> tests/ui/derive_transparent.rs:35:18
58+
--> tests/ui-nightly/derive_transparent.rs:35:18
5959
|
6060
35 | assert_impl_all!(TransparentStruct<NotZerocopy>: AsBytes);
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsBytes` is not implemented for `NotZerocopy`
@@ -71,19 +71,19 @@ error[E0277]: the trait bound `NotZerocopy: AsBytes` is not satisfied
7171
I64<O>
7272
and $N others
7373
note: required for `TransparentStruct<NotZerocopy>` to implement `AsBytes`
74-
--> tests/ui/derive_transparent.rs:23:10
74+
--> tests/ui-nightly/derive_transparent.rs:23:10
7575
|
7676
23 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)]
77-
| ^^^^^^^
77+
| ^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
7878
note: required by a bound in `_::{closure#0}::assert_impl_all`
79-
--> tests/ui/derive_transparent.rs:35:1
79+
--> tests/ui-nightly/derive_transparent.rs:35:1
8080
|
8181
35 | assert_impl_all!(TransparentStruct<NotZerocopy>: AsBytes);
82-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::assert_impl_all`
82+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
8383
= note: this error originates in the derive macro `AsBytes` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
8484

8585
error[E0277]: the trait bound `NotZerocopy: Unaligned` is not satisfied
86-
--> tests/ui/derive_transparent.rs:36:18
86+
--> tests/ui-nightly/derive_transparent.rs:36:18
8787
|
8888
36 | assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
8989
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unaligned` is not implemented for `NotZerocopy`
@@ -99,13 +99,13 @@ error[E0277]: the trait bound `NotZerocopy: Unaligned` is not satisfied
9999
ManuallyDrop<T>
100100
and $N others
101101
note: required for `TransparentStruct<NotZerocopy>` to implement `Unaligned`
102-
--> tests/ui/derive_transparent.rs:23:42
102+
--> tests/ui-nightly/derive_transparent.rs:23:42
103103
|
104104
23 | #[derive(AsBytes, FromZeroes, FromBytes, Unaligned)]
105-
| ^^^^^^^^^
105+
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
106106
note: required by a bound in `_::{closure#0}::assert_impl_all`
107-
--> tests/ui/derive_transparent.rs:36:1
107+
--> tests/ui-nightly/derive_transparent.rs:36:1
108108
|
109109
36 | assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
110-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::assert_impl_all`
110+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_impl_all`
111111
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)