Skip to content
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

Update Clippy #80239

Merged
merged 114 commits into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
a8c4744
Use article_and_description for missing docs
camsteffen Nov 10, 2020
0387981
Add --no-deps command-line argument
ebroto Oct 17, 2020
192ccfb
Update README.md
ebroto Oct 17, 2020
7eda421
Apply suggestion regarding clippy_enabled bool
ebroto Nov 25, 2020
a83eb7c
Make --fix imply --no-deps
ebroto Nov 27, 2020
952b731
Reword bitrotten comment
ebroto Nov 27, 2020
f059feb
Add redundant else lint
camsteffen Nov 13, 2020
70f6a2c
Eat redundant else dogfood
camsteffen Nov 13, 2020
4e14c05
fix clippy test
vn-ki Dec 5, 2020
402f55f
Implement lowering of if-let guards to MIR
LeSeulArtichaut Nov 13, 2020
93c6135
Handle `Guard::IfLet` in clippy
LeSeulArtichaut Nov 15, 2020
8eca423
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
flip1995 Dec 6, 2020
0e527ba
Retain assembly operands span when lowering AST to HIR
tmiasko Nov 27, 2020
e90b977
Fix FP in `unnecessary_lazy_evaluations`
giraffate Nov 22, 2020
ba12494
cargo dev fmt
giraffate Dec 7, 2020
aaed9d9
Auto merge of #6370 - giraffate:fix_fp_in_unnecessary_lazy_evaluation…
bors Dec 7, 2020
b81141c
Add lint print_stderr
justjosias Nov 22, 2020
51cee15
Add negative tests
justjosias Nov 29, 2020
b04bfbd
Fix print_stderr.stderr test
justjosias Dec 1, 2020
7063c36
Add eprint! to print_with_newline lint
justjosias Dec 4, 2020
e58c7dd
panic_in_result_fn: Extend to also check usages of [debug_]assert* ma…
dp304 Oct 31, 2020
bdad790
Apply suggestions from code review
dp304 Dec 3, 2020
16d0e56
Update reference file
ebroto Dec 7, 2020
856f4f3
Auto merge of #6280 - dp304:assert_in_result_fn, r=ebroto
bors Dec 7, 2020
50bca8a
Auto merge of #6330 - camsteffen:redundant-else, r=ebroto
bors Dec 8, 2020
bd7f9c6
Merge remote-tracking branch 'upstream/master' into sync-from-rust
giraffate Dec 8, 2020
f9fccbe
Auto merge of #6432 - giraffate:sync-from-rust, r=flip1995
bors Dec 8, 2020
3187cad
Factor out some code in write.rs
ebroto Dec 8, 2020
b02b0c7
Auto merge of #6367 - justjosias:6348-print-stderr, r=ebroto
bors Dec 8, 2020
a2d9925
Auto merge of #6188 - ebroto:primary_package, r=flip1995
bors Dec 9, 2020
f77f1db
Add a lint for maps with zero-sized values
korrat Oct 24, 2020
6c70133
Auto merge of #6218 - korrat:master, r=ebroto
bors Dec 9, 2020
613333a
Pin Clippy to a nightly
ebroto Nov 29, 2020
2e8b00a
Apply suggestions from PR review
ebroto Dec 9, 2020
77a32eb
Use new cache key
ebroto Dec 9, 2020
20d84fd
Enable internal lints for every test in CI
flip1995 Dec 10, 2020
41cab83
Fix toolchain installation in workflows
flip1995 Dec 10, 2020
26dcbf5
Stop caching on CI
flip1995 Dec 10, 2020
3f41fe2
Error in integration test, if required toolchain is not installed
flip1995 Dec 10, 2020
836325e
Fix integration test runner
flip1995 Dec 10, 2020
a6bb927
Lint wrong self convention in trait also
ThibsG Nov 9, 2020
4af9382
Common function to lint wrong self convention from impl and trait def
ThibsG Nov 10, 2020
db98651
Allow `wrong_self_convention` in `use_self` test for trait def
ThibsG Nov 10, 2020
1e0f85b
Update tests/ui/use_self.rs
ThibsG Nov 24, 2020
90a16e4
Add tests for unsized trait in `wrong_self_convention` lint
ThibsG Dec 10, 2020
a7cfffe
add MSRV to more lints specified in #6097
suyashb95 Dec 5, 2020
8df11e4
add instructions to include msrv in lints
suyashb95 Dec 8, 2020
9f27b74
add test for missing_const_for_fn. fix test stderr
suyashb95 Dec 9, 2020
27fd6ed
Auto merge of #6424 - Suyash458:master, r=flip1995
bors Dec 11, 2020
26c61c7
Fix FP of `manual_range_contains` in `const fn`
giraffate Nov 25, 2020
baf5f2d
Auto merge of #6401 - ebroto:pin_to_a_nightly, r=ebroto
bors Dec 11, 2020
30ef177
Move binder for dyn to each list item
jackh726 Dec 11, 2020
0b145d6
clone_double_ref: print reference type in lint message
matthiaskrgr Dec 12, 2020
b2cb6ff
clone_on_copy: show the type in the lint message
matthiaskrgr Dec 12, 2020
4bd9ed9
Rewrite update-all-references bash scripts in Rust
phansch Dec 2, 2020
41c562d
Improve variable naming
phansch Dec 10, 2020
b8501e1
Feed the dog :dog2:
phansch Dec 12, 2020
18c5ea4
Auto merge of #6413 - phansch:bless, r=flip1995
bors Dec 12, 2020
3b89a67
Auto merge of #6382 - giraffate:fix_fp_in_manual_range_contains_when_…
bors Dec 12, 2020
89c282f
Auto merge of #6318 - camsteffen:article-description, r=Manishearth
bors Dec 12, 2020
3af09b8
New internal lint: interning_defined_symbol
Dec 13, 2020
a6aa0ac
Fix dogfood errors
Dec 13, 2020
64e630c
Run 'cargo dev update_lints'
Dec 13, 2020
b7db5bf
Auto merge of #6442 - matthiaskrgr:clone-double-ref-ty, r=llogiq
bors Dec 13, 2020
cd2a62c
needless_borrow: print the type in the lint message
matthiaskrgr Dec 13, 2020
cc96955
Pass Clippy args also trough RUSTFLAGS
ebroto Dec 11, 2020
f93d965
Address comments from PR review
ebroto Dec 13, 2020
684f17e
Auto merge of #6441 - ebroto:use_rustflags, r=flip1995
bors Dec 13, 2020
1df2e38
Auto merge of #6443 - matthiaskrgr:clone_on_copy_type, r=ebroto
bors Dec 13, 2020
6b2b357
Auto merge of #6449 - matthiaskrgr:needless_borrow_ty, r=ebroto
bors Dec 13, 2020
404c50f
NFC: clippy cargo dev: move generation of clap config into a function
matthiaskrgr Dec 13, 2020
91fa25c
clippy dev fmt: don't format if we have a local rustc repo enabled as…
matthiaskrgr Dec 13, 2020
27dc565
cargo dev: rename ra-setup to ra_setup to be in line with the other c…
matthiaskrgr Dec 13, 2020
a642b42
Auto merge of #6450 - matthiaskrgr:dont_format_local_repo, r=ebroto
bors Dec 13, 2020
a37af06
Removing false positive for the match_single_binding lint
xFrednet Dec 9, 2020
d924164
Auto merge of #6435 - xFrednet:5552-false-positive-match-single-bindi…
bors Dec 13, 2020
426aba2
Fix links in CONTRIBUTING.md
giraffate Dec 14, 2020
5b03834
Auto merge of #6451 - giraffate:update_contributing_md, r=llogiq
bors Dec 14, 2020
8b1e9ed
bump pinned nightly from nightly-2020-12-09 to nightly-2020-12-14
matthiaskrgr Dec 14, 2020
6c83e56
Auto merge of #6452 - matthiaskrgr:bump_nightly, r=flip1995
bors Dec 14, 2020
3043a7b
Improve warnings on incompatible options involving -Zinstrument-coverage
richkadel Dec 14, 2020
ae288df
Convenience funcs for `some_option.unwrap_or(...)`
richkadel Dec 14, 2020
39aca5f
Auto merge of #78399 - vn-ki:gsgdt-graphviz, r=oli-obk
bors Dec 15, 2020
39bcf8e
Handle fatal errors when parsing doctests
ebroto Dec 15, 2020
41b5ebe
needless_doctest_main: add edition support
ebroto Dec 15, 2020
f732cc5
Remove unsafe code
Dec 16, 2020
142f0f5
Auto merge of #6448 - mikerite:interning_defined_symbol, r=Manishearth
bors Dec 16, 2020
1d6fac6
Typo: std::fs::crate_dir -> std::fs::create_dir
Dorumin Dec 16, 2020
5c00931
Auto merge of #6461 - Dorumin:patch-1, r=Manishearth
bors Dec 17, 2020
286e492
Rollup merge of #79051 - LeSeulArtichaut:if-let-guard, r=matthewjasper
JohnTitor Dec 17, 2020
bb68ec6
Apply suggestion from PR review
ebroto Dec 17, 2020
8e9a538
Auto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis
bors Dec 17, 2020
1eb7608
make needless_update ignore non_exhaustive structs
ahouts Dec 18, 2020
920c9a4
add more lints to msrv docs
suyashb95 Dec 18, 2020
88323e8
Auto merge of #6458 - ebroto:6022_parse_doctest, r=Manishearth
bors Dec 18, 2020
896d82f
Auto merge of #6465 - Suyash458:master, r=flip1995
bors Dec 18, 2020
1f58c2b
Renamed the good first issue label for rustbot
xFrednet Dec 18, 2020
9be7045
Auto merge of #6468 - xFrednet:0000-rename-good-first-issue-for-rustb…
bors Dec 18, 2020
ced54f2
Renamed the good first issue label in CONTRIBUTING.md
xFrednet Dec 18, 2020
a898df4
Auto merge of #6470 - xFrednet:0000-rename-good-first-issue-in-docs, …
bors Dec 18, 2020
a24c6f1
remove example
ahouts Dec 19, 2020
0718eeb
Auto merge of #6464 - ahouts:make-needless_update-ignore-non_exhausti…
bors Dec 19, 2020
dfb4ea5
Fix blessing of new reference files
phansch Dec 19, 2020
f00b6ac
More rebinds
jackh726 Dec 17, 2020
73feb31
Auto merge of #6471 - phansch:fix-bless, r=flip1995
bors Dec 19, 2020
8ddf4ce
UI Tests: Separate suspicious_else_formatting tests
phansch Dec 19, 2020
0904f54
Auto merge of #6473 - phansch:split-up-ui-test, r=flip1995
bors Dec 19, 2020
2814ee4
Adapted the website search for better matching
xFrednet Dec 19, 2020
9f9e9f7
Auto merge of #6316 - ThibsG:WrongSelfConventionTraitDef, r=ebroto
bors Dec 19, 2020
12a35ab
Auto merge of #6477 - xFrednet:0000-enable-search-with-dashes, r=ebroto
bors Dec 19, 2020
883a3d1
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Dec 20, 2020
53d6e0c
Bump nightly to 2020-12-20
flip1995 Dec 20, 2020
4911ab1
Auto merge of #6482 - flip1995:rustup, r=flip1995
bors Dec 20, 2020
520761a
Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup
flip1995 Dec 20, 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
34 changes: 5 additions & 29 deletions src/tools/clippy/.github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,11 @@ jobs:
with:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

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

- name: Run cargo update
run: cargo update

- name: Cache cargo dir
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-x86_64-unknown-linux-gnu

- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Install toolchain
run: rustup show active-toolchain

# Run
- name: Set LD_LIBRARY_PATH (Linux)
Expand All @@ -66,13 +48,13 @@ jobs:
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV

- name: Build
run: cargo build --features deny-warnings
run: cargo build --features deny-warnings,internal-lints

- name: Test
run: cargo test --features deny-warnings
run: cargo test --features deny-warnings,internal-lints

- name: Test clippy_lints
run: cargo test --features deny-warnings
run: cargo test --features deny-warnings,internal-lints
working-directory: clippy_lints

- name: Test rustc_tools_util
Expand All @@ -98,9 +80,3 @@ jobs:
cargo dev new_lint --name new_late_pass --pass late
cargo check
git reset --hard HEAD

# Cleanup
- name: Run cargo-cache --autoclean
run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache
97 changes: 13 additions & 84 deletions src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
with:
github_token: "${{ secrets.github_token }}"

- name: Checkout
uses: actions/checkout@v2.3.3
with:
Expand Down Expand Up @@ -84,31 +85,11 @@ jobs:
sudo apt-get install gcc-multilib libssl-dev:i386 libgit2-dev:i386
if: matrix.host == 'i686-unknown-linux-gnu'

- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: ${{ matrix.host }}
profile: minimal

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

- name: Run cargo update
run: cargo update

- name: Cache cargo dir
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-${{ matrix.host }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.host }}

- name: Master Toolchain Setup
run: bash setup-toolchain.sh
env:
HOST_TOOLCHAIN: ${{ matrix.host }}
- name: Install toolchain
run: rustup show active-toolchain

# Run
- name: Set LD_LIBRARY_PATH (Linux)
Expand All @@ -128,13 +109,13 @@ jobs:
SYSROOT=$(rustc --print sysroot)
echo "$SYSROOT/bin" >> $GITHUB_PATH

- name: Build with internal lints
- name: Build
run: cargo build --features deny-warnings,internal-lints

- name: Test with internal lints
- name: Test
run: cargo test --features deny-warnings,internal-lints

- name: Test clippy_lints with internal lints
- name: Test clippy_lints
run: cargo test --features deny-warnings,internal-lints
working-directory: clippy_lints

Expand All @@ -155,12 +136,6 @@ jobs:
env:
OS: ${{ runner.os }}

# Cleanup
- name: Run cargo-cache --autoclean
run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache

integration_build:
needs: changelog
runs-on: ubuntu-latest
Expand All @@ -171,29 +146,11 @@ jobs:
with:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

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

