Skip to content

Commit 3b390d4

Browse files
committed
Bump clippy version
1 parent 10ba798 commit 3b390d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+225
-2530
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ color-print = "0.3.4"
3030
anstream = "0.6.0"
3131

3232
[dev-dependencies]
33-
ui_test = "0.23"
33+
ui_test = "0.24"
3434
regex = "1.5.5"
3535
toml = "0.7.3"
3636
walkdir = "2.3"

tests/compile-test.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use ui_test::custom_flags::rustfix::RustfixMode;
77
use ui_test::spanned::Spanned;
8-
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode, OutputConflictHandling};
8+
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, OutputConflictHandling};
99

1010
use std::collections::BTreeMap;
1111
use std::env::{self, set_var, var_os};
@@ -122,7 +122,8 @@ fn base_config(test_dir: &str) -> (Config, Args) {
122122
out_dir: target_dir.join("ui_test"),
123123
..Config::rustc(Path::new("tests").join(test_dir))
124124
};
125-
config.comment_defaults.base().mode = Some(Spanned::dummy(Mode::Yolo)).into();
125+
config.comment_defaults.base().exit_status = None.into();
126+
config.comment_defaults.base().require_annotations = None.into();
126127
config
127128
.comment_defaults
128129
.base()

tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.fixed

-24
This file was deleted.

tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![deny(clippy::index_refutable_slice)]
22

3+
//@no-rustfix: need to change the suggestion to a multipart suggestion
4+
35
fn below_limit() {
46
let slice: Option<&[u32]> = Some(&[1, 2, 3]);
57
if let Some(slice) = slice {

tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this binding can be a slice pattern to avoid indexing
2-
--> tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.rs:5:17
2+
--> tests/ui-toml/max_suggested_slice_pattern_length/index_refutable_slice.rs:7:17
33
|
44
LL | if let Some(slice) = slice {
55
| ^^^^^

tests/ui/crashes/ice-3717.fixed

-11
This file was deleted.

tests/ui/crashes/ice-3717.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![deny(clippy::implicit_hasher)]
22

3+
//@no-rustfix: need to change the suggestion to a multipart suggestion
4+
35
use std::collections::HashSet;
46

57
fn main() {}

tests/ui/crashes/ice-3717.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: parameter of type `HashSet` should be generalized over different hashers
2-
--> tests/ui/crashes/ice-3717.rs:7:21
2+
--> tests/ui/crashes/ice-3717.rs:9:21
33
|
44
LL | pub fn ice_3717(_: &HashSet<usize>) {
55
| ^^^^^^^^^^^^^^

tests/ui/derivable_impls.fixed

-295
This file was deleted.

tests/ui/derivable_impls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#![allow(dead_code)]
22

3+
//@no-rustfix: need to change the suggestion to a multipart suggestion
4+
35
use std::collections::HashMap;
46

57
struct FooDefault<'a> {

0 commit comments

Comments
 (0)