From d91b5d9b580eaabc32d182834a04d4d67499815c Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 19 Feb 2023 09:22:00 -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 5c03d1d..b74694e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,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 - run: cargo check --benches