Ignore Windows linker warning

error: linker stderr: Warning: corrupt .drectve at end of def file␍
           Warning: corrupt .drectve at end of def file␍
      |
      = note: `-D linker-messages` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(linker_messages)]`
This commit is contained in:
David Tolnay 2025-01-25 19:05:07 -08:00
parent 030e3ea9cd
commit 8ad3fc774a
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -45,6 +45,10 @@ jobs:
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- name: Ignore Windows linker warning
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Alinker_messages >> $GITHUB_ENV
if: matrix.rust == 'nightly-x86_64-pc-windows-gnu'
shell: bash
- run: cargo check --locked
- run: cargo update
- run: cargo check