Skip to content
/ rust Public
forked from rust-lang/rust

Commit 41bee76

Browse files
committed
use diagnostic::on_unimplemented instead
1 parent b1bc725 commit 41bee76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/iter/traits/accum.rs

+2-2
Original file line numberDiff line numberDiff 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
)]

0 commit comments

Comments
 (0)