Skip to content

Commit 96a27a4

Browse files
committed
ci: Allow improper_ctypes for MSRV checks
The new extern type representation raises the lint prior to 1.72 because ZSTs behind pointers were not allowed.
1 parent fbaea87 commit 96a27a4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ jobs:
107107
run: |
108108
set -eux
109109
if [ "${{ matrix.toolchain }}" = "1.65.0" ]; then
110-
# Remove `-Dwarnings` at the MSRV since lints may be different
111-
export RUSTFLAGS=""
110+
# Remove `-Dwarnings` at the MSRV since lints may be different, and allow
111+
# `improper_ctypes` since pointers to ZSTs got the warning prior to 1.72.
112+
# FIXME(msrv): remove this flag when possible.
113+
export RUSTFLAGS="-Aimproper_ctypes"
112114
# Remove `ctest` which uses the 2024 edition
113115
perl -i -ne 'print unless /"ctest(-test)?",/ || /"libc-test",/' Cargo.toml
114116
fi

0 commit comments

Comments
 (0)