Skip to content

Commit a2245e4

Browse files
committed
---
yaml --- r: 135038 b: refs/heads/master c: b5c17b3 h: refs/heads/master v: v3
1 parent e973182 commit a2245e4

File tree

147 files changed

+2577
-4870
lines changed

Some content is hidden

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

147 files changed

+2577
-4870
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6c23789ad1f62e39220e5e178928ecdad9db2a38
2+
refs/heads/master: b5c17b335237c89474315400163403bad9e4f3e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 7eb9337dace88c5ded431aa7507f06d50619131b
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7

trunk/configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ valopt datadir "${CFG_PREFIX}/share" "install data"
453453
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
454454
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
455455

456-
valopt release-channel "source" "the name of the release channel to build"
456+
valopt release-channel "dev" "the name of the release channel to build"
457457

458458
# On windows we just store the libraries in the bin directory because
459459
# there's no rpath. This is where the build system itself puts libraries;
@@ -479,16 +479,16 @@ validate_opt
479479

480480
# Validate the release channel
481481
case "$CFG_RELEASE_CHANNEL" in
482-
(source | nightly | beta | stable)
482+
(dev | nightly | beta | stable)
483483
;;
484484
(*)
485-
err "release channel must be 'source', 'nightly', 'beta' or 'stable'"
485+
err "release channel must be 'dev', 'nightly', 'beta' or 'stable'"
486486
;;
487487
esac
488488

489489
# Continue supporting the old --enable-nightly flag to transition the bots
490490
# XXX Remove me
491-
if [ ! -z "$CFG_ENABLE_NIGHTLY" ]
491+
if [ $CFG_ENABLE_NIGHTLY -eq 1 ]
492492
then
493493
CFG_RELEASE_CHANNEL=nightly
494494
putvar CFG_RELEASE_CHANNEL

trunk/mk/crates.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5959
TOOLS := compiletest rustdoc rustc
6060

6161
DEPS_core :=
62-
DEPS_libc := core
6362
DEPS_rlibc := core
6463
DEPS_unicode := core
6564
DEPS_alloc := core libc native:jemalloc

trunk/mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ ifeq ($(CFG_RELEASE_CHANNEL),nightly)
3535
CFG_RELEASE=$(CFG_RELEASE_NUM)-nightly
3636
CFG_PACKAGE_VERS=nightly
3737
endif
38-
ifeq ($(CFG_RELEASE_CHANNEL),source)
39-
CFG_RELEASE=$(CFG_RELEASE_NUM)-pre
40-
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-pre
38+
ifeq ($(CFG_RELEASE_CHANNEL),dev)
39+
CFG_RELEASE=$(CFG_RELEASE_NUM)-dev
40+
CFG_PACKAGE_VERS=$(CFG_RELEASE_NUM)-dev
4141
endif
4242

4343
# The name of the package to use for creating tarballs, installers etc.

trunk/mk/stage0.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
$(HBIN0_H_$(CFG_BUILD))/:
44
mkdir -p $@
55

6-
# On windows these two are the same, so cause a redifinition warning
7-
ifneq ($(HBIN0_H_$(CFG_BUILD)),$(HLIB0_H_$(CFG_BUILD)))
86
$(HLIB0_H_$(CFG_BUILD))/:
97
mkdir -p $@
10-
endif
118

129
$(SNAPSHOT_RUSTC_POST_CLEANUP): \
1310
$(S)src/snapshots.txt \

