We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[default]
1 parent 82c5814 commit 08e4ffdCopy full SHA for 08e4ffd
core/src/default.rs
@@ -161,7 +161,8 @@ pub fn default<T: Default>() -> T {
161
}
162
163
/// Derive macro generating an impl of the trait `Default`.
164
-#[rustc_builtin_macro]
+#[cfg_attr(not(bootstrap), rustc_builtin_macro(Default, attributes(default)))]
165
+#[cfg_attr(bootstrap, rustc_builtin_macro)]
166
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
167
#[allow_internal_unstable(core_intrinsics)]
168
pub macro Default($item:item) {
0 commit comments