Skip to content

Commit cd602c4

Browse files
committed
---
yaml --- r: 122733 b: refs/heads/snap-stage3 c: 1fefa5b h: refs/heads/master i: 122731: b6cdb4d v: v3
1 parent 471c8f8 commit cd602c4

File tree

760 files changed

+10242
-13574
lines changed

Some content is hidden

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

760 files changed

+10242
-13574
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: 1bff1ff810dcfa8064c11e2b84473f053d1f69f1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 5d5c20647f45f2eb74f337e5434bbe63b0c43345
4+
refs/heads/snap-stage3: 1fefa5b5149211c7acd11fd2ab78d9ca9873ed92
55
refs/heads/try: 2e9d9477b848cec778ca3f07ecdf0aea6ade23de
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ script: |
4141
if [[ $LLVM_VERSION != '3.4' ]]; then exit 0; fi
4242
fi &&
4343
make tidy &&
44-
make -j4 rustc-stage1 RUSTFLAGS='-Z time-passes' &&
44+
travis_wait make -j4 rustc-stage1 &&
4545
make check-stage1-std check-stage1-rpass check-stage1-cfail check-stage1-rfail check-stage1-doc
4646
4747
env:

branches/snap-stage3/AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ TyOverby <[email protected]>
487487
Tycho Sci <[email protected]>
488488
Tyler Bindon <[email protected]>
489489
U-NOV2010\eugals
490+
User Jyyou <[email protected]>
490491
Utkarsh Kukreti <[email protected]>
491492
Uwe Dauernheim <[email protected]>
492493
Vadim Chugunov <[email protected]>

branches/snap-stage3/README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,10 @@ documentation.
5454
When complete, `make install` will place several programs into
5555
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
5656
API-documentation tool.
57+
system.
5758
3. Read the [tutorial].
5859
4. Enjoy!
5960

