Skip to content

Commit 6f14064

Browse files
committed
---
yaml --- r: 92307 b: refs/heads/auto c: 5553410 h: refs/heads/master i: 92305: ca7ba36 92303: b386800 v: v3
1 parent 566869a commit 6f14064

File tree

132 files changed

+91
-319
lines changed

Some content is hidden

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

132 files changed

+91
-319
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 09bfb3b47383d566a5bbf5aef9429e5c24a93b6d
16+
refs/heads/auto: 55534100ce175143e2c7223100b825bf130e750b
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/configure

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ then
469469
PV_MINOR=${PV_MAJOR_MINOR#* }
470470
if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
471471
then
472-
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473-
BAD_PANDOC=1
472+
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473+
BAD_PANDOC=1
474474
fi
475475
fi
476476

@@ -544,24 +544,12 @@ then
544544
putvar CFG_ENABLE_CLANG
545545
fi
546546

547+
547548
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
548549
then
549550
err "either clang or gcc is required"
550551
fi
551552

552-
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
553-
# system, so if we find that gcc is clang, we should just use clang directly.
554-
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
555-
then
556-
CFG_OSX_GCC_VERSION=$("$CFG_GCC" --version 2>&1 | grep "Apple LLVM version")
557-
if [ $? -eq 0 ]
558-
then
559-
step_msg "on OS X 10.9, forcing use of clang"
560-
CFG_ENABLE_CLANG=1
561-
putvar CFG_ENABLE_CLANG
562-
fi
563-
fi
564-
565553
if [ ! -z "$CFG_LLVM_ROOT" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
566554
then
567555
step_msg "using custom LLVM at $CFG_LLVM_ROOT"
@@ -570,20 +558,20 @@ then
570558
LLVM_VERSION=$($LLVM_CONFIG --version)
571559

572560
case $LLVM_VERSION in
573-
(3.3|3.3svn|3.2|3.2svn)
574-
msg "found ok version of LLVM: $LLVM_VERSION"
575-
;;
576-
(*)
577-
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
578-
;;
561+
(3.3|3.3svn|3.2|3.2svn)
562+
msg "found ok version of LLVM: $LLVM_VERSION"
563+
;;
564+
(*)
565+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
566+
;;
579567
esac
580568
fi
581569

582570
if [ ! -z "$CFG_ENABLE_CLANG" ]
583571
then
584572
if [ -z "$CFG_CLANG" ]
585573
then
586-
err "clang requested but not found"
574+
err "clang requested but not found"
587575
fi
588576
CFG_CLANG_VERSION=$("$CFG_CLANG" \
589577
--version \

branches/auto/src/librustc/front/feature_gate.rs

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ impl Context {
7777
}
7878
}
7979

80-
fn gate_box(&self, span: Span) {
81-
self.gate_feature("managed_boxes", span,
82-
"The managed box syntax is being replaced by the \
83-
`std::gc::Gc` and `std::rc::Rc` types. Equivalent \
84-
functionality to managed trait objects will be \
85-
implemented but is currently missing.");
86-
}
87-
8880
fn has_feature(&self, feature: &str) -> bool {
8981
self.features.iter().any(|n| n.as_slice() == feature)
9082
}
@@ -180,24 +172,17 @@ impl Visitor<()> for Context {
180172
experimental and likely to be removed");
181173

182174
},
183-
ast::ty_box(_) => { self.gate_box(t.span); }
175+
ast::ty_box(_) => {
176+
self.gate_feature("managed_boxes", t.span,
177+
"The managed box syntax is being replaced by the `std::gc::Gc` \
178+
and `std::rc::Rc` types. Equivalent functionality to managed \
179+
trait objects will be implemented but is currently missing.");
180+
}
184181
_ => {}
185182
}
186183

187184
visit::walk_ty(self, t, ());
188185
}
189-
190-
fn visit_expr(&mut self, e: @ast::Expr, _: ()) {
191-
match e.node {
192-
ast::ExprUnary(_, ast::UnBox(..), _) |
193-
ast::ExprVstore(_, ast::ExprVstoreBox) |
194-
ast::ExprVstore(_, ast::ExprVstoreMutBox) => {
195-
self.gate_box(e.span);
196-
}
197-
_ => {}
198-
}
199-
visit::walk_expr(self, e, ());
200-
}
201186
}
202187

203188
pub fn check_crate(sess: Session, crate: &ast::Crate) {

branches/auto/src/librustc/middle/lint.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -770,21 +770,9 @@ fn check_heap_type(cx: &Context, span: Span, ty: ty::t) {
770770
let mut n_uniq = 0;
771771
ty::fold_ty(cx.tcx, ty, |t| {
772772
match ty::get(t).sty {
773-
ty::ty_box(_) | ty::ty_estr(ty::vstore_box) |
774-
ty::ty_evec(_, ty::vstore_box) |
775-
ty::ty_trait(_, _, ty::BoxTraitStore, _, _) => {
776-
n_box += 1;
777-
}
778-
ty::ty_uniq(_) | ty::ty_estr(ty::vstore_uniq) |
779-
ty::ty_evec(_, ty::vstore_uniq) |
780-
ty::ty_trait(_, _, ty::UniqTraitStore, _, _) => {
781-
n_uniq += 1;
782-
}
783-
ty::ty_closure(ref c) if c.sigil == ast::OwnedSigil => {
784-
n_uniq += 1;
785-
}
786-
787-
_ => ()
773+
ty::ty_box(_) => n_box += 1,
774+
ty::ty_uniq(_) => n_uniq += 1,
775+
_ => ()
788776
};
789777
t
790778
});

branches/auto/src/librustdoc/clean.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ pub struct Crate {
7373

7474
impl Clean<Crate> for visit_ast::RustdocVisitor {
7575
fn clean(&self) -> Crate {
76-
use syntax::attr::find_pkgid;
76+
use syntax::attr::{find_linkage_metas, last_meta_item_value_str_by_name};
77+
let maybe_meta = last_meta_item_value_str_by_name(
78+
find_linkage_metas(self.attrs), "name");
7779
let cx = local_data::get(super::ctxtkey, |x| *x.unwrap());
7880

7981
let mut externs = HashMap::new();
@@ -82,9 +84,10 @@ impl Clean<Crate> for visit_ast::RustdocVisitor {
8284
});
8385

8486
Crate {
85-
name: match find_pkgid(self.attrs) {
86-
Some(n) => n.name,
87-
None => fail!("rustdoc requires a `pkgid` crate attribute"),
87+
name: match maybe_meta {
88+
Some(x) => x.to_owned(),
89+
None => fail!("rustdoc requires a \\#[link(name=\"foo\")] \
90+
crate attribute"),
8891
},
8992
module: Some(self.module.clean()),
9093
externs: externs,

branches/auto/src/librustpkg/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub fn compile_input(context: &BuildContext,
300300
pkg_id.version.to_str()).to_managed());
301301

302302
debug!("pkgid attr: {:?}", pkgid_attr);
303-
crate.attrs.push(attr::mk_attr(pkgid_attr));
303+
crate.attrs = ~[attr::mk_attr(pkgid_attr)];
304304
}
305305

306306
debug!("calling compile_crate_from_input, workspace = {},

branches/auto/src/libstd/cell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<T> RefCell<T> {
8181

8282
/// Mutably borrows the wrapped value.
8383
///
84-
/// The borrow lasts untile the returned `RefMut` exits scope. The value
84+
/// The borrow lasts until the returned `RefMut` exits scope. The value
8585
/// cannot be borrowed while this borrow is active.
8686
///
8787
/// Returns `None` if the value is currently borrowed.
@@ -98,7 +98,7 @@ impl<T> RefCell<T> {
9898

9999
/// Mutably borrows the wrapped value.
100100
///
101-
/// The borrow lasts untile the returned `RefMut` exits scope. The value
101+
/// The borrow lasts until the returned `RefMut` exits scope. The value
102102
/// cannot be borrowed while this borrow is active.
103103
///
104104
/// # Failure

branches/auto/src/libstd/char.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ fn decompose_hangul(s: char, f: |char|) {
256256
}
257257
}
258258

259-
/// Returns the canonical decompostion of a character
259+
/// Returns the canonical decomposition of a character.
260260
pub fn decompose_canonical(c: char, f: |char|) {
261261
if (c as uint) < S_BASE || (c as uint) >= (S_BASE + S_COUNT) {
262262
decompose::canonical(c, f);
@@ -265,7 +265,7 @@ pub fn decompose_canonical(c: char, f: |char|) {
265265
}
266266
}
267267

268-
/// Returns the compatibility decompostion of a character
268+
/// Returns the compatibility decomposition of a character.
269269
pub fn decompose_compatible(c: char, f: |char|) {
270270
if (c as uint) < S_BASE || (c as uint) >= (S_BASE + S_COUNT) {
271271
decompose::compatibility(c, f);

branches/auto/src/libstd/clone.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub trait Clone {
3333
/// Perform copy-assignment from `source`.
3434
///
3535
/// `a.clone_from(&b)` is equivalent to `a = b.clone()` in functionality,
36-
/// but can be overriden to reuse the resources of `a` to avoid unnecessary
36+
/// but can be overridden to reuse the resources of `a` to avoid unnecessary
3737
/// allocations.
3838
#[inline(always)]
3939
fn clone_from(&mut self, source: &Self) {
@@ -141,7 +141,7 @@ pub trait DeepClone: Clone {
141141
/// Perform deep copy-assignment from `source`.
142142
///
143143
/// `a.deep_clone_from(&b)` is equivalent to `a = b.deep_clone()` in
144-
/// functionality, but can be overriden to reuse the resources of `a` to
144+
/// functionality, but can be overridden to reuse the resources of `a` to
145145
/// avoid unnecessary allocations.
146146
#[inline(always)]
147147
fn deep_clone_from(&mut self, source: &Self) {

branches/auto/src/libstd/condition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct Handler<T, U> {
8181
/// the condition (useful for debugging).
8282
///
8383
/// This struct should never be created directly, but rather only through the
84-
/// `condition!` macro provided to all libraries using libstd.
84+
/// `condition!` macro provided to all libraries using `std`.
8585
pub struct Condition<T, U> {
8686
/// Name of the condition handler
8787
name: &'static str,

branches/auto/src/libstd/fmt/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ pub fn writeln(output: &mut io::Writer, args: &Arguments) {
606606
/// See the documentation for `format` for why this function is unsafe and care
607607
/// should be taken if calling it manually.
608608
///
609-
/// Thankfully the rust compiler provides the macro `fmtf!` which will perform
610-
/// all of this validation at compile-time and provides a safe interface for
611-
/// invoking this function.
609+
/// Thankfully the rust compiler provides macros like `write!` and
610+
/// `format_args!` which perform all of this validation at compile-time
611+
/// and provide a safe interface for invoking this function.
612612
///
613613
/// # Arguments
614614
///

branches/auto/src/libstd/io/buffered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ impl<W: Writer> Decorator<W> for BufferedWriter<W> {
202202
fn inner_mut_ref<'a>(&'a mut self) -> &'a mut W { &mut self.inner }
203203
}
204204

205-
/// Wraps a Writer and buffers output to it, flushing whenever a newline (0xa,
206-
/// '\n') is detected.
205+
/// Wraps a Writer and buffers output to it, flushing whenever a newline (`0x0a`,
206+
/// `'\n'`) is detected.
207207
///
208208
/// Note that this structure does NOT flush the output when dropped.
209209
pub struct LineBufferedWriter<W> {

branches/auto/src/libstd/io/fs.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ pub fn unlink(path: &Path) {
249249
/// directory, etc. This function will traverse symlinks to query
250250
/// information about the destination file.
251251
///
252-
/// Returns a fully-filled out stat structure on succes, and on failure it
252+
/// Returns a fully-filled out stat structure on success, and on failure it
253253
/// will return a dummy stat structure (it is expected that the condition
254254
/// raised is handled as well).
255255
///
@@ -342,7 +342,7 @@ pub fn rename(from: &Path, to: &Path) {
342342
///
343343
/// # Errors
344344
///
345-
/// Will raise an `io_error` condition is the following situtations, but is
345+
/// Will raise an `io_error` condition is the following situations, but is
346346
/// not limited to just these cases:
347347
///
348348
/// * The `from` path is not a file
@@ -391,7 +391,7 @@ pub fn copy(from: &Path, to: &Path) {
391391
///
392392
/// # Errors
393393
///
394-
/// If this funciton encounters an I/O error, it will raise on the `io_error`
394+
/// If this function encounters an I/O error, it will raise on the `io_error`
395395
/// condition. Some possible error situations are not having the permission to
396396
/// change the attributes of a file or the file not existing.
397397
pub fn chmod(path: &Path, mode: io::FilePermission) {
@@ -402,7 +402,7 @@ pub fn chmod(path: &Path, mode: io::FilePermission) {
402402
///
403403
/// # Errors
404404
///
405-
/// This funtion will raise on the `io_error` condition on failure.
405+
/// This function will raise on the `io_error` condition on failure.
406406
pub fn chown(path: &Path, uid: int, gid: int) {
407407
io_raise(|io| io.fs_chown(&path.to_c_str(), uid, gid));
408408
}
@@ -448,7 +448,7 @@ pub fn readlink(path: &Path) -> Option<Path> {
448448
///
449449
/// let p = Path::new("/some/dir");
450450
/// fs::mkdir(&p, S_IRWXU as int);
451-
/// // If we got here, our directory exists! Horray!
451+
/// // If we got here, our directory exists! Hooray!
452452
///
453453
/// # Errors
454454
///
@@ -665,7 +665,7 @@ impl path::Path {
665665
io::result(|| self.stat()).is_ok()
666666
}
667667

668-
/// Whether the underlying implemention (be it a file path, or something
668+
/// Whether the underlying implementation (be it a file path, or something
669669
/// else) points at a "regular file" on the FS. Will return false for paths
670670
/// to non-existent locations or directories or other non-regular files
671671
/// (named pipes, etc).
@@ -680,7 +680,7 @@ impl path::Path {
680680
}
681681
}
682682

683-
/// Whether the underlying implemention (be it a file path,
683+
/// Whether the underlying implementation (be it a file path,
684684
/// or something else) is pointing at a directory in the underlying FS.
685685
/// Will return false for paths to non-existent locations or if the item is
686686
/// not a directory (eg files, named pipes, links, etc)

branches/auto/src/libstd/io/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ pub trait Writer {
835835
/// Flush this output stream, ensuring that all intermediately buffered
836836
/// contents reach their destination.
837837
///
838-
/// This is by default a no-op and implementors of the `Writer` trait should
838+
/// This is by default a no-op and implementers of the `Writer` trait should
839839
/// decide whether their stream needs to be buffered or not.
840840
fn flush(&mut self) {}
841841

@@ -1057,7 +1057,7 @@ pub trait Buffer: Reader {
10571057
}
10581058
}
10591059

1060-
/// Reads a sequence of bytes leading up to a specified delimeter. Once the
1060+
/// Reads a sequence of bytes leading up to a specified delimiter. Once the
10611061
/// specified byte is encountered, reading ceases and the bytes up to and
10621062
/// including the delimiter are returned.
10631063
///
@@ -1156,7 +1156,7 @@ pub trait Seek {
11561156
/// A listener is a value that can consume itself to start listening for connections.
11571157
/// Doing so produces some sort of Acceptor.
11581158
pub trait Listener<T, A: Acceptor<T>> {
1159-
/// Spin up the listener and start queueing incoming connections
1159+
/// Spin up the listener and start queuing incoming connections
11601160
///
11611161
/// # Failure
11621162
///

branches/auto/src/libstd/io/native/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Process {
5050
/// * prog - the program to run
5151
/// * args - the arguments to pass to the program, not including the program
5252
/// itself
53-
/// * env - an optional envrionment to specify for the child process. If
53+
/// * env - an optional environment to specify for the child process. If
5454
/// this value is `None`, then the child will inherit the parent's
5555
/// environment
5656
/// * cwd - an optionally specified current working directory of the child,

branches/auto/src/libstd/io/signal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub enum Signum {
3434
Break = 21i,
3535
/// Equivalent to SIGHUP, delivered when the user closes the terminal
3636
/// window. On delivery of HangUp, the program is given approximately
37-
/// 10 seconds to perfom any cleanup. After that, Windows will
37+
/// 10 seconds to perform any cleanup. After that, Windows will
3838
/// unconditionally terminate it.
3939
HangUp = 1i,
4040
/// Equivalent to SIGINT, delivered when the user presses Ctrl-c.

branches/auto/src/libstd/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Composable external iterators
1515
# The `Iterator` trait
1616
1717
This module defines Rust's core iteration trait. The `Iterator` trait has one
18-
un-implemented method, `next`. All other methods are derived through default
18+
unimplemented method, `next`. All other methods are derived through default
1919
methods to perform operations such as `zip`, `chain`, `enumerate`, and `fold`.
2020
2121
The goal of this module is to unify iteration across all containers in Rust.
@@ -1688,7 +1688,7 @@ impl<A, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Fuse<T> {
16881688

16891689
impl<T> Fuse<T> {
16901690
/// Resets the fuse such that the next call to .next() or .next_back() will
1691-
/// call the underlying iterator again even if it prevously returned None.
1691+
/// call the underlying iterator again even if it previously returned None.
16921692
#[inline]
16931693
pub fn reset_fuse(&mut self) {
16941694
self.done = false

0 commit comments

Comments
 (0)