trunk/src/doc/guide-pointers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ As being similar to this C code:
505505
{
506506
int *x;
507507
x = (int *)malloc(sizeof(int));
508-
*x = 5;
509508
510509
// stuff happens
511510

trunk/src/doc/guide-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ is not used.
7272
Tests that should not be run can be annotated with the `ignore`
7373
attribute. The existence of these tests will be noted in the test
7474
runner output, but the test will not be run. Tests can also be ignored
75-
by configuration using the `cfg_attr` attribute so, for example, to ignore a
76-
test on windows you can write `#[cfg_attr(windows, ignore)]`.
75+
by configuration so, for example, to ignore a test on windows you can
76+
write `#[ignore(cfg(target_os = "win32"))]`.
7777

7878
Tests that are intended to fail can be annotated with the
7979
`should_fail` attribute. The test will be run, and if it causes its

trunk/src/doc/guide-unsafe.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ fn start(_argc: int, _argv: *const *const u8) -> int {
466466
// provided by libstd.
467467
#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
468468
#[lang = "eh_personality"] extern fn eh_personality() {}
469-
#[lang = "fail_fmt"] fn fail_fmt() -> ! { loop {} }
469+
#[lang = "sized"] trait Sized { }
470470
# // fn main() {} tricked you, rustdoc!
471471
```
472472

@@ -489,28 +489,32 @@ pub extern fn main(argc: int, argv: *const *const u8) -> int {
489489
490490
#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
491491
#[lang = "eh_personality"] extern fn eh_personality() {}
492-
#[lang = "fail_fmt"] fn fail_fmt() -> ! { loop {} }
492+
#[lang = "sized"] trait Sized { }
493493
# // fn main() {} tricked you, rustdoc!
494494
```
495495

496496

497497
The compiler currently makes a few assumptions about symbols which are available
498498
in the executable to call. Normally these functions are provided by the standard
499-
library, but without it you must define your own.
499+
xlibrary, but without it you must define your own.
500500

501-
The first of these three functions, `stack_exhausted`, is invoked whenever stack
501+
The first of these two functions, `stack_exhausted`, is invoked whenever stack
502502
overflow is detected. This function has a number of restrictions about how it
503503
can be called and what it must do, but if the stack limit register is not being
504504
maintained then a task always has an "infinite stack" and this function
505505
shouldn't get triggered.
506506

507-
The second of these three functions, `eh_personality`, is used by the
508-
failure mechanisms of the compiler. This is often mapped to GCC's
509-
personality function (see the
510-
[libstd implementation](std/rt/unwind/index.html) for more
511-
information), but crates which do not trigger failure can be assured
512-
that this function is never called. The final function, `fail_fmt`, is
513-
also used by the failure mechanisms of the compiler.
507+
The second of these two functions, `eh_personality`, is used by the failure
508+
mechanisms of the compiler. This is often mapped to GCC's personality function
509+
(see the [libstd implementation](std/rt/unwind/index.html) for more
510+
information), but crates which do not trigger failure can be assured that this
511+
function is never called.
512+
513+
The final item in the example is a trait called `Sized`. This a trait
514+
that represents data of a known static size: it is integral to the
515+
Rust type system, and so the compiler expects the standard library to
516+
provide it. Since you are not using the standard library, you have to
517+
provide it yourself.
514518

515519
## Using libcore
516520

@@ -690,7 +694,7 @@ fn main(argc: int, argv: *const *const u8) -> int {
690694
691695
#[lang = "stack_exhausted"] extern fn stack_exhausted() {}
692696
#[lang = "eh_personality"] extern fn eh_personality() {}
693-
#[lang = "fail_fmt"] fn fail_fmt() -> ! { loop {} }
697+
#[lang = "sized"] trait Sized {}
694698
```
695699

696700
Note the use of `abort`: the `exchange_malloc` lang item is assumed to

trunk/src/doc/guide.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,6 @@ You can create an array with just square brackets:
15071507

15081508
```{rust}
15091509
let nums = [1i, 2i, 3i];
1510-
let nums = [1i, ..20]; // Shorthand for an array of 20 elements all initialized to 1
15111510
```
15121511

15131512
So what's the difference? An array has a fixed size, so you can't add or
@@ -4325,6 +4324,8 @@ and so we tell it that we want a vector of integers.
43254324
is one:
43264325

43274326
```{rust}
4327+
let one_to_one_hundred = range(0i, 100i);
4328+
43284329
let greater_than_forty_two = range(0i, 100i)
43294330
.find(|x| *x >= 42);
43304331
@@ -4488,8 +4489,8 @@ This will print
44884489
```
44894490

44904491
`filter()` is an adapter that takes a closure as an argument. This closure
4491-
returns `true` or `false`. The new iterator `filter()` produces
4492-
only the elements that that closure returns `true` for:
4492+
returns `true` or `false`. The new iterator `filter()` produces returns
4493+
only the elements that that closure returned `true` for:
44934494

44944495
```{rust}
44954496
for i in range(1i, 100i).filter(|x| x % 2 == 0) {

trunk/src/etc/licenseck.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"test/bench/shootout-chameneos-redux.rs", # BSD
4747
"test/bench/shootout-fannkuch-redux.rs", # BSD
4848
"test/bench/shootout-fasta.rs", # BSD
49-
"test/bench/shootout-fasta-redux.rs", # BSD
5049
"test/bench/shootout-k-nucleotide.rs", # BSD
5150
"test/bench/shootout-mandelbrot.rs", # BSD
5251
"test/bench/shootout-meteor.rs", # BSD

trunk/src/liballoc/boxed.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ pub trait BoxAny {
9696
/// `Err(Self)` if it isn't.
9797
#[unstable = "naming conventions around accessing innards may change"]
9898
fn downcast<T: 'static>(self) -> Result<Box<T>, Self>;
99+
100+
/// Deprecated; this method has been renamed to `downcast`.
101+
#[deprecated = "use downcast instead"]
102+
fn move<T: 'static>(self) -> Result<Box<T>, Self> {
103+
self.downcast::<T>()
104+
}
99105
}
100106

101107
#[stable]

0 commit comments

Comments
 (0)