60-
### Building on Windows
61-
62-
To easily build on windows we can use [MSYS2](http://sourceforge.net/projects/msys2/):
63-
64-
1. Grab the latest MSYS2 installer and go through the installer.
65-
2. Now from the MSYS2 terminal we want to install the mingw64 toolchain and the other
66-
tools we need.
67-
68-
$ pacman -S mingw-w64-i686-toolchain
69-
$ pacman -S base-devel
70-
71-
3. With that now start `mingw32_shell.bat` from where you installed MSYS2 (i.e. `C:\msys`).
72-
4. From there just navigate to where you have Rust's source code, configure and build it:
73-
74-
$ ./configure --build=i686-pc-mingw32
75-
$ make && make install
76-
7761
[repo]: https://github.com/rust-lang/rust
7862
[tarball]: http://static.rust-lang.org/dist/rust-nightly.tar.gz
7963
[tutorial]: http://doc.rust-lang.org/tutorial.html

branches/snap-stage3/RELEASES.txt

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Version 0.11.0 (July 2014)
1+
Version 0.11 (July 2014)
22
-------------------------
33

4-
* ~1700 changes, numerous bugfixes
4+
* ~1700 cahnges, numerous bugfixes
55

66
* Language
77
* ~[T] has been removed from the language. This type is superseded by
@@ -13,25 +13,26 @@ Version 0.11.0 (July 2014)
1313
* @T has been removed from the language. This type is superseded by the
1414
standard library's std::gc::Gc<T> type.
1515
* Struct fields are now all private by default.
16-
* Vector indices and shift amounts are both required to be a `uint`
16+
* Vector indices and shift amounts are both required to be a `uint` now
1717
instead of any integral type.
1818
* Byte character, byte string, and raw byte string literals are now all
1919
supported by prefixing the normal literal with a `b`.
2020
* Multiple ABIs are no longer allowed in an ABI string
21-
* The syntax for lifetimes on closures/procedures has been tweaked
22-
slightly: `<'a>|A, B|: 'b + K -> T`
23-
* Floating point modulus has been removed from the language; however it
24-
is still provided by a library implementation.
21+
* The syntax for lifetimes on clousres/procedures has been tweaked
22+
slightly.
23+
* Floating point modulus has been removed from the language, it is still
24+
provided by a library implementation, however.
2525
* Private enum variants are now disallowed.
2626
* The `priv` keyword has been removed from the language.
2727
* A closure can no longer be invoked through a &-pointer.
2828
* The `use foo, bar, baz;` syntax has been removed from the language.
2929
* The transmute intrinsic no longer works on type parameters.
3030
* Statics now allow blocks/items in their definition.
3131
* Trait bounds are separated from objects with + instead of : now.
32-
* Objects can no longer be read while they are mutably borrowed.
32+
* Mutably borrowed objects can no longer be read while they are
33+
borrowed.
3334
* The address of a static is now marked as insignificant unless the
34-
#[inline(never)] attribute is placed it.
35+
#[inline(never)] attribute is placed on a static.
3536
* The #[unsafe_destructor] attribute is now behind a feature gate.
3637
* Struct literals are no longer allowed in ambiguous positions such as
3738
if, while, match, and for..in.
@@ -47,13 +48,13 @@ Version 0.11.0 (July 2014)
4748
* Libraries
4849
* The standard library is now a "facade" over a number of underlying
4950
libraries. This means that development on the standard library should
50-
be speeder due to smaller crates, as well as a clearer line between
51+
be speeder due to less to compile, as well as a clearer line between
5152
all dependencies.
5253
* A new library, libcore, lives under the standard library's facade
5354
which is Rust's "0-assumption" library, suitable for embedded and
5455
kernel development for example.
5556
* A regex crate has been added to the standard distribution. This crate
56-
includes statically compiled regular expressions.
57+
includes statically compiled regulard expressions.
5758
* The unwrap/unwrap_err methods on Result require a Show bound for
5859
better error messages.
5960
* The return types of the std::comm primitives have been centralized
@@ -71,11 +72,11 @@ Version 0.11.0 (July 2014)
7172
* A graphviz crate has been added for creating .dot files.
7273
* The std::cast module has been migrated into std::mem.
7374
* The std::local_data api has been migrated from freestanding functions
74-
to being based on methods.
75+
to based on methods.
7576
* The Pod trait has been renamed to Copy.
7677
* jemalloc has been added as the default allocator for types.
77-
* The API for allocating memory has been changed to use proper alignment
78-
and sized deallocation
78+
* The api for allocating memory in rust has been modified for sized
79+
deallocation as well as using proper alignment.
7980
* Connecting a TcpStream or binding a TcpListener is now based on a
8081
string address and a u16 port. This allows connecting to a hostname as
8182
opposed to an IP.
@@ -99,11 +100,11 @@ Version 0.11.0 (July 2014)
99100
discovery of breaking changes.
100101
* The compiler will now try to suggest how to annotate lifetimes if a
101102
lifetime-related error occurs.
102-
* Debug info continues to be improved greatly with general bug fixes and
103-
better support for situations like link time optimization (LTO).
103+
* Debug info continues to be improved greatly with better support for
104+
situations such as LTO and general bug fixes.
104105
* Usage of syntax extensions when cross-compiling has been fixed.
105-
* Functionality equivalent to GCC & Clang's -ffunction-sections,
106-
-fdata-sections and --gc-sections has been enabled by default
106+
* The equivalent of ffunction-sections and fdata-sections have been
107+
enabled by default with the equivalent of --gc-sections.
107108
* The compiler is now stricter about where it will load module files
108109
from when a module is declared via `mod foo;`.
109110
* The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
@@ -127,7 +128,7 @@ Version 0.11.0 (July 2014)
127128
* Cross-compiling to mipsel is now supported.
128129
* Stability attributes are now inherited by default and no longer apply
129130
to intra-crate usage, only inter-crate usage.
130-
* Error message related to non-exhaustive match expressions have been
131+
* Error message related to non-exhaustive match statements have been
131132
greatly improved.
132133

133134
Version 0.10 (April 2014)

branches/snap-stage3/man/rustdoc.1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ directory to load plugins from (default: /tmp/rustdoc_ng/plugins)
3838
-L --library-path <val>
3939
directory to add to crate search path
4040
.TP
41-
--html-in-header <val>
42-
file to add to <head>
43-
.TP
44-
--html-before-content <val>
45-
file to add in <body>, before content
46-
.TP
47-
--html-after-content <val>
48-
file to add in <body>, after content
49-
.TP
5041
-h, --help
5142
Print help
5243

branches/snap-stage3/mk/dist.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ PKG_FILES := \
5454
driver \
5555
etc \
5656
$(foreach crate,$(CRATES),lib$(crate)) \
57-
libcoretest \
5857
libbacktrace \
5958
rt \
6059
rustllvm \

branches/snap-stage3/mk/docs.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
3535
PDF_DOCS := tutorial rust
3636

3737
RUSTDOC_DEPS_rust := doc/full-toc.inc
38-
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc
38+
RUSTDOC_FLAGS_rust := --markdown-in-header=doc/full-toc.inc
3939

4040
L10N_LANGS := ja
4141

4242
# Generally no need to edit below here.
4343

4444
# The options are passed to the documentation generators.
45-
RUSTDOC_HTML_OPTS_NO_CSS = --html-before-content=doc/version_info.html \
46-
--html-in-header=doc/favicon.inc \
47-
--html-after-content=doc/footer.inc \
45+
RUSTDOC_HTML_OPTS_NO_CSS = --markdown-before-content=doc/version_info.html \
46+
--markdown-in-header=doc/favicon.inc \
47+
--markdown-after-content=doc/footer.inc \
4848
--markdown-playground-url='http://play.rust-lang.org/'
4949

5050
RUSTDOC_HTML_OPTS = $(RUSTDOC_HTML_OPTS_NO_CSS) --markdown-css rust.css

branches/snap-stage3/mk/platform.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ CFG_PATH_MUNGE_i686-pc-mingw32 :=
461461
CFG_LDPATH_i686-pc-mingw32 :=$(CFG_LDPATH_i686-pc-mingw32):$(PATH)
462462
CFG_RUN_i686-pc-mingw32=PATH="$(CFG_LDPATH_i686-pc-mingw32):$(1)" $(2)
463463
CFG_RUN_TARG_i686-pc-mingw32=$(call CFG_RUN_i686-pc-mingw32,$(HLIB$(1)_H_$(CFG_BUILD)),$(2))
464-
RUSTC_FLAGS_i686-pc-mingw32=-C link-args="-Wl,--large-address-aware"
465464

466465
# i586-mingw32msvc configuration
467466
CC_i586-mingw32msvc=$(CFG_MINGW32_CROSS_PATH)/bin/i586-mingw32msvc-gcc

branches/snap-stage3/mk/tests.mk

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
######################################################################
1515

1616
# The names of crates that must be tested
17-
18-
# libcore tests are in a separate crate
19-
DEPS_coretest :=
20-
$(eval $(call RUST_CRATE,coretest))
21-
22-
TEST_TARGET_CRATES = $(filter-out core,$(TARGET_CRATES)) coretest
17+
TEST_TARGET_CRATES = $(TARGET_CRATES)
2318
TEST_DOC_CRATES = $(DOC_CRATES)
2419
TEST_HOST_CRATES = $(HOST_CRATES)
2520
TEST_CRATES = $(TEST_TARGET_CRATES) $(TEST_HOST_CRATES)
@@ -177,7 +172,7 @@ check-notidy: cleantmptestlogs cleantestlibs all check-stage2
177172
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
178173

179174
check-lite: cleantestlibs cleantmptestlogs \
180-
$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
175+
$(foreach crate,$(TARGET_CRATES),check-stage2-$(crate)) \
181176
check-stage2-rpass \
182177
check-stage2-rfail check-stage2-cfail check-stage2-rmake
183178
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub mod common;
4242
pub mod errors;
4343

4444
#[start]
45-
fn start(argc: int, argv: *const *const u8) -> int {
45+
fn start(argc: int, argv: **u8) -> int {
4646
green::start(argc, argv, rustuv::event_loop, main)
4747
}
4848

branches/snap-stage3/src/doc/guide-ffi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ use libc::{c_int, size_t};
5050
5151
#[link(name = "snappy")]
5252
extern {
53-
fn snappy_compress(input: *const u8,
53+
fn snappy_compress(input: *u8,
5454
input_length: size_t,
5555
compressed: *mut u8,
5656
compressed_length: *mut size_t) -> c_int;
57-
fn snappy_uncompress(compressed: *const u8,
57+
fn snappy_uncompress(compressed: *u8,
5858
compressed_length: size_t,
5959
uncompressed: *mut u8,
6060
uncompressed_length: *mut size_t) -> c_int;
6161
fn snappy_max_compressed_length(source_length: size_t) -> size_t;
62-
fn snappy_uncompressed_length(compressed: *const u8,
62+
fn snappy_uncompressed_length(compressed: *u8,
6363
compressed_length: size_t,
6464
result: *mut size_t) -> c_int;
65-
fn snappy_validate_compressed_buffer(compressed: *const u8,
65+
fn snappy_validate_compressed_buffer(compressed: *u8,
6666
compressed_length: size_t) -> c_int;
6767
}
6868
# fn main() {}
@@ -82,7 +82,7 @@ the allocated memory. The length is less than or equal to the capacity.
8282
~~~~
8383
# extern crate libc;
8484
# use libc::{c_int, size_t};
85-
# unsafe fn snappy_validate_compressed_buffer(_: *const u8, _: size_t) -> c_int { 0 }
85+
# unsafe fn snappy_validate_compressed_buffer(_: *u8, _: size_t) -> c_int { 0 }
8686
# fn main() {}
8787
pub fn validate_compressed_buffer(src: &[u8]) -> bool {
8888
unsafe {
@@ -106,7 +106,7 @@ the true length after compression for setting the length.
106106
~~~~
107107
# extern crate libc;
108108
# use libc::{size_t, c_int};
109-
# unsafe fn snappy_compress(a: *const u8, b: size_t, c: *mut u8,
109+
# unsafe fn snappy_compress(a: *u8, b: size_t, c: *mut u8,
110110
# d: *mut size_t) -> c_int { 0 }
111111
# unsafe fn snappy_max_compressed_length(a: size_t) -> size_t { a }
112112
# fn main() {}
@@ -132,11 +132,11 @@ format and `snappy_uncompressed_length` will retrieve the exact buffer size requ
132132
~~~~
133133
# extern crate libc;
134134
# use libc::{size_t, c_int};
135-
# unsafe fn snappy_uncompress(compressed: *const u8,
135+
# unsafe fn snappy_uncompress(compressed: *u8,
136136
# compressed_length: size_t,
137137
# uncompressed: *mut u8,
138138
# uncompressed_length: *mut size_t) -> c_int { 0 }
139-
# unsafe fn snappy_uncompressed_length(compressed: *const u8,
139+
# unsafe fn snappy_uncompressed_length(compressed: *u8,
140140
# compressed_length: size_t,
141141
# result: *mut size_t) -> c_int { 0 }
142142
# fn main() {}
@@ -418,7 +418,7 @@ Unsafe functions, on the other hand, advertise it to the world. An unsafe functi
418418
this:
419419
420420
~~~~
421-
unsafe fn kaboom(ptr: *const int) -> int { *ptr }
421+
unsafe fn kaboom(ptr: *int) -> int { *ptr }
422422
~~~~
423423
424424
This function can only be called from an `unsafe` block or another `unsafe` function.
@@ -453,7 +453,7 @@ use std::ptr;
453453
454454
#[link(name = "readline")]
455455
extern {
456-
static mut rl_prompt: *const libc::c_char;
456+
static mut rl_prompt: *libc::c_char;
457457
}
458458
459459
fn main() {
@@ -478,7 +478,7 @@ extern crate libc;
478478
#[link(name = "kernel32")]
479479
#[allow(non_snake_case_functions)]
480480
extern "stdcall" {
481-
fn SetEnvironmentVariableA(n: *const u8, v: *const u8) -> libc::c_int;
481+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> libc::c_int;
482482
}
483483
# fn main() { }
484484
~~~~

branches/snap-stage3/src/doc/guide-macros.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ macro_rules! biased_match_rec (
355355
_ => { $err }
356356
}
357357
);
358-
// Produce the requested values
359358
( binds $( $bind_res:ident ),* ) => ( ($( $bind_res ),*) )
360359
)
361360
@@ -365,7 +364,7 @@ macro_rules! biased_match (
365364
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
366365
binds $bind_res:ident
367366
) => (
368-
let $bind_res = biased_match_rec!(
367+
let ( $( $bind_res ),* ) = biased_match_rec!(
369368
$( ($e) ~ ($p) else $err ; )*
370369
binds $bind_res
371370
);

branches/snap-stage3/src/doc/guide-runtime.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ extern crate green;
245245
extern crate rustuv;
246246
247247
#[start]
248-
fn start(argc: int, argv: *const *const u8) -> int {
248+
fn start(argc: int, argv: **u8) -> int {
249249
green::start(argc, argv, rustuv::event_loop, main)
250250
}
251251
@@ -261,9 +261,7 @@ inside of an OS thread.
261261
extern crate native;
262262
263263
#[start]
264-
fn start(argc: int, argv: *const *const u8) -> int {
265-
native::start(argc, argv, main)
266-
}
264+
fn start(argc: int, argv: **u8) -> int { native::start(argc, argv, main) }
267265
268266
fn main() {}
269267
~~~

branches/snap-stage3/src/doc/guide-tasks.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,6 @@ the string in response. The child terminates when it receives `0`.
457457
Here is the function that implements the child task:
458458

459459
~~~
460-
#![allow(deprecated)]
461-
462460
use std::comm::DuplexStream;
463461
# fn main() {
464462
fn stringifier(channel: &DuplexStream<String, uint>) {
@@ -483,8 +481,6 @@ response itself is simply the stringified version of the received value,
483481
Here is the code for the parent task:
484482

485483
~~~
486-
#![allow(deprecated)]
487-
488484
use std::comm::duplex;
489485
# use std::task::spawn;
490486
# use std::comm::DuplexStream;

0 commit comments

Comments
 (0)