Skip to content

Commit 64ae9e2

Browse files
committed
---
yaml --- r: 32745 b: refs/heads/dist-snap c: dffe188 h: refs/heads/master i: 32743: affcd71 v: v3
1 parent 728f5a0 commit 64ae9e2

File tree

278 files changed

+1175
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+1175
-121
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 60443d48881bfbc7a305e807390e74b327f100b8
10+
refs/heads/dist-snap: dffe188991325b4e803fdd0da7c1563ce0fa27f4
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/doc/rust.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ declaration replaces the default export with the export specified.
875875
An example of an export:
876876

877877
~~~~~~~~
878-
mod foo {
878+
pub mod foo {
879+
#[legacy_exports];
879880
export primary;
880881
881882
fn primary() {

branches/dist-snap/doc/tutorial-ffi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ null pointers.
123123
The `sha1` function is the most obscure part of the program.
124124

125125
~~~~
126-
# mod crypto { fn SHA1(src: *u8, sz: uint, out: *u8) -> *u8 { out } }
126+
# pub mod crypto {
127+
# pub fn SHA1(src: *u8, sz: uint, out: *u8) -> *u8 { out }
128+
# }
127129
# fn as_hex(data: ~[u8]) -> ~str { ~"hi" }
128130
fn sha1(data: ~str) -> ~str {
129131
unsafe {
@@ -166,7 +168,9 @@ Rust's safety mechanisms.
166168
Let's look at our `sha1` function again.
167169

168170
~~~~
169-
# mod crypto { fn SHA1(src: *u8, sz: uint, out: *u8) -> *u8 { out } }
171+
# pub mod crypto {
172+
# pub fn SHA1(src: *u8, sz: uint, out: *u8) -> *u8 { out }
173+
# }
170174
# fn as_hex(data: ~[u8]) -> ~str { ~"hi" }
171175
# fn x(data: ~str) -> ~str {
172176
# unsafe {

branches/dist-snap/doc/tutorial.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,7 @@ explicitly import it, you must refer to it by its long name,
18201820
`farm::chicken`.
18211821

18221822
~~~~
1823+
#[legacy_exports]
18231824
mod farm {
18241825
fn chicken() -> ~str { ~"cluck cluck" }
18251826
fn cow() -> ~str { ~"mooo" }
@@ -2004,6 +2005,7 @@ Rust uses three different namespaces: one for modules, one for types,
20042005
and one for values. This means that this code is valid:
20052006

20062007
~~~~
2008+
#[legacy_exports]
20072009
mod buffalo {
20082010
type buffalo = int;
20092011
fn buffalo<buffalo>(+buffalo: buffalo) -> buffalo { buffalo }

branches/dist-snap/src/cargo/cargo.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#[crate_type = "bin"];
1818

1919
#[no_core];
20+
#[legacy_exports];
2021

2122
#[allow(vecs_implicitly_copyable,
2223
non_implicitly_copyable_typarams)];
@@ -29,4 +30,5 @@ extern mod syntax(vers = "0.4");
2930

3031
use core::*;
3132

33+
#[legacy_exports]
3234
mod pgp;

branches/dist-snap/src/cargo/cargo.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// cargo.rs - Rust package manager
22

3+
#[legacy_exports];
4+
35
use syntax::{ast, codemap, parse, visit, attr};
46
use syntax::diagnostic::span_handler;
57
use codemap::span;

branches/dist-snap/src/compiletest/compiletest.rc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#[crate_type = "bin"];
22

33
#[no_core];
4+
#[legacy_exports];
45

56
#[allow(vecs_implicitly_copyable)];
67
#[allow(non_camel_case_types)];
@@ -10,11 +11,17 @@ extern mod std(vers = "0.4");
1011

1112
use core::*;
1213

14+
#[legacy_exports]
1315
mod procsrv;
16+
#[legacy_exports]
1417
mod util;
18+
#[legacy_exports]
1519
mod header;
20+
#[legacy_exports]
1621
mod runtest;
22+
#[legacy_exports]
1723
mod common;
24+
#[legacy_exports]
1825
mod errors;
1926

2027
// Local Variables:

branches/dist-snap/src/fuzzer/fuzzer.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#[no_core];
66

77
#[legacy_modes];
8+
#[legacy_exports];
89

910
#[allow(vecs_implicitly_copyable)];
1011
#[allow(non_camel_case_types)];

branches/dist-snap/src/fuzzer/fuzzer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[legacy_exports];
2+
13
use io::WriterUtil;
24

35
use syntax::{ast, ast_util, fold, visit, codemap};

branches/dist-snap/src/libcore/at_vec.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ export traits;
1515
1616
#[abi = "cdecl"]
1717
extern mod rustrt {
18+
#[legacy_exports];
1819
fn vec_reserve_shared_actual(++t: *sys::TypeDesc,
1920
++v: **vec::raw::VecRepr,
2021
++n: libc::size_t);
2122
}
2223

2324
#[abi = "rust-intrinsic"]
2425
extern mod rusti {
26+
#[legacy_exports];
2527
fn move_val_init<T>(&dst: T, -src: T);
2628
}
2729

@@ -135,6 +137,7 @@ pure fn from_elem<T: Copy>(n_elts: uint, t: T) -> @[T] {
135137

136138
#[cfg(notest)]
137139
mod traits {
140+
#[legacy_exports];
138141
#[cfg(stage0)]
139142
impl<T: Copy> @[T]: Add<&[const T],@[T]> {
140143
#[inline(always)]
@@ -153,9 +156,11 @@ mod traits {
153156
}
154157

155158
#[cfg(test)]
156-
mod traits {}
159+
mod traits {
160+
#[legacy_exports];}
157161

158162
mod raw {
163+
#[legacy_exports];
159164
type VecRepr = vec::raw::VecRepr;
160165
type SliceRepr = vec::raw::SliceRepr;
161166

branches/dist-snap/src/libcore/box.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use intrinsic::TyDesc;
1010
export ptr_eq, raw;
1111

1212
mod raw {
13+
#[legacy_exports];
1314

1415
struct BoxHeaderRepr {
1516
ref_count: uint,

branches/dist-snap/src/libcore/cast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export copy_lifetime, copy_lifetime_vec;
88

99
#[abi = "rust-intrinsic"]
1010
extern mod rusti {
11+
#[legacy_exports];
1112
fn forget<T>(-x: T);
1213
fn reinterpret_cast<T, U>(e: T) -> U;
1314
}
@@ -97,6 +98,7 @@ unsafe fn copy_lifetime_vec<S,T>(_ptr: &a/[S], ptr: &T) -> &a/T {
9798

9899
#[cfg(test)]
99100
mod tests {
101+
#[legacy_exports];
100102

101103
#[test]
102104
fn test_reinterpret_cast() {

branches/dist-snap/src/libcore/cleanup.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub unsafe fn annihilate() {
121121

122122
/// Bindings to the runtime
123123
extern mod rustrt {
124+
#[legacy_exports];
124125
#[rust_stack]
125126
/*priv*/ fn rust_get_task() -> *c_void;
126127
}

branches/dist-snap/src/libcore/cmath.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use libc::c_double;
2323
#[link_name = "m"]
2424
#[abi = "cdecl"]
2525
extern mod c_double {
26+
#[legacy_exports];
2627

2728
// Alpabetically sorted by link_name
2829

@@ -98,6 +99,7 @@ extern mod c_double {
9899
#[link_name = "m"]
99100
#[abi = "cdecl"]
100101
extern mod c_float {
102+
#[legacy_exports];
101103

102104
// Alpabetically sorted by link_name
103105

@@ -166,6 +168,7 @@ extern mod c_float {
166168
// FIXME obtain machine float/math constants automatically (Issue #1986)
167169

168170
mod c_float_targ_consts {
171+
#[legacy_exports];
169172
const radix: uint = 2u;
170173
const mantissa_digits: uint = 24u;
171174
const digits: uint = 6u;
@@ -181,6 +184,7 @@ mod c_float_targ_consts {
181184
}
182185

183186
mod c_double_targ_consts {
187+
#[legacy_exports];
184188
const radix: uint = 2u;
185189
const mantissa_digits: uint = 53u;
186190
const digits: uint = 15u;
@@ -200,6 +204,7 @@ mod c_double_targ_consts {
200204
FIXME use these once they can be parsed (see Issue #1433)
201205
202206
mod c_float_math_consts {
207+
#[legacy_exports];
203208
const pi: c_float = 0x1.921fb6p+1_f32;
204209
const div_1_pi: c_float = 0x1.45f306p-2_f32;
205210
const div_2_pi: c_float = 0x1.45f306p-1_f32;
@@ -216,6 +221,7 @@ mod c_float_math_consts {
216221
}
217222
218223
mod c_double_math_consts {
224+
#[legacy_exports];
219225
const pi: c_double = 0x1.921fb54442d18p+1_f64;
220226
const div_1_pi: c_double = 0x1.45f306dc9c883p-2_f64;
221227
const div_2_pi: c_double = 0x1.45f306dc9c883p-1_f64;
@@ -232,6 +238,7 @@ mod c_double_math_consts {
232238
}
233239
234240
mod c_float_targ_consts {
241+
#[legacy_exports];
235242
const radix: uint = 2u;
236243
const mantissa_digits: uint = 24u;
237244
const digits: uint = 6u;
@@ -245,6 +252,7 @@ mod c_float_targ_consts {
245252
}
246253
247254
mod c_double_targ_consts {
255+
#[legacy_exports];
248256
const radix: uint = 2u;
249257
const mantissa_digits: uint = 53u;
250258
const digits: uint = 15u;

branches/dist-snap/src/libcore/cmp.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export Eq;
2424
// Awful hack to work around duplicate lang items in core test.
2525
#[cfg(notest)]
2626
mod nounittest {
27+
#[legacy_exports];
2728
/**
2829
* Trait for values that can be compared for a sort-order.
2930
*
@@ -75,10 +76,12 @@ mod nounittest {
7576
}
7677

7778
#[cfg(test)]
78-
mod nounittest {}
79+
mod nounittest {
80+
#[legacy_exports];}
7981

8082
#[cfg(test)]
8183
mod unittest {
84+
#[legacy_exports];
8285
#[cfg(stage0)]
8386
trait Ord {
8487
pure fn lt(&&other: self) -> bool;
@@ -111,7 +114,8 @@ mod unittest {
111114
}
112115

113116
#[cfg(notest)]
114-
mod unittest {}
117+
mod unittest {
118+
#[legacy_exports];}
115119

116120
#[cfg(stage0)]
117121
pure fn lt<T: Ord>(v1: &T, v2: &T) -> bool {

branches/dist-snap/src/libcore/comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ type port_id = int;
275275

276276
#[abi = "cdecl"]
277277
extern mod rustrt {
278+
#[legacy_exports];
278279
fn rust_port_id_send(target_port: port_id, data: *()) -> libc::uintptr_t;
279280

280281
fn new_port(unit_sz: libc::size_t) -> *rust_port;
@@ -297,6 +298,7 @@ extern mod rustrt {
297298

298299
#[abi = "rust-intrinsic"]
299300
extern mod rusti {
301+
#[legacy_exports];
300302
fn init<T>() -> T;
301303
}
302304

0 commit comments

Comments
 (0)