Skip to content

Commit 6a1c4b7

Browse files
committed
---
yaml --- r: 58215 b: refs/heads/auto c: bd4ee7c h: refs/heads/master i: 58213: af7420b 58211: d42513f 58207: 59e79b5 v: v3
1 parent ac1178d commit 6a1c4b7

Some content is hidden

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

50 files changed

+828
-1398
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 270b508174ca33edb28e40c216e9adf395ac7f22
17+
refs/heads/auto: bd4ee7c7d2f00e8c41824fac7e5d155dff40c25f
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ endif
101101

102102
ifdef CFG_ENABLE_DEBUG
103103
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
104-
CFG_RUSTC_FLAGS += --cfg debug
104+
CFG_RUSTC_FLAGS +=
105105
CFG_GCCISH_CFLAGS += -DRUST_DEBUG
106106
else
107107
CFG_GCCISH_CFLAGS += -DRUST_NDEBUG

branches/auto/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ fn _arm_exec_compiled_test(config: config, props: TestProps,
764764
logv(config, fmt!("executing (%s) %s", config.target, cmdline));
765765
766766
// adb shell dose not forward stdout and stderr of internal result
767-
// to stdout and stderr seperately but to stdout only
767+
// to stdout and stderr separately but to stdout only
768768
let mut newargs_out = ~[];
769769
let mut newargs_err = ~[];
770770
let subargs = args.args;

branches/auto/src/libcore/at_vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn capacity<T>(v: @[T]) -> uint {
5252
* # Arguments
5353
*
5454
* * size - An initial size of the vector to reserve
55-
* * builder - A function that will construct the vector. It recieves
55+
* * builder - A function that will construct the vector. It receives
5656
* as an argument a function that will push an element
5757
* onto the vector being constructed.
5858
*/
@@ -70,7 +70,7 @@ pub fn build_sized<A>(size: uint, builder: &fn(push: &fn(v: A))) -> @[A] {
7070
*
7171
* # Arguments
7272
*
73-
* * builder - A function that will construct the vector. It recieves
73+
* * builder - A function that will construct the vector. It receives
7474
* as an argument a function that will push an element
7575
* onto the vector being constructed.
7676
*/
@@ -87,7 +87,7 @@ pub fn build<A>(builder: &fn(push: &fn(v: A))) -> @[A] {
8787
* # Arguments
8888
*
8989
* * size - An option, maybe containing initial size of the vector to reserve
90-
* * builder - A function that will construct the vector. It recieves
90+
* * builder - A function that will construct the vector. It receives
9191
* as an argument a function that will push an element
9292
* onto the vector being constructed.
9393
*/

branches/auto/src/libcore/rt/io/extensions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Utility mixins that apply to all Readers and Writers
1212
1313
// XXX: Not sure how this should be structured
14-
// XXX: Iteration should probably be considered seperately
14+
// XXX: Iteration should probably be considered separately
1515

1616
pub trait ReaderUtil {
1717

branches/auto/src/libcore/rt/mod.rs

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,22 @@ mod local_heap;
3838
pub mod test;
3939

4040
pub fn start(main: *u8, _argc: int, _argv: **c_char, _crate_map: *u8) -> int {
41-
4241
use self::sched::{Scheduler, Task};
4342
use self::uvio::UvEventLoop;
44-
use sys::Closure;
45-
use ptr;
46-
use cast;
4743

4844
let loop_ = ~UvEventLoop::new();
4945
let mut sched = ~Scheduler::new(loop_);
50-
5146
let main_task = ~do Task::new(&mut sched.stack_pool) {
52-
53-
unsafe {
54-
// `main` is an `fn() -> ()` that doesn't take an environment
55-
// XXX: Could also call this as an `extern "Rust" fn` once they work
56-
let main = Closure {
57-
code: main as *(),
58-
env: ptr::null(),
59-
};
60-
let mainfn: &fn() = cast::transmute(main);
61-
62-
mainfn();
63-
}
47+
// XXX: Can't call a C function pointer from Rust yet
48+
unsafe { rust_call_nullary_fn(main) };
6449
};
65-
6650
sched.task_queue.push_back(main_task);
6751
sched.run();
68-
6952
return 0;
53+
54+
extern {
55+
fn rust_call_nullary_fn(f: *u8);
56+
}
7057
}
7158

7259
/// Possible contexts in which Rust code may be executing.

branches/auto/src/libcore/task/local_data_priv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ unsafe fn get_newsched_local_map(local: *mut LocalStorage) -> TaskLocalMap {
133133

134134
unsafe fn key_to_key_value<T: 'static>(key: LocalDataKey<T>) -> *libc::c_void {
135135
// Keys are closures, which are (fnptr,envptr) pairs. Use fnptr.
136-
// Use reintepret_cast -- transmute would leak (forget) the closure.
136+
// Use reinterpret_cast -- transmute would leak (forget) the closure.
137137
let pair: (*libc::c_void, *libc::c_void) = cast::transmute_copy(&key);
138138
pair.first()
139139
}

branches/auto/src/libcore/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ pub fn build<A>(builder: &fn(push: &fn(v: A))) -> ~[A] {
219219
* # Arguments
220220
*
221221
* * size - An option, maybe containing initial size of the vector to reserve
222-
* * builder - A function that will construct the vector. It recieves
222+
* * builder - A function that will construct the vector. It receives
223223
* as an argument a function that will push an element
224224
* onto the vector being constructed.
225225
*/

branches/auto/src/librustc/middle/trans/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub fn nonzero_llsize_of(cx: @CrateContext, t: TypeRef) -> ValueRef {
8787
}
8888

8989
// Returns the preferred alignment of the given type for the current target.
90-
// The preffered alignment may be larger than the alignment used when
90+
// The preferred alignment may be larger than the alignment used when
9191
// packing the type into structs. This will be used for things like
9292
// allocations inside a stack frame, which LLVM has a free hand in.
9393
pub fn llalign_of_pref(cx: @CrateContext, t: TypeRef) -> uint {
@@ -96,7 +96,7 @@ pub fn llalign_of_pref(cx: @CrateContext, t: TypeRef) -> uint {
9696
}
9797
}
9898

99-
// Returns the minimum alignment of a type required by the plattform.
99+
// Returns the minimum alignment of a type required by the platform.
100100
// This is the alignment that will be used for struct fields, arrays,
101101
// and similar ABI-mandated things.
102102
pub fn llalign_of_min(cx: @CrateContext, t: TypeRef) -> uint {

branches/auto/src/librustc/middle/typeck/check/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use syntax::print::pprust::expr_to_str;
3131
use syntax::visit;
3232

3333
// vtable resolution looks for places where trait bounds are
34-
// subsituted in and figures out which vtable is used. There is some
34+
// substituted in and figures out which vtable is used. There is some
3535
// extra complication thrown in to support early "opportunistic"
3636
// vtable resolution. This is a hacky mechanism that is invoked while
3737
// typechecking function calls (after typechecking non-closure

branches/auto/src/libstd/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// calling the destructors on them.
2121
// One subtle point that needs to be addressed is how to handle
2222
// failures while running the user provided initializer function. It
23-
// is important to not run the destructor on uninitalized objects, but
23+
// is important to not run the destructor on uninitialized objects, but
2424
// how to detect them is somewhat subtle. Since alloc() can be invoked
2525
// recursively, it is not sufficient to simply exclude the most recent
2626
// object. To solve this without requiring extra space, we use the low

branches/auto/src/libstd/flatpipes.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ or transformed to and from, byte vectors.
1515
1616
The `FlatPort` and `FlatChan` types implement the generic channel and
1717
port interface for arbitrary types and transport strategies. It can
18-
particularly be used to send and recieve serializable types over I/O
18+
particularly be used to send and receive serializable types over I/O
1919
streams.
2020
2121
`FlatPort` and `FlatChan` implement the same comm traits as pipe-based
@@ -55,7 +55,7 @@ use core::sys::size_of;
5555
use core::vec;
5656

5757
/**
58-
A FlatPort, consisting of a `BytePort` that recieves byte vectors,
58+
A FlatPort, consisting of a `BytePort` that receives byte vectors,
5959
and an `Unflattener` that converts the bytes to a value.
6060
6161
Create using the constructors in the `serial` and `pod` modules.
@@ -819,7 +819,7 @@ mod test {
819819
}
820820
}
821821
822-
// Reciever task
822+
// Receiver task
823823
do task::spawn || {
824824
// Wait for a connection
825825
let (conn, res_chan) = accept_port.recv();
@@ -838,7 +838,7 @@ mod test {
838838
839839
for int::range(0, 10) |i| {
840840
let j = port.recv();
841-
debug!("receieved %?", j);
841+
debug!("received %?", j);
842842
assert!(i == j);
843843
}
844844

branches/auto/src/libstd/getopts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ pub mod groups {
623623
desc_sep
624624
};
625625
626-
// Normalize desc to contain words seperated by one space character
626+
// Normalize desc to contain words separated by one space character
627627
let mut desc_normalized_whitespace = ~"";
628628
for str::each_word(desc) |word| {
629629
desc_normalized_whitespace.push_str(word);

branches/auto/src/libstd/net_ip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ mod test {
420420
if result::is_err(&ga_result) {
421421
fail!(~"got err result from net::ip::get_addr();")
422422
}
423-
// note really sure how to realiably test/assert
423+
// note really sure how to reliably test/assert
424424
// this.. mostly just wanting to see it work, atm.
425425
let results = result::unwrap(ga_result);
426426
debug!("test_get_addr: Number of results for %s: %?",

branches/auto/src/libstd/rope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ pub mod node {
565565
*
566566
* # Fields
567567
*
568-
* * byte_offset = The number of bytes skippen in `content`
568+
* * byte_offset = The number of bytes skipped in `content`
569569
* * byte_len - The number of bytes of `content` to use
570570
* * char_len - The number of chars in the leaf.
571571
* * content - Contents of the leaf.

branches/auto/src/libstd/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub mod rustrt {
3232
}
3333

3434
// The name of a test. By convention this follows the rules for rust
35-
// paths; i.e. it should be a series of identifiers seperated by double
35+
// paths; i.e. it should be a series of identifiers separated by double
3636
// colons. This way if some test runner wants to arrange the tests
3737
// hierarchically it may.
3838

branches/auto/src/libstd/uv_global_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ mod test {
222222
exit_po.recv();
223223
};
224224
debug!(~"test_stress_gl_uv_global_loop_high_level_global_timer"+
225-
~" exiting sucessfully!");
225+
~" exiting successfully!");
226226
}
227227
}

branches/auto/src/libstd/uv_iotask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ fn impl_uv_iotask_async(iotask: &IoTask) {
243243
exit_po.recv();
244244
}
245245

246-
// this fn documents the bear minimum neccesary to roll your own
246+
// this fn documents the bear minimum necessary to roll your own
247247
// high_level_loop
248248
#[cfg(test)]
249249
fn spawn_test_loop(exit_ch: ~Chan<()>) -> IoTask {

branches/auto/src/libstd/uv_ll.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub struct sockaddr_in {
269269
}
270270

271271
// unix size: 28 .. FIXME #1645
272-
// stuck with 32 becuse of rust padding structs?
272+
// stuck with 32 because of rust padding structs?
273273
#[cfg(target_arch="x86_64")]
274274
pub struct sockaddr_in6 {
275275
a0: *u8, a1: *u8,
@@ -286,7 +286,7 @@ pub struct sockaddr_in6 {
286286
}
287287

288288
// unix size: 28 .. FIXME #1645
289-
// stuck with 32 becuse of rust padding structs?
289+
// stuck with 32 because of rust padding structs?
290290
pub type addr_in = addr_in_impl::addr_in;
291291
#[cfg(unix)]
292292
pub mod addr_in_impl {
@@ -1376,7 +1376,7 @@ mod test {
13761376
let tcp_init_result = tcp_init(test_loop as *libc::c_void,
13771377
tcp_handle_ptr);
13781378
if (tcp_init_result == 0) {
1379-
debug!(~"sucessful tcp_init_result");
1379+
debug!(~"successful tcp_init_result");
13801380
13811381
debug!(~"building addr...");
13821382
let addr = ip4_addr(ip, port);

0 commit comments

Comments
 (0)