From 9baa48ffaaf8d35580265c0ec983d1c4d54a5447 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 19 Feb 2023 09:21:59 -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 57e6b4d..bf9a706 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: