about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2018-11-29 21:50:49 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-03-18 19:27:31 +0300
commit9d408d972f7cf16162ec3ab35e11c659ccee9566 (patch)
treea21fcb6ff829cf50c5bfd566ac867c533e0ff0f1 /src/libstd
parent0f88167f89fffe321590c5148f21b7d51d44388d (diff)
downloadrust-9d408d972f7cf16162ec3ab35e11c659ccee9566.tar.gz
rust-9d408d972f7cf16162ec3ab35e11c659ccee9566.zip
Add todo!() macro
The use-case of `todo!()` macro is to be a much easier to type
alternative to `unimplemented!()` macro.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index fc8ac9a0b3e..296c4c88727 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -301,6 +301,7 @@
 #![feature(stmt_expr_attributes)]
 #![feature(str_internals)]
 #![feature(thread_local)]
+#![feature(todo_macro)]
 #![feature(toowned_clone_into)]
 #![feature(try_reserve)]
 #![feature(unboxed_closures)]
@@ -323,7 +324,7 @@ use prelude::v1::*;
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::{assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne};
 #[stable(feature = "rust1", since = "1.0.0")]
-pub use core::{unreachable, unimplemented, write, writeln, r#try};
+pub use core::{unreachable, unimplemented, write, writeln, r#try, todo};
 
 #[allow(unused_imports)] // macros from `alloc` are not used on all platforms
 #[macro_use]