diff options
| author | bors <bors@rust-lang.org> | 2016-01-29 15:38:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-01-29 15:38:40 +0000 |
| commit | 61441cb12489faca4ee84f219b5ff9316befcb6c (patch) | |
| tree | 7759d1475a39564682eabaccfc7c2368d2202a0a /src/test | |
| parent | ebe92e55f7113c5e444c7b68802d296862cc51ef (diff) | |
| parent | 7a0e490bdd9a9c41a1293836e8bd826ddad90fd0 (diff) | |
| download | rust-61441cb12489faca4ee84f219b5ff9316befcb6c.tar.gz rust-61441cb12489faca4ee84f219b5ff9316befcb6c.zip | |
Auto merge of #31285 - Manishearth:rollup, r=Manishearth
- Successful merges: #31252, #31256, #31264, #31269, #31272, #31275, #31276 - Failed merges:
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/multi-panic.rs | 5 | ||||
| -rw-r--r-- | src/test/rustdoc/tuples.rs | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/test/run-pass/multi-panic.rs b/src/test/run-pass/multi-panic.rs index 7bf07314dcc..6a0d7278b5e 100644 --- a/src/test/run-pass/multi-panic.rs +++ b/src/test/run-pass/multi-panic.rs @@ -17,7 +17,10 @@ fn main() { panic!(); } else { - let test = std::process::Command::new(&args[0]).arg("run_test").output().unwrap(); + let test = std::process::Command::new(&args[0]).arg("run_test") + .env_remove("RUST_BACKTRACE") + .output() + .unwrap(); assert!(!test.status.success()); let err = String::from_utf8_lossy(&test.stderr); let mut it = err.lines(); diff --git a/src/test/rustdoc/tuples.rs b/src/test/rustdoc/tuples.rs new file mode 100644 index 00000000000..2269b38780d --- /dev/null +++ b/src/test/rustdoc/tuples.rs @@ -0,0 +1,18 @@ +// Copyright 2016 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. + +#![crate_name = "foo"] + +// @has foo/fn.tuple0.html //pre 'pub fn tuple0(x: ())' +pub fn tuple0(x: ()) -> () { x } +// @has foo/fn.tuple1.html //pre 'pub fn tuple1(x: (i32,)) -> (i32,)' +pub fn tuple1(x: (i32,)) -> (i32,) { x } +// @has foo/fn.tuple2.html //pre 'pub fn tuple2(x: (i32, i32)) -> (i32, i32)' +pub fn tuple2(x: (i32, i32)) -> (i32, i32) { x } |
