Skip to content

Commit cd5b534

Browse files
committed
---
yaml --- r: 178071 b: refs/heads/auto c: 902abab h: refs/heads/master i: 178069: f4fa7cf 178067: 0e6770f 178063: 9b0d660 v: v3
1 parent bd3e118 commit cd5b534

File tree

368 files changed

+4190
-1963
lines changed

Some content is hidden

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

368 files changed

+4190
-1963
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: 70ed3a48dfa301c5bb56de3e0a7c25214539b83c
13+
refs/heads/auto: 902abab14475c4ed5885c1993492e89745edf0ad
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/COPYRIGHT

Lines changed: 4 additions & 16 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/vg/valgrind.h and
27-
src/rt/vg/memcheck.h, within this distribution. These files
26+
package. These files are found at src/rt/valgrind/valgrind.h and
27+
src/rt/valgrind/memcheck.h, within this distribution. These files
2828
are redistributed under the following terms, as noted in
2929
them:
3030

31-
for src/rt/vg/valgrind.h:
31+
for src/rt/valgrind/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/vg/memcheck.h:
77+
for src/rt/valgrind/memcheck.h:
7878

7979
This file is part of MemCheck, a heavyweight Valgrind
8080
tool for detecting memory errors.
@@ -120,18 +120,6 @@ 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-
135123
* The src/rt/miniz.c file, carrying an implementation of
136124
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
137125
<[email protected]>. All uses of this file are

branches/auto/configure

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

377+
OpenBSD)
378+
CFG_OSTYPE=unknown-openbsd
379+
;;
380+
377381
Darwin)
378382
CFG_OSTYPE=apple-darwin
379383
;;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# x86_64-pc-openbsd-elf configuration
2+
CC_x86_64-unknown-openbsd=$(CC)
3+
CXX_x86_64-unknown-openbsd=$(CXX)
4+
CPP_x86_64-unknown-openbsd=$(CPP)
5+
AR_x86_64-unknown-openbsd=$(AR)
6+
CFG_LIB_NAME_x86_64-unknown-openbsd=lib$(1).so
7+
CFG_STATIC_LIB_NAME_x86_64-unknown-openbsd=lib$(1).a
8+
CFG_LIB_GLOB_x86_64-unknown-openbsd=lib$(1)-*.so
9+
CFG_LIB_DSYM_GLOB_x86_64-unknown-openbsd=$(1)-*.dylib.dSYM
10+
CFG_JEMALLOC_CFLAGS_x86_64-unknown-openbsd := -m64 -I/usr/include $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_x86_64-unknown-openbsd := -Wall -Werror -g -fPIC -m64 -I/usr/include $(CFLAGS)
12+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-openbsd := -shared -fPIC -g -pthread -m64
13+
CFG_GCCISH_DEF_FLAG_x86_64-unknown-openbsd := -Wl,--export-dynamic,--dynamic-list=
14+
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-openbsd := -Wl,-whole-archive
15+
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-openbsd := -Wl,-no-whole-archive
16+
CFG_DEF_SUFFIX_x86_64-unknown-openbsd := .bsd.def
17+
CFG_LLC_FLAGS_x86_64-unknown-openbsd :=
18+
CFG_INSTALL_NAME_x86_64-unknown-openbsd =
19+
CFG_EXE_SUFFIX_x86_64-unknown-openbsd :=
20+
CFG_WINDOWSY_x86_64-unknown-openbsd :=
21+
CFG_UNIXY_x86_64-unknown-openbsd := 1
22+
CFG_PATH_MUNGE_x86_64-unknown-openbsd :=
23+
CFG_LDPATH_x86_64-unknown-openbsd :=
24+
CFG_RUN_x86_64-unknown-openbsd=$(2)
25+
CFG_RUN_TARG_x86_64-unknown-openbsd=$(call CFG_RUN_x86_64-unknown-openbsd,,$(2))
26+
CFG_GNU_TRIPLE_x86_64-unknown-openbsd := x86_64-unknown-openbsd

branches/auto/src/compiletest/util.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2015 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,6 +23,7 @@ static OS_TABLE: &'static [(&'static str, &'static str)] = &[
2323
("linux", "linux"),
2424
("freebsd", "freebsd"),
2525
("dragonfly", "dragonfly"),
26+
("openbsd", "openbsd"),
2627
];
2728

