about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2017-12-03 22:16:24 +0100
committerBastian Köcher <git@kchr.de>2017-12-26 12:26:39 +0100
commitd7918fb2e889c5ccb58ab8b97d2581cc763f2306 (patch)
treea25c4ba1da52089945ce84e9ec8e1b51f45cfd8f /src/libstd/lib.rs
parent8cdde6db7138cf2365dd9ceb5b8814e92a922ed4 (diff)
downloadrust-d7918fb2e889c5ccb58ab8b97d2581cc763f2306.tar.gz
rust-d7918fb2e889c5ccb58ab8b97d2581cc763f2306.zip
Implements RFC 1937: `?` in `main`
This is the first part of the RFC 1937 that supports new
`Termination` trait in the rust `main` function.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 12e6231136e..3a7a57fe2b8 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -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!`