Skip to content

Commit e6c20e5

Browse files
committed
solve merge conflict
2 parents 941876c + 5a52c8a commit e6c20e5

File tree

1,936 files changed

+48893
-27825
lines changed

Some content is hidden

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

1,936 files changed

+48893
-27825
lines changed

.github/driver.sh

100644100755
+16-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ if [[ ${OS} == "Windows" ]]; then
1111
else
1212
desired_sysroot=/tmp
1313
fi
14+
# Set --sysroot in command line
1415
sysroot=$(./target/debug/clippy-driver --sysroot $desired_sysroot --print sysroot)
1516
test "$sysroot" = $desired_sysroot
1617

18+
# Set --sysroot in arg_file.txt and pass @arg_file.txt to command line
19+
echo "--sysroot=$desired_sysroot" > arg_file.txt
20+
sysroot=$(./target/debug/clippy-driver @arg_file.txt --print sysroot)
21+
test "$sysroot" = $desired_sysroot
22+
23+
# Setting SYSROOT in command line
1724
sysroot=$(SYSROOT=$desired_sysroot ./target/debug/clippy-driver --print sysroot)
1825
test "$sysroot" = $desired_sysroot
1926

@@ -24,13 +31,21 @@ test "$sysroot" = $desired_sysroot
2431
SYSROOT=/tmp RUSTFLAGS="--sysroot=$(rustc --print sysroot)" ../target/debug/cargo-clippy clippy --verbose
2532
)
2633

34+
# Check that the --sysroot argument is only passed once via arg_file.txt (SYSROOT is ignored)
35+
(
36+
echo "fn main() {}" > target/driver_test.rs
37+
echo "--sysroot="$(./target/debug/clippy-driver --print sysroot)"" > arg_file.txt
38+
echo "--verbose" >> arg_file.txt
39+
SYSROOT=/tmp ./target/debug/clippy-driver @arg_file.txt ./target/driver_test.rs
40+
)
41+
2742
# Make sure this isn't set - clippy-driver should cope without it
2843
unset CARGO_MANIFEST_DIR
2944

3045
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
3146
# FIXME: How to match the clippy invocation in compile-test.rs?
3247
./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: for/d" double_neg.stderr > normalized.stderr
48+
sed -e "/= help: for/d" double_neg.stderr > normalized.stderr
3449
diff -u normalized.stderr tests/ui/double_neg.stderr
3550

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

.github/workflows/clippy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
github_token: "${{ secrets.github_token }}"
3939

4040
- name: Checkout
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242

4343
- name: Install toolchain
4444
run: rustup show active-toolchain
@@ -60,7 +60,7 @@ jobs:
6060
working-directory: clippy_lints
6161

6262
- name: Test clippy_utils
63-
run: cargo test --features deny-warnings,internal
63+
run: cargo test --features deny-warnings
6464
working-directory: clippy_utils
6565

6666
- name: Test rustc_tools_util

.github/workflows/clippy_bors.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
github_token: "${{ secrets.github_token }}"
2727

2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
ref: ${{ github.ref }}
3232

@@ -72,7 +72,7 @@ jobs:
7272
github_token: "${{ secrets.github_token }}"
7373

7474
- name: Checkout
75-
uses: actions/checkout@v3
75+
uses: actions/checkout@v4
7676

7777
- name: Install i686 dependencies
7878
if: matrix.host == 'i686-unknown-linux-gnu'
@@ -120,9 +120,13 @@ jobs:
120120
working-directory: clippy_lints
121121

122122
- name: Test clippy_utils
123-
run: cargo test --features deny-warnings,internal
123+
run: cargo test --features deny-warnings
124124
working-directory: clippy_utils
125125

126+
- name: Test clippy_config
127+
run: cargo test --features deny-warnings
128+
working-directory: clippy_config
129+
126130
- name: Test rustc_tools_util
127131
run: cargo test --features deny-warnings
128132
working-directory: rustc_tools_util
@@ -147,7 +151,7 @@ jobs:
147151
github_token: "${{ secrets.github_token }}"
148152

149153
- name: Checkout
150-
uses: actions/checkout@v3
154+
uses: actions/checkout@v4
151155

152156
- name: Install toolchain
153157
run: rustup show active-toolchain
@@ -171,7 +175,7 @@ jobs:
171175
github_token: "${{ secrets.github_token }}"
172176

173177
- name: Checkout
174-
uses: actions/checkout@v3
178+
uses: actions/checkout@v4
175179

176180
- name: Install toolchain
177181
run: rustup show active-toolchain
@@ -202,6 +206,7 @@ jobs:
202206
max-parallel: 6
203207
matrix:
204208
integration:
209+
- 'matthiaskrgr/clippy_ci_panic_test'
205210
- 'rust-lang/cargo'
206211
- 'rust-lang/chalk'
207212
- 'rust-lang/rustfmt'
@@ -216,7 +221,6 @@ jobs:
216221
- 'rust-itertools/itertools'
217222
- 'rust-lang-nursery/failure'
218223
- 'rust-lang/log'
219-
- 'matthiaskrgr/clippy_ci_panic_test'
220224

221225
runs-on: ubuntu-latest
222226

@@ -227,7 +231,7 @@ jobs:
227231
github_token: "${{ secrets.github_token }}"
228232

229233
- name: Checkout
230-
uses: actions/checkout@v3
234+
uses: actions/checkout@v4
231235

232236
- name: Install toolchain
233237
run: rustup show active-toolchain

.github/workflows/clippy_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
steps:
2525
# Setup
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
# Run
3030
- name: Build

.github/workflows/deploy.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
steps:
2222
# Setup
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
ref: ${{ env.TARGET_BRANCH }}
3030
path: 'out'
@@ -52,7 +52,9 @@ jobs:
5252
run: cargo generate-lockfile
5353

5454
- name: Cache
55-
uses: Swatinem/[email protected]
55+
uses: Swatinem/[email protected]
56+
with:
57+
save-if: ${{ github.ref == 'refs/heads/master' }}
5658

5759
- name: cargo collect-metadata
5860
run: cargo collect-metadata

.github/workflows/remark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
# Setup
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Setup Node.js
2222
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)