diff options
| author | bors <bors@rust-lang.org> | 2019-10-23 06:07:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-10-23 06:07:49 +0000 |
| commit | d6e4028a0db6b13d9a603baad109d6c902802c03 (patch) | |
| tree | 489b9db728d9cbd8c474348227ecce7429cde90d | |
| parent | 57bfb8096295150c06559da10adc5629e445a4ac (diff) | |
| parent | 557cbd0fd5c783a69a259118ac578e4d575dc7a6 (diff) | |
| download | rust-d6e4028a0db6b13d9a603baad109d6c902802c03.tar.gz rust-d6e4028a0db6b13d9a603baad109d6c902802c03.zip | |
Auto merge of #65713 - lzutao:clippy-up, r=Manishearth
Update clippy Replaces #65690 cc #65503 Closes #65683
| -rw-r--r-- | Cargo.lock | 4 | ||||
| -rw-r--r-- | src/libsyntax/ast.rs | 9 | ||||
| -rw-r--r-- | src/libtest/lib.rs | 7 | ||||
| m--------- | src/tools/clippy | 36 |
4 files changed, 33 insertions, 23 deletions
diff --git a/Cargo.lock b/Cargo.lock index b51095d4290..3f37a1b7eb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -556,9 +556,9 @@ dependencies = [ [[package]] name = "compiletest_rs" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "676a74b493d50ac33cacd83fd536597e6b52c0b46b9856f7b9c809d82fef4ac0" +checksum = "f75b10a18fb53549fdd090846eb01c7f8593914494d1faabc4d3005c436e417a" dependencies = [ "diff", "filetime", diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 8be7f4478fa..51a62cd0658 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -1305,7 +1305,8 @@ impl MacroDef { } } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum StrStyle { /// A regular string, like `"foo"`. Cooked, @@ -1327,7 +1328,8 @@ pub struct Lit { pub span: Span, } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)] pub enum LitIntType { Signed(IntTy), Unsigned(UintTy), @@ -1337,7 +1339,8 @@ pub enum LitIntType { /// Literal kind. /// /// E.g., `"foo"`, `42`, `12.34`, or `bool`. -#[derive(Clone, RustcEncodable, RustcDecodable, Debug)] +// Clippy uses Hash and PartialEq +#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)] pub enum LitKind { /// A string literal (`"foo"`). Str(Symbol, StrStyle), diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 179558e8f9a..8c1e9f1722a 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -34,8 +34,10 @@ pub use self::ColorConfig::*; pub use self::types::*; pub use self::types::TestName::*; -pub use self::options::{Options, ShouldPanic}; +pub use self::options::{ColorConfig, Options, OutputFormat, RunIgnored, ShouldPanic}; pub use self::bench::{Bencher, black_box}; +pub use self::console::run_tests_console; +pub use cli::TestOpts; // Module to be used by rustc to compile tests in libtest pub mod test { @@ -84,9 +86,8 @@ mod tests; use test_result::*; use time::TestExecTime; -use options::{RunStrategy, Concurrent, RunIgnored, ColorConfig}; +use options::{RunStrategy, Concurrent}; use event::{CompletedTest, TestEvent}; -use cli::TestOpts; use helpers::sink::Sink; use helpers::concurrency::get_concurrency; use helpers::exit_code::get_exit_code; diff --git a/src/tools/clippy b/src/tools/clippy -Subproject cbedd97b3a58023eff365a2fa74700d06115144 +Subproject e8d5a9e95c145a3a9be89c582d8a6f88d4ea703 |
