File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 210210#[ allow( unused_extern_crates) ]
211211extern crate self as core;
212212
213+ /* The core prelude, not as all-encompassing as the std prelude */
214+ // The compiler expects the prelude definition to be defined before it's use statement.
215+ pub mod prelude;
216+
213217#[ prelude_import]
214218#[ allow( unused) ]
215219use prelude:: rust_2024:: * ;
@@ -295,10 +299,6 @@ pub mod f64;
295299#[ macro_use]
296300pub mod num;
297301
298- /* The core prelude, not as all-encompassing as the std prelude */
299-
300- pub mod prelude;
301-
302302/* Core modules for ownership management */
303303
304304pub mod hint;
Original file line number Diff line number Diff line change 428428//
429429#![ default_lib_allocator]
430430
431+ // The Rust prelude
432+ // The compiler expects the prelude definition to be defined before it's use statement.
433+ pub mod prelude;
434+
431435// Explicitly import the prelude. The compiler uses this same unstable attribute
432436// to import the prelude implicitly when building crates that depend on std.
433437#[ prelude_import]
@@ -483,9 +487,6 @@ mod macros;
483487#[ macro_use]
484488pub mod rt;
485489
486- // The Rust prelude
487- pub mod prelude;
488-
489490#[ stable( feature = "rust1" , since = "1.0.0" ) ]
490491pub use core:: any;
491492#[ stable( feature = "core_array" , since = "1.35.0" ) ]
You can’t perform that action at this time.
0 commit comments