Skip to content

Commit 80eee7a

Browse files
author
Robin Kruppe
committed
---
yaml --- r: 274914 b: refs/heads/stable c: 14e8af4 h: refs/heads/master
1 parent 785bf13 commit 80eee7a

Some content is hidden

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

90 files changed

+695
-2629
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 004c4b4b7d581f54365bc621a23106e970120f99
32+
refs/heads/stable: 14e8af410023a7de0ac46249f01288297c88388b
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*.elc
1818
*.epub
1919
*.exe
20-
*.pdb
2120
*.fn
2221
*.html
2322
*.kdev4

branches/stable/mk/cfg/i586-unknown-linux-gnu.mk

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

branches/stable/mk/tests.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,7 @@ $(3)/test/run-make/%-$(1)-T-$(2)-H-$(3).ok: \
10711071
$$(S) \
10721072
$(3) \
10731073
"$$(LLVM_LIBDIR_RUSTFLAGS_$(3))" \
1074-
"$$(LLVM_ALL_COMPONENTS_$(3))" \
1075-
"$$(LLVM_CXXFLAGS_$(3))"
1074+
"$$(LLVM_ALL_COMPONENTS_$(3))"
10761075
@touch -r $$@.start_time $$@ && rm $$@.start_time
10771076
else
10781077
# FIXME #11094 - The above rule doesn't work right for multiple targets

