Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0b79f75

Browse files
committedAug 18, 2022
Auto merge of #98807 - cbeuw:derived-obligation, r=compiler-errors
Reword "Required because of the requirements on the impl of ..." Rephrases the awkward "Required because of the requirements on the impl of `{trait}` for `{type}`" to "required for `{type}` to implement `{trait}`"
2 parents 8064a49 + 84a1993 commit 0b79f75

File tree

159 files changed

+279
-279
lines changed

Some content is hidden

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

159 files changed

+279
-279
lines changed
 

‎src/test/ui/consts/const-blocks/trait-error.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0277]: the trait bound `String: Copy` is not satisfied
44
LL | [Foo(String::new()); 4];
55
| ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
66
|
7-
note: required because of the requirements on the impl of `Copy` for `Foo<String>`
7+
note: required for `Foo<String>` to implement `Copy`
88
--> $DIR/trait-error.rs:1:10
99
|
1010
LL | #[derive(Copy, Clone)]

‎src/test/ui/derives/deriving-copyclone.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | is_copy(B { a: 1, b: C });
66
| |
77
| required by a bound introduced by this call
88
|
9-
note: required because of the requirements on the impl of `Copy` for `B<C>`
9+
note: required for `B<C>` to implement `Copy`
1010
--> $DIR/deriving-copyclone.rs:9:10
1111
|
1212
LL | #[derive(Copy, Clone)]
@@ -30,7 +30,7 @@ LL | is_clone(B { a: 1, b: C });
3030
| |
3131
| required by a bound introduced by this call
3232
|
33-
note: required because of the requirements on the impl of `Clone` for `B<C>`
33+
note: required for `B<C>` to implement `Clone`
3434
--> $DIR/deriving-copyclone.rs:9:16
3535
|
3636
LL | #[derive(Copy, Clone)]
@@ -54,7 +54,7 @@ LL | is_copy(B { a: 1, b: D });
5454
| |
5555
| required by a bound introduced by this call
5656
|
57-
note: required because of the requirements on the impl of `Copy` for `B<D>`
57+
note: required for `B<D>` to implement `Copy`
5858
--> $DIR/deriving-copyclone.rs:9:10
5959
|
6060
LL | #[derive(Copy, Clone)]
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.