Skip to content

Commit

Permalink
Add diagnostic item to Default trait
Browse files Browse the repository at this point in the history
Required to resolve rust-lang#6562 rust-clippy issue.
  • Loading branch information
mgacek8 committed Mar 4, 2021
1 parent 939b143 commit a5951d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
/// bar: f32,
/// }
/// ```
#[cfg_attr(not(test), rustc_diagnostic_item = "Default")]
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Default: Sized {
/// Returns the "default value" for a type.
Expand Down

0 comments on commit a5951d4

Please sign in to comment.