Skip to content

Commit 593352b

Browse files
committed
---
yaml --- r: 178078 b: refs/heads/auto c: 6342af8 h: refs/heads/master v: v3
1 parent c99722b commit 593352b

File tree

426 files changed

+2724
-6345
lines changed

Some content is hidden

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

426 files changed

+2724
-6345
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: 85aba7575bdefa218279f4560d553695c8f830c8
13+
refs/heads/auto: 6342af8c51acc6345c8c566e6cb326381bdbd01f
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/COPYRIGHT

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

2525
* Two header files that are part of the Valgrind
26-
package. These files are found at src/rt/valgrind/valgrind.h and
27-
src/rt/valgrind/memcheck.h, within this distribution. These files
26+
package. These files are found at src/rt/vg/valgrind.h and
27+
src/rt/vg/memcheck.h, within this distribution. These files
2828
are redistributed under the following terms, as noted in
2929
them:
3030

31-
for src/rt/valgrind/valgrind.h:
31+
for src/rt/vg/valgrind.h:
3232

3333
This file is part of Valgrind, a dynamic binary
3434
instrumentation framework.
@@ -74,7 +74,7 @@ their own copyright notices and license terms:
7474
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
7575
OF SUCH DAMAGE.
7676

77-
for src/rt/valgrind/memcheck.h:
77+
for src/rt/vg/memcheck.h:
7878

7979
This file is part of MemCheck, a heavyweight Valgrind
8080
tool for detecting memory errors.
@@ -120,6 +120,18 @@ their own copyright notices and license terms:
120120
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121121
OF SUCH DAMAGE.
122122

123+
* The auxiliary file src/etc/pkg/modpath.iss contains a
124+
library routine compiled, by Inno Setup, into the Windows
125+
installer binary. This file is licensed under the LGPL,
126+
version 3, but, in our legal interpretation, this does not
127+
affect the aggregate "collected work" license of the Rust
128+
distribution (MIT/ASL2) nor any other components of it. We
129+
believe that the terms governing distribution of the
130+
binary Windows installer built from modpath.iss are
131+
therefore LGPL, but not the terms governing distribution
132+
of any of the files installed by such an installer (such
133+
as the Rust compiler or runtime libraries themselves).
134+
123135
* The src/rt/miniz.c file, carrying an implementation of
124136
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
125137
<[email protected]>. All uses of this file are

branches/auto/configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,6 @@ case $CFG_OSTYPE in
374374
CFG_OSTYPE=unknown-dragonfly
375375
;;
376376

377-
OpenBSD)
378-
CFG_OSTYPE=unknown-openbsd
379-
;;
380-
381377
Darwin)
382378
CFG_OSTYPE=apple-darwin
383379
;;

branches/auto/mk/cfg/x86_64-unknown-openbsd.mk

Lines changed: 0 additions & 26 deletions
This file was deleted.

branches/auto/src/compiletest/compiletest.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![feature(std_misc)]
2323
#![feature(test)]
2424
#![feature(unicode)]
25-
#![feature(env)]
2625

2726
#![deny(warnings)]
2827

@@ -32,7 +31,7 @@ extern crate getopts;
3231
#[macro_use]
3332
extern crate log;
3433

35-
use std::env;
34+
use std::os;
3635
use std::old_io;
3736
use std::old_io::fs;
3837
use std::thunk::Thunk;
@@ -49,7 +48,7 @@ pub mod common;
4948
pub mod errors;
5049

