From fada4b24b236d90418d5ca5180b94233bc0948c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Wed, 15 Apr 2020 20:54:39 +0200 Subject: [PATCH] submodules: update clippy from af5940b7 to 6651c1b9 Changes: ```` Rename dummy_hir_id -> parent_hir_id rustup https://github.com/rust-lang/rust/pull/71116 Change default many single char names threshold Better precedence case management + more tests Use only check_expr with parent expr and precedence Check for Deref trait impl + add fixed version Report using stmts and expr + tests Global rework + fix imports Working basic dereference clip Add test for zero single char names Make the single char threshold strict inequality large_enum_variant: Report sizes of variants Refactor: Use rustc's `match_def_path` deps: bump compiletest-rs from 0.4 to 0.5 rustup https://github.com/rust-lang/rust/pull/70643 Explain panic on `E0463` in integration tests Temporarily disable rustfmt integration test result_map_unit_fn: Fix incorrect UI tests Cleanup: Use rustc's is_proc_macro_attr Cleanup: Use our `sym!` macro more Fixes #5405: redundant clone false positive with arrays Disallow bit-shifting in `integer_arithmetic` lint update lints cargo dev fmt Make use of Option/Result diagnostic items Make use of some existing diagnostic items Say that diagnostic items are preferred over paths verbose_bit_mask: fix bit mask used in docs Update documentation for new_ret_no_self Update doc generation script Add lint on large const arrays Make the epsilon note spanless Split check_fn function Indicate when arrays are compared in error message Make epsilon note spanless when comparing arrays Add float cmp const tests for arrays Add float cmp tests for arrays Handle constant arrays with single value Don't show comparison suggestion for arrays Allow for const arrays of zeros Handle evaluating constant index expression Add handling of float arrays to miri_to_const Update stderr of float_cmp test Update field names in is_float Add tests for float in array comparison Add lint when comparing floats in an array ```` Fixes #71114 --- Cargo.lock | 26 ++++++++++++++++++++++++-- src/tools/clippy | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 73d276d1776..7ea29d10eaf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -464,7 +464,7 @@ dependencies = [ "cargo_metadata 0.9.1", "clippy-mini-macro-test", "clippy_lints", - "compiletest_rs", + "compiletest_rs 0.5.0", "derive-new", "lazy_static 1.4.0", "regex", @@ -615,6 +615,28 @@ dependencies = [ "winapi 0.3.8", ] +[[package]] +name = "compiletest_rs" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f737835bfbbe29ed1ff82d5137520338d7ed5bf1a1d4b9c1c7c58bb45b8fa29" +dependencies = [ + "diff", + "filetime", + "getopts", + "libc", + "log", + "miow 0.3.3", + "regex", + "rustfix 0.5.0", + "serde", + "serde_derive", + "serde_json", + "tempfile", + "tester", + "winapi 0.3.8", +] + [[package]] name = "constant_time_eq" version = "0.1.3" @@ -2179,7 +2201,7 @@ dependencies = [ "byteorder", "cargo_metadata 0.9.1", "colored", - "compiletest_rs", + "compiletest_rs 0.4.0", "directories", "env_logger 0.7.1", "getrandom", diff --git a/src/tools/clippy b/src/tools/clippy index af5940b7315..6651c1b9b2a 160000 --- a/src/tools/clippy +++ b/src/tools/clippy @@ -1 +1 @@ -Subproject commit af5940b73153b2a4ea2922aa803abac45d029982 +Subproject commit 6651c1b9b2a1b3e995565467218ff7eca7479c5e