diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-09-21 18:10:45 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-09-21 18:11:43 -0700 |
| commit | dffe188991325b4e803fdd0da7c1563ce0fa27f4 (patch) | |
| tree | e8f65929b804a38550dc9fdcf24021e6a7920304 /src/rustc/front | |
| parent | 60443d48881bfbc7a305e807390e74b327f100b8 (diff) | |
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
Diffstat (limited to 'src/rustc/front')
| -rw-r--r-- | src/rustc/front/intrinsic.rs | 2 | ||||
| -rw-r--r-- | src/rustc/front/test.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/rustc/front/intrinsic.rs b/src/rustc/front/intrinsic.rs index 33de068fad0..7c9b1e690af 100644 --- a/src/rustc/front/intrinsic.rs +++ b/src/rustc/front/intrinsic.rs @@ -2,6 +2,7 @@ // and injected into each crate the compiler builds. Keep it small. mod intrinsic { + #[legacy_exports]; pub use rusti::visit_tydesc; @@ -113,6 +114,7 @@ mod intrinsic { #[abi = "rust-intrinsic"] extern mod rusti { + #[legacy_exports]; fn get_tydesc<T>() -> *(); fn visit_tydesc(td: *TyDesc, &&tv: TyVisitor); } diff --git a/src/rustc/front/test.rs b/src/rustc/front/test.rs index 27c070cd201..e1441d9ee5e 100644 --- a/src/rustc/front/test.rs +++ b/src/rustc/front/test.rs @@ -174,6 +174,7 @@ fn add_test_module(cx: test_ctxt, m: ast::_mod) -> ast::_mod { We're going to be building a module that looks more or less like: mod __test { + #[legacy_exports]; fn main(args: ~[str]) -> int { std::test::test_main(args, tests()) |
