Skip to content

Commit 6cc3e8b

Browse files
committed
---
yaml --- r: 178651 b: refs/heads/snap-stage3 c: fcb30a0 h: refs/heads/master i: 178649: 656caad 178647: f46498a v: v3
1 parent 7708b5d commit 6cc3e8b

File tree

350 files changed

+2855
-2957
lines changed

Some content is hidden

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

350 files changed

+2855
-2957
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 3d072a193bfcb76206aab576049e696d6d8db25d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9529ab0e7e469940db890604060c073179db8464
4+
refs/heads/snap-stage3: fcb30a0b67b1bd4acbc3422ff74fac5d031ae1ae
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/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/snap-stage3/src/doc/reference.md

Lines changed: 23 additions & 24 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,7 +2195,8 @@ 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"` or `"dragonfly"`.
2198+
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"` or
2199+
`"openbsd"`.
22012200
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
22022201
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
22032202
pointers.
@@ -2748,9 +2747,9 @@ constant expression that can be evaluated at compile time, such as a
27482747
[literal](#literals) or a [static item](#static-items).
27492748

27502749
```
2751-
[1, 2, 3, 4];
2750+
[1is, 2, 3, 4];
27522751
["a", "b", "c", "d"];
2753-
[0; 128]; // array with 128 zeros
2752+
[0is; 128]; // array with 128 zeros
27542753
[0u8, 0u8, 0u8, 0u8];
27552754
```
27562755

@@ -2923,7 +2922,7 @@ moves](#moved-and-copied-types) its right-hand operand to its left-hand
29232922
operand.
29242923

29252924
```
2926-
# let mut x = 0;
2925+
# let mut x = 0is;
29272926
# let y = 0;
29282927
29292928
x = y;
@@ -3309,11 +3308,11 @@ fn main() {
33093308
```
33103309

33113310
Patterns can also dereference pointers by using the `&`, `&mut` and `box`
3312-
symbols, as appropriate. For example, these two matches on `x: &i32` are
3311+
symbols, as appropriate. For example, these two matches on `x: &isize` are
33133312
equivalent:
33143313

33153314
```
3316-
# let x = &3;
3315+
# let x = &3is;
33173316
let y = match *x { 0 => "zero", _ => "some" };
33183317
let z = match x { &0 => "zero", _ => "some" };
33193318
@@ -3334,7 +3333,7 @@ Multiple match patterns may be joined with the `|` operator. A range of values
33343333
may be specified with `...`. For example:
33353334

33363335
```
3337-
# let x = 2;
3336+
# let x = 2is;
33383337
33393338
let message = match x {
33403339
0 | 1 => "not many",
@@ -3675,16 +3674,16 @@ The type of a closure mapping an input of type `A` to an output of type `B` is
36753674
An example of creating and calling a closure:
36763675

36773676
```rust
3678-
let captured_var = 10;
3677+
let captured_var = 10is;
36793678

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

3682-
let closure_args = |&: arg: i32| -> i32 {
3681+
let closure_args = |&: arg: isize| -> isize {
36833682
println!("captured_var={}, arg={}", captured_var, arg);
36843683
arg // Note lack of semicolon after 'arg'
36853684
};
36863685

3687-
fn call_closure<F: Fn(), G: Fn(i32) -> i32>(c1: F, c2: G) {
3686+
fn call_closure<F: Fn(), G: Fn(isize) -> isize>(c1: F, c2: G) {
36883687
c1();
36893688
c2(2);
36903689
}
@@ -3716,7 +3715,7 @@ trait Printable {
37163715
fn stringify(&self) -> String;
37173716
}
37183717
3719-
impl Printable for i32 {
3718+
impl Printable for isize {
37203719
fn stringify(&self) -> String { self.to_string() }
37213720
}
37223721
@@ -3725,7 +3724,7 @@ fn print(a: Box<Printable>) {
37253724
}
37263725
37273726
fn main() {
3728-
print(Box::new(10) as Box<Printable>);
3727+
print(Box::new(10is) as Box<Printable>);
37293728
}
37303729
```
37313730

branches/snap-stage3/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/snap-stage3/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/snap-stage3/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 0..10 {
42+
//! for _ in 0u..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 0..10 {
59+
//! for _ in 0u..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 0..10 {
104+
/// for _ in 0u..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(75);
664+
let mut cow0 = Arc::new(75u);
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(75);
688+
let mut cow0 = Arc::new(75u);
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(75);
711+
let mut cow0 = Arc::new(75u);
712712
let cow1_weak = cow0.downgrade();
713713

714714
assert!(75 == *cow0);

0 commit comments

Comments
 (0)