Fix #3000
This commit is contained in:
parent
32e4897854
commit
ffce3c77e4
4 changed files with 21 additions and 55 deletions
|
|
@ -12,36 +12,6 @@ error: redundant field names in struct initialization
|
|||
35 | age: age,
|
||||
| ^^^^^^^^ help: replace it with: `age`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:45:13
|
||||
|
|
||||
45 | let _ = start..;
|
||||
| ^^^^^ help: replace it with: `start`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:46:15
|
||||
|
|
||||
46 | let _ = ..end;
|
||||
| ^^^ help: replace it with: `end`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:47:13
|
||||
|
|
||||
47 | let _ = start..end;
|
||||
| ^^^^^ help: replace it with: `start`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:47:20
|
||||
|
|
||||
47 | let _ = start..end;
|
||||
| ^^^ help: replace it with: `end`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:49:16
|
||||
|
|
||||
49 | let _ = ..=end;
|
||||
| ^^^ help: replace it with: `end`
|
||||
|
||||
error: redundant field names in struct initialization
|
||||
--> $DIR/redundant_field_names.rs:53:25
|
||||
|
|
||||
|
|
@ -72,5 +42,5 @@ error: redundant field names in struct initialization
|
|||
57 | let _ = RangeToInclusive { end: end };
|
||||
| ^^^^^^^^ help: replace it with: `end`
|
||||
|
||||
error: aborting due to 12 previous errors
|
||||
error: aborting due to 7 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![allow(many_single_char_names, blacklisted_name)]
|
||||
#![allow(many_single_char_names, blacklisted_name, redundant_field_names)]
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct Foo(u32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue