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 210
210
#[ allow( unused_extern_crates) ]
211
211
extern crate self as core;
212
212
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
+
213
217
#[ prelude_import]
214
218
#[ allow( unused) ]
215
219
use prelude:: rust_2024:: * ;
@@ -295,10 +299,6 @@ pub mod f64;
295
299
#[ macro_use]
296
300
pub mod num;
297
301
298
- /* The core prelude, not as all-encompassing as the std prelude */
299
-
300
- pub mod prelude;
301
-
302
302
/* Core modules for ownership management */
303
303
304
304
pub mod hint;
Original file line number Diff line number Diff line change 428
428
//
429
429
#![ default_lib_allocator]
430
430
431
+ // The Rust prelude
432
+ // The compiler expects the prelude definition to be defined before it's use statement.
433
+ pub mod prelude;
434
+
431
435
// Explicitly import the prelude. The compiler uses this same unstable attribute
432
436
// to import the prelude implicitly when building crates that depend on std.
433
437
#[ prelude_import]
@@ -483,9 +487,6 @@ mod macros;
483
487
#[ macro_use]
484
488
pub mod rt;
485
489
486
- // The Rust prelude
487
- pub mod prelude;
488
-
489
490
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
490
491
pub use core:: any;
491
492
#[ stable( feature = "core_array" , since = "1.35.0" ) ]
You can’t perform that action at this time.
0 commit comments