File tree 1 file changed +2
-2
lines changed
library/core/src/iter/traits
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use crate::num::Wrapping;
10
10
/// [`sum()`]: Iterator::sum
11
11
/// [`FromIterator`]: iter::FromIterator
12
12
#[ stable( feature = "iter_arith_traits" , since = "1.12.0" ) ]
13
- #[ rustc_on_unimplemented (
13
+ #[ diagnostic :: on_unimplemented (
14
14
message = "a value of type `{Self}` cannot be made by summing an iterator over elements of type `{A}`" ,
15
15
label = "value of type `{Self}` cannot be made by summing a `std::iter::Iterator<Item={A}>`"
16
16
) ]
@@ -31,7 +31,7 @@ pub trait Sum<A = Self>: Sized {
31
31
/// [`product()`]: Iterator::product
32
32
/// [`FromIterator`]: iter::FromIterator
33
33
#[ stable( feature = "iter_arith_traits" , since = "1.12.0" ) ]
34
- #[ rustc_on_unimplemented (
34
+ #[ diagnostic :: on_unimplemented (
35
35
message = "a value of type `{Self}` cannot be made by multiplying all elements of type `{A}` from an iterator" ,
36
36
label = "value of type `{Self}` cannot be made by multiplying all elements from a `std::iter::Iterator<Item={A}>`"
37
37
) ]
You can’t perform that action at this time.
0 commit comments