From adadaef10dea0bdf70fdbc7506f2782454692807 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 18 Feb 2023 21:21:58 -0800 Subject: [PATCH] Enable type layout randomization in CI on nightly --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db0ca8a..d7ebcc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,9 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{matrix.rust}} + - name: Enable type layout randomization + run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV + if: matrix.rust == 'nightly' - run: cargo test clippy: