Skip to content

Commit

Permalink
Auto merge of #69923 - matthiaskrgr:submodule_upd, r=Dylan-DPC
Browse files Browse the repository at this point in the history
submodules: update clippy from 329923e to fdce47b

Changes:
````
add CR feedback
Improve documentation
Use `edition:2018` flag more widely
Update tests/ui/needless_doc_main.rs
Move links to the end of each chapter on adding_lints
Move links to the end of each chapter on CONTRIBUTING
Clean-up adding_lints.md
Clean-up CONTRIBUTING.md
needless_doc_main: only check rust code
Use `node_type_opt` over `node_type`
Fix doc
Fix ICE with trivial_bounds feature
clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy.
update rust-lang.github.io to rustc-dev-guide.rust-lang.org
Improve placeholder in map_unit_fn
Fix match single binding when in a let stmt
Improve error messages for {option,result}_map_unit_fn
Mention the setup instructions in CONTRIBUTING
redundant_pattern: take binding (ref, ref mut) into account in suggestion.
check_pat: delay creation of the "normal" vec until we reach the branch where is is actually needed
deps: bump itertools 0.8 -> 0.9
add lint on File::read_to_string and File::read_to_end
transition rustc-guide to rustc-dev-guide
Rename macro_use_import -> macro_use_imports
warn on macro_use attr
Fix deploy script for tag deploys
````

Fixes #69957
  • Loading branch information
bors committed Mar 14, 2020
2 parents 42ce9b4 + 66949a7 commit 0f1e814
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Cargo.lock
Expand Up @@ -476,7 +476,7 @@ version = "0.0.212"
dependencies = [
"cargo_metadata 0.9.0",
"if_chain",
"itertools 0.8.0",
"itertools 0.9.0",
"lazy_static 1.4.0",
"matches",
"pulldown-cmark 0.7.0",
Expand Down Expand Up @@ -1604,6 +1604,15 @@ dependencies = [
"either",
]

[[package]]
name = "itertools"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
dependencies = [
"either",
]

[[package]]
name = "itoa"
version = "0.4.4"
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy
Submodule clippy updated 62 files
+12 −2 .github/deploy.sh
+2 −0 CHANGELOG.md
+80 −79 CONTRIBUTING.md
+1 −1 README.md
+1 −1 clippy_lints/Cargo.toml
+1 −3 clippy_lints/README.md
+2 −2 clippy_lints/src/attrs.rs
+19 −5 clippy_lints/src/doc.rs
+1 −1 clippy_lints/src/functions.rs
+7 −1 clippy_lints/src/implicit_return.rs
+1 −1 clippy_lints/src/inline_fn_without_body.rs
+9 −0 clippy_lints/src/lib.rs
+1 −1 clippy_lints/src/lifetimes.rs
+53 −0 clippy_lints/src/macro_use.rs
+3 −3 clippy_lints/src/map_unit_fn.rs
+43 −11 clippy_lints/src/matches.rs
+1 −1 clippy_lints/src/methods/mod.rs
+23 −16 clippy_lints/src/misc_early.rs
+6 −1 clippy_lints/src/missing_const_for_fn.rs
+1 −1 clippy_lints/src/missing_doc.rs
+1 −1 clippy_lints/src/missing_inline.rs
+1 −1 clippy_lints/src/mut_key.rs
+1 −1 clippy_lints/src/ptr.rs
+73 −45 clippy_lints/src/redundant_clone.rs
+8 −4 clippy_lints/src/shadow.rs
+1 −1 clippy_lints/src/trivially_copy_pass_by_ref.rs
+2 −2 clippy_lints/src/types.rs
+22 −1 clippy_lints/src/utils/mod.rs
+1 −0 clippy_lints/src/utils/paths.rs
+83 −0 clippy_lints/src/verbose_file_reads.rs
+80 −70 doc/adding_lints.md
+15 −1 src/lintlist/mod.rs
+6 −0 tests/ui/crashes/shadow.rs
+13 −0 tests/ui/crashes/trivial_bounds.rs
+1 −1 tests/ui/doc_errors.rs
+1 −1 tests/ui/format.fixed
+1 −1 tests/ui/format.rs
+1 −1 tests/ui/issue_4266.rs
+11 −0 tests/ui/macro_use_imports.rs
+10 −0 tests/ui/macro_use_imports.stderr
+8 −1 tests/ui/match_single_binding.fixed
+9 −1 tests/ui/match_single_binding.rs
+24 −10 tests/ui/match_single_binding.stderr
+1 −1 tests/ui/methods.rs
+34 −2 tests/ui/needless_doc_main.rs
+13 −1 tests/ui/needless_doc_main.stderr
+7 −1 tests/ui/option_map_unit_fn_fixable.fixed
+7 −1 tests/ui/option_map_unit_fn_fixable.rs
+44 −36 tests/ui/option_map_unit_fn_fixable.stderr
+16 −0 tests/ui/patterns.fixed
+16 −0 tests/ui/patterns.rs
+13 −1 tests/ui/patterns.stderr
+24 −0 tests/ui/redundant_clone.fixed
+24 −0 tests/ui/redundant_clone.rs
+21 −9 tests/ui/redundant_clone.stderr
+17 −17 tests/ui/result_map_unit_fn_fixable.stderr
+1 −1 tests/ui/single_component_path_imports.fixed
+1 −1 tests/ui/single_component_path_imports.rs
+1 −1 tests/ui/use_self.fixed
+1 −1 tests/ui/use_self.rs
+28 −0 tests/ui/verbose_file_reads.rs
+19 −0 tests/ui/verbose_file_reads.stderr

0 comments on commit 0f1e814

Please sign in to comment.