5150
pub fn main() {
52-
let args = env::args().map(|s| s.into_string().unwrap()).collect();;
51+
let args = os::args();
5352
let config = parse_config(args);
5453

5554
if config.valgrind_path.is_none() && config.force_valgrind {
@@ -225,15 +224,15 @@ pub fn run_tests(config: &Config) {
225224
//arm-linux-androideabi debug-info test uses remote debugger
226225
//so, we test 1 task at once.
227226
// also trying to isolate problems with adb_run_wrapper.sh ilooping
228-
env::set_var("RUST_TEST_TASKS","1");
227+
os::setenv("RUST_TEST_TASKS","1");
229228
}
230229

231230
match config.mode {
232231
DebugInfoLldb => {
233232
// Some older versions of LLDB seem to have problems with multiple
234233
// instances running in parallel, so only run one test task at a
235234
// time.
236-
env::set_var("RUST_TEST_TASKS", "1");
235+
os::setenv("RUST_TEST_TASKS", "1");
237236
}
238237
_ => { /* proceed */ }
239238
}
@@ -246,7 +245,7 @@ pub fn run_tests(config: &Config) {
246245
old_io::test::raise_fd_limit();
247246
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
248247
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
249-
env::set_var("__COMPAT_LAYER", "RunAsInvoker");
248+
os::setenv("__COMPAT_LAYER", "RunAsInvoker");
250249
let res = test::run_tests_console(&opts, tests.into_iter().collect());
251250
match res {
252251
Ok(true) => {}

branches/auto/src/compiletest/runtest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::old_io::process::ProcessExit;
3131
use std::old_io::process;
3232
use std::old_io::timer;
3333
use std::old_io;
34-
use std::env;
34+
use std::os;
3535
use std::iter::repeat;
3636
use std::str;
3737
use std::string::String;
@@ -1298,9 +1298,9 @@ fn make_lib_name(config: &Config, auxfile: &Path, testfile: &Path) -> Path {
12981298

12991299
fn make_exe_name(config: &Config, testfile: &Path) -> Path {
13001300
let mut f = output_base_name(config, testfile);
1301-
if !env::consts::EXE_SUFFIX.is_empty() {
1301+
if !os::consts::EXE_SUFFIX.is_empty() {
13021302
let mut fname = f.filename().unwrap().to_vec();
1303-
fname.extend(env::consts::EXE_SUFFIX.bytes());
1303+
fname.extend(os::consts::EXE_SUFFIX.bytes());
13041304
f.set_filename(fname);
13051305
}
13061306
f

branches/auto/src/compiletest/util.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -23,7 +23,6 @@ static OS_TABLE: &'static [(&'static str, &'static str)] = &[
2323
("linux", "linux"),
2424
("freebsd", "freebsd"),
2525
("dragonfly", "dragonfly"),
26-
("openbsd", "openbsd"),
2726
];
2827

2928
pub fn get_os(triple: &str) -> &'static str {

branches/auto/src/doc/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ Let's see an example. This Rust code will not compile:
424424
use std::thread::Thread;
425425
426426
fn main() {
427-
let mut numbers = vec![1, 2, 3];
427+
let mut numbers = vec![1is, 2, 3];
428428
429429
for i in 0..3 {
430430
Thread::spawn(move || {
@@ -478,7 +478,7 @@ use std::thread::Thread;
478478
use std::sync::{Arc,Mutex};
479479
480480
fn main() {
481-
let numbers = Arc::new(Mutex::new(vec![1, 2, 3]));
481+
let numbers = Arc::new(Mutex::new(vec![1is, 2, 3]));
482482
483483
for i in 0us..3 {
484484
let number = numbers.clone();
@@ -539,7 +539,7 @@ safety check that makes this an error about moved values:
539539
use std::thread::Thread;
540540
541541
fn main() {
542-
let vec = vec![1, 2, 3];
542+
let vec = vec![1is, 2, 3];
543543
544544
for i in 0us..3 {
545545
Thread::spawn(move || {

branches/auto/src/doc/reference.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ cases mentioned in [Number literals](#number-literals) below.
268268
##### Suffixes
269269
| Integer | Floating-point |
270270
|---------|----------------|
271-
| `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64`, `is` (`isize`), `us` (`usize`) | `f32`, `f64` |
271+
| `is` (`isize`), `us` (`usize`), `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64` | `f32`, `f64` |
272272

273273
#### Character and string literals
274274

@@ -468,29 +468,27 @@ Like any literal, an integer literal may be followed (immediately,
468468
without any spaces) by an _integer suffix_, which forcibly sets the
469469
type of the literal. There are 10 valid values for an integer suffix:
470470

471+
* The `is` and `us` suffixes give the literal type `isize` or `usize`,
472+
respectively.
471473
* Each of the signed and unsigned machine types `u8`, `i8`,
472474
`u16`, `i16`, `u32`, `i32`, `u64` and `i64`
473475
give the literal the corresponding machine type.
474-
* The `is` and `us` suffixes give the literal type `isize` or `usize`,
475-
respectively.
476476

477477
The type of an _unsuffixed_ integer literal is determined by type inference.
478478
If an integer type can be _uniquely_ determined from the surrounding program
479479
context, the unsuffixed integer literal has that type. If the program context
480-
underconstrains the type, it defaults to the signed 32-bit integer `i32`; if
481-
the program context overconstrains the type, it is considered a static type
482-
error.
480+
underconstrains the type, it is considered a static type error; if the program
481+
context overconstrains the type, it is also considered a static type error.
483482

484483
Examples of integer literals of various forms:
485484

486485
```
487-
123i32; // type i32
488-
123u32; // type u32
489-
123_u32; // type u32
486+
123is; // type isize
487+
123us; // type usize
488+
123_us; // type usize
490489
0xff_u8; // type u8
491490
0o70_i16; // type i16
492491
0b1111_1111_1001_0000_i32; // type i32
493-
0us; // type usize
494492
```
495493

496494
##### Floating-point literals
@@ -1137,8 +1135,8 @@ used as a type name.
11371135

11381136
When a generic function is referenced, its type is instantiated based on the
11391137
context of the reference. For example, calling the `iter` function defined
1140-
above on `[1, 2]` will instantiate type parameter `T` with `i32`, and require
1141-
the closure parameter to have type `fn(i32)`.
1138+
above on `[1, 2]` will instantiate type parameter `T` with `isize`, and require
1139+
the closure parameter to have type `fn(isize)`.
11421140

11431141
The type parameters can also be explicitly supplied in a trailing
11441142
[path](#paths) component after the function name. This might be necessary if
@@ -2197,8 +2195,7 @@ The following configurations must be defined by the implementation:
21972195
`"unix"` or `"windows"`. The value of this configuration option is defined
21982196
as a configuration itself, like `unix` or `windows`.
21992197
* `target_os = "..."`. Operating system of the target, examples include
2200-
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"` or
2201-
`"openbsd"`.
2198+
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"` or `"dragonfly"`.
22022199
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
22032200
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
22042201
pointers.
@@ -2749,9 +2746,9 @@ constant expression that can be evaluated at compile time, such as a
27492746
[literal](#literals) or a [static item](#static-items).
27502747

27512748
```
2752-
[1, 2, 3, 4];
2749+
[1is, 2, 3, 4];
27532750
["a", "b", "c", "d"];
2754-
[0; 128]; // array with 128 zeros
2751+
[0is; 128]; // array with 128 zeros
27552752
[0u8, 0u8, 0u8, 0u8];
27562753
```
27572754

@@ -2924,7 +2921,7 @@ moves](#moved-and-copied-types) its right-hand operand to its left-hand
29242921
operand.
29252922

29262923
```
2927-
# let mut x = 0;
2924+
# let mut x = 0is;
29282925
# let y = 0;
29292926
29302927
x = y;
@@ -3310,11 +3307,11 @@ fn main() {
33103307
```
33113308

33123309
Patterns can also dereference pointers by using the `&`, `&mut` and `box`
3313-
symbols, as appropriate. For example, these two matches on `x: &i32` are
3310+
symbols, as appropriate. For example, these two matches on `x: &isize` are
33143311
equivalent:
33153312

33163313
```
3317-
# let x = &3;
3314+
# let x = &3is;
33183315
let y = match *x { 0 => "zero", _ => "some" };
33193316
let z = match x { &0 => "zero", _ => "some" };
33203317
@@ -3335,7 +3332,7 @@ Multiple match patterns may be joined with the `|` operator. A range of values
33353332
may be specified with `...`. For example:
33363333

33373334
```
3338-
# let x = 2;
3335+
# let x = 2is;
33393336
33403337
let message = match x {
33413338
0 | 1 => "not many",
@@ -3676,16 +3673,16 @@ The type of a closure mapping an input of type `A` to an output of type `B` is
36763673
An example of creating and calling a closure:
36773674

36783675
```rust
3679-
let captured_var = 10;
3676+
let captured_var = 10is;
36803677

36813678
let closure_no_args = |&:| println!("captured_var={}", captured_var);
36823679

3683-
let closure_args = |&: arg: i32| -> i32 {
3680+
let closure_args = |&: arg: isize| -> isize {
36843681
println!("captured_var={}, arg={}", captured_var, arg);
36853682
arg // Note lack of semicolon after 'arg'
36863683
};
36873684

3688-
fn call_closure<F: Fn(), G: Fn(i32) -> i32>(c1: F, c2: G) {
3685+
fn call_closure<F: Fn(), G: Fn(isize) -> isize>(c1: F, c2: G) {
36893686
c1();
36903687
c2(2);
36913688
}
@@ -3717,7 +3714,7 @@ trait Printable {
37173714
fn stringify(&self) -> String;
37183715
}
37193716
3720-
impl Printable for i32 {
3717+
impl Printable for isize {
37213718
fn stringify(&self) -> String { self.to_string() }
37223719
}
37233720
@@ -3726,7 +3723,7 @@ fn print(a: Box<Printable>) {
37263723
}
37273724
37283725
fn main() {
3729-
print(Box::new(10) as Box<Printable>);
3726+
print(Box::new(10is) as Box<Printable>);
37303727
}
37313728
```
37323729

branches/auto/src/doc/trpl/comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ When writing doc comments, adding sections for any arguments, return values,
4343
and providing some examples of usage is very, very helpful. Don't worry about
4444
the `&str`, we'll get to it soon.
4545

46-
You can use the [`rustdoc`](documentation.html) tool to generate HTML documentation
46+
You can use the [`rustdoc`](../rustdoc.html) tool to generate HTML documentation
4747
from these doc comments.

branches/auto/src/etc/local_stage0.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Copyright 2014-2015 The Rust Project Developers. See the COPYRIGHT
2+
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
33
# file at the top-level directory of this distribution and at
44
# http://rust-lang.org/COPYRIGHT.
55
#
@@ -18,7 +18,7 @@ LIB_PREFIX=lib
1818

1919
OS=`uname -s`
2020
case $OS in
21-
("Linux"|"FreeBSD"|"DragonFly"|"OpenBSD")
21+
("Linux"|"FreeBSD"|"DragonFly")
2222
BIN_SUF=
2323
LIB_SUF=.so
2424
;;

branches/auto/src/etc/make-win-dist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def make_win_dist(rust_root, gcc_root, target_triple):
8787
"libsetupapi.a",
8888
"libshell32.a",
8989
"libuser32.a",
90-
"libuserenv.a",
9190
"libuuid.a",
9291
"libwinhttp.a",
9392
"libwinmm.a",

0 commit comments

Comments
 (0)