Skip to content

Commit a5951d4

Browse files
committed
Add diagnostic item to Default trait
Required to resolve #6562 rust-clippy issue.
1 parent 939b143 commit a5951d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/default.rs

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
/// bar: f32,
8181
/// }
8282
/// ```
83+
#[cfg_attr(not(test), rustc_diagnostic_item = "Default")]
8384
#[stable(feature = "rust1", since = "1.0.0")]
8485
pub trait Default: Sized {
8586
/// Returns the "default value" for a type.

0 commit comments

Comments
 (0)