Skip to content

Commit 86f85c1

Browse files
committed
Move start functions into libstd/rt
1 parent 57bc1a9 commit 86f85c1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/libstd/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,6 @@ pub use core_collections::vec;
423423
#[stable(feature = "rust1", since = "1.0.0")]
424424
pub use std_unicode::char;
425425

426-
// Reexport the start module on platforms that provide it
427-
#[unstable(feature = "start_fn", issue="0")]
428-
#[cfg(target_os = "redox")]
429-
pub use sys::start::*;
430-
431426
pub mod f32;
432427
pub mod f64;
433428

src/libstd/rt.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222
issue = "0")]
2323
#![doc(hidden)]
2424

25-
26-
2725
// Reexport some of our utilities which are expected by other crates.
2826
pub use panicking::{begin_panic, begin_panic_fmt, update_panic_count};
2927

28+
// Reexport the start module on platforms that provide it
29+
#[unstable(feature = "start_fn", issue="0")]
30+
#[cfg(target_os = "redox")]
31+
pub use sys::start::*;
32+
3033
#[cfg(not(test))]
3134
#[lang = "start"]
3235
fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize {

0 commit comments

Comments
 (0)