File tree Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Expand file tree Collapse file tree 3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,13 @@ pub mod assert_matches {
226
226
pub use crate :: macros:: { assert_matches, debug_assert_matches} ;
227
227
}
228
228
229
+ #[ unstable( feature = "derive_from" , issue = "144889" ) ]
230
+ /// Unstable module containing the unstable `From` derive macro.
231
+ pub mod from {
232
+ #[ unstable( feature = "derive_from" , issue = "144889" ) ]
233
+ pub use crate :: macros:: builtin:: From ;
234
+ }
235
+
229
236
// We don't export this through #[macro_export] for now, to avoid breakage.
230
237
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
231
238
/// Unstable module containing the unstable `autodiff` macro.
Original file line number Diff line number Diff line change @@ -117,10 +117,3 @@ pub use crate::macros::builtin::deref;
117
117
reason = "`type_alias_impl_trait` has open design concerns"
118
118
) ]
119
119
pub use crate :: macros:: builtin:: define_opaque;
120
-
121
- #[ unstable(
122
- feature = "derive_from" ,
123
- issue = "144889" ,
124
- reason = "`derive(From)` is unstable"
125
- ) ]
126
- pub use crate :: macros:: builtin:: From ;
Original file line number Diff line number Diff line change @@ -737,6 +737,14 @@ pub use core::{
737
737
unreachable, write, writeln,
738
738
} ;
739
739
740
+ // Re-export unstable derive macro defined through core.
741
+ #[ unstable( feature = "derive_from" , issue = "144889" ) ]
742
+ /// Unstable module containing the unstable `From` derive macro.
743
+ pub mod from {
744
+ #[ unstable( feature = "derive_from" , issue = "144889" ) ]
745
+ pub use core:: from:: From ;
746
+ }
747
+
740
748
// Include a number of private modules that exist solely to provide
741
749
// the rustdoc documentation for primitive types. Using `include!`
742
750
// because rustdoc only looks for these modules at the crate level.
You can’t perform that action at this time.
0 commit comments