Skip to content

Commit

Permalink
Don't emit the termination lang item in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Dec 26, 2017
1 parent 347165f commit faff382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/termination.rs
Expand Up @@ -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}`"]
Expand Down

0 comments on commit faff382

Please sign in to comment.