branches/stable/src/doc/book/concurrency.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ use std::sync::mpsc;
286286
fn main() {
287287
let data = Arc::new(Mutex::new(0));
288288

289-
// `tx` is the "transmitter" or "sender"
290-
// `rx` is the "receiver"
291289
let (tx, rx) = mpsc::channel();
292290

293291
for _ in 0..10 {

branches/stable/src/doc/book/documentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,23 +319,23 @@ our source code:
319319
```text
320320
First, we set `x` to five:
321321
322-
```rust
322+
```text
323323
let x = 5;
324324
# let y = 6;
325325
# println!("{}", x + y);
326326
```
327327
328328
Next, we set `y` to six:
329329
330-
```rust
330+
```text
331331
# let x = 5;
332332
let y = 6;
333333
# println!("{}", x + y);
334334
```
335335
336336
Finally, we print the sum of `x` and `y`:
337337
338-
```rust
338+
```text
339339
# let x = 5;
340340
# let y = 6;
341341
println!("{}", x + y);

branches/stable/src/doc/book/ownership.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ fn foo() {
5151
}
5252
```
5353

54-
When `v` comes into scope, a new [vector] is created on [the stack][stack],
55-
and it allocates space on [the heap][heap] for its elements. When `v` goes out
56-
of scope at the end of `foo()`, Rust will clean up everything related to the
57-
vector, even the heap-allocated memory. This happens deterministically, at the
58-
end of the scope.
54+
When `v` comes into scope, a new [vector] is created, and it allocates space on
55+
[the heap][heap] for each of its elements. When `v` goes out of scope at the
56+
end of `foo()`, Rust will clean up everything related to the vector, even the
57+
heap-allocated memory. This happens deterministically, at the end of the scope.
5958

6059
We'll cover [vectors] in detail later in this chapter; we only use them
6160
here as an example of a type that allocates space on the heap at runtime. They
@@ -68,7 +67,6 @@ Vectors have a [generic type][generics] `Vec<T>`, so in this example `v` will ha
6867
[arrays]: primitive-types.html#arrays
6968
[vectors]: vectors.html
7069
[heap]: the-stack-and-the-heap.html
71-
[stack]: the-stack-and-the-heap.html#the-stack
7270
[bindings]: variable-bindings.html
7371
[generics]: generics.html
7472

branches/stable/src/doc/book/using-rust-without-the-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ don’t want to use the standard library via an attribute: `#![no_std]`.
1111
> For details on binaries without the standard library, see [the nightly
1212
> chapter on `#![no_std]`](no-stdlib.html)
1313
14-
To use `#![no_std]`, add it to your crate root:
14+
To use `#![no_std]`, add a it to your crate root:
1515

1616
```rust
1717
#![no_std]

branches/stable/src/doc/uptack.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
\usepackage{newunicodechar}
2+
\newunicodechar⊥{{$\bot$}}

branches/stable/src/etc/maketest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def convert_path_spec(name, value):
4646
putenv('RUSTC', os.path.abspath(sys.argv[3]))
4747
putenv('TMPDIR', os.path.abspath(sys.argv[4]))
4848
putenv('CC', sys.argv[5] + ' ' + sys.argv[6])
49-
putenv('CFLAGS', sys.argv[6])
5049
putenv('RUSTDOC', os.path.abspath(sys.argv[7]))
5150
filt = sys.argv[8]
5251
putenv('LD_LIB_PATH_ENVVAR', sys.argv[9])
@@ -56,7 +55,6 @@ def convert_path_spec(name, value):
5655
putenv('S', os.path.abspath(sys.argv[13]))
5756
putenv('RUSTFLAGS', sys.argv[15])
5857
putenv('LLVM_COMPONENTS', sys.argv[16])
59-
putenv('LLVM_CXXFLAGS', sys.argv[17])
6058
putenv('PYTHON', sys.executable)
6159
os.putenv('TARGET', target_triple)
6260

branches/stable/src/etc/regex-match-tests.py

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

branches/stable/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl<T> Vec<T> {
528528
}
529529

530530
/// Inserts an element at position `index` within the vector, shifting all
531-
/// elements after it to the right.
531+
/// elements after position `i` one position to the right.
532532
///
533533
/// # Panics
534534
///
@@ -570,7 +570,7 @@ impl<T> Vec<T> {
570570
}
571571

572572
/// Removes and returns the element at position `index` within the vector,
573-
/// shifting all elements after it to the left.
573+
/// shifting all elements after position `index` one position to the left.
574574
///
575575
/// # Panics
576576
///

branches/stable/src/libcore/num/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,6 @@ macro_rules! int_impl {
741741
/// where `mask` removes any high-order bits of `rhs` that
742742
/// would cause the shift to exceed the bitwidth of the type.
743743
///
744-
/// Note that this is *not* the same as a rotate-left; the
745-
/// RHS of a wrapping shift-left is restricted to the range
746-
/// of the type, rather than the bits shifted out of the LHS
747-
/// being returned to the other end. The primitive integer
748-
/// types all implement a `rotate_left` function, which may
749-
/// be what you want instead.
750-
///
751744
/// # Examples
752745
///
753746
/// Basic usage:
@@ -766,13 +759,6 @@ macro_rules! int_impl {
766759
/// where `mask` removes any high-order bits of `rhs` that
767760
/// would cause the shift to exceed the bitwidth of the type.
768761
///
769-
/// Note that this is *not* the same as a rotate-right; the
770-
/// RHS of a wrapping shift-right is restricted to the range
771-
/// of the type, rather than the bits shifted out of the LHS
772-
/// being returned to the other end. The primitive integer
773-
/// types all implement a `rotate_right` function, which may
774-
/// be what you want instead.
775-
///
776762
/// # Examples
777763
///
778764
/// Basic usage:

branches/stable/src/librustc_back/target/i586_unknown_linux_gnu.rs

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

branches/stable/src/librustc_back/target/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ macro_rules! supported_targets {
8989
supported_targets! {
9090
("x86_64-unknown-linux-gnu", x86_64_unknown_linux_gnu),
9191
("i686-unknown-linux-gnu", i686_unknown_linux_gnu),
92-
("i586-unknown-linux-gnu", i586_unknown_linux_gnu),
9392
("mips-unknown-linux-gnu", mips_unknown_linux_gnu),
9493
("mipsel-unknown-linux-gnu", mipsel_unknown_linux_gnu),
9594
("powerpc-unknown-linux-gnu", powerpc_unknown_linux_gnu),

branches/stable/src/librustc_front/lowering.rs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -913,29 +913,26 @@ pub fn lower_pat(lctx: &LoweringContext, p: &Pat) -> P<hir::Pat> {
913913
P(hir::Pat {
914914
id: p.id,
915915
node: match p.node {
916-
PatKind::Wild => hir::PatWild,
917-
PatKind::Ident(ref binding_mode, pth1, ref sub) => {
916+
PatWild => hir::PatWild,
917+
PatIdent(ref binding_mode, pth1, ref sub) => {
918918
hir::PatIdent(lower_binding_mode(lctx, binding_mode),
919919
respan(pth1.span, lower_ident(lctx, pth1.node)),
920920
sub.as_ref().map(|x| lower_pat(lctx, x)))
921921
}
922-
PatKind::Lit(ref e) => hir::PatLit(lower_expr(lctx, e)),
923-
PatKind::TupleStruct(ref pth, ref pats) => {
922+
PatLit(ref e) => hir::PatLit(lower_expr(lctx, e)),
923+
PatEnum(ref pth, ref pats) => {
924924
hir::PatEnum(lower_path(lctx, pth),
925925
pats.as_ref()
926926
.map(|pats| pats.iter().map(|x| lower_pat(lctx, x)).collect()))
927927
}
928-
PatKind::Path(ref pth) => {
929-
hir::PatEnum(lower_path(lctx, pth), Some(hir::HirVec::new()))
930-
}
931-
PatKind::QPath(ref qself, ref pth) => {
928+
PatQPath(ref qself, ref pth) => {
932929
let qself = hir::QSelf {
933930
ty: lower_ty(lctx, &qself.ty),
934931
position: qself.position,
935932
};
936933
hir::PatQPath(qself, lower_path(lctx, pth))
937934
}
938-
PatKind::Struct(ref pth, ref fields, etc) => {
935+
PatStruct(ref pth, ref fields, etc) => {
939936
let pth = lower_path(lctx, pth);
940937
let fs = fields.iter()
941938
.map(|f| {
@@ -951,22 +948,20 @@ pub fn lower_pat(lctx: &LoweringContext, p: &Pat) -> P<hir::Pat> {
951948
.collect();
952949
hir::PatStruct(pth, fs, etc)
953950
}
954-
PatKind::Tup(ref elts) => {
955-
hir::PatTup(elts.iter().map(|x| lower_pat(lctx, x)).collect())
956-
}
957-
PatKind::Box(ref inner) => hir::PatBox(lower_pat(lctx, inner)),
958-
PatKind::Ref(ref inner, mutbl) => {
951+
PatTup(ref elts) => hir::PatTup(elts.iter().map(|x| lower_pat(lctx, x)).collect()),
952+
PatBox(ref inner) => hir::PatBox(lower_pat(lctx, inner)),
953+
PatRegion(ref inner, mutbl) => {
959954
hir::PatRegion(lower_pat(lctx, inner), lower_mutability(lctx, mutbl))
960955
}
961-
PatKind::Range(ref e1, ref e2) => {
956+
PatRange(ref e1, ref e2) => {
962957
hir::PatRange(lower_expr(lctx, e1), lower_expr(lctx, e2))
963958
}
964-
PatKind::Vec(ref before, ref slice, ref after) => {
959+
PatVec(ref before, ref slice, ref after) => {
965960
hir::PatVec(before.iter().map(|x| lower_pat(lctx, x)).collect(),
966961
slice.as_ref().map(|x| lower_pat(lctx, x)),
967962
after.iter().map(|x| lower_pat(lctx, x)).collect())
968963
}
969-
PatKind::Mac(_) => panic!("Shouldn't exist here"),
964+
PatMac(_) => panic!("Shouldn't exist here"),
970965
},
971966
span: p.span,
972967
})

0 commit comments

Comments
 (0)