Skip to content

Commit 0714024

Browse files
committed
---
yaml --- r: 123641 b: refs/heads/try c: 179b2b4 h: refs/heads/master i: 123639: 08b7c4a v: v3
1 parent f4f098d commit 0714024

File tree

185 files changed

+3653
-2718
lines changed

Some content is hidden

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

185 files changed

+3653
-2718
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: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: 0e84d6fc1ae1267eaf38b9c518a6d8f68ff6305c
5+
refs/heads/try: 179b2b48ba7aa3b04e293aed43167470b6c9c58d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/RELEASES.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Version 0.9 (January 2014)
306306
* A new facility for enabling experimental features (feature gating) has
307307
been added, using the crate-level `#[feature(foo)]` attribute.
308308
* Managed boxes (@) are now behind a feature gate
309-
(`#[feature(managed_boxes)]`) in preperation for future removal. Use the
309+
(`#[feature(managed_boxes)]`) in preparation for future removal. Use the
310310
standard library's `Gc` or `Rc` types instead.
311311
* `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
312312
* Jumping back to the top of a loop is now done with `continue` instead of
@@ -398,7 +398,7 @@ Version 0.9 (January 2014)
398398
* std: `fmt::Default` can be implemented for any type to provide default
399399
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
400400
* std: The `rand` API continues to be tweaked.
401-
* std: The `rust_begin_unwind` function, useful for insterting breakpoints
401+
* std: The `rust_begin_unwind` function, useful for inserting breakpoints
402402
on failure in gdb, is now named `rust_fail`.
403403
* std: The `each_key` and `each_value` methods on `HashMap` have been
404404
replaced by the `keys` and `values` iterators.
@@ -429,7 +429,7 @@ Version 0.9 (January 2014)
429429
extensible interfaces and is now implemented by two different crates:
430430
libnative, for native threading and I/O; and libgreen, for green threading
431431
and I/O. This paves the way for using the standard library in more limited
432-
embeded environments.
432+
embedded environments.
433433
* std: The `comm` module has been rewritten to be much faster, have a
434434
simpler, more consistent API, and to work for both native and green
435435
threading.

branches/try/mk/main.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
CFG_RELEASE_NUM=0.11.0
1717
CFG_RELEASE_LABEL=
1818

19+
CFG_FILENAME_EXTRA=4e7c5e5c
20+
1921
ifndef CFG_ENABLE_NIGHTLY
2022
# This is the normal version string
2123
CFG_RELEASE=$(CFG_RELEASE_NUM)$(CFG_RELEASE_LABEL)

branches/try/mk/target.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ $(foreach host,$(CFG_HOST), \
6868
# $(4) is the crate name
6969
define RUST_TARGET_STAGE_N
7070

71+
# NOTE: after a stage0 snap this should be just EXTRA_FILENAME, not with a stage
72+
# or target bound
73+
EXTRA_FILENAME_$(1)_$(2) = -C extra-filename=-$$(CFG_FILENAME_EXTRA)
74+
ifeq ($(1),0)
75+
ifeq ($$(CFG_BUILD),$(2))
76+
EXTRA_FILENAME_$(1)_$(2) =
77+
endif
78+
endif
79+
7180
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): CFG_COMPILER_HOST_TRIPLE = $(2)
7281
$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
7382
$$(CRATEFILE_$(4)) \
@@ -85,7 +94,9 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
8594
-L "$$(LLVM_LIBDIR_$(2))" \
8695
-L "$$(dir $$(LLVM_STDCPP_LOCATION_$(2)))" \
8796
$$(RUSTFLAGS_$(4)) \
88-
--out-dir $$(@D) $$<
97+
--out-dir $$(@D) \
98+
$$(EXTRA_FILENAME_$(1)_$(2)) \
99+
$$<
89100
@touch $$@
90101
$$(call LIST_ALL_OLD_GLOB_MATCHES,\
91102
$$(dir $$@)$$(call CFG_LIB_GLOB_$(2),$(4)))

branches/try/src/doc/guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ You should see some output that looks something like this:
9191

9292
```{ignore}
9393
rustc 0.11.0-pre (443a1cd 2014-06-08 14:56:52 -0700)
94-
host: x86_64-unknown-linux-gnu
9594
```
9695

9796
If you did, Rust has been installed successfully! Congrats!
@@ -737,10 +736,10 @@ let x = (let y = 5i); // found `let` in ident position
737736
The compiler is telling us here that it was expecting to see the beginning of
738737
an expression, and a `let` can only begin a statement, not an expression.
739738

740-
However, re-assigning to a mutable binding is an expression:
739+
However, assigning to a variable binding is an expression:
741740

742741
```{rust}
743-
let mut x = 0i;
742+
let x;
744743
let y = x = 5i;
745744
```
746745

@@ -895,13 +894,14 @@ fn add_one(x: int) -> int {
895894
We would get an error:
896895

897896
```{ignore,notrust}
898-
note: consider removing this semicolon:
899-
x + 1;
900-
^
901897
error: not all control paths return a value
902898
fn add_one(x: int) -> int {
903899
x + 1;
904900
}
901+
902+
note: consider removing this semicolon:
903+
x + 1;
904+
^
905905
```
906906

907907
Remember our earlier discussions about semicolons and `()`? Our function claims

branches/try/src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ fn main() {
30383038
~~~{.ignore}
30393039
// `b/mod.rs`
30403040
pub mod c;
3041-
pub fn foo() { println!("Foo!"; }
3041+
pub fn foo() { println!("Foo!"); }
30423042
~~~
30433043

30443044
~~~{.ignore}

branches/try/src/etc/vim/ftplugin/rust.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ setlocal formatoptions-=t formatoptions+=croqnl
3131
" j was only added in 7.3.541, so stop complaints about its nonexistence
3232
silent! setlocal formatoptions+=j
3333

34+
" smartindent will be overridden by indentexpr if filetype indent is on, but
35+
" otherwise it's better than nothing.
36+
setlocal smartindent nocindent
37+
38+
setlocal tabstop=4 shiftwidth=4 expandtab
39+
3440
" This includeexpr isn't perfect, but it's a good start
3541
setlocal includeexpr=substitute(v:fname,'::','/','g')
3642

branches/try/src/liballoc/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
//! by libc malloc/free. The `libc_heap` module is defined to be wired up to
6161
//! the system malloc/free.
6262
63-
#![crate_id = "alloc#0.11.0"]
63+
#![crate_id = "alloc#0.11.0"] // NOTE: remove after a stage0 snap
64+
#![crate_name = "alloc"]
6465
#![experimental]
6566
#![license = "MIT/ASL2"]
6667
#![crate_type = "rlib"]
@@ -70,6 +71,7 @@
7071

7172
#![no_std]
7273
#![feature(lang_items, phase, unsafe_destructor)]
74+
#![allow(unused_attribute)] // NOTE: remove after stage0
7375

7476
#[phase(plugin, link)]
7577
extern crate core;

branches/try/src/libarena/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
//! more complex, slower Arena which can hold objects of any type.
2121
2222
#![crate_id = "arena#0.11.0"]
23+
#![crate_name = "arena"]
2324
#![experimental]
2425
#![crate_type = "rlib"]
2526
#![crate_type = "dylib"]
@@ -30,6 +31,7 @@
3031

3132
#![feature(unsafe_destructor)]
3233
#![allow(missing_doc)]
34+
#![allow(unused_attribute)] // NOTE: remove after stage0
3335

3436
use std::cell::{Cell, RefCell};
3537
use std::cmp;

0 commit comments

Comments
 (0)