From 742e40440413f757bfe98ef14aff284d3b94e238 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 3abac6e..e864a29 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 msrv: