Skip to content

Commit bc6483d

Browse files
committed
Prevent errors for stage0 rustc build
1 parent 4231661 commit bc6483d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
/// ```
100100
#[cfg_attr(not(test), rustc_diagnostic_item = "Default")]
101101
#[stable(feature = "rust1", since = "1.0.0")]
102-
#[const_trait]
102+
#[cfg_attr(not(bootstrap), const_trait)]
103103
pub trait Default: Sized {
104104
/// Returns the "default value" for a type.
105105
///

0 commit comments

Comments
 (0)