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/back | |
| parent | 60443d48881bfbc7a305e807390e74b327f100b8 (diff) | |
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
Diffstat (limited to 'src/rustc/back')
| -rw-r--r-- | src/rustc/back/link.rs | 3 | ||||
| -rw-r--r-- | src/rustc/back/rpath.rs | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/rustc/back/link.rs b/src/rustc/back/link.rs index c52b2c661ab..1cfb322e39c 100644 --- a/src/rustc/back/link.rs +++ b/src/rustc/back/link.rs @@ -65,9 +65,11 @@ fn WriteOutputFile(sess:session, } mod jit { + #[legacy_exports]; #[nolink] #[abi = "rust-intrinsic"] extern mod rusti { + #[legacy_exports]; fn morestack_addr() -> *(); } @@ -99,6 +101,7 @@ mod jit { } mod write { + #[legacy_exports]; fn is_object_or_assembly_or_exe(ot: output_type) -> bool { if ot == output_type_assembly || ot == output_type_object || ot == output_type_exe { diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs index f115827b136..207a8f3fc94 100644 --- a/src/rustc/back/rpath.rs +++ b/src/rustc/back/rpath.rs @@ -181,6 +181,7 @@ fn minimize_rpaths(rpaths: &[Path]) -> ~[Path] { #[cfg(unix)] mod test { + #[legacy_exports]; #[test] fn test_rpaths_to_flags() { let flags = rpaths_to_flags(~[Path("path1"), |
