Skip to content

Commit

Permalink
Fix fallout in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Apr 14, 2016
1 parent 5896b67 commit 1402963
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 238 deletions.
2 changes: 1 addition & 1 deletion src/test/auxiliary/issue_12612_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
// except according to those terms.

pub mod bar {
pub fn foo() {}
fn foo() {}
}
26 changes: 0 additions & 26 deletions src/test/compile-fail/glob-cycles.rs

This file was deleted.

8 changes: 3 additions & 5 deletions src/test/compile-fail/import-shadow-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#![no_implicit_prelude]

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

mod foo {
pub type Baz = isize;
Expand All @@ -23,8 +23,6 @@ mod bar {
pub type Baz = isize;
}

mod qux {
pub use bar::Baz;
fn main() {
Baz; //~ ERROR
}

fn main() {}
30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-2.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-3.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-4.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-5.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-6.rs

This file was deleted.

30 changes: 0 additions & 30 deletions src/test/compile-fail/import-shadow-7.rs

This file was deleted.

3 changes: 1 addition & 2 deletions src/test/compile-fail/issue-12612.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ extern crate issue_12612_1 as foo;
use foo::bar;

mod test {
use bar::foo;
//~^ ERROR unresolved import `bar::foo`. Maybe a missing `extern crate bar`?
use bar::foo; //~ ERROR `foo` is private
}

fn main() {}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-1697.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

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

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

fn main() {}
21 changes: 0 additions & 21 deletions src/test/compile-fail/issue-32797.rs

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/compile-fail/variant-namespacing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const XTuple: u8 = 0;
const XUnit: u8 = 0;

extern crate variant_namespacing;
pub use variant_namespacing::XE::*;
pub use variant_namespacing::XE::{XStruct, XTuple, XUnit};
//~^ ERROR `XStruct` has already been defined
//~| ERROR `XStruct` has already been defined
//~| ERROR `XTuple` has already been defined
//~| ERROR `XTuple` has already been defined
//~| ERROR `XUnit` has already been defined
//~| ERROR `XUnit` has already been defined
pub use E::*;
pub use E::{Struct, Tuple, Unit};
//~^ ERROR `Struct` has already been defined
//~| ERROR `Struct` has already been defined
//~| ERROR `Tuple` has already been defined
Expand Down

0 comments on commit 1402963

Please sign in to comment.