Skip to content

Commit 37c5f9e

Browse files
committed
---
yaml --- r: 121691 b: refs/heads/try c: 1710820 h: refs/heads/master i: 121689: e4cf7a0 121687: f98a08c v: v3
1 parent 583ca52 commit 37c5f9e

File tree

120 files changed

+1172
-2560
lines changed

Some content is hidden

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

120 files changed

+1172
-2560
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: 8fe47bc3bb34d7a1ce7bbd2c6fc5ea7a6dbf57a4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: bab614f5fa725d248afc5f0530c835f37998ce8f
5-
refs/heads/try: c38125987f14017dd7a6f7977a84c7896d897eff
5+
refs/heads/try: 17108207b13894cadae5eb80a4ed7b374755ba9b
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/mk/platform.mk

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -374,36 +374,6 @@ CFG_RUN_TARG_arm-unknown-linux-gnueabi=$(call CFG_RUN_arm-unknown-linux-gnueabi,
374374
RUSTC_FLAGS_arm-unknown-linux-gnueabi :=
375375
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabi :=
376376

377-
# mipsel-linux configuration
378-
CC_mipsel-linux=mipsel-linux-gcc
379-
CXX_mipsel-linux=mipsel-linux-g++
380-
CPP_mipsel-linux=mipsel-linux-gcc
381-
AR_mipsel-linux=mipsel-linux-ar
382-
CFG_LIB_NAME_mipsel-linux=lib$(1).so
383-
CFG_STATIC_LIB_NAME_mipsel-linux=lib$(1).a
384-
CFG_LIB_GLOB_mipsel-linux=lib$(1)-*.so
385-
CFG_LIB_DSYM_GLOB_mipsel-linux=lib$(1)-*.dylib.dSYM
386-
CFG_CFLAGS_mipsel-linux := -mips32 -mabi=32 $(CFLAGS)
387-
CFG_GCCISH_CFLAGS_mipsel-linux := -Wall -g -fPIC -mips32 -mabi=32 $(CFLAGS)
388-
CFG_GCCISH_CXXFLAGS_mipsel-linux := -fno-rtti $(CXXFLAGS)
389-
CFG_GCCISH_LINK_FLAGS_mipsel-linux := -shared -fPIC -g -mips32
390-
CFG_GCCISH_DEF_FLAG_mipsel-linux := -Wl,--export-dynamic,--dynamic-list=
391-
CFG_GCCISH_PRE_LIB_FLAGS_mipsel-linux := -Wl,-whole-archive
392-
CFG_GCCISH_POST_LIB_FLAGS_mipsel-linux := -Wl,-no-whole-archive
393-
CFG_DEF_SUFFIX_mipsel-linux := .linux.def
394-
CFG_LLC_FLAGS_mipsel-linux :=
395-
CFG_INSTALL_NAME_mipsel-linux =
396-
CFG_LIBUV_LINK_FLAGS_mipsel-linux =
397-
CFG_EXE_SUFFIX_mipsel-linux :=
398-
CFG_WINDOWSY_mipsel-linux :=
399-
CFG_UNIXY_mipsel-linux := 1
400-
CFG_PATH_MUNGE_mipsel-linux := true
401-
CFG_LDPATH_mipsel-linux :=
402-
CFG_RUN_mipsel-linux=
403-
CFG_RUN_TARG_mipsel-linux=
404-
RUSTC_FLAGS_mipsel-linux := -C target-cpu=mips32 -C target-feature="+mips32,+o32"
405-
406-
407377
# mips-unknown-linux-gnu configuration
408378
CC_mips-unknown-linux-gnu=mips-linux-gnu-gcc
409379
CXX_mips-unknown-linux-gnu=mips-linux-gnu-g++
@@ -642,7 +612,7 @@ define CFG_MAKE_TOOLCHAIN
642612
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
643613
$$(call CFG_INSTALL_NAME_$(1),$$(4))
644614

645-
ifeq ($$(findstring $(HOST_$(1)),arm mips mipsel),)
615+
ifeq ($$(findstring $(HOST_$(1)),arm mips),)
646616

647617
# We're using llvm-mc as our assembler because it supports
648618
# .cfi pseudo-ops on mac

branches/try/src/doc/guide-unsafe.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ in the same format as a C:
451451

452452
```
453453
#![no_std]
454-
#![feature(lang_items)]
455454
456455
// Pull in the system libc library for what crt0.o likely requires
457456
extern crate libc;
@@ -478,7 +477,6 @@ compiler's name mangling too:
478477
```ignore
479478
#![no_std]
480479
#![no_main]
481-
#![feature(lang_items)]
482480
483481
extern crate libc;
484482
@@ -530,7 +528,6 @@ vectors provided from C, using idiomatic Rust practices.
530528
```
531529
#![no_std]
532530
#![feature(globs)]
533-
#![feature(lang_items)]
534531
535532
# extern crate libc;
536533
extern crate core;
@@ -622,9 +619,6 @@ perform efficient pointer arithmetic, one would import those functions
622619
via a declaration like
623620

624621
```
625-
# #![feature(intrinsics)]
626-
# fn main() {}
627-
628622
extern "rust-intrinsic" {
629623
fn transmute<T, U>(x: T) -> U;
630624
@@ -653,7 +647,6 @@ sugar for dynamic allocations via `malloc` and `free`:
653647

654648
```
655649
#![no_std]
656-
#![feature(lang_items)]
657650
658651
extern crate libc;
659652

branches/try/src/doc/rust.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ block_comment_body : [block_comment | character] * ;
160160
line_comment : "//" non_eol * ;
161161
~~~~
162162

163-
Comments in Rust code follow the general C++ style of line and block-comment forms.
163+
Comments in Rust code follow the general C++ style of line and block-comment forms.
164164
Nested block comments are supported.
165165

166166
Line comments beginning with exactly _three_ slashes (`///`), and block
@@ -3004,7 +3004,7 @@ ten_times(|j| println!("hello, {}", j));
30043004
### While loops
30053005

30063006
~~~~ {.ebnf .gram}
3007-
while_expr : "while" no_struct_literal_expr '{' block '}' ;
3007+
while_expr : "while" expr '{' block '}' ;
30083008
~~~~
30093009

30103010
A `while` loop begins by evaluating the boolean loop conditional expression.
@@ -3071,7 +3071,7 @@ A `continue` expression is only permitted in the body of a loop.
30713071
### For expressions
30723072

30733073
~~~~ {.ebnf .gram}
3074-
for_expr : "for" pat "in" no_struct_literal_expr '{' block '}' ;
3074+
for_expr : "for" pat "in" expr '{' block '}' ;
30753075
~~~~
30763076

30773077
A `for` expression is a syntactic construct for looping over elements
@@ -3105,7 +3105,7 @@ for i in range(0u, 256) {
31053105
### If expressions
31063106

31073107
~~~~ {.ebnf .gram}
3108-
if_expr : "if" no_struct_literal_expr '{' block '}'
3108+
if_expr : "if" expr '{' block '}'
31093109
else_tail ? ;
31103110
31113111
else_tail : "else" [ if_expr
@@ -3126,7 +3126,7 @@ then any `else` block is executed.
31263126
### Match expressions
31273127

31283128
~~~~ {.ebnf .gram}
3129-
match_expr : "match" no_struct_literal_expr '{' match_arm * '}' ;
3129+
match_expr : "match" expr '{' match_arm * '}' ;
31303130
31313131
match_arm : attribute * match_pat "=>" [ expr "," | '{' block '}' ] ;
31323132
@@ -3563,11 +3563,10 @@ There are four varieties of pointer in Rust:
35633563

35643564
* Raw pointers (`*`)
35653565
: Raw pointers are pointers without safety or liveness guarantees.
3566-
Raw pointers are written as `*const T` or `*mut T`,
3567-
for example `*const int` means a raw pointer to an integer.
3568-
Copying or dropping a raw pointer has no effect on the lifecycle of any
3569-
other value. Dereferencing a raw pointer or converting it to any other
3570-
pointer type is an [`unsafe` operation](#unsafe-functions).
3566+
Raw pointers are written `*content`,
3567+
for example `*int` means a raw pointer to an integer.
3568+
Copying or dropping a raw pointer has no effect on the lifecycle of any other value.
3569+
Dereferencing a raw pointer or converting it to any other pointer type is an [`unsafe` operation](#unsafe-functions).
35713570
Raw pointers are generally discouraged in Rust code;
35723571
they exist to support interoperability with foreign code,
35733572
and writing performance-critical or low-level functions.

branches/try/src/doc/tutorial.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ fn sendable_foo(f: Box<Foo + Send>) { /* ... */ }
25222522
fn shareable_bar<T: Share>(b: &Bar<T> + Share) { /* ... */ }
25232523
~~~
25242524

2525-
When no colon is specified (such as the type `Box<Foo>`), it is inferred that the
2525+
When no colon is specified (such as the type `~Foo`), it is inferred that the
25262526
value ascribes to no bounds. They must be added manually if any bounds are
25272527
necessary for usage.
25282528

@@ -2579,18 +2579,17 @@ fn radius_times_area<T: Circle>(c: T) -> f64 {
25792579

25802580
Likewise, supertrait methods may also be called on trait objects.
25812581

2582-
~~~
2582+
~~~ {.ignore}
25832583
use std::f64::consts::PI;
25842584
# trait Shape { fn area(&self) -> f64; }
25852585
# trait Circle : Shape { fn radius(&self) -> f64; }
25862586
# struct Point { x: f64, y: f64 }
25872587
# struct CircleStruct { center: Point, radius: f64 }
25882588
# impl Circle for CircleStruct { fn radius(&self) -> f64 { (self.area() / PI).sqrt() } }
25892589
# impl Shape for CircleStruct { fn area(&self) -> f64 { PI * square(self.radius) } }
2590-
# fn square(x: f64) -> f64 { x * x }
25912590
2592-
let concrete = box CircleStruct{center:Point{x:3.0,y:4.0},radius:5.0};
2593-
let mycircle: Box<Circle> = concrete as Box<Circle>;
2591+
let concrete = ~CircleStruct{center:Point{x:3.0,y:4.0},radius:5.0};
2592+
let mycircle: ~Circle = concrete as ~Circle;
25942593
let nonsense = mycircle.radius() * mycircle.area();
25952594
~~~
25962595

branches/try/src/etc/2014-06-rewrite-bytes-macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/bin/env python
22
#
33
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
44
# file at the top-level directory of this distribution and at

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ syn keyword rustKeyword unsafe virtual while
3030
syn keyword rustKeyword use nextgroup=rustModPath skipwhite skipempty
3131
" FIXME: Scoped impl's name is also fallen in this category
3232
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite skipempty
33-
syn keyword rustStorage mut ref static const
33+
syn keyword rustStorage mut ref static
34+
syn keyword rustObsoleteStorage const
3435

3536
syn keyword rustInvalidBareKeyword crate
3637

branches/try/src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
html_root_url = "http://doc.rust-lang.org/")]
7070

7171
#![no_std]
72-
#![feature(lang_items, phase, unsafe_destructor)]
72+
#![feature(phase, unsafe_destructor)]
7373
#![allow(unknown_features)] // NOTE: remove after a stage0 snap
7474

7575
#[phase(plugin, link)]

branches/try/src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#![feature(unsafe_destructor)]
3232
#![allow(missing_doc)]
33+
#![allow(unknown_features)] // NOTE: remove after a stage0 snap
3334

3435
use std::cell::{Cell, RefCell};
3536
use std::cmp;

branches/try/src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#![feature(macro_rules, managed_boxes, default_type_params, phase, globs)]
2525
#![feature(unsafe_destructor)]
2626
#![no_std]
27+
#![allow(unknown_features)] // NOTE: remove after a stage0 snap
2728

2829
#[phase(plugin, link)] extern crate core;
2930
extern crate alloc;

0 commit comments

Comments
 (0)