Skip to content

Update Clippy #78310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 139 commits into from
Oct 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
dc89bb1
Use if_chain in Increment/InitializeVisitor
rail-rain Jun 10, 2020
116f30d
Use else blocks instead of return statements in Increment/InitializeV…
rail-rain Jun 10, 2020
b2d5b89
Check if it's after the loop earlier
rail-rain Jun 10, 2020
31cb110
add concinient methods to Increment/InitializeVisitor
rail-rain Jun 10, 2020
c599e2f
Split VarState
rail-rain Jun 10, 2020
13c207d
Generalise `InitializeVisitor`
rail-rain Jun 10, 2020
9573a0d
Rename variables
rail-rain Jun 10, 2020
1026b42
Rename a struct and variables
rail-rain Jun 10, 2020
b4b4da1
Introduce Start and StartKind
rail-rain Jun 10, 2020
720f19f
Implement detecting `manual_memcpy` with loop counters
rail-rain Jun 10, 2020
de56279
Implement building the `manual_memcpy` sugggestion with loop counters
rail-rain Jun 10, 2020
8da6cfd
fmt
rail-rain Jun 11, 2020
d9a88be
Rename `get_offset` and its private items
rail-rain Jun 17, 2020
774e82a
Add the tests for `manual_memcpy` with loop counters
rail-rain Jun 10, 2020
9aad38b
Update `manual_memcpy.stderr` to reflect additional parentheses
rail-rain Jun 17, 2020
4ea4a97
Add tests for bitwise operations
rail-rain Jun 18, 2020
eb3ffe6
make use of macros in operator overloading
rail-rain Jun 23, 2020
10d7a18
fmt
rail-rain Jun 23, 2020
174065f
fix the multiple counters test
rail-rain Jun 23, 2020
4418738
Use operator overloading instead of direct calls of `make_binop`
rail-rain Jun 24, 2020
f410df3
make clippy happy (`needless_pass_by_value`, `filter_map` and `find_m…
rail-rain Jun 27, 2020
ce653d6
use `#[derive]` instead of the manual implementation
rail-rain Jul 1, 2020
e855fe3
Reflect the changes that has been made and fmt
rail-rain Aug 16, 2020
4918e7a
Replace `snippet_opt` + `unwrap_or_else` with `snippet`
rail-rain Sep 27, 2020
5c71352
Prevent unnecessary lints from triggering
rail-rain Sep 27, 2020
99aceeb
Use the spans of the entire `for` loops for suggestions
rail-rain Sep 27, 2020
9725f00
Use the `From` trait to make `MinifyingSugg`
rail-rain Sep 27, 2020
ec94bd6
split up the `manual_memcpy` test
rail-rain Sep 27, 2020
3883841
document `MinifyingSugg` and `Offset`
rail-rain Oct 2, 2020
94d7b82
simplify the code
rail-rain Oct 2, 2020
1402d8a
fix a FN where incr exprs with no semicolon at ends
rail-rain Oct 2, 2020
41a0ccb
add comments around `loop_counters`
rail-rain Oct 2, 2020
2a0e45b
supress `clippy::filter_map`
rail-rain Oct 2, 2020
7820cb1
Add tests for
rail-rain Oct 2, 2020
b541884
remove the explicit return value of `print_limit`
rail-rain Oct 2, 2020
f302af3
Add doc comment issue of #5834 to known problems of lint doc_markdown
nahuakang Oct 2, 2020
5bad917
New lint: Recommend using `ptr::eq` when possible
ambroisie Oct 7, 2020
aa7c42f
fixup! New lint: Recommend using `ptr::eq` when possible
ambroisie Oct 7, 2020
9ef311b
Rename tables to typecheck_result()
ambroisie Oct 7, 2020
326090d
fixup! Rename tables to typecheck_result()
ambroisie Oct 7, 2020
6edde81
fixup! New lint: Recommend using `ptr::eq` when possible
ambroisie Oct 7, 2020
1385eb9
Replace run_compiler with RunCompiler builder pattern.
lakshya-sky Oct 7, 2020
2c8cd7d
Update actions due to deprecation of set-env and add-path
flip1995 Oct 9, 2020
c85cb76
Update release documentation
flip1995 Oct 9, 2020
732d370
clippy_lint: Fix doc on 'option_if_let_else'
woshilapin Oct 9, 2020
64a7d01
Remove all usage of set-env
flip1995 Oct 9, 2020
c4c9453
Use defaults.run.shell instead of setting shell every time
flip1995 Oct 9, 2020
fbf2430
Merge commit '2f6439ae6a6803d030cceb3ee14c9150e91b328b' into clippyup
flip1995 Oct 9, 2020
7f846c9
Update backport documentation to the subtree workflow
flip1995 Oct 9, 2020
cad10fa
Auto merge of #6146 - woshilapin:patch-1, r=flip1995
bors Oct 9, 2020
e87c028
Auto merge of #6131 - Ambroisie:fix-doc-tools, r=flip1995
bors Oct 9, 2020
ed2b457
Auto merge of #6148 - flip1995:release_doc, r=ebroto
bors Oct 9, 2020
36e3c41
Auto merge of #6149 - flip1995:update_actions, r=ebroto
bors Oct 9, 2020
fcf22d9
Auto merge of #6150 - flip1995:backport_doc_update, r=ebroto
bors Oct 9, 2020
947516f
Auto merge of #6130 - Ambroisie:lint-ptr-eq, r=Manishearth
bors Oct 9, 2020
ecd308e
ICEs should print the top of the query stack
hosseind75 Sep 19, 2020
a9053e4
run full query stack print just when RUST_BACKTRACE is set
hosseind75 Sep 19, 2020
49bc85e
fix clippy custom_ice_message test
hosseind75 Sep 25, 2020
7f07577
add new line
hosseind75 Sep 28, 2020
3c94914
rebase with master
hosseind75 Sep 29, 2020
7b7ddfa
Preserve raw strs for: format!(s) to s.to_string() lint
bofh69 Oct 9, 2020
26e4de9
allow refs in our constant handling
llogiq Oct 8, 2020
6d88803
Add regression test for ICE 6139
flip1995 Oct 9, 2020
a98f9d2
(Hacky) Fix for ICE #6139
flip1995 Oct 9, 2020
08bd3f0
Auto merge of #6152 - flip1995:ice_6139, r=ebroto
bors Oct 9, 2020
0b86340
Auto merge of #6144 - rust-lang:float-cmp-ref, r=ebroto
bors Oct 9, 2020
2bdadd8
Auto merge of #6151 - bofh69:master, r=ebroto
bors Oct 9, 2020
dbc0285
Auto merge of #5727 - rail-rain:manual_memcpy_with_counter, r=flip1995
bors Oct 10, 2020
8b70b84
Auto merge of #6107 - nahuakang:ref_style_link_false_positive, r=flip…
bors Oct 10, 2020
cf81975
Fix two ICEs caused by ty.is_{sized,freeze}
flip1995 Oct 10, 2020
52e650a
Add test for ICE #6153
flip1995 Oct 10, 2020
7118d37
Auto merge of #6154 - flip1995:ice_fixes, r=ebroto
bors Oct 10, 2020
1178777
Refactor how SwitchInt stores jump targets
jonas-schievink Oct 10, 2020
29cff6f
Auto merge of #77649 - dash2507:replace_run_compiler, r=matthewjasper
bors Oct 11, 2020
377d1fa
Remove the generated files by `update-references.sh` if they are empty
giraffate Oct 11, 2020
8fc0c4b
Merge remote-tracking branch 'upstream/master' into rustup
ebroto Oct 11, 2020
9ead65d
Auto merge of #6160 - ebroto:rustup, r=ebroto
bors Oct 11, 2020
6021c23
New lint: result-unit-err
llogiq Oct 11, 2020
74ae116
Use lowercase in error messages
ebroto Oct 11, 2020
92783e3
Auto merge of #6157 - rust-lang:result-unit-err, r=ebroto
bors Oct 11, 2020
18ffea0
Auto merge of #6158 - giraffate:improve_updating_references, r=phansch
bors Oct 12, 2020
c5774f9
lintlist.rs: Replace lazy_static with once_cell
phansch Oct 12, 2020
098e4f1
driver.rs: Replace lazy_static with once_cell
phansch Oct 12, 2020
7b3493c
fmt
phansch Oct 12, 2020
febd008
Auto merge of #6163 - phansch:remove-one-lazy-static, r=flip1995
bors Oct 12, 2020
32fdb8f
Lint on identical variable used as args in `assert_eq!` macro call
ThibsG Oct 8, 2020
bf947fc
Auto merge of #77796 - jonas-schievink:switchint-refactor, r=oli-obk
bors Oct 13, 2020
8c28ba3
suggest a compatible shell for running setup-toolchain.sh
achris Oct 13, 2020
a3e0446
Extend to the `assert` macro family
ThibsG Oct 13, 2020
e212408
Fix FP in `same_functions_in_if_condition` lint about condition as macro
ThibsG Oct 13, 2020
cd82a29
Merge remote-tracking branch 'upstream/master' into rustup
ebroto Oct 13, 2020
de31dda
Auto merge of #6172 - ebroto:rustup, r=ebroto
bors Oct 13, 2020
0b77c35
Auto merge of #6169 - ThibsG:SameFunctionsInIfConditionIgnoreMacro, r…
bors Oct 13, 2020
121a047
Move linting of `assert` macros from early to late pass
ThibsG Oct 13, 2020
e822648
Add a known problem for transmute_ptr_to_ref lint
upsuper Oct 14, 2020
8ba18ae
README: sort en/disabling section, fix typos, add note
Oct 14, 2020
ab0fc47
fix stderr file of clippy/custom_ice_message test
Oct 14, 2020
71c29b5
Add iterator test case for `eq_op` lint
ThibsG Oct 14, 2020
07b2da8
add lint less_concise_than_option_unwrap_or
tnielens Oct 6, 2020
9c93279
manual-unwrap-or / rename files
tnielens Oct 11, 2020
6d4eeea
manual-unwrap-or / pr remarks
tnielens Oct 11, 2020
fc846c3
manual_unwrap_or / use consts::constant_simple helper
tnielens Oct 11, 2020
a8fb69f
manual-unwrap-or / more pr remarks
tnielens Oct 13, 2020
690a6a6
manual-unwrap-or / remove unwrap_or_else suggestion due to ownership …
tnielens Oct 14, 2020
2da121d
Fix remark linting on checkboxes
ebroto Oct 14, 2020
8ae260b
Auto merge of #6175 - ebroto:fix_remark, r=ebroto
bors Oct 14, 2020
de7e82e
Auto merge of #6174 - upsuper-forks:transmute-ptr-to-ref-issue, r=Man…
bors Oct 14, 2020
0cba5e6
Auto merge of #6173 - Lotterleben:docs-typo, r=ebroto
bors Oct 15, 2020
2c1e8cf
Remove rustc_session::config::Config
est31 Oct 14, 2020
d2feccc
Rollup merge of #77493 - hosseind88:ICEs_should_always_print_the_top_…
Dylan-DPC Oct 16, 2020
ef91de6
Run cargo dev fmt
josephlr Oct 16, 2020
a771557
Auto merge of #6178 - josephlr:sync-from-rust, r=phansch
bors Oct 16, 2020
6d358d2
Update semver 0.10 -> 0.11
flip1995 Oct 16, 2020
e351e5c
Auto merge of #6180 - flip1995:rustup, r=flip1995
bors Oct 16, 2020
701c7e2
bump cargo_metadata version
ebroto Oct 16, 2020
0af467e
Handle ExprKind::ConstBlock on clippy
spastorino Oct 6, 2020
81890c5
Auto merge of #6184 - ebroto:bump_cargo_metadata, r=ebroto
bors Oct 16, 2020
4e83a38
Auto merge of #6123 - montrivo:less_concise_than, r=ebroto
bors Oct 16, 2020
5a13217
Assert macro args extractor as a common function in higher
ThibsG Oct 16, 2020
29392a1
Appease the almightly lord clippy, hallowed be thy name
Oct 17, 2020
82f775d
Rollup merge of #77851 - exrook:split-btreemap, r=dtolnay
JohnTitor Oct 17, 2020
bc43862
Merge remote-tracking branch 'upstream/master' into rustup
ebroto Oct 17, 2020
01dd31f
Auto merge of #6189 - ebroto:rustup, r=ebroto
bors Oct 17, 2020
67bc11b
Add more infomation about LintStore registration
Ryan1729 Oct 18, 2020
be136b2
Merge remote-tracking branch 'upstream/master' into sync-from-rust
giraffate Oct 19, 2020
3d35072
Auto merge of #6195 - giraffate:sync-from-rust, r=ebroto
bors Oct 19, 2020
74530ad
Auto merge of #6166 - achris:master, r=flip1995
bors Oct 19, 2020
16b5f37
Split `eq_op` ui tests to avoid file limit error in CI
ThibsG Oct 19, 2020
eaffd0e
Auto merge of #6167 - ThibsG:IdenticalArgumentsAssertEq3574, r=ebroto
bors Oct 19, 2020
85959be
Auto merge of #6193 - Ryan1729:add-more-LintStore-documentation, r=ph…
bors Oct 20, 2020
496dbb6
Fix links to labeled issues
giraffate Oct 21, 2020
fbe75a8
Auto merge of #6203 - giraffate:fix_link_to_labeled_issues, r=Manishe…
bors Oct 22, 2020
fcde768
Fix clippy tests
varkor Oct 22, 2020
d17edaa
Merge remote-tracking branch 'upstream/master' into rustup
ebroto Oct 23, 2020
bf1c6f9
Auto merge of #6206 - ebroto:rustup, r=ebroto
bors Oct 23, 2020
9323443
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
ebroto Oct 23, 2020
e407cc5
Remove duplicate import of `Target`
ebroto Oct 23, 2020
ca11eeb
Update Cargo.lock
ebroto Oct 23, 2020
a513919
Add unbounded_depth to serde_json (clippy-driver)
ebroto Oct 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 38 additions & 9 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,17 @@ dependencies = [
"serde_json",
]

[[package]]
name = "cargo_metadata"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5a5f7b42f606b7f23674f6f4d877628350682bc40687d3fae65679a58d55345"
dependencies = [
"semver 0.11.0",
"serde",
"serde_json",
]

[[package]]
name = "cargotest2"
version = "0.1.0"
Expand Down Expand Up @@ -530,15 +541,14 @@ dependencies = [
name = "clippy"
version = "0.0.212"
dependencies = [
"cargo_metadata 0.11.1",
"cargo_metadata 0.12.0",
"clippy-mini-macro-test",
"clippy_lints",
"compiletest_rs",
"derive-new",
"lazy_static",
"rustc-workspace-hack",
"rustc_tools_util 0.2.0",
"semver 0.10.0",
"semver 0.11.0",
"serde",
"tempfile",
"tester",
Expand All @@ -552,14 +562,14 @@ version = "0.2.0"
name = "clippy_lints"
version = "0.0.212"
dependencies = [
"cargo_metadata 0.11.1",
"cargo_metadata 0.12.0",
"if_chain",
"itertools 0.9.0",
"pulldown-cmark 0.8.0",
"quine-mc_cluskey",
"quote",
"regex-syntax",
"semver 0.10.0",
"semver 0.11.0",
"serde",
"smallvec 1.4.2",
"syn",
Expand Down Expand Up @@ -4373,7 +4383,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
dependencies = [
"semver-parser",
"semver-parser 0.7.0",
"serde",
]

Expand All @@ -4383,7 +4393,17 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "394cec28fa623e00903caf7ba4fa6fb9a0e260280bb8cdbbba029611108a0190"
dependencies = [
"semver-parser",
"semver-parser 0.7.0",
"serde",
]

[[package]]
name = "semver"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6"
dependencies = [
"semver-parser 0.10.1",
"serde",
]

Expand All @@ -4393,6 +4413,15 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"

[[package]]
name = "semver-parser"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ef146c2ad5e5f4b037cd6ce2ebb775401729b19a82040c1beac9d36c7d1428"
dependencies = [
"pest",
]

[[package]]
name = "serde"
version = "1.0.115"
Expand Down Expand Up @@ -4424,9 +4453,9 @@ dependencies = [

[[package]]
name = "serde_json"
version = "1.0.57"
version = "1.0.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "164eacbdb13512ec2745fb09d51fd5b22b0d65ed294a1dcf7285a360c80a675c"
checksum = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95"
dependencies = [
"itoa",
"ryu",
Expand Down
12 changes: 6 additions & 6 deletions src/tools/clippy/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ your PR is merged.
If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [ ] Followed [lint naming conventions][lint_naming]
- [ ] Added passing UI tests (including committed `.stderr` file)
- [ ] `cargo test` passes locally
- [ ] Executed `cargo dev update_lints`
- [ ] Added lint documentation
- [ ] Run `cargo dev fmt`
- \[ ] Followed [lint naming conventions][lint_naming]
- \[ ] Added passing UI tests (including committed `.stderr` file)
- \[ ] `cargo test` passes locally
- \[ ] Executed `cargo dev update_lints`
- \[ ] Added lint documentation
- \[ ] Run `cargo dev fmt`

[lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints

Expand Down
6 changes: 3 additions & 3 deletions src/tools/clippy/.github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/[email protected].3
uses: actions-rs/[email protected].6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Run cargo update
run: cargo update
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Set LD_LIBRARY_PATH (Linux)
run: |
SYSROOT=$(rustc --print sysroot)
echo "::set-env name=LD_LIBRARY_PATH::${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}"
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV

- name: Build
run: cargo build --features deny-warnings
Expand Down
35 changes: 15 additions & 20 deletions src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
NO_FMT_TEST: 1

defaults:
run:
shell: bash

jobs:
changelog:
runs-on: ubuntu-latest
Expand All @@ -20,7 +24,7 @@ jobs:
with:
github_token: "${{ secrets.github_token }}"
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3
with:
ref: ${{ github.ref }}

Expand Down Expand Up @@ -81,14 +85,14 @@ jobs:
if: matrix.host == 'i686-unknown-linux-gnu'

- name: rust-toolchain
uses: actions-rs/[email protected].3
uses: actions-rs/[email protected].6
with:
toolchain: nightly
target: ${{ matrix.host }}
profile: minimal

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Run cargo update
run: cargo update
Expand All @@ -105,14 +109,13 @@ jobs:
run: bash setup-toolchain.sh
env:
HOST_TOOLCHAIN: ${{ matrix.host }}
shell: bash

# Run
- name: Set LD_LIBRARY_PATH (Linux)
if: runner.os == 'Linux'
run: |
SYSROOT=$(rustc --print sysroot)
echo "::set-env name=LD_LIBRARY_PATH::${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}"
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
- name: Link rustc dylib (MacOS)
if: runner.os == 'macOS'
run: |
Expand All @@ -122,41 +125,33 @@ jobs:
- name: Set PATH (Windows)
if: runner.os == 'Windows'
run: |
$sysroot = rustc --print sysroot
$env:PATH += ';' + $sysroot + '\bin'
echo "::set-env name=PATH::$env:PATH"
SYSROOT=$(rustc --print sysroot)
echo "$SYSROOT/bin" >> $GITHUB_PATH

- name: Build
run: cargo build --features deny-warnings
shell: bash

- name: Test
run: cargo test --features deny-warnings
shell: bash

- name: Test clippy_lints
run: cargo test --features deny-warnings
shell: bash
working-directory: clippy_lints

- name: Test rustc_tools_util
run: cargo test --features deny-warnings
shell: bash
working-directory: rustc_tools_util

- name: Test clippy_dev
run: cargo test --features deny-warnings
shell: bash
working-directory: clippy_dev

- name: Test cargo-clippy
run: ../target/debug/cargo-clippy
shell: bash
working-directory: clippy_workspace_tests

- name: Test clippy-driver
run: bash .github/driver.sh
shell: bash
env:
OS: ${{ runner.os }}

Expand All @@ -165,7 +160,7 @@ jobs:
run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache
shell: bash

integration_build:
needs: changelog
runs-on: ubuntu-latest
Expand All @@ -177,14 +172,14 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/[email protected].3
uses: actions-rs/[email protected].6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Run cargo update
run: cargo update
Expand Down Expand Up @@ -258,14 +253,14 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/[email protected].3
uses: actions-rs/[email protected].6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Run cargo update
run: cargo update
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/.github/workflows/clippy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
steps:
# Setup
- name: rust-toolchain
uses: actions-rs/[email protected].3
uses: actions-rs/[email protected].6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal
components: rustfmt

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

# Run
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions src/tools/clippy/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3
with:
ref: ${{ env.TARGET_BRANCH }}
path: 'out'
Expand All @@ -34,10 +34,10 @@ jobs:
if: startswith(github.ref, 'refs/tags/')
run: |
TAG=$(basename ${{ github.ref }})
echo "::set-env name=TAG_NAME::$TAG"
echo "TAG_NAME=$TAG" >> $GITHUB_ENV
- name: Set beta to true
if: github.ref == 'refs/heads/beta'
run: echo "::set-env name=BETA::true"
run: echo "BETA=true" >> $GITHUB_ENV

- name: Use scripts and templates from master branch
run: |
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/.github/workflows/remark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.0.0
uses: actions/checkout@v2.3.3

- name: Setup Node.js
uses: actions/setup-node@v1.1.0
uses: actions/setup-node@v1.4.4

- name: Install remark
run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended
Expand Down
3 changes: 3 additions & 0 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,7 @@ Released 2018-09-13
[`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
[`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
[`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
[`manual_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
[`many_single_char_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#many_single_char_names
[`map_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
[`map_entry`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_entry
Expand Down Expand Up @@ -1892,6 +1893,7 @@ Released 2018-09-13
[`print_with_newline`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline
[`println_empty_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
[`ptr_arg`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
[`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
[`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
[`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
[`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
Expand All @@ -1917,6 +1919,7 @@ Released 2018-09-13
[`rest_pat_in_fully_bound_structs`]: https://rust-lang.github.io/rust-clippy/master/index.html#rest_pat_in_fully_bound_structs
[`result_map_or_into_option`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_or_into_option
[`result_map_unit_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_map_unit_fn
[`result_unit_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
[`reversed_empty_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
[`same_functions_in_if_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_functions_in_if_condition
[`same_item_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#same_item_push
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ If you have @bors permissions, you can find an overview of the available
commands [here][homu_instructions].

[triage]: https://forge.rust-lang.org/release/triage-procedure.html
[l-crash]: https://github.com/rust-lang/rust-clippy/labels/L-crash%20%3Aboom%3A
[l-bug]: https://github.com/rust-lang/rust-clippy/labels/L-bug%20%3Abeetle%3A
[l-crash]: https://github.com/rust-lang/rust-clippy/labels/L-crash
[l-bug]: https://github.com/rust-lang/rust-clippy/labels/L-bug
[homu]: https://github.com/rust-lang/homu
[homu_instructions]: https://buildbot2.rust-lang.org/homu/
[homu_queue]: https://buildbot2.rust-lang.org/homu/queue/clippy
Expand Down
Loading