Skip to content

Commit

Permalink
[derive][tests] Fix KnownLayout test (#555)
Browse files Browse the repository at this point in the history
Also roll pinned nightly to 2023-10-26.
  • Loading branch information
joshlf authored Oct 27, 2023
1 parent f6b7dc9 commit e6c2438
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ all-features = true
[package.metadata.ci]
# The versions of the stable and nightly compiler toolchains to use in CI.
pinned-stable = "1.73.0"
pinned-nightly = "nightly-2023-10-25"
pinned-nightly = "nightly-2023-10-26"

[features]
default = ["byteorder"]
Expand Down
2 changes: 1 addition & 1 deletion zerocopy-derive/tests/ui-nightly/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ assert_impl_all!(KnownLayout1: KnownLayout);
#[derive(KnownLayout)]
struct KnownLayout2<T: ?Sized>(T);

assert_impl_all!(KnownLayout2: KnownLayout);
assert_impl_all!(KnownLayout2<[u8]>: KnownLayout);

//
// AsBytes errors
Expand Down
6 changes: 6 additions & 0 deletions zerocopy-derive/tests/ui-nightly/struct.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is n
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0587]: type has conflicting packed and align representation hints
--> tests/ui-nightly/struct.rs:67:1
|
67 | struct Unaligned3;
| ^^^^^^^^^^^^^^^^^
6 changes: 6 additions & 0 deletions zerocopy-derive/tests/ui-nightly/union.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is n
= help: see issue #48214
= help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
= note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0587]: type has conflicting packed and align representation hints
--> tests/ui-nightly/union.rs:59:1
|
59 | union Unaligned3 {
| ^^^^^^^^^^^^^^^^

0 comments on commit e6c2438

Please sign in to comment.