Skip to content

Commit 1402963

Browse files
committed
Fix fallout in tests.
1 parent 5896b67 commit 1402963

13 files changed

+8
-238
lines changed

src/test/auxiliary/issue_12612_1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// except according to those terms.
1010

1111
pub mod bar {
12-
pub fn foo() {}
12+
fn foo() {}
1313
}

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

-26
This file was deleted.

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#![no_implicit_prelude]
1414

1515
use foo::*;
16-
use bar::*; //~ERROR a type named `Baz` has already been imported in this module
16+
use bar::*;
1717

1818
mod foo {
1919
pub type Baz = isize;
@@ -23,8 +23,6 @@ mod bar {
2323
pub type Baz = isize;
2424
}
2525

26-
mod qux {
27-
pub use bar::Baz;
26+
fn main() {
27+
Baz; //~ ERROR
2828
}
29-
30-
fn main() {}

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/issue-12612.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ extern crate issue_12612_1 as foo;
1515
use foo::bar;
1616

1717
mod test {
18-
use bar::foo;
19-
//~^ ERROR unresolved import `bar::foo`. Maybe a missing `extern crate bar`?
18+
use bar::foo; //~ ERROR `foo` is private
2019
}
2120

2221
fn main() {}

src/test/compile-fail/issue-1697.rs

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

1111
// Testing that we don't fail abnormally after hitting the errors
1212

13-
use unresolved::*; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
13+
use unresolved::*; //~ ERROR unresolved import
1414

1515
fn main() {}

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

-21
This file was deleted.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ 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 `XStruct` has already been defined
3737
//~| ERROR `XTuple` has already been defined
3838
//~| ERROR `XTuple` has already been defined
3939
//~| ERROR `XUnit` has already been defined
4040
//~| ERROR `XUnit` has already been defined
41-
pub use E::*;
41+
pub use E::{Struct, Tuple, Unit};
4242
//~^ ERROR `Struct` has already been defined
4343
//~| ERROR `Struct` has already been defined
4444
//~| ERROR `Tuple` has already been defined

0 commit comments

Comments
 (0)