Skip to content

Commit 4c7aeca

Browse files
committed
---
yaml --- r: 160543 b: refs/heads/auto c: f36ebb0 h: refs/heads/master i: 160541: 33af460 160539: 462a175 160535: 0f8046c 160527: 5d6e01c 160511: 6ac63fa v: v3
1 parent 8bdf334 commit 4c7aeca

File tree

247 files changed

+8167
-2345
lines changed

Some content is hidden

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

247 files changed

+8167
-2345
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: acfdb14044bc5a8320536d19c381fb9c04420e3b
13+
refs/heads/auto: f36ebb0eaaedf116bc9e663b9fe2246719b09268
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/AUTHORS.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ Cole Mickens <[email protected]>
121121
Colin Davidson <[email protected]>
122122
Colin Sherratt <[email protected]>
123123
Conrad Kleinespel <[email protected]>
124-
Corey Farwell <[email protected]>
125124
Corey Ford <[email protected]>
126125
Corey Richardson <[email protected]>
127126

branches/auto/configure

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -550,20 +550,10 @@ CFG_LIBDIR_RELATIVE=lib
550550
if [ "$CFG_OSTYPE" = "pc-windows-gnu" ]
551551
then
552552
CFG_LIBDIR_RELATIVE=bin
553-
CFG_LIBDIR="${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}"
554-
else
555-
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries (ignored on windows platform)"
556-
557-
case "$CFG_LIBDIR" in
558-
"$CFG_PREFIX"/*) CAT_INC=2;;
559-
"$CFG_PREFIX"*) CAT_INC=1;;
560-
*)
561-
err "libdir must begin with the prefix. Use --prefix to set it accordingly.";;
562-
esac
563-
564-
CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-`
565553
fi
566554

555+
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
556+
567557
if [ $HELP -eq 1 ]
568558
then
569559
echo
@@ -893,10 +883,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
893883
CFG_MANDIR=${CFG_MANDIR%/}
894884
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
895885
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
896-
CFG_SUPPORTED_TARGET=""
897-
for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
898-
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
899-
done
886+
CFG_SUPPORTED_TARGET="$(ls ${CFG_SRC_DIR}mk/cfg)"
900887

901888
# copy host-triples to target-triples so that hosts are a subset of targets
902889
V_TEMP=""
@@ -1002,15 +989,6 @@ for h in $CFG_HOST
1002989
do
1003990
for t in $CFG_TARGET
1004991
do
1005-
# host lib dir stage0
1006-
make_dir $h/stage0/lib
1007-
1008-
# target bin dir stage0
1009-
make_dir $h/stage0/lib/rustlib/$t/bin
1010-
1011-
# target lib dir stage0
1012-
make_dir $h/stage0/lib/rustlib/$t/lib
1013-
1014992
for i in 0 1 2 3
1015993
do
1016994
# host bin dir

branches/auto/mk/crates.mk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
40-
# Rust dependencies are listed bare (i.e. std) and native
40+
# Rust dependencies are listed bare (i.e. std, green) and native
4141
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std flate arena term \
52+
TARGET_CRATES := libc std green native flate arena term \
5353
serialize sync getopts collections test time rand \
5454
log regex graphviz core rbml alloc rustrt \
5555
unicode
@@ -66,6 +66,8 @@ DEPS_rustrt := alloc core libc collections native:rustrt_native
6666
DEPS_std := core libc rand alloc collections rustrt sync unicode \
6767
native:rust_builtin native:backtrace
6868
DEPS_graphviz := std
69+
DEPS_green := std native:context_switch
70+
DEPS_native := std
6971
DEPS_syntax := std term serialize log fmt_macros arena libc
7072
DEPS_rustc_trans := rustc rustc_back rustc_llvm libc
7173
DEPS_rustc := syntax flate arena serialize getopts rbml \
@@ -93,9 +95,9 @@ DEPS_regex := std
9395
DEPS_regex_macros = rustc syntax std regex
9496
DEPS_fmt_macros = std
9597

96-
TOOL_DEPS_compiletest := test getopts
97-
TOOL_DEPS_rustdoc := rustdoc
98-
TOOL_DEPS_rustc := rustc_trans
98+
TOOL_DEPS_compiletest := test getopts native
99+
TOOL_DEPS_rustdoc := rustdoc native
100+
TOOL_DEPS_rustc := rustc_trans native
99101
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
100102
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
101103
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs

branches/auto/mk/main.mk

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,7 @@ define SREQ
332332
# Destinations of artifacts for the host compiler
333333
HROOT$(1)_H_$(3) = $(3)/stage$(1)
334334
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
335-
ifeq ($$(CFG_WINDOWSY_$(3)),1)
336335
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
337-
else
338-
ifeq ($(1),0)
339-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/lib
340-
else
341-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
342-
endif
343-
endif
344336

345337
# Destinations of artifacts for target architectures
346338
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustlib/$(2)

branches/auto/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $(foreach cvar,CC CXX CPP CFLAGS CXXFLAGS CPPFLAGS, \
113113

114114
CFG_RLIB_GLOB=lib$(1)-*.rlib
115115

116-
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*.mk)
116+
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*)
117117

118118
# The -Qunused-arguments sidesteps spurious warnings from clang
119119
define FILTER_FLAGS

branches/auto/src/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Source layout:
99
| `libcore/` | The Rust core library |
1010
| `libdebug/` | Debugging utilities |
1111
| `libstd/` | The standard library (imported and linked by default) |
12+
| `libgreen/` | The M:N runtime library |
13+
| `libnative/` | The 1:1 runtime library |
1214
| `libsyntax/` | The Rust parser and pretty-printer |
1315
| `libtest/` | Rust's test-runner code |
1416
| ------------------- | --------------------------------------------------------- |

branches/auto/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ fn _arm_exec_compiled_test(config: &Config,
15661566

15671567
let mut exitcode: int = 0;
15681568
for c in exitcode_out.as_slice().chars() {
1569-
if !c.is_numeric() { break; }
1569+
if !c.is_digit() { break; }
15701570
exitcode = exitcode * 10 + match c {
15711571
'0' ... '9' => c as int - ('0' as int),
15721572
_ => 101,

branches/auto/src/doc/reference.md

Lines changed: 13 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -225,52 +225,6 @@ reserved for future extension, that is, the above gives the lexical
225225
grammar, but a Rust parser will reject everything but the 12 special
226226
cases mentioned in [Number literals](#number-literals) below.
227227

228-
#### Examples
229-
230-
##### Characters and strings
231-
232-
| | Example | Number of `#` pairs allowed | Available characters | Escapes | Equivalent to |
233-
|---|---------|-----------------------------|----------------------|---------|---------------|
234-
| [Character](#character-literals) | `'H'` | `N/A` | All unicode | `\'` & [Byte escapes](#byte-escapes) & [Unicode escapes](#unicode-escapes) | `N/A` |
235-
| [String](#string-literals) | `"hello"` | `N/A` | All unicode | `\"` & [Byte escapes](#byte-escapes) & [Unicode escapes](#unicode-escapes) | `N/A` |
236-
| [Raw](#raw-string-literals) | `r##"hello"##` | `0...` | All unicode | `N/A` | `N/A` |
237-
| [Byte](#byte-literals) | `b'H'` | `N/A` | All ASCII | `\'` & [Byte escapes](#byte-escapes) | `u8` |
238-
| [Byte string](#byte-string-literals) | `b"hello"` | `N/A` | All ASCII | `\"` & [Byte escapes](#byte-escapes) | `&'static [u8]` |
239-
| [Raw byte string](#raw-byte-string-literals) | `br##"hello"##` | `0...` | All ASCII | `N/A` | `&'static [u8]` (unsure...not stated) |
240-
241-
##### Byte escapes
242-
243-
| | Name |
244-
|---|------|
245-
| `\x7F` | 8-bit character code (exactly 2 digits) |
246-
| `\n` | Newline |
247-
| `\r` | Carriage return |
248-
| `\t` | Tab |
249-
| `\\` | Backslash |
250-
251-
##### Unicode escapes
252-
| | Name |
253-
|---|------|
254-
| `\u7FFF` | 16-bit character code (exactly 4 digits) |
255-
| `\U7EEEFFFF` | 32-bit character code (exactly 8 digits) |
256-
257-
##### Numbers
258-
259-
| [Number literals](#number-literals)`*` | Example | Exponentiation | Suffixes |
260-
|----------------------------------------|---------|----------------|----------|
261-
| Decimal integer | `98_222i` | `N/A` | Integer suffixes |
262-
| Hex integer | `0xffi` | `N/A` | Integer suffixes |
263-
| Octal integer | `0o77i` | `N/A` | Integer suffixes |
264-
| Binary integer | `0b1111_0000i` | `N/A` | Integer suffixes |
265-
| Floating-point | `123.0E+77f64` | `Optional` | Floating-point suffixes |
266-
267-
`*` All number literals allow `_` as a visual separator: `1_234.0E+18f64`
268-
269-
##### Suffixes
270-
| Integer | Floating-point |
271-
|---------|----------------|
272-
| `i` (`int`), `u` (`uint`), `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64` | `f32`, `f64` |
273-
274228
#### Character and string literals
275229

276230
```{.ebnf .gram}
@@ -299,21 +253,15 @@ nonzero_dec: '1' | '2' | '3' | '4'
299253
| '5' | '6' | '7' | '8' | '9' ;
300254
```
301255

302-
##### Character literals
303-
304256
A _character literal_ is a single Unicode character enclosed within two
305257
`U+0027` (single-quote) characters, with the exception of `U+0027` itself,
306258
which must be _escaped_ by a preceding U+005C character (`\`).
307259

308-
##### String literals
309-
310260
A _string literal_ is a sequence of any Unicode characters enclosed within two
311261
`U+0022` (double-quote) characters, with the exception of `U+0022` itself,
312262
which must be _escaped_ by a preceding `U+005C` character (`\`), or a _raw
313263
string literal_.
314264

315-
##### Character escapes
316-
317265
Some additional _escapes_ are available in either character or non-raw string
318266
literals. An escape starts with a `U+005C` (`\`) and continues with one of the
319267
following forms:
@@ -333,8 +281,6 @@ following forms:
333281
* The _backslash escape_ is the character `U+005C` (`\`) which must be
334282
escaped in order to denote *itself*.
335283

336-
##### Raw string literals
337-
338284
Raw string literals do not process any escapes. They start with the character
339285
`U+0072` (`r`), followed by zero or more of the character `U+0023` (`#`) and a
340286
`U+0022` (double-quote) character. The _raw string body_ is not defined in the
@@ -376,16 +322,12 @@ raw_byte_string : '"' raw_byte_string_body '"' | '#' raw_byte_string '#' ;
376322
377323
```
378324

379-
##### Byte literals
380-
381325
A _byte literal_ is a single ASCII character (in the `U+0000` to `U+007F`
382326
range) enclosed within two `U+0027` (single-quote) characters, with the
383327
exception of `U+0027` itself, which must be _escaped_ by a preceding U+005C
384328
character (`\`), or a single _escape_. It is equivalent to a `u8` unsigned
385329
8-bit integer _number literal_.
386330

387-
##### Byte string literals
388-
389331
A _byte string literal_ is a sequence of ASCII characters and _escapes_
390332
enclosed within two `U+0022` (double-quote) characters, with the exception of
391333
`U+0022` itself, which must be _escaped_ by a preceding `U+005C` character
@@ -405,8 +347,6 @@ following forms:
405347
* The _backslash escape_ is the character `U+005C` (`\`) which must be
406348
escaped in order to denote its ASCII encoding `0x5C`.
407349

408-
##### Raw byte string literals
409-
410350
Raw byte string literals do not process any escapes. They start with the
411351
character `U+0062` (`b`), followed by `U+0072` (`r`), followed by zero or more
412352
of the character `U+0023` (`#`), and a `U+0022` (double-quote) character. The
@@ -1059,14 +999,14 @@ An example of what will and will not work for `use` items:
1059999

10601000
```
10611001
# #![allow(unused_imports)]
1062-
use foo::core::iter; // good: foo is at the root of the crate
1002+
use foo::native::start; // good: foo is at the root of the crate
10631003
use foo::baz::foobaz; // good: foo is at the root of the crate
10641004
10651005
mod foo {
1066-
extern crate core;
1006+
extern crate native;
10671007
1068-
use foo::core::iter; // good: foo is at crate root
1069-
// use core::iter; // bad: native is not at the crate root
1008+
use foo::native::start; // good: foo is at crate root
1009+
// use native::start; // bad: native is not at the crate root
10701010
use self::baz::foobaz; // good: self refers to module 'foo'
10711011
use foo::bar::foobar; // good: foo is at crate root
10721012
@@ -1174,13 +1114,13 @@ Rust:
11741114
##### Unsafe functions
11751115

11761116
Unsafe functions are functions that are not safe in all contexts and/or for all
1177-
possible inputs. Such a function must be prefixed with the keyword `unsafe` and
1178-
can only be called from an `unsafe` block or another `unsafe` function.
1117+
possible inputs. Such a function must be prefixed with the keyword `unsafe`.
11791118

11801119
##### Unsafe blocks
11811120

1182-
A block of code can be prefixed with the `unsafe` keyword, to permit calling
1183-
`unsafe` functions or dereferencing raw pointers within a safe function.
1121+
A block of code can also be prefixed with the `unsafe` keyword, to permit
1122+
calling `unsafe` functions or dereferencing raw pointers within a safe
1123+
function.
11841124

11851125
When a programmer has sufficient conviction that a sequence of potentially
11861126
unsafe operations is actually safe, they can encapsulate that sequence (taken
@@ -1200,11 +1140,12 @@ represented with reference-counted pointers in safe code. By using `unsafe`
12001140
blocks to represent the reverse links as raw pointers, it can be implemented
12011141
with only boxes.
12021142

1203-
##### Behavior considered undefined
1143+
##### Behavior considered unsafe
12041144

1205-
The following is a list of behavior which is forbidden in all Rust code,
1206-
including within `unsafe` blocks and `unsafe` functions. Type checking provides
1207-
the guarantee that these issues are never caused by safe code.
1145+
This is a list of behavior which is forbidden in all Rust code. Type checking
1146+
provides the guarantee that these issues are never caused by safe code. An
1147+
`unsafe` block or function is responsible for never invoking this behaviour or
1148+
exposing an API making it possible for it to occur in safe code.
12081149

12091150
* Data races
12101151
* Dereferencing a null/dangling raw pointer

branches/auto/src/driver/driver.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![no_start]
12-
1311
#[cfg(rustdoc)]
1412
extern crate "rustdoc" as this;
1513

branches/auto/src/etc/install.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,9 @@ fi
301301
flag uninstall "only uninstall from the installation prefix"
302302
opt verify 1 "verify that the installed binaries run correctly"
303303
valopt prefix "/usr/local" "set installation prefix"
304-
# NB This is exactly the same definition as in `configure`.
304+
# NB This isn't quite the same definition as in `configure`.
305+
# just using 'lib' instead of CFG_LIBDIR_RELATIVE
305306
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
306-
case "$CFG_LIBDIR" in
307-
"$CFG_PREFIX"/*) CAT_INC=2;;
308-
"$CFG_PREFIX"*) CAT_INC=1;;
309-
*)
310-
err "libdir must begin with the prefix. Use --prefix to set it accordingly.";;
311-
esac
312-
CFG_LIBDIR_RELATIVE=`echo ${CFG_LIBDIR} | cut -c$((${#CFG_PREFIX}+${CAT_INC}))-`
313-
314307
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
315308

316309
if [ $HELP -eq 1 ]
@@ -435,9 +428,9 @@ while read p; do
435428
# Decide the destination of the file
436429
FILE_INSTALL_PATH="${CFG_PREFIX}/$p"
437430

438-
if echo "$p" | grep "^${CFG_LIBDIR_RELATIVE}/" > /dev/null
431+
if echo "$p" | grep "^lib/" > /dev/null
439432
then
440-
pp=`echo $p | sed "s%^${CFG_LIBDIR_RELATIVE}/%%"`
433+
pp=`echo $p | sed 's/^lib\///'`
441434
FILE_INSTALL_PATH="${CFG_LIBDIR}/$pp"
442435
fi
443436

0 commit comments

Comments
 (0)