Skip to content

Commit 82f1bbc

Browse files
authored
Merge branch 'master' into static_items_large_align
2 parents 69c07e0 + 617417e commit 82f1bbc

File tree

1,910 files changed

+64393
-17849
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,910 files changed

+64393
-17849
lines changed

.github/ISSUE_TEMPLATE/blank_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
attributes:
1010
label: Description
1111
description: >
12-
Please provide a discription of the issue, along with any information
12+
Please provide a description of the issue, along with any information
1313
you feel relevant to replicate it.
1414
validations:
1515
required: true

.github/ISSUE_TEMPLATE/false_negative.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
id: reproducer
2424
attributes:
2525
label: Reproducer
26-
description: Please provide the code and steps to repoduce the bug
26+
description: Please provide the code and steps to reproduce the bug
2727
value: |
2828
I tried this code:
2929

.github/ISSUE_TEMPLATE/false_positive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ body:
2424
attributes:
2525
label: Reproducer
2626
description: >
27-
Please provide the code and steps to repoduce the bug together with the
27+
Please provide the code and steps to reproduce the bug together with the
2828
output from Clippy.
2929
value: |
3030
I tried this code:

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ Thank you for making Clippy better!
33
We're collecting our changelog from pull request descriptions.
44
If your PR only includes internal changes, you can just write
55
`changelog: none`. Otherwise, please write a short comment
6-
explaining your change. Also, it's helpful for us that
7-
the lint name is put into brackets `[]` and backticks `` ` ` ``,
8-
e.g. ``[`lint_name`]``.
6+
explaining your change.
97

10-
If your PR fixes an issue, you can add "fixes #issue_number" into this
8+
It's also helpful for us that the lint name is put within backticks (`` ` ` ``),
9+
and then encapsulated by square brackets (`[]`), for example:
10+
```
11+
changelog: [`lint_name`]: your change
12+
```
13+
14+
If your PR fixes an issue, you can add `fixes #issue_number` into this
1115
PR description. This way the issue will be automatically closed when
1216
your PR is merged.
1317

.github/deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ rm -rf out/master/ || exit 0
88
echo "Making the docs for master"
99
mkdir out/master/
1010
cp util/gh-pages/index.html out/master
11+
cp util/gh-pages/script.js out/master
1112
cp util/gh-pages/lints.json out/master
1213

1314
if [[ -n $TAG_NAME ]]; then

.github/workflows/clippy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
branches-ignore:
77
- auto
88
- try
9-
# Don't run Clippy tests, when only textfiles were modified
9+
# Don't run Clippy tests, when only text files were modified
1010
paths-ignore:
1111
- 'COPYRIGHT'
1212
- 'LICENSE-*'
1313
- '**.md'
1414
- '**.txt'
1515
pull_request:
16-
# Don't run Clippy tests, when only textfiles were modified
16+
# Don't run Clippy tests, when only text files were modified
1717
paths-ignore:
1818
- 'COPYRIGHT'
1919
- 'LICENSE-*'
@@ -24,6 +24,7 @@ env:
2424
RUST_BACKTRACE: 1
2525
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
2626
NO_FMT_TEST: 1
27+
CARGO_INCREMENTAL: 0
2728

2829
jobs:
2930
base:
@@ -37,7 +38,7 @@ jobs:
3738
github_token: "${{ secrets.github_token }}"
3839

3940
- name: Checkout
40-
uses: actions/checkout@v2.3.3
41+
uses: actions/checkout@v3.0.2
4142

4243
- name: Install toolchain
4344
run: rustup show active-toolchain

.github/workflows/clippy_bors.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
RUST_BACKTRACE: 1
1111
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
1212
NO_FMT_TEST: 1
13+
CARGO_INCREMENTAL: 0
1314

1415
defaults:
1516
run:
@@ -25,7 +26,7 @@ jobs:
2526
github_token: "${{ secrets.github_token }}"
2627

2728
- name: Checkout
28-
uses: actions/checkout@v2.3.3
29+
uses: actions/checkout@v3.0.2
2930
with:
3031
ref: ${{ github.ref }}
3132

