Enable type layout randomization in CI on nightly

This commit is contained in:
David Tolnay 2023-02-19 09:22:00 -08:00
parent d4065a3937
commit 742e404404
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -31,6 +31,9 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: ${{matrix.rust}} toolchain: ${{matrix.rust}}
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- run: cargo test - run: cargo test
msrv: msrv: