Skip to content

Commit 649bcd4

Browse files
committedNov 21, 2016
Fix fallout in tests.
1 parent bf41c85 commit 649bcd4

25 files changed

+23
-528
lines changed
 

‎src/test/compile-fail/auxiliary/issue_12612_1.rs

-13
This file was deleted.

‎src/test/compile-fail/auxiliary/namespace-mix-old.rs

-83
This file was deleted.

‎src/test/compile-fail/auxiliary/namespace-mix-new.rs ‎src/test/compile-fail/auxiliary/namespace-mix.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(item_like_imports)]
12-
1311
pub mod c {
1412
pub struct S {}
1513
pub struct TS();

‎src/test/compile-fail/glob-cycles.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(rustc_attrs)]
12+
1113
mod foo {
1214
pub use bar::*;
13-
pub use main as f; //~ ERROR has already been imported
15+
pub use main as f;
1416
}
1517

1618
mod bar {
1719
pub use foo::*;
1820
}
1921

2022
pub use foo::*;
21-
pub use baz::*; //~ ERROR has already been imported
23+
pub use baz::*;
2224
mod baz {
2325
pub use super::*;
2426
}
2527

26-
pub fn main() {}
28+
#[rustc_error]
29+
pub fn main() {} //~ ERROR compilation successful

‎src/test/compile-fail/import-shadow-1.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-2.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-3.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-4.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-5.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-6.rs

-30
This file was deleted.

‎src/test/compile-fail/import-shadow-7.rs

-30
This file was deleted.

‎src/test/compile-fail/import.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ mod zed {
2020
}
2121

2222
fn main() {
23-
zed::foo(); //~ ERROR unresolved name
23+
zed::foo(); //~ ERROR `foo` is private
2424
bar();
2525
}

‎src/test/compile-fail/imports/duplicate.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(item_like_imports)]
12-
1311
mod a {
1412
pub fn foo() {}
1513
}

‎src/test/compile-fail/imports/reexports.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(item_like_imports)]
12-
1311
mod a {
1412
fn foo() {}
1513
mod foo {}

‎src/test/compile-fail/imports/unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(pub_restricted, item_like_imports)]
11+
#![feature(pub_restricted)]
1212
#![deny(unused)]
1313

1414
mod foo {

‎src/test/compile-fail/issue-12612.rs

-22
This file was deleted.

‎src/test/compile-fail/issue-32797.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![feature(rustc_attrs)]
12+
1113
pub use bar::*;
1214
mod bar {
1315
pub use super::*;
1416
}
1517

16-
pub use baz::*; //~ ERROR already been imported
18+
pub use baz::*;
1719
mod baz {
1820
pub use main as f;
1921
}
2022

21-
pub fn main() {}
23+
#[rustc_error]
24+
pub fn main() {} //~ ERROR compilation successful

‎src/test/compile-fail/issue-32833.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
use bar::Foo; //~ ERROR unresolved import `bar::Foo` [E0432]
1212
//~^ no `Foo` in `bar`
1313
mod bar {
14-
use Foo; //~ ERROR unresolved import `Foo` [E0432]
15-
//~^ no `Foo` in the root
14+
use Foo;
1615
}
1716

1817
fn main() {}

‎src/test/compile-fail/namespace-mix-old.rs

-172
This file was deleted.

‎src/test/compile-fail/namespace-mix-new.rs ‎src/test/compile-fail/namespace-mix.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// aux-build:namespace-mix-new.rs
11+
// aux-build:namespace-mix.rs
1212

13-
#![feature(item_like_imports)]
14-
15-
extern crate namespace_mix_new;
16-
use namespace_mix_new::*;
13+
extern crate namespace_mix;
14+
use namespace_mix::*;
1715

1816
mod c {
1917
pub struct S {}

‎src/test/compile-fail/privacy2.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ fn test1() {
3131

3232
fn test2() {
3333
use bar::glob::foo;
34-
//~^ ERROR unresolved import `bar::glob::foo` [E0432]
35-
//~| no `foo` in `bar::glob`
34+
//~^ ERROR `foo` is private
3635
}
3736

3837
#[start] fn main(_: isize, _: *const *const u8) -> isize { 3 }

‎src/test/compile-fail/shadowed-use-visibility.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ mod foo {
1616
}
1717

1818
mod bar {
19-
use foo::bar::f as g; //~ ERROR unresolved import
19+
use foo::bar::f as g; //~ ERROR module `bar` is private
2020

2121
use foo as f;
2222
pub use foo::*;
2323
}
2424

25-
use bar::f::f; //~ ERROR unresolved import
25+
use bar::f::f; //~ ERROR module `f` is private
2626
fn main() {}

‎src/test/compile-fail/variant-namespacing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const XTuple: u8 = 0;
3131
const XUnit: u8 = 0;
3232

3333
extern crate variant_namespacing;
34-
pub use variant_namespacing::XE::*;
34+
pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
3535
//~^ ERROR `XStruct` has already been defined
3636
//~| ERROR `XTuple` has already been defined
3737
//~| ERROR `XUnit` has already been defined
38-
pub use E::*;
38+
pub use E::{Struct, Tuple, Unit};
3939
//~^ ERROR `Struct` has already been defined
4040
//~| ERROR `Tuple` has already been defined
4141
//~| ERROR `Unit` has already been defined

‎src/test/run-pass-fulldeps/auxiliary/custom_derive_partial_eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// force-host
1212

13-
#![feature(plugin_registrar, rustc_private, item_like_imports)]
13+
#![feature(plugin_registrar, rustc_private)]
1414

1515
extern crate syntax;
1616
extern crate syntax_ext;

‎src/test/run-pass/imports.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(item_like_imports)]
1211
#![allow(unused)]
1312

1413
// Like other items, private imports can be imported and used non-lexically in paths.

0 commit comments

Comments
 (0)
Please sign in to comment.