@@ -88,7 +89,7 @@ jobs:
8889
if: matrix.host == 'i686-unknown-linux-gnu'
8990

9091
- name: Checkout
91-
uses: actions/checkout@v2.3.3
92+
uses: actions/checkout@v3.0.2
9293

9394
- name: Install toolchain
9495
run: rustup show active-toolchain
@@ -143,6 +144,25 @@ jobs:
143144
env:
144145
OS: ${{ runner.os }}
145146

147+
metadata_collection:
148+
needs: changelog
149+
runs-on: ubuntu-latest
150+
151+
steps:
152+
# Setup
153+
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
154+
with:
155+
github_token: "${{ secrets.github_token }}"
156+
157+
- name: Checkout
158+
uses: actions/[email protected]
159+
160+
- name: Install toolchain
161+
run: rustup show active-toolchain
162+
163+
- name: Test metadata collection
164+
run: cargo collect-metadata
165+
146166
integration_build:
147167
needs: changelog
148168
runs-on: ubuntu-latest
@@ -154,7 +174,7 @@ jobs:
154174
github_token: "${{ secrets.github_token }}"
155175

156176
- name: Checkout
157-
uses: actions/checkout@v2.3.3
177+
uses: actions/checkout@v3.0.2
158178

159179
- name: Install toolchain
160180
run: rustup show active-toolchain
@@ -212,7 +232,7 @@ jobs:
212232
github_token: "${{ secrets.github_token }}"
213233

214234
- name: Checkout
215-
uses: actions/checkout@v2.3.3
235+
uses: actions/checkout@v3.0.2
216236

217237
- name: Install toolchain
218238
run: rustup show active-toolchain
@@ -245,7 +265,7 @@ jobs:
245265
name: bors test finished
246266
if: github.event.pusher.name == 'bors' && success()
247267
runs-on: ubuntu-latest
248-
needs: [changelog, base, integration_build, integration]
268+
needs: [changelog, base, metadata_collection, integration_build, integration]
249269

250270
steps:
251271
- name: Mark the job as successful
@@ -255,7 +275,7 @@ jobs:
255275
name: bors test finished
256276
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
257277
runs-on: ubuntu-latest
258-
needs: [changelog, base, integration_build, integration]
278+
needs: [changelog, base, metadata_collection, integration_build, integration]
259279

260280
steps:
261281
- name: Mark the job as a failure

.github/workflows/clippy_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
# Setup
2525
- name: Checkout
26-
uses: actions/checkout@v2.3.3
26+
uses: actions/checkout@v3.0.2
2727

2828
# Run
2929
- name: Build

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
steps:
2222
# Setup
2323
- name: Checkout
24-
uses: actions/checkout@v2.3.3
24+
uses: actions/checkout@v3.0.2
2525

2626
- name: Checkout
27-
uses: actions/checkout@v2.3.3
27+
uses: actions/checkout@v3.0.2
2828
with:
2929
ref: ${{ env.TARGET_BRANCH }}
3030
path: 'out'

.github/workflows/remark.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,29 @@ jobs:
1616
steps:
1717
# Setup
1818
- name: Checkout
19-
uses: actions/checkout@v2.3.3
19+
uses: actions/checkout@v3.0.2
2020

2121
- name: Setup Node.js
2222
uses: actions/[email protected]
2323
with:
24-
node-version: '12.x'
24+
node-version: '14.x'
2525

2626
- name: Install remark
2727
run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended remark-gfm
2828

29+
- name: Install mdbook
30+
run: |
31+
mkdir mdbook
32+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.18/mdbook-v0.4.18-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
33+
echo `pwd`/mdbook >> $GITHUB_PATH
34+
2935
# Run
3036
- name: Check *.md files
3137
run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
3238

39+
- name: Build mdbook
40+
run: mdbook build book
41+
3342
# These jobs doesn't actually test anything, but they're only used to tell
3443
# bors the build completed, as there is no practical way to detect when a
3544
# workflow is successful listening to webhooks only.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ helper.txt
3939
*.iml
4040
.vscode
4141
.idea
42+
43+
# mdbook generated output
44+
/book/book

0 commit comments

Comments
 (0)