diff --git a/src/test/auxiliary/noexporttypelib.rs b/src/test/auxiliary/noexporttypelib.rs index 57e2e53ac725..4e9e3688ecdb 100644 --- a/src/test/auxiliary/noexporttypelib.rs +++ b/src/test/auxiliary/noexporttypelib.rs @@ -8,7 +8,5 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[legacy_exports]; -export foo; type oint = Option; -fn foo() -> oint { Some(3) } +pub fn foo() -> oint { Some(3) } diff --git a/src/test/compile-fail/borrowck-autoref-3261.rs b/src/test/compile-fail/borrowck-autoref-3261.rs index 6c6f59d00ea9..b21114d9222c 100644 --- a/src/test/compile-fail/borrowck-autoref-3261.rs +++ b/src/test/compile-fail/borrowck-autoref-3261.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use either::*; +use core::either::*; enum X = Either<(uint,uint),fn()>; impl &X { fn with(blk: fn(x: &Either<(uint,uint),fn()>)) { @@ -26,4 +26,4 @@ fn main() { _ => fail } } -} \ No newline at end of file +} diff --git a/src/test/compile-fail/issue-1697.rs b/src/test/compile-fail/issue-1697.rs index a0d2536d85f0..2a64666d94ca 100644 --- a/src/test/compile-fail/issue-1697.rs +++ b/src/test/compile-fail/issue-1697.rs @@ -10,8 +10,7 @@ // Testing that we don't fail abnormally after hitting the errors -use unresolved::*; //~ ERROR unresolved name -//~^ ERROR failed to resolve import +use unresolved::*; //~ ERROR unresolved import fn main() { } diff --git a/src/test/compile-fail/issue-2766-a.rs b/src/test/compile-fail/issue-2766-a.rs index c0b27789977e..0b63ae5b1bad 100644 --- a/src/test/compile-fail/issue-2766-a.rs +++ b/src/test/compile-fail/issue-2766-a.rs @@ -8,16 +8,17 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -mod stream { - #[legacy_exports]; - enum Stream { send(T, server::Stream), } - mod server { - #[legacy_exports]; +pub mod stream { + pub enum Stream { send(T, ::stream::server::Stream), } + pub mod server { + use core::option; + use core::pipes; + impl Stream { - fn recv() -> extern fn(+v: Stream) -> stream::Stream { + pub fn recv() -> extern fn(+v: Stream) -> ::stream::Stream { // resolve really should report just one error here. // Change the test case when it changes. - fn recv(+pipe: Stream) -> stream::Stream { //~ ERROR attempt to use a type argument out of scope + pub fn recv(+pipe: Stream) -> ::stream::Stream { //~ ERROR attempt to use a type argument out of scope //~^ ERROR use of undeclared type name //~^^ ERROR attempt to use a type argument out of scope //~^^^ ERROR use of undeclared type name @@ -26,7 +27,8 @@ mod stream { recv } } - type Stream = pipes::RecvPacket>; + + pub type Stream = pipes::RecvPacket<::stream::Stream>; } } diff --git a/src/test/compile-fail/name-clash-nullary.rs b/src/test/compile-fail/name-clash-nullary.rs index 9947c882a585..e64d651dab2b 100644 --- a/src/test/compile-fail/name-clash-nullary.rs +++ b/src/test/compile-fail/name-clash-nullary.rs @@ -9,7 +9,7 @@ // except according to those terms. // error-pattern:declaration of `None` shadows -use option::*; +use core::option::*; fn main() { let None: int = 42; diff --git a/src/test/compile-fail/no-capture-arc.rs b/src/test/compile-fail/no-capture-arc.rs index 98220195e613..7dc3c247ea48 100644 --- a/src/test/compile-fail/no-capture-arc.rs +++ b/src/test/compile-fail/no-capture-arc.rs @@ -12,7 +12,7 @@ extern mod std; use std::arc; -use oldcomm::*; +use core::oldcomm::*; fn main() { let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; diff --git a/src/test/compile-fail/no-reuse-move-arc.rs b/src/test/compile-fail/no-reuse-move-arc.rs index 8cb8f31c4897..8a7c37649d2e 100644 --- a/src/test/compile-fail/no-reuse-move-arc.rs +++ b/src/test/compile-fail/no-reuse-move-arc.rs @@ -10,7 +10,7 @@ extern mod std; use std::arc; -use oldcomm::*; +use core::oldcomm::*; fn main() { let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];