about summary refs log tree commit diff
path: root/src/test/run-fail
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-08-11 17:27:05 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-08-12 14:55:17 -0700
commit8d90d3f36871a00023cc1f313f91e351c287ca15 (patch)
tree2d9b616a2468117aa3afe1f6b1f910ff3116776b /src/test/run-fail
parentd07d465cf60033e35eba16b9e431471d54c712f4 (diff)
Remove all unstable deprecated functionality
This commit removes all unstable and deprecated functions in the standard
library. A release was recently cut (1.3) which makes this a good time for some
spring cleaning of the deprecated functions.
Diffstat (limited to 'src/test/run-fail')
-rw-r--r--src/test/run-fail/rt-set-exit-status-panic.rs25
-rw-r--r--src/test/run-fail/rt-set-exit-status-panic2.rs44
-rw-r--r--src/test/run-fail/rt-set-exit-status.rs23
3 files changed, 0 insertions, 92 deletions
diff --git a/src/test/run-fail/rt-set-exit-status-panic.rs b/src/test/run-fail/rt-set-exit-status-panic.rs
deleted file mode 100644
index 249e2e1ac2d..00000000000
--- a/src/test/run-fail/rt-set-exit-status-panic.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// error-pattern:whatever
-
-#![feature(exit_status, rustc_private)]
-
-#[macro_use] extern crate log;
-use std::env;
-
-fn main() {
-    error!("whatever");
-    // Setting the exit status only works when the scheduler terminates
-    // normally. In this case we're going to panic, so instead of
-    // returning 50 the process will return the typical rt failure code.
-    env::set_exit_status(50);
-    panic!();
-}
diff --git a/src/test/run-fail/rt-set-exit-status-panic2.rs b/src/test/run-fail/rt-set-exit-status-panic2.rs
deleted file mode 100644
index b4f0d7ceb99..00000000000
--- a/src/test/run-fail/rt-set-exit-status-panic2.rs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// error-pattern:whatever
-
-#![feature(exit_status, rustc_private)]
-
-#[macro_use] extern crate log;
-use std::env;
-use std::thread;
-
-struct r {
-  x:isize,
-}
-
-// Setting the exit status after the runtime has already
-// panicked has no effect and the process exits with the
-// runtime's exit code
-impl Drop for r {
-    fn drop(&mut self) {
-        env::set_exit_status(50);
-    }
-}
-
-fn r(x:isize) -> r {
-    r {
-        x: x
-    }
-}
-
-fn main() {
-    error!("whatever");
-    let _t = thread::spawn(move|| {
-      let _i = r(5);
-    });
-    panic!();
-}
diff --git a/src/test/run-fail/rt-set-exit-status.rs b/src/test/run-fail/rt-set-exit-status.rs
deleted file mode 100644
index f5da0201815..00000000000
--- a/src/test/run-fail/rt-set-exit-status.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// error-pattern:whatever
-
-#![feature(rustc_private, exit_status)]
-
-#[macro_use] extern crate log;
-use std::env;
-
-fn main() {
-    error!("whatever");
-    // 101 is the code the runtime uses on thread panic and the value
-    // compiletest expects run-fail tests to return.
-    env::set_exit_status(101);
-}