Implements RFC 1937: ? in main

This is the first part of the RFC 1937 that supports new
`Termination` trait in the rust `main` function.
This commit is contained in:
Bastian Köcher
2017-12-03 22:16:24 +01:00
parent 8cdde6db71
commit d7918fb2e8
13 changed files with 304 additions and 52 deletions

View File

@@ -308,6 +308,7 @@
#![feature(str_char)]
#![feature(str_internals)]
#![feature(str_utf16)]
#![feature(termination_trait)]
#![feature(test, rustc_private)]
#![feature(thread_local)]
#![feature(toowned_clone_into)]
@@ -499,6 +500,11 @@ mod memchr;
// The runtime entry point and a few unstable public functions used by the
// compiler
pub mod rt;
// The trait to support returning arbitrary types in the main function
mod termination;
#[unstable(feature = "termination_trait", issue = "0")]
pub use self::termination::Termination;
// Include a number of private modules that exist solely to provide
// the rustdoc documentation for primitive types. Using `include!`