diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-18 12:18:44 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-08-18 13:12:19 +0200 |
| commit | a6a760edaf16d4b00ab4d3c607f6d85a6d193c0b (patch) | |
| tree | a399d1507321b76c4737f01aec703787b32973ff /library/std/src/lib.rs | |
| parent | 425a9c0a0e365c0b8c6cfd00c2ded83a73bed9a0 (diff) | |
| download | rust-a6a760edaf16d4b00ab4d3c607f6d85a6d193c0b.tar.gz rust-a6a760edaf16d4b00ab4d3c607f6d85a6d193c0b.zip | |
Remove the `From` derive macro from prelude
To avoid backwards compatibility problems.
Diffstat (limited to 'library/std/src/lib.rs')
| -rw-r--r-- | library/std/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index f111fcb4a47..95d4b38331a 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -737,6 +737,14 @@ pub use core::{ unreachable, write, writeln, }; +// Re-export unstable derive macro defined through core. +#[unstable(feature = "derive_from", issue = "144889")] +/// Unstable module containing the unstable `From` derive macro. +pub mod from { + #[unstable(feature = "derive_from", issue = "144889")] + pub use core::from::From; +} + // Include a number of private modules that exist solely to provide // the rustdoc documentation for primitive types. Using `include!` // because rustdoc only looks for these modules at the crate level. |
