Skip to content

Commit 78eb88e

Browse files
committed
---
yaml --- r: 182569 b: refs/heads/beta c: 139346a h: refs/heads/master i: 182567: 10322bf v: v3
1 parent f072827 commit 78eb88e

File tree

8 files changed

+15
-48
lines changed

8 files changed

+15
-48
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 838b2ea760282c716f4354b40fafe3cd55ae5ec7
34+
refs/heads/beta: 139346adb6632dd1507b263f1702f5f6df66e682
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/librustc_driver/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ impl<'a, 'tcx> Env<'a, 'tcx> {
200200
}
201201

202202
return match it.node {
203+
ast::ItemUse(..) | ast::ItemExternCrate(..) |
203204
ast::ItemConst(..) | ast::ItemStatic(..) | ast::ItemFn(..) |
204205
ast::ItemForeignMod(..) | ast::ItemTy(..) => {
205206
None

branches/beta/src/libsyntax/parse/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,25 +1109,25 @@ mod test {
11091109

11101110
#[test] fn parse_use() {
11111111
let use_s = "use foo::bar::baz;";
1112-
let vitem = string_to_item(use_s.to_string());
1113-
let vitem_s = item_to_string(&vitem);
1112+
let vitem = string_to_item(use_s.to_string()).unwrap();
1113+
let vitem_s = item_to_string(&*vitem);
11141114
assert_eq!(&vitem_s[], use_s);
11151115

11161116
let use_s = "use foo::bar as baz;";
1117-
let vitem = string_to_item(use_s.to_string());
1118-
let vitem_s = item_to_string(&vitem);
1117+
let vitem = string_to_item(use_s.to_string()).unwrap();
1118+
let vitem_s = item_to_string(&*vitem);
11191119
assert_eq!(&vitem_s[], use_s);
11201120
}
11211121

11221122
#[test] fn parse_extern_crate() {
11231123
let ex_s = "extern crate foo;";
1124-
let vitem = string_to_item(ex_s.to_string());
1125-
let vitem_s = item_to_string(&vitem);
1124+
let vitem = string_to_item(ex_s.to_string()).unwrap();
1125+
let vitem_s = item_to_string(&*vitem);
11261126
assert_eq!(&vitem_s[], ex_s);
11271127

11281128
let ex_s = "extern crate \"foo\" as bar;";
1129-
let vitem = string_to_item(ex_s.to_string());
1130-
let vitem_s = item_to_string(&vitem);
1129+
let vitem = string_to_item(ex_s.to_string()).unwrap();
1130+
let vitem_s = item_to_string(&*vitem);
11311131
assert_eq!(&vitem_s[], ex_s);
11321132
}
11331133

branches/beta/src/test/compile-fail-fulldeps/gated-plugin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
// aux-build:macro_crate_test.rs
1212
// ignore-stage1
1313

14-
#[plugin] #[no_link]
14+
#[plugin] #[no_link] extern crate macro_crate_test;
1515
//~^ ERROR compiler plugins are experimental and possibly buggy
16-
extern crate macro_crate_test;
1716

1817
fn main() {}

branches/beta/src/test/compile-fail/issue-9957.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

branches/beta/src/test/compile-fail/unnecessary-private.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
fn main() {
12+
pub use std::uint; //~ ERROR: visibility has no effect
1213
pub struct A; //~ ERROR: visibility has no effect
1314
pub enum B {} //~ ERROR: visibility has no effect
1415
pub trait C { //~ ERROR: visibility has no effect

branches/beta/src/test/compile-fail/view-items-at-top.rs

Lines changed: 0 additions & 19 deletions
This file was deleted.

branches/beta/src/test/pretty/issue-4264.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#![no_std]
2-
#[macro_use]
3-
extern crate "std" as std;
42
#[prelude_import]
53
use std::prelude::v1::*;
4+
#[macro_use]
5+
extern crate "std" as std;
66
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
77
// file at the top-level directory of this distribution and at
88
// http://rust-lang.org/COPYRIGHT.

0 commit comments

Comments
 (0)