Skip to content

Commit f1c8b82

Browse files
committed
---
yaml --- r: 130143 b: refs/heads/master c: 5bb6196 h: refs/heads/master i: 130141: 382003c 130139: 972e1c4 130135: 4376185 130127: ea57d46 130111: bf7d74c v: v3
1 parent a513eab commit f1c8b82

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1c49eaaa55091f0cca2e6266b35b36e8c6acf2a6
2+
refs/heads/master: 5bb61963787f3e6e67890595287e1d862a432c07
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 67b97ab6d2b7de9b69fd97dc171fcf8feec932ff
55
refs/heads/try: 28d5878c1f0465c11c8e7a3085008b0c592d48d0

trunk/src/librustc/front/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ fn mk_test_desc_and_fn_rec(cx: &TestCtxt, test: &Test) -> Gc<ast::Expr> {
545545
let mut visible_path = match cx.toplevel_reexport {
546546
Some(id) => vec![id],
547547
None => {
548-
cx.sess.span_bug(
549-
DUMMY_SP,
548+
cx.sess.bug(
550549
"expected to find top-level re-export name, but found None"
551550
);
552551
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// compile-flags:--test
12+
13+
// This verifies that the test generation doesn't crash when we have
14+
// no tests - for more information, see PR #16892.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// compile-flags:--test
12+
13+
#![feature(globs)]
14+
15+
mod test {
16+
use super::*;
17+
18+
#[test]
19+
fn test(){}
20+
}

0 commit comments

Comments
 (0)