diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83b7ce0..51293b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - rust: [nightly, beta, stable, 1.85.0, 1.71.0] + rust: [nightly, beta, stable, 1.85.0, 1.74.0] timeout-minutes: 45 steps: - uses: actions/checkout@v7 @@ -35,7 +35,7 @@ jobs: run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV if: matrix.rust == 'nightly' - run: cargo test - if: matrix.rust != '1.71.0' + if: matrix.rust != '1.74.0' - run: cargo doc --package ghost-test-doc - uses: actions/upload-artifact@v7 if: matrix.rust == 'nightly' && always() @@ -92,7 +92,7 @@ jobs: steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@clippy - - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic + - run: cargo clippy --workspace --tests -- -Dclippy::all -Dclippy::pedantic outdated: name: Outdated diff --git a/Cargo.toml b/Cargo.toml index 0951000..f7c0011 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ documentation = "https://docs.rs/ghost" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/dtolnay/ghost" -rust-version = "1.71" +rust-version = "1.74" [lib] proc-macro = true diff --git a/src/lib.rs b/src/lib.rs index 54a4de1..11fecb9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -318,7 +318,7 @@ pub fn phantom(args: TokenStream, input: TokenStream) -> TokenStream { } } - #[repr(packed)] + #[repr(Rust, packed)] struct #type_param([*const T; 0]); #[automatically_derived] impl ::core::marker::Copy for #type_param {}