- name: Run cargo update
run: cargo update

- name: Cache cargo dir
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-x86_64-unknown-linux-gnu

- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Install toolchain
run: rustup show active-toolchain

# Run
- name: Build Integration Test
Expand All @@ -214,11 +171,6 @@ jobs:
name: target
path: target

# Cleanup
- name: Run cargo-cache --autoclean
run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache
integration:
needs: integration_build
strategy:
Expand Down Expand Up @@ -252,29 +204,11 @@ jobs:
with:
github_token: "${{ secrets.github_token }}"

- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal

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

- name: Run cargo update
run: cargo update

- name: Cache cargo dir
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-x86_64-unknown-linux-gnu

- name: Master Toolchain Setup
run: bash setup-toolchain.sh
- name: Install toolchain
run: rustup show active-toolchain

# Download
- name: Download target dir
Expand All @@ -288,16 +222,11 @@ jobs:

# Run
- name: Test ${{ matrix.integration }}
run: $CARGO_TARGET_DIR/debug/integration
run: |
RUSTUP_TOOLCHAIN="$(rustup show active-toolchain | grep -o -E "nightly-[0-9]{4}-[0-9]{2}-[0-9]{2}")" \
$CARGO_TARGET_DIR/debug/integration
env:
INTEGRATION: ${{ matrix.integration }}
RUSTUP_TOOLCHAIN: master

# Cleanup
- name: Run cargo-cache --autoclean
run: |
cargo +nightly install cargo-cache --no-default-features --features ci-autoclean cargo-cache
cargo cache

# These jobs doesn't actually test anything, but they're only used to tell
# bors the build completed, as there is no practical way to detect when a
Expand Down
10 changes: 7 additions & 3 deletions src/tools/clippy/.github/workflows/clippy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ jobs:

steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.3.3

- name: remove toolchain file
run: rm rust-toolchain

- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
profile: minimal
components: rustfmt

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

# Run
- name: Build
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 @@ -2006,6 +2006,7 @@ Released 2018-09-13
[`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
[`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
[`print_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_literal
[`print_stderr`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stderr
[`print_stdout`]: https://rust-lang.github.io/rust-clippy/master/index.html#print_stdout
[`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
Expand All @@ -2024,6 +2025,7 @@ Released 2018-09-13
[`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
[`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
[`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
[`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
[`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
[`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
[`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
Expand Down Expand Up @@ -2169,5 +2171,6 @@ Released 2018-09-13
[`zero_divided_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_divided_by_zero
[`zero_prefixed_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
[`zero_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_ptr
[`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
[`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
<!-- end autogenerated links to lint list -->
Loading