Skip to content

Commit 1e9fd07

Browse files
committed
---
yaml --- r: 130493 b: refs/heads/try c: f3f038c h: refs/heads/master i: 130491: eacd7fc v: v3
1 parent 9b205e3 commit 1e9fd07

Some content is hidden

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

62 files changed

+99
-94
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: c964cb229bd342bdeb0b4506c3a6d32b03e575f6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 67b97ab6d2b7de9b69fd97dc171fcf8feec932ff
5-
refs/heads/try: d3e7922ddd5f2abfa4d5139e8bca5fab3e796f33
5+
refs/heads/try: f3f038c8566560e7367e0615d17ba104b71f6d8a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// except according to those terms.
1010

1111
#[cfg(rustdoc)]
12-
extern crate "rustdoc" as this;
12+
extern crate this = "rustdoc";
1313

1414
#[cfg(rustc)]
15-
extern crate "rustc" as this;
15+
extern crate this = "rustc";
1616

1717
fn main() { this::main() }

branches/try/src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ pub trait Set<T>: Collection {
289289
}
290290

291291
/// A mutable collection of values which are distinct from one another that
292-
/// can be mutated.
292+
/// can be mutaed.
293293
pub trait MutableSet<T>: Set<T> + Mutable {
294294
/// Adds a value to the set. Returns `true` if the value was not already
295295
/// present in the set.

branches/try/src/libcollections/ringbuf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<T> RingBuf<T> {
132132
elts: Vec::from_fn(cmp::max(MINIMUM_CAPACITY, n), |_| None)}
133133
}
134134

135-
/// Retrieve an element in the `RingBuf` by index.
135+
/// Retrieva an element in the `RingBuf` by index.
136136
///
137137
/// Fails if there is no element with the given index.
138138
///

