Move start functions into libstd/rt

This commit is contained in:
Jeremy Soller 2016-12-20 12:41:33 -07:00
parent 57bc1a982e
commit 86f85c1399
2 changed files with 5 additions and 7 deletions

View file

@ -423,11 +423,6 @@ pub use core_collections::vec;
#[stable(feature = "rust1", since = "1.0.0")]
pub use std_unicode::char;
// Reexport the start module on platforms that provide it
#[unstable(feature = "start_fn", issue="0")]
#[cfg(target_os = "redox")]
pub use sys::start::*;
pub mod f32;
pub mod f64;

View file

@ -22,11 +22,14 @@
issue = "0")]
#![doc(hidden)]
// Reexport some of our utilities which are expected by other crates.
pub use panicking::{begin_panic, begin_panic_fmt, update_panic_count};
// Reexport the start module on platforms that provide it
#[unstable(feature = "start_fn", issue="0")]
#[cfg(target_os = "redox")]
pub use sys::start::*;
#[cfg(not(test))]
#[lang = "start"]
fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize {