Skip to content

Commit 471469d

Browse files
committedSep 12, 2023
Merge commit '98363cbf6a7c3f8b571a7d92a3c645bb4376e4a6' into clippyup
1 parent b643f20 commit 471469d

File tree

174 files changed

+4682
-1635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+4682
-1635
lines changed
 

‎.github/driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ unset CARGO_MANIFEST_DIR
3030
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
3131
# FIXME: How to match the clippy invocation in compile-test.rs?
3232
./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr && exit 1
33-
sed -e "s,tests/ui,\$DIR," -e "/= help/d" double_neg.stderr >normalized.stderr
33+
sed -e "s,tests/ui,\$DIR," -e "/= help: for/d" double_neg.stderr > normalized.stderr
3434
diff -u normalized.stderr tests/ui/double_neg.stderr
3535

3636
# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same

‎.github/workflows/clippy_bors.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,14 @@ jobs:
5252
needs: changelog
5353
strategy:
5454
matrix:
55-
os: [ubuntu-latest, windows-latest, macos-latest]
56-
host: [x86_64-unknown-linux-gnu, i686-unknown-linux-gnu, x86_64-apple-darwin, x86_64-pc-windows-msvc]
57-
exclude:
55+
include:
5856
- os: ubuntu-latest
59-
host: x86_64-apple-darwin
60-
- os: ubuntu-latest
61-
host: x86_64-pc-windows-msvc
62-
- os: macos-latest
63-
host: x86_64-unknown-linux-gnu
64-
- os: macos-latest
65-
host: i686-unknown-linux-gnu
66-
- os: macos-latest
67-
host: x86_64-pc-windows-msvc
68-
- os: windows-latest
6957
host: x86_64-unknown-linux-gnu
70-
- os: windows-latest
58+
- os: ubuntu-latest
7159
host: i686-unknown-linux-gnu
7260
- os: windows-latest
61+
host: x86_64-pc-windows-msvc
62+
- os: macos-latest
7363
host: x86_64-apple-darwin
7464

7565
runs-on: ${{ matrix.os }}
@@ -84,8 +74,17 @@ jobs:
8474
- name: Checkout
8575
uses: actions/checkout@v3
8676

77+
- name: Install i686 dependencies
78+
if: matrix.host == 'i686-unknown-linux-gnu'
79+
run: |
80+
sudo dpkg --add-architecture i386
81+
sudo apt-get update
82+
sudo apt-get install gcc-multilib zlib1g-dev:i386
83+
8784
- name: Install toolchain
88-
run: rustup show active-toolchain
85+
run: |
86+
rustup set default-host ${{ matrix.host }}
87+
rustup show active-toolchain
8988
9089
# Run
9190
- name: Set LD_LIBRARY_PATH (Linux)
@@ -109,11 +108,11 @@ jobs:
109108
run: cargo build --tests --features deny-warnings,internal
110109

111110
- name: Test
112-
if: runner.os == 'Linux'
111+
if: matrix.host == 'x86_64-unknown-linux-gnu'
113112
run: cargo test --features deny-warnings,internal
114113

115114
- name: Test
116-
if: runner.os != 'Linux'
115+
if: matrix.host != 'x86_64-unknown-linux-gnu'
117116
run: cargo test --features deny-warnings,internal -- --skip dogfood
118117

119118
- name: Test clippy_lints

0 commit comments

Comments
 (0)
Please sign in to comment.