Skip to content

Commit d6e4028

Browse files
committed
Auto merge of #65713 - lzutao:clippy-up, r=Manishearth
Update clippy Replaces #65690 cc #65503 Closes #65683
2 parents 57bfb80 + 557cbd0 commit d6e4028

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

Cargo.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ dependencies = [
556556

557557
[[package]]
558558
name = "compiletest_rs"
559-
version = "0.3.24"
559+
version = "0.3.25"
560560
source = "registry+https://github.com/rust-lang/crates.io-index"
561-
checksum = "676a74b493d50ac33cacd83fd536597e6b52c0b46b9856f7b9c809d82fef4ac0"
561+
checksum = "f75b10a18fb53549fdd090846eb01c7f8593914494d1faabc4d3005c436e417a"
562562
dependencies = [
563563
"diff",
564564
"filetime",

src/libsyntax/ast.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,8 @@ impl MacroDef {
13051305
}
13061306
}
13071307

1308-
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
1308+
// Clippy uses Hash and PartialEq
1309+
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
13091310
pub enum StrStyle {
13101311
/// A regular string, like `"foo"`.
13111312
Cooked,
@@ -1327,7 +1328,8 @@ pub struct Lit {
13271328
pub span: Span,
13281329
}
13291330

1330-
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)]
1331+
// Clippy uses Hash and PartialEq
1332+
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy, Hash, PartialEq)]
13311333
pub enum LitIntType {
13321334
Signed(IntTy),
13331335
Unsigned(UintTy),
@@ -1337,7 +1339,8 @@ pub enum LitIntType {
13371339
/// Literal kind.
13381340
///
13391341
/// E.g., `"foo"`, `42`, `12.34`, or `bool`.
1340-
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
1342+
// Clippy uses Hash and PartialEq
1343+
#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Hash, PartialEq)]
13411344
pub enum LitKind {
13421345
/// A string literal (`"foo"`).
13431346
Str(Symbol, StrStyle),

src/libtest/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
pub use self::ColorConfig::*;
3535
pub use self::types::*;
3636
pub use self::types::TestName::*;
37-
pub use self::options::{Options, ShouldPanic};
37+
pub use self::options::{ColorConfig, Options, OutputFormat, RunIgnored, ShouldPanic};
3838
pub use self::bench::{Bencher, black_box};
39+
pub use self::console::run_tests_console;
40+
pub use cli::TestOpts;
3941

4042
// Module to be used by rustc to compile tests in libtest
4143
pub mod test {
@@ -84,9 +86,8 @@ mod tests;
8486

8587
use test_result::*;
8688
use time::TestExecTime;
87-
use options::{RunStrategy, Concurrent, RunIgnored, ColorConfig};
89+
use options::{RunStrategy, Concurrent};
8890
use event::{CompletedTest, TestEvent};
89-
use cli::TestOpts;
9091
use helpers::sink::Sink;
9192
use helpers::concurrency::get_concurrency;
9293
use helpers::exit_code::get_exit_code;

src/tools/clippy

0 commit comments

Comments
 (0)