Skip to content

Commit 190e3fc

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 180959 b: refs/heads/snap-stage3 c: 9462a20 h: refs/heads/master i: 180957: 9909395 180955: f542258 180951: d8ae60d 180943: bf6d991 180927: c220da6 v: v3
1 parent cdc10f6 commit 190e3fc

File tree

169 files changed

+2337
-4258
lines changed

Some content is hidden

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

169 files changed

+2337
-4258
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: c5db290bf6df986a6acd5ce993f278c18e55ca37
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 23306de287e74387b662a1daded526474fff3126
4+
refs/heads/snap-stage3: 9462a207ffe7ffbb922493cb4a5ed246955cd788
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/mk/docs.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,21 @@ doc/:
129129
HTML_DEPS += doc/rust.css
130130
doc/rust.css: $(D)/rust.css | doc/
131131
@$(call E, cp: $@)
132-
$(Q)cp -PRp $< $@ 2> /dev/null
132+
$(Q)cp -a $< $@ 2> /dev/null
133133

134134
HTML_DEPS += doc/favicon.inc
135135
doc/favicon.inc: $(D)/favicon.inc | doc/
136136
@$(call E, cp: $@)
137-
$(Q)cp -PRp $< $@ 2> /dev/null
137+
$(Q)cp -a $< $@ 2> /dev/null
138138

139139
doc/full-toc.inc: $(D)/full-toc.inc | doc/
140140
@$(call E, cp: $@)
141-
$(Q)cp -PRp $< $@ 2> /dev/null
141+
$(Q)cp -a $< $@ 2> /dev/null
142142

143143
HTML_DEPS += doc/footer.inc
144144
doc/footer.inc: $(D)/footer.inc | doc/
145145
@$(call E, cp: $@)
146-
$(Q)cp -PRp $< $@ 2> /dev/null
146+
$(Q)cp -a $< $@ 2> /dev/null
147147

148148
# The (english) documentation for each doc item.
149149

branches/snap-stage3/mk/tests.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ ifdef CHECK_IGNORED
3838
TESTARGS += --ignored
3939
endif
4040

41+
4142
# Arguments to the cfail/rfail/rpass/bench tests
4243
ifdef CFG_VALGRIND
4344
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
4445
endif
4546

47+
ifdef PLEASE_BENCH
48+
TESTARGS += --bench
49+
endif
50+
4651
# Arguments to the perf tests
4752
ifdef CFG_PERF_TOOL
4853
CTEST_PERF_RUNTOOL = --runtool "$(CFG_PERF_TOOL)"
4954
endif
5055

5156
CTEST_TESTARGS := $(TESTARGS)
5257

53-
# --bench is only relevant for crate tests, not for the compile tests
54-
ifdef PLEASE_BENCH
55-
TESTARGS += --bench
56-
endif
57-
5858
ifdef VERBOSE
5959
CTEST_TESTARGS += --verbose
6060
endif

branches/snap-stage3/src/doc/reference.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ All of the above extensions are expressions with values.
648648

649649
Users of `rustc` can define new syntax extensions in two ways:
650650

651-
* [Compiler plugins][plugin] can include arbitrary
651+
* [Compiler plugins](book/syntax-extensions.html) can include arbitrary
652652
Rust code that manipulates syntax trees at compile time.
653653

654654
* [Macros](book/macros.html) define new syntax in a higher-level,
@@ -818,8 +818,9 @@ item : extern_crate_decl | use_decl | mod_item | fn_item | type_item
818818
| extern_block ;
819819
```
820820

821-
An _item_ is a component of a crate. Items are organized within a crate by a
822-
nested set of [modules](#modules). Every crate has a single "outermost"
821+
An _item_ is a component of a crate; some module items can be defined in crate
822+
files, but most are defined in source files. Items are organized within a crate
823+
by a nested set of [modules](#modules). Every crate has a single "outermost"
823824
anonymous module; all further items within the crate have [paths](#paths)
824825
within the module tree of the crate.
825826

branches/snap-stage3/src/doc/trpl/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@
3737
* [Macros](macros.md)
3838
* [Compiler Plugins](plugins.md)
3939
* [Conclusion](conclusion.md)
40-
* [Glossary](glossary.md)

branches/snap-stage3/src/doc/trpl/compound-data-types.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ This pattern is very powerful, and we'll see it repeated more later.
4747

4848
There are also a few things you can do with a tuple as a whole, without
4949
destructuring. You can assign one tuple into another, if they have the same
50-
contained types and arity. Tuples have the same arity when they have the same
51-
length.
50+
arity and contained types.
5251

5352
```rust
5453
let mut x = (1, 2); // x: (i32, i32)

branches/snap-stage3/src/doc/trpl/glossary.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

