Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ pub fn phantom(args: TokenStream, input: TokenStream) -> TokenStream {
}
}

#[repr(packed)]
#[repr(Rust, packed)]
struct #type_param<T: ?::core::marker::Sized>([*const T; 0]);
#[automatically_derived]
impl<T: ?::core::marker::Sized> ::core::marker::Copy for #type_param<T> {}
Expand Down