You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/default_mismatches_new.stderr
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ LL | || Self { value: 0 }
9
9
LL | | }
10
10
| |______^
11
11
|
12
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
12
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
13
13
= note: `-D clippy::default-mismatches-new` implied by `-D warnings`
14
14
= help: to override `-D warnings` add `#[allow(clippy::default_mismatches_new)]`
15
15
@@ -24,7 +24,7 @@ LL | || Self(0)
24
24
LL | | }
25
25
| |______^
26
26
|
27
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
27
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
28
28
29
29
error: `new()` may produce different values than the auto-derived `Default` for `NonZeroDeriveDefault`
30
30
--> tests/ui/default_mismatches_new.rs:130:22
@@ -37,7 +37,7 @@ LL | || Self(42)
37
37
LL | | }
38
38
| |______^
39
39
|
40
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
40
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
41
41
42
42
error: `new()` may produce different values than the auto-derived `Default` for `ExtraBlockDefault`
43
43
--> tests/ui/default_mismatches_new.rs:139:22
@@ -50,7 +50,7 @@ LL | || { Self::default() }
50
50
LL | | }
51
51
| |______^
52
52
|
53
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
53
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
54
54
55
55
error: `new()` may produce different values than the auto-derived `Default` for `ExtraBlockRetDefault`
56
56
--> tests/ui/default_mismatches_new.rs:148:22
@@ -65,7 +65,7 @@ LL | || };
65
65
LL | | }
66
66
| |______^
67
67
|
68
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
68
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
69
69
70
70
error: `new()` may produce different values than the auto-derived `Default` for `MultiStatements`
71
71
--> tests/ui/default_mismatches_new.rs:163:22
@@ -80,7 +80,7 @@ LL | || Self(i)
80
80
LL | | }
81
81
| |______^
82
82
|
83
-
= help: When a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different.
83
+
= help: when a type derives `Default`, users expect `new()` and `default()` to be equivalent. Consider delegating to `Self::default()` for consistency, or rename `new` if the behavior is intentionally different
0 commit comments