branches/snap-stage3/src/doc/trpl/hello-world.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This line does all of the work in our little program. There are a number of
8989
details that are important here. The first is that it's indented with four
9090
spaces, not tabs. Please configure your editor of choice to insert four spaces
9191
with the tab key. We provide some [sample configurations for various
92-
editors](https://github.com/rust-lang/rust/tree/master/src/etc/CONFIGS.md).
92+
editors](https://github.com/rust-lang/rust/tree/master/src/etc).
9393

9494
The second point is the `println!()` part. This is calling a Rust *macro*,
9595
which is how metaprogramming is done in Rust. If it were a function instead, it

branches/snap-stage3/src/doc/trpl/plugins.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ If present, arguments passed as `#![plugin(foo(... args ...))]` are not
3939
interpreted by rustc itself. They are provided to the plugin through the
4040
`Registry`'s [`args` method](../rustc/plugin/registry/struct.Registry.html#method.args).
4141

42-
In the vast majority of cases, a plugin should *only* be used through
43-
`#![plugin]` and not through an `extern crate` item. Linking a plugin would
44-
pull in all of libsyntax and librustc as dependencies of your crate. This is
45-
generally unwanted unless you are building another plugin. The
46-
`plugin_as_library` lint checks these guidelines.
47-
48-
The usual practice is to put compiler plugins in their own crate, separate from
49-
any `macro_rules!` macros or ordinary Rust code meant to be used by consumers
50-
of a library.
51-
5242
# Syntax extensions
5343

5444
Plugins can extend Rust's syntax in various ways. One kind of syntax extension

branches/snap-stage3/src/doc/trpl/variable-bindings.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ let x: i32 = 5;
4040
If I asked you to read this out loud to the rest of the class, you'd say "`x`
4141
is a binding with the type `i32` and the value `five`."
4242

43-
In this case we chose to represent `x` as a 32-bit signed integer. Rust has
44-
many different primitive integer types. They begin with `i` for signed integers
45-
and `u` for unsigned integers. The possible integer sizes are 8, 16, 32, and 64
46-
bits.
47-
4843
In future examples, we may annotate the type in a comment. The examples will
4944
look like this:
5045

branches/snap-stage3/src/etc/CONFIGS.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

branches/snap-stage3/src/libcollections/binary_heap.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,6 @@ impl<T: Ord> FromIterator<T> for BinaryHeap<T> {
655655
}
656656
}
657657

658-
// NOTE(stage0): remove impl after a snapshot
659-
#[cfg(stage0)]
660658
impl<T: Ord> IntoIterator for BinaryHeap<T> {
661659
type IntoIter = IntoIter<T>;
662660

@@ -665,18 +663,6 @@ impl<T: Ord> IntoIterator for BinaryHeap<T> {
665663
}
666664
}
667665

668-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
669-
impl<T: Ord> IntoIterator for BinaryHeap<T> {
670-
type Item = T;
671-
type IntoIter = IntoIter<T>;
672-
673-
fn into_iter(self) -> IntoIter<T> {
674-
self.into_iter()
675-
}
676-
}
677-
678-
// NOTE(stage0): remove impl after a snapshot
679-
#[cfg(stage0)]
680666
impl<'a, T> IntoIterator for &'a BinaryHeap<T> where T: Ord {
681667
type IntoIter = Iter<'a, T>;
682668

@@ -685,16 +671,6 @@ impl<'a, T> IntoIterator for &'a BinaryHeap<T> where T: Ord {
685671
}
686672
}
687673

688-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
689-
impl<'a, T> IntoIterator for &'a BinaryHeap<T> where T: Ord {
690-
type Item = &'a T;
691-
type IntoIter = Iter<'a, T>;
692-
693-
fn into_iter(self) -> Iter<'a, T> {
694-
self.iter()
695-
}
696-
}
697-
698674
#[stable(feature = "rust1", since = "1.0.0")]
699675
impl<T: Ord> Extend<T> for BinaryHeap<T> {
700676
fn extend<Iter: Iterator<Item=T>>(&mut self, iter: Iter) {

branches/snap-stage3/src/libcollections/bit.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,6 @@ impl<'a> RandomAccessIterator for Iter<'a> {
10701070
}
10711071
}
10721072

1073-
// NOTE(stage0): remove impl after a snapshot
1074-
#[cfg(stage0)]
10751073
impl<'a> IntoIterator for &'a Bitv {
10761074
type IntoIter = Iter<'a>;
10771075

@@ -1080,16 +1078,6 @@ impl<'a> IntoIterator for &'a Bitv {
10801078
}
10811079
}
10821080

1083-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
1084-
impl<'a> IntoIterator for &'a Bitv {
1085-
type Item = bool;
1086-
type IntoIter = Iter<'a>;
1087-
1088-
fn into_iter(self) -> Iter<'a> {
1089-
self.iter()
1090-
}
1091-
}
1092-
10931081
/// An implementation of a set using a bit vector as an underlying
10941082
/// representation for holding unsigned numerical elements.
10951083
///
@@ -1894,8 +1882,6 @@ impl<'a> Iterator for SymmetricDifference<'a> {
18941882
#[inline] fn size_hint(&self) -> (usize, Option<usize>) { self.0.size_hint() }
18951883
}
18961884

1897-
// NOTE(stage0): remove impl after a snapshot
1898-
#[cfg(stage0)]
18991885
impl<'a> IntoIterator for &'a BitvSet {
19001886
type IntoIter = SetIter<'a>;
19011887

@@ -1904,16 +1890,6 @@ impl<'a> IntoIterator for &'a BitvSet {
19041890
}
19051891
}
19061892

1907-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
1908-
impl<'a> IntoIterator for &'a BitvSet {
1909-
type Item = usize;
1910-
type IntoIter = SetIter<'a>;
1911-
1912-
fn into_iter(self) -> SetIter<'a> {
1913-
self.iter()
1914-
}
1915-
}
1916-
19171893
#[cfg(test)]
19181894
mod tests {
19191895
use prelude::*;

branches/snap-stage3/src/libcollections/btree/map.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,6 @@ impl<K: Ord, V> BTreeMap<K, V> {
462462
}
463463
}
464464

465-
// NOTE(stage0): remove impl after a snapshot
466-
#[cfg(stage0)]
467465
impl<K, V> IntoIterator for BTreeMap<K, V> {
468466
type IntoIter = IntoIter<K, V>;
469467

@@ -472,18 +470,6 @@ impl<K, V> IntoIterator for BTreeMap<K, V> {
472470
}
473471
}
474472

475-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
476-
impl<K, V> IntoIterator for BTreeMap<K, V> {
477-
type Item = (K, V);
478-
type IntoIter = IntoIter<K, V>;
479-
480-
fn into_iter(self) -> IntoIter<K, V> {
481-
self.into_iter()
482-
}
483-
}
484-
485-
// NOTE(stage0): remove impl after a snapshot
486-
#[cfg(stage0)]
487473
impl<'a, K, V> IntoIterator for &'a BTreeMap<K, V> {
488474
type IntoIter = Iter<'a, K, V>;
489475

@@ -492,18 +478,6 @@ impl<'a, K, V> IntoIterator for &'a BTreeMap<K, V> {
492478
}
493479
}
494480

495-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
496-
impl<'a, K, V> IntoIterator for &'a BTreeMap<K, V> {
497-
type Item = (&'a K, &'a V);
498-
type IntoIter = Iter<'a, K, V>;
499-
500-
fn into_iter(self) -> Iter<'a, K, V> {
501-
self.iter()
502-
}
503-
}
504-
505-
// NOTE(stage0): remove impl after a snapshot
506-
#[cfg(stage0)]
507481
impl<'a, K, V> IntoIterator for &'a mut BTreeMap<K, V> {
508482
type IntoIter = IterMut<'a, K, V>;
509483

@@ -512,16 +486,6 @@ impl<'a, K, V> IntoIterator for &'a mut BTreeMap<K, V> {
512486
}
513487
}
514488

515-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
516-
impl<'a, K, V> IntoIterator for &'a mut BTreeMap<K, V> {
517-
type Item = (&'a K, &'a mut V);
518-
type IntoIter = IterMut<'a, K, V>;
519-
520-
fn into_iter(mut self) -> IterMut<'a, K, V> {
521-
self.iter_mut()
522-
}
523-
}
524-
525489
/// A helper enum useful for deciding whether to continue a loop since we can't
526490
/// return from a closure
527491
enum Continuation<A, B> {

branches/snap-stage3/src/libcollections/btree/set.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ impl<T: Ord> FromIterator<T> for BTreeSet<T> {
480480
}
481481
}
482482

483-
// NOTE(stage0): remove impl after a snapshot
484-
#[cfg(stage0)]
485483
impl<T> IntoIterator for BTreeSet<T> {
486484
type IntoIter = IntoIter<T>;
487485

@@ -490,18 +488,6 @@ impl<T> IntoIterator for BTreeSet<T> {
490488
}
491489
}
492490

493-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
494-
impl<T> IntoIterator for BTreeSet<T> {
495-
type Item = T;
496-
type IntoIter = IntoIter<T>;
497-
498-
fn into_iter(self) -> IntoIter<T> {
499-
self.into_iter()
500-
}
501-
}
502-
503-
// NOTE(stage0): remove impl after a snapshot
504-
#[cfg(stage0)]
505491
impl<'a, T> IntoIterator for &'a BTreeSet<T> {
506492
type IntoIter = Iter<'a, T>;
507493

@@ -510,16 +496,6 @@ impl<'a, T> IntoIterator for &'a BTreeSet<T> {
510496
}
511497
}
512498

513-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
514-
impl<'a, T> IntoIterator for &'a BTreeSet<T> {
515-
type Item = &'a T;
516-
type IntoIter = Iter<'a, T>;
517-
518-
fn into_iter(self) -> Iter<'a, T> {
519-
self.iter()
520-
}
521-
}
522-
523499
#[stable(feature = "rust1", since = "1.0.0")]
524500
impl<T: Ord> Extend<T> for BTreeSet<T> {
525501
#[inline]

0 commit comments

Comments
 (0)