summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2017-12-22 18:23:47 +0100
committerBastian Köcher <git@kchr.de>2017-12-26 12:26:39 +0100
commitfaff382c3d5756265726e57d0928b5a1815f5485 (patch)
tree89717dbf59a8060442e603e75d7ad31d3a080b46 /src/libstd
parent347165fd5cd0004721be6cb4cb5d3b8f5670584e (diff)
downloadrust-faff382c3d5756265726e57d0928b5a1815f5485.tar.gz
rust-faff382c3d5756265726e57d0928b5a1815f5485.zip
Don't emit the termination lang item in tests
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/termination.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/termination.rs b/src/libstd/termination.rs
index ee1dc5470a8..cfbeff0de15 100644
--- a/src/libstd/termination.rs
+++ b/src/libstd/termination.rs
@@ -19,7 +19,7 @@ use libc;
 ///
 /// The default implementations are returning `libc::EXIT_SUCCESS` to indicate
 /// a successful execution. In case of a failure, `libc::EXIT_FAILURE` is returned.
-#[cfg_attr(not(stage0), lang = "termination")]
+#[cfg_attr(not(any(stage0, test)), lang = "termination")]
 #[unstable(feature = "termination_trait", issue = "43301")]
 #[rustc_on_unimplemented =
   "`main` can only return types that implement {Termination}, not `{Self}`"]