branches/try/src/libcollections/smallintmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl<V:Clone> SmallIntMap<V> {
324324
/// Updates a value in the map. If the key already exists in the map,
325325
/// modifies the value with `ff` taking `oldval, newval`.
326326
/// Otherwise, sets the value to `newval`.
327-
/// Returns `true` if the key did not already exist in the map.
327+
/// Returasn `true` if the key did not already exist in the map.
328328
///
329329
/// # Example
330330
///

branches/try/src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
//!
4545
//! # Representation
4646
//!
47-
//! Rust's string type, `str`, is a sequence of Unicode scalar values encoded as a
47+
//! Rust's string type, `str`, is a sequence of unicode scalar values encoded as a
4848
//! stream of UTF-8 bytes. All strings are guaranteed to be validly encoded UTF-8
4949
//! sequences. Additionally, strings are not null-terminated and can contain null
5050
//! bytes.

branches/try/src/libcore/char.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub fn escape_unicode(c: char, f: |char|) {
201201
/// - Tab, CR and LF are escaped as '\t', '\r' and '\n' respectively.
202202
/// - Single-quote, double-quote and backslash chars are backslash-escaped.
203203
/// - Any other chars in the range [0x20,0x7e] are not escaped.
204-
/// - Any other chars are given hex Unicode escapes; see `escape_unicode`.
204+
/// - Any other chars are given hex unicode escapes; see `escape_unicode`.
205205
///
206206
pub fn escape_default(c: char, f: |char|) {
207207
match c {
@@ -290,7 +290,7 @@ pub trait Char {
290290
/// * Single-quote, double-quote and backslash chars are backslash-
291291
/// escaped.
292292
/// * Any other chars in the range [0x20,0x7e] are not escaped.
293-
/// * Any other chars are given hex Unicode escapes; see `escape_unicode`.
293+
/// * Any other chars are given hex unicode escapes; see `escape_unicode`.
294294
fn escape_default(&self, f: |char|);
295295

296296
/// Returns the amount of bytes this character would need if encoded in

branches/try/src/libcore/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ extern "rust-intrinsic" {
311311

312312
/// Gives the address for the return value of the enclosing function.
313313
///
314-
/// Using this intrinsic in a function that does not use an out pointer
314+
/// Using this instrinsic in a function that does not use an out pointer
315315
/// will trigger a compiler error.
316316
pub fn return_address() -> *const u8;
317317

branches/try/src/libcore/str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ pub trait StrSlice<'a> {
11281128
fn contains_char(&self, needle: char) -> bool;
11291129

11301130
/// An iterator over the characters of `self`. Note, this iterates
1131-
/// over Unicode code-points, not Unicode graphemes.
1131+
/// over unicode code-points, not unicode graphemes.
11321132
///
11331133
/// # Example
11341134
///
@@ -1505,7 +1505,7 @@ pub trait StrSlice<'a> {
15051505
/// Pluck a character out of a string and return the index of the next
15061506
/// character.
15071507
///
1508-
/// This function can be used to iterate over the Unicode characters of a
1508+
/// This function can be used to iterate over the unicode characters of a
15091509
/// string.
15101510
///
15111511
/// # Example
@@ -1549,7 +1549,7 @@ pub trait StrSlice<'a> {
15491549
/// # Return value
15501550
///
15511551
/// A record {ch: char, next: uint} containing the char value and the byte
1552-
/// index of the next Unicode character.
1552+
/// index of the next unicode character.
15531553
///
15541554
/// # Failure
15551555
///
@@ -1559,7 +1559,7 @@ pub trait StrSlice<'a> {
15591559

15601560
/// Given a byte position and a str, return the previous char and its position.
15611561
///
1562-
/// This function can be used to iterate over a Unicode string in reverse.
1562+
/// This function can be used to iterate over a unicode string in reverse.
15631563
///
15641564
/// Returns 0 for next index if called on start index 0.
15651565
///

branches/try/src/liblibc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* definitions common-to-all (held in modules named c95, c99, posix88, posix01
6666
* and posix08) and definitions that appear only on *some* platforms (named
6767
* 'extra'). This would be things like significant OSX foundation kit, or Windows
68-
* library kernel32.dll, or various fancy glibc, Linux or BSD extensions.
68+
* library kernel32.dll, or various fancy glibc, linux or BSD extensions.
6969
*
7070
* In addition to the per-platform 'extra' modules, we define a module of
7171
* 'common BSD' libc routines that never quite made it into POSIX but show up

branches/try/src/libnative/io/net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,8 @@ impl rtio::RtioUdpSocket for UdpSocket {
901901
//
902902
// It turns out that there's this nifty MSG_DONTWAIT flag which can be passed to
903903
// send/recv, but the niftiness wears off once you realize it only works well on
904-
// Linux [1] [2]. This means that it's pretty easy to get a nonblocking
905-
// operation on Linux (no flag fiddling, no affecting other objects), but not on
904+
// linux [1] [2]. This means that it's pretty easy to get a nonblocking
905+
// operation on linux (no flag fiddling, no affecting other objects), but not on
906906
// other platforms.
907907
//
908908
// To work around this constraint on other platforms, we end up using the
@@ -922,7 +922,7 @@ impl rtio::RtioUdpSocket for UdpSocket {
922922
// operations performed in the lock are *nonblocking* to avoid holding the mutex
923923
// forever.
924924
//
925-
// So, in summary, Linux uses MSG_DONTWAIT and doesn't need mutexes, everyone
925+
// So, in summary, linux uses MSG_DONTWAIT and doesn't need mutexes, everyone
926926
// else uses O_NONBLOCK and mutexes with some trickery to make sure blocking
927927
// reads/writes are still blocking.
928928
//

branches/try/src/libnative/io/pipe_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ impl UnixAcceptor {
655655
// using the original server pipe.
656656
let handle = self.listener.handle;
657657

658-
// If we've had an artificial call to close_accept, be sure to never
658+
// If we've had an artifical call to close_accept, be sure to never
659659
// proceed in accepting new clients in the future
660660
if self.inner.closed.load(atomic::SeqCst) { return Err(util::eof()) }
661661

branches/try/src/libnative/io/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl rtio::RtioProcess for Process {
151151
#[cfg(unix)] use libc::EINVAL as ERROR;
152152
#[cfg(windows)] use libc::ERROR_NOTHING_TO_TERMINATE as ERROR;
153153

154-
// On Linux (and possibly other unices), a process that has exited will
154+
// On linux (and possibly other unices), a process that has exited will
155155
// continue to accept signals because it is "defunct". The delivery of
156156
// signals will only fail once the child has been reaped. For this
157157
// reason, if the process hasn't exited yet, then we attempt to collect

branches/try/src/libnative/io/timer_unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Timers for non-Linux/non-Windows OSes
11+
//! Timers for non-linux/non-windows OSes
1212
//!
1313
//! This module implements timers with a worker thread, select(), and a lot of
1414
//! witchcraft that turns out to be horribly inaccurate timers. The unfortunate
1515
//! part is that I'm at a loss of what else to do one these OSes. This is also
16-
//! why Linux has a specialized timerfd implementation and windows has its own
16+
//! why linux has a specialized timerfd implementation and windows has its own
1717
//! implementation (they're more accurate than this one).
1818
//!
1919
//! The basic idea is that there is a worker thread that's communicated to via a

branches/try/src/libnative/io/tty_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! This module contains the implementation of a Windows specific console TTY.
1616
//! Also converts between UTF-16 and UTF-8. Windows has very poor support for
1717
//! UTF-8 and some functions will fail. In particular ReadFile and ReadConsole
18-
//! will fail when the codepage is set to UTF-8 and a Unicode character is
18+
//! will fail when the codepage is set to UTF-8 and a unicode character is
1919
//! entered.
2020
//!
2121
//! FIXME

branches/try/src/libregex/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
#![deny(missing_doc)]
373373

374374
#[cfg(test)]
375-
extern crate "test" as stdtest;
375+
extern crate stdtest = "test";
376376
#[cfg(test)]
377377
extern crate rand;
378378

@@ -381,7 +381,7 @@ extern crate rand;
381381
#[cfg(test)]
382382
extern crate regex;
383383

384-
// Unicode tables for character classes are defined in libunicode
384+
// unicode tables for character classes are defined in libunicode
385385
extern crate unicode;
386386

387387
pub use parse::Error;

branches/try/src/libregex/parse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ impl<'a> Parser<'a> {
620620
}
621621
}
622622

623-
// Parses a Unicode character class name, either of the form \pF where
624-
// F is a one letter Unicode class name or of the form \p{name} where
625-
// name is the Unicode class name.
623+
// Parses a unicode character class name, either of the form \pF where
624+
// F is a one letter unicode class name or of the form \p{name} where
625+
// name is the unicode class name.
626626
// Assumes that \p or \P has been read (and 'p' or 'P' is the current
627627
// character).
628628
fn parse_unicode_name(&mut self) -> Result<Ast, Error> {

branches/try/src/libregex/vm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl<'t> CharReader<'t> {
364364
}
365365

366366
/// Sets the previous and current character given any arbitrary byte
367-
/// index (at a Unicode codepoint boundary).
367+
/// index (at a unicode codepoint boundary).
368368
#[inline]
369369
pub fn set(&mut self, ic: uint) -> uint {
370370
self.prev = None;

branches/try/src/librustc/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ fn add_upstream_rust_crates(cmd: &mut Command, sess: &Session,
17481748
//
17491749
// We must continue to link to the upstream archives to be sure
17501750
// to pull in native static dependencies. As the final caveat,
1751-
// on Linux it is apparently illegal to link to a blank archive,
1751+
// on linux it is apparently illegal to link to a blank archive,
17521752
// so if an archive no longer has any object files in it after
17531753
// we remove `lib.o`, then don't link against it at all.
17541754
//

branches/try/src/librustc/back/lto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub fn run(sess: &session::Session, llmod: ModuleRef,
162162

163163
"verify".with_c_str(|s| llvm::LLVMRustAddPass(pm, s));
164164

165-
time(sess.time_passes(), "LTO passes", (), |()|
165+
time(sess.time_passes(), "LTO pases", (), |()|
166166
llvm::LLVMRunPassManager(pm, llmod));
167167

168168
llvm::LLVMDisposePassManager(pm);

branches/try/src/librustc/front/std_inject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct StandardLibraryInjector<'a> {
6262
impl<'a> fold::Folder for StandardLibraryInjector<'a> {
6363
fn fold_crate(&mut self, mut krate: ast::Crate) -> ast::Crate {
6464

65-
// The name to use in `extern crate "name" as std;`
65+
// The name to use in `extern crate std = "name";`
6666
let actual_crate_name = match self.sess.opts.alt_std_name {
6767
Some(ref s) => token::intern_and_get_ident(s.as_slice()),
6868
None => token::intern_and_get_ident("std"),

branches/try/src/librustc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ extern crate flate;
4242
extern crate getopts;
4343
extern crate graphviz;
4444
extern crate libc;
45-
extern crate "rustc_llvm" as llvm;
46-
extern crate "rustc_back" as rustc_back;
45+
extern crate llvm = "rustc_llvm";
46+
extern crate rustc_back = "rustc_back";
4747
extern crate serialize;
4848
extern crate rbml;
4949
extern crate time;

branches/try/src/librustc/middle/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use std::gc::{Gc, GC};
5656
// copies of general constants
5757
//
5858
// (in theory, probably not at first: if/match on integer-const
59-
// conditions / discriminants)
59+
// conditions / descriminants)
6060
//
6161
// - Non-constants: everything else.
6262
//

branches/try/src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ pub fn load_ty(cx: &Block, ptr: ValueRef, t: ty::t) -> ValueRef {
10681068
} else if ty::type_is_bool(t) {
10691069
Trunc(cx, LoadRangeAssert(cx, ptr, 0, 2, llvm::False), Type::i1(cx.ccx()))
10701070
} else if ty::type_is_char(t) {
1071-
// a char is a Unicode codepoint, and so takes values from 0
1071+
// a char is a unicode codepoint, and so takes values from 0
10721072
// to 0x10FFFF inclusive only.
10731073
LoadRangeAssert(cx, ptr, 0, 0x10FFFF + 1, llvm::False)
10741074
} else {

branches/try/src/librustc/middle/trans/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ pub fn finalize(cx: &CrateContext) {
740740
"Dwarf Version".with_c_str(
741741
|s| llvm::LLVMRustAddModuleFlag(cx.llmod, s, 2));
742742
} else {
743-
// FIXME(#13611) this is a kludge fix because the Linux bots have
743+
// FIXME(#13611) this is a kludge fix because the linux bots have
744744
// gdb 7.4 which doesn't understand dwarf4, we should
745745
// do something more graceful here.
746746
"Dwarf Version".with_c_str(

branches/try/src/librustc/middle/trans/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ pub fn trans_adt<'a>(mut bcx: &'a Block<'a>,
13861386
}
13871387
}
13881388

1389-
// Now, we just overwrite the fields we've explicitly specified
1389+
// Now, we just overwrite the fields we've explicity specified
13901390
for &(i, ref e) in fields.iter() {
13911391
let dest = adt::trans_field_ptr(bcx, &*repr, addr, discr, i);
13921392
let e_ty = expr_ty_adjusted(bcx, &**e);

branches/try/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ pub enum sty {
903903
/// Substs here, possibly against intuition, *may* contain `ty_param`s.
904904
/// That is, even after substitution it is possible that there are type
905905
/// variables. This happens when the `ty_enum` corresponds to an enum
906-
/// definition and not a concrete use of it. To get the correct `ty_enum`
906+
/// definition and not a concerete use of it. To get the correct `ty_enum`
907907
/// from the tcx, use the `NodeId` from the `ast::Ty` and look it up in
908908
/// the `ast_ty_to_ty_cache`. This is probably true for `ty_struct` as
909909
/// well.`

branches/try/src/librustc/util/snapshot_vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ impl<T,U,D:SnapshotVecDelegate<T,U>> SnapshotVec<T,U,D> {
148148
match self.undo_log.pop().unwrap() {
149149
OpenSnapshot => {
150150
// This indicates a failure to obey the stack discipline.
151-
fail!("Cannot rollback an uncommitted snapshot");
151+
fail!("Cannot rollback an uncommited snapshot");
152152
}
153153

154154
CommittedSnapshot => {
155155
// This occurs when there are nested snapshots and
156-
// the inner is committed but outer is rolled back.
156+
// the inner is commited but outer is rolled back.
157157
}
158158

159159
NewElem(i) => {

branches/try/src/librustc_back/x86_64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn get_target_strs(target_triple: String, target_os: abi::Os) -> target_strs
3030
}
3131

3232
abi::OsWindows => {
33-
// FIXME: Test this. Copied from Linux (#2398)
33+
// FIXME: Test this. Copied from linux (#2398)
3434
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-\
3535
f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-\
3636
s0:64:64-f80:128:128-n8:16:32:64-S128".to_string()

branches/try/src/librustdoc/html/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ impl Context {
11551155

11561156
// We have a huge number of calls to write, so try to alleviate some
11571157
// of the pain by using a buffered writer instead of invoking the
1158-
// write syscall all the time.
1158+
// write sycall all the time.
11591159
let mut writer = BufferedWriter::new(w);
11601160
if !cx.render_redirect_pages {
11611161
try!(layout::render(&mut writer, &cx.layout, &page,

branches/try/src/librustdoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern crate libc;
2323
extern crate rustc;
2424
extern crate serialize;
2525
extern crate syntax;
26-
extern crate "test" as testing;
26+
extern crate testing = "test";
2727
extern crate time;
2828
#[phase(plugin, link)] extern crate log;
2929

branches/try/src/librustdoc/stability_summary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! This module crawls a `clean::Crate` and produces a summarization of the
1212
//! stability levels within the crate. The summary contains the module
1313
//! hierarchy, with item counts for every stability level per module. A parent
14-
//! module's count includes its children's.
14+
//! module's count includes its childrens's.
1515
1616
use std::ops::Add;
1717
use std::num::Zero;

branches/try/src/librustrt/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//! the processes `argc` and `argv` arguments to be stored
1515
//! in a globally-accessible location for use by the `os` module.
1616
//!
17-
//! Only valid to call on Linux. Mac and Windows use syscalls to
17+
//! Only valid to call on linux. Mac and Windows use syscalls to
1818
//! discover the command line arguments.
1919
//!
2020
//! FIXME #7756: Would be nice for this to not exist.

branches/try/src/librustrt/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ string types are *not* null terminated.
1919
2020
The other problem with translating Rust strings to C strings is that Rust
2121
strings can validly contain a null-byte in the middle of the string (0 is a
22-
valid Unicode codepoint). This means that not all Rust strings can actually be
22+
valid unicode codepoint). This means that not all Rust strings can actually be
2323
translated to C strings.
2424
2525
# Creation of a C string

branches/try/src/librustrt/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern crate alloc;
2727
extern crate libc;
2828
extern crate collections;
2929

30-
#[cfg(test)] extern crate "rustrt" as realrustrt;
30+
#[cfg(test)] extern crate realrustrt = "rustrt";
3131
#[cfg(test)] extern crate test;
3232
#[cfg(test)] extern crate native;
3333

0 commit comments

Comments
 (0)