File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/core/src/iter/traits Expand file tree Collapse file tree 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;
1010/// [`sum()`]: Iterator::sum
1111/// [`FromIterator`]: iter::FromIterator
1212#[ stable( feature = "iter_arith_traits" , since = "1.12.0" ) ]
13- #[ rustc_on_unimplemented (
13+ #[ diagnostic :: on_unimplemented (
1414 message = "a value of type `{Self}` cannot be made by summing an iterator over elements of type `{A}`" ,
1515 label = "value of type `{Self}` cannot be made by summing a `std::iter::Iterator<Item={A}>`"
1616) ]
@@ -31,7 +31,7 @@ pub trait Sum<A = Self>: Sized {
3131/// [`product()`]: Iterator::product
3232/// [`FromIterator`]: iter::FromIterator
3333#[ stable( feature = "iter_arith_traits" , since = "1.12.0" ) ]
34- #[ rustc_on_unimplemented (
34+ #[ diagnostic :: on_unimplemented (
3535 message = "a value of type `{Self}` cannot be made by multiplying all elements of type `{A}` from an iterator" ,
3636 label = "value of type `{Self}` cannot be made by multiplying all elements from a `std::iter::Iterator<Item={A}>`"
3737) ]
You can’t perform that action at this time.
0 commit comments