2829
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![1is, 2, 3];
427+
let mut numbers = vec![1, 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![1is, 2, 3]));
481+
let numbers = Arc::new(Mutex::new(vec![1, 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![1is, 2, 3];
542+
let vec = vec![1, 2, 3];
543543
544544
for i in 0us..3 {
545545
Thread::spawn(move || {

branches/auto/src/doc/reference.md

Lines changed: 25 additions & 22 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-
| `is` (`isize`), `us` (`usize`), `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64` | `f32`, `f64` |
271+
| `u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`, `i64`, `is` (`isize`), `us` (`usize`) | `f32`, `f64` |
272272

273273
#### Character and string literals
274274

@@ -468,27 +468,29 @@ 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.
473471
* Each of the signed and unsigned machine types `u8`, `i8`,
474472
`u16`, `i16`, `u32`, `i32`, `u64` and `i64`
475473
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 is considered a static type error; if the program
481-
context overconstrains the type, it is also considered a static type error.
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.
482483

483484
Examples of integer literals of various forms:
484485

485486
```
486-
123is; // type isize
487-
123us; // type usize
488-
123_us; // type usize
487+
123i32; // type i32
488+
123u32; // type u32
489+
123_u32; // type u32
489490
0xff_u8; // type u8
490491
0o70_i16; // type i16
491492
0b1111_1111_1001_0000_i32; // type i32
493+
0us; // type usize
492494
```
493495

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

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

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

27482751
```
2749-
[1is, 2, 3, 4];
2752+
[1, 2, 3, 4];
27502753
["a", "b", "c", "d"];
2751-
[0is; 128]; // array with 128 zeros
2754+
[0; 128]; // array with 128 zeros
27522755
[0u8, 0u8, 0u8, 0u8];
27532756
```
27542757

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

29232926
```
2924-
# let mut x = 0is;
2927+
# let mut x = 0;
29252928
# let y = 0;
29262929
29272930
x = y;
@@ -3307,11 +3310,11 @@ fn main() {
33073310
```
33083311

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

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

33343337
```
3335-
# let x = 2is;
3338+
# let x = 2;
33363339
33373340
let message = match x {
33383341
0 | 1 => "not many",
@@ -3673,16 +3676,16 @@ The type of a closure mapping an input of type `A` to an output of type `B` is
36733676
An example of creating and calling a closure:
36743677

36753678
```rust
3676-
let captured_var = 10is;
3679+
let captured_var = 10;
36773680

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

3680-
let closure_args = |&: arg: isize| -> isize {
3683+
let closure_args = |&: arg: i32| -> i32 {
36813684
println!("captured_var={}, arg={}", captured_var, arg);
36823685
arg // Note lack of semicolon after 'arg'
36833686
};
36843687

3685-
fn call_closure<F: Fn(), G: Fn(isize) -> isize>(c1: F, c2: G) {
3688+
fn call_closure<F: Fn(), G: Fn(i32) -> i32>(c1: F, c2: G) {
36863689
c1();
36873690
c2(2);
36883691
}
@@ -3714,7 +3717,7 @@ trait Printable {
37143717
fn stringify(&self) -> String;
37153718
}
37163719
3717-
impl Printable for isize {
3720+
impl Printable for i32 {
37183721
fn stringify(&self) -> String { self.to_string() }
37193722
}
37203723
@@ -3723,7 +3726,7 @@ fn print(a: Box<Printable>) {
37233726
}
37243727
37253728
fn main() {
3726-
print(Box::new(10is) as Box<Printable>);
3729+
print(Box::new(10) as Box<Printable>);
37273730
}
37283731
```
37293732

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 The Rust Project Developers. See the COPYRIGHT
2+
# Copyright 2014-2015 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")
21+
("Linux"|"FreeBSD"|"DragonFly"|"OpenBSD")
2222
BIN_SUF=
2323
LIB_SUF=.so
2424
;;

branches/auto/src/etc/snapshot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2011-2014 The Rust Project Developers. See the COPYRIGHT
1+
# Copyright 2011-2015 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
#
@@ -46,6 +46,7 @@ def scrub(b):
4646
"winnt": ["bin/rustc.exe"],
4747
"freebsd": ["bin/rustc"],
4848
"dragonfly": ["bin/rustc"],
49+
"openbsd": ["bin/rustc"],
4950
}
5051

5152
winnt_runtime_deps_32 = ["libgcc_s_dw2-1.dll", "libstdc++-6.dll"]
@@ -100,6 +101,8 @@ def get_kernel(triple):
100101
return "freebsd"
101102
if os_name == "dragonfly":
102103
return "dragonfly"
104+
if os_name == "openbsd":
105+
return "openbsd"
103106
return "linux"
104107

105108

branches/auto/src/liballoc/arc.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//!
4040
//! let five = Arc::new(5);
4141
//!
42-
//! for _ in 0u..10 {
42+
//! for _ in 0..10 {
4343
//! let five = five.clone();
4444
//!
4545
//! Thread::spawn(move || {
@@ -56,7 +56,7 @@
5656
//!
5757
//! let five = Arc::new(Mutex::new(5));
5858
//!
59-
//! for _ in 0u..10 {
59+
//! for _ in 0..10 {
6060
//! let five = five.clone();
6161
//!
6262
//! Thread::spawn(move || {
@@ -101,7 +101,7 @@ use heap::deallocate;
101101
/// let numbers: Vec<_> = (0..100u32).map(|i| i as f32).collect();
102102
/// let shared_numbers = Arc::new(numbers);
103103
///
104-
/// for _ in 0u..10 {
104+
/// for _ in 0..10 {
105105
/// let child_numbers = shared_numbers.clone();
106106
///
107107
/// Thread::spawn(move || {
@@ -661,7 +661,7 @@ mod tests {
661661

662662
#[test]
663663
fn test_cowarc_clone_make_unique() {
664-
let mut cow0 = Arc::new(75u);
664+
let mut cow0 = Arc::new(75);
665665
let mut cow1 = cow0.clone();
666666
let mut cow2 = cow1.clone();
667667

@@ -685,7 +685,7 @@ mod tests {
685685

686686
#[test]
687687
fn test_cowarc_clone_unique2() {
688-
let mut cow0 = Arc::new(75u);
688+
let mut cow0 = Arc::new(75);
689689
let cow1 = cow0.clone();
690690
let cow2 = cow1.clone();
691691

@@ -708,7 +708,7 @@ mod tests {
708708

709709
#[test]
710710
fn test_cowarc_clone_weak() {
711-
let mut cow0 = Arc::new(75u);
711+
let mut cow0 = Arc::new(75);
712712
let cow1_weak = cow0.downgrade();
713713

714714
assert!(75 == *cow0);

0 commit comments

Comments
 (0)