Skip to content

Commit e034699

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 178683 b: refs/heads/snap-stage3 c: 134cf70 h: refs/heads/master i: 178681: a19ad74 178679: 6ab1ba0 v: v3
1 parent ac273e4 commit e034699

File tree

181 files changed

+1406
-4347
lines changed

Some content is hidden

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

181 files changed

+1406
-4347
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: 075588a4939acb47feea79779a9bdacce702d9c5
4+
refs/heads/snap-stage3: 134cf707dfb8f37d735d20ff261366b7c2d916a6
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: 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/snap-stage3/mk/cfg/x86_64-unknown-openbsd.mk

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

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ mod foo {
10631063
extern crate core;
10641064
10651065
use foo::core::iter; // good: foo is at crate root
1066-
// use core::iter; // bad: core is not at the crate root
1066+
// use core::iter; // bad: native is not at the crate root
10671067
use self::baz::foobaz; // good: self refers to module 'foo'
10681068
use foo::bar::foobar; // good: foo is at crate root
10691069
@@ -2197,8 +2197,7 @@ The following configurations must be defined by the implementation:
21972197
`"unix"` or `"windows"`. The value of this configuration option is defined
21982198
as a configuration itself, like `unix` or `windows`.
21992199
* `target_os = "..."`. Operating system of the target, examples include
2200-
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"`, `"dragonfly"` or
2201-
`"openbsd"`.
2200+
`"win32"`, `"macos"`, `"linux"`, `"android"`, `"freebsd"` or `"dragonfly"`.
22022201
* `target_word_size = "..."`. Target word size in bits. This is set to `"32"`
22032202
for targets with 32-bit pointers, and likewise set to `"64"` for 64-bit
22042203
pointers.

branches/snap-stage3/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/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-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/snap-stage3/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",

branches/snap-stage3/src/etc/snapshot.py

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

5251
winnt_runtime_deps_32 = ["libgcc_s_dw2-1.dll", "libstdc++-6.dll"]
@@ -101,8 +100,6 @@ def get_kernel(triple):
101100
return "freebsd"
102101
if os_name == "dragonfly":
103102
return "dragonfly"
104-
if os_name == "openbsd":
105-
return "openbsd"
106103
return "linux"
107104

108105

branches/snap-stage3/src/libbacktrace/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9332,7 +9332,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
93329332
;;
93339333
93349334
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9335-
freebsd* | dragonfly* | openbsd*)
9335+
freebsd* | dragonfly*)
93369336
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
93379337
hardcode_libdir_flag_spec='-R$libdir'
93389338
hardcode_direct=yes

branches/snap-stage3/src/libcollections/slice.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ use core::iter::{range_step, MultiplicativeIterator};
9898
use core::marker::Sized;
9999
use core::mem::size_of;
100100
use core::mem;
101-
#[cfg(stage0)]
102-
use core::ops::{FnMut, FullRange};
103-
#[cfg(not(stage0))]
104101
use core::ops::FnMut;
105102
use core::option::Option::{self, Some, None};
106103
use core::ptr::PtrExt;
@@ -1512,9 +1509,6 @@ mod tests {
15121509
use core::prelude::{Some, None, range, Clone};
15131510
use core::prelude::{Iterator, IteratorExt};
15141511
use core::prelude::{AsSlice};
1515-
#[cfg(stage0)]
1516-
use core::prelude::{Ord, FullRange};
1517-
#[cfg(not(stage0))]
15181512
use core::prelude::Ord;
15191513
use core::default::Default;
15201514
use core::mem;

branches/snap-stage3/src/libcollections/str.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ use core::clone::Clone;
6161
use core::iter::AdditiveIterator;
6262
use core::iter::{Iterator, IteratorExt};
6363
use core::ops::Index;
64-
#[cfg(stage0)]
65-
use core::ops::FullRange as RangeFull;
66-
#[cfg(stage0)]
67-
use core::ops::FullRange;
68-
#[cfg(not(stage0))]
6964
use core::ops::RangeFull;
7065
use core::option::Option::{self, Some, None};
7166
use core::result::Result;

branches/snap-stage3/src/libcollections/string.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -877,16 +877,6 @@ impl ops::Index<ops::RangeFrom<uint>> for String {
877877
&self[][*index]
878878
}
879879
}
880-
#[cfg(stage0)]
881-
#[stable(feature = "rust1", since = "1.0.0")]
882-
impl ops::Index<ops::FullRange> for String {
883-
type Output = str;
884-
#[inline]
885-
fn index(&self, _index: &ops::FullRange) -> &str {
886-
unsafe { mem::transmute(self.vec.as_slice()) }
887-
}
888-
}
889-
#[cfg(not(stage0))]
890880
#[stable(feature = "rust1", since = "1.0.0")]
891881
impl ops::Index<ops::RangeFull> for String {
892882
type Output = str;
@@ -1011,8 +1001,6 @@ mod tests {
10111001
use str::Utf8Error;
10121002
use core::iter::repeat;
10131003
use super::{as_string, CowString};
1014-
#[cfg(stage0)]
1015-
use core::ops::FullRange;
10161004

10171005
#[test]
10181006
fn test_as_string() {

branches/snap-stage3/src/libcollections/vec.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,16 +1318,6 @@ impl<T> ops::Index<ops::RangeFrom<uint>> for Vec<T> {
13181318
self.as_slice().index(index)
13191319
}
13201320
}
1321-
#[cfg(stage0)]
1322-
#[stable(feature = "rust1", since = "1.0.0")]
1323-
impl<T> ops::Index<ops::FullRange> for Vec<T> {
1324-
type Output = [T];
1325-
#[inline]
1326-
fn index(&self, _index: &ops::FullRange) -> &[T] {
1327-
self.as_slice()
1328-
}
1329-
}
1330-
#[cfg(not(stage0))]
13311321
#[stable(feature = "rust1", since = "1.0.0")]
13321322
impl<T> ops::Index<ops::RangeFull> for Vec<T> {
13331323
type Output = [T];
@@ -1361,16 +1351,6 @@ impl<T> ops::IndexMut<ops::RangeFrom<uint>> for Vec<T> {
13611351
self.as_mut_slice().index_mut(index)
13621352
}
13631353
}
1364-
#[cfg(stage0)]
1365-
#[stable(feature = "rust1", since = "1.0.0")]
1366-
impl<T> ops::IndexMut<ops::FullRange> for Vec<T> {
1367-
type Output = [T];
1368-
#[inline]
1369-
fn index_mut(&mut self, _index: &ops::FullRange) -> &mut [T] {
1370-
self.as_mut_slice()
1371-
}
1372-
}
1373-
#[cfg(not(stage0))]
13741354
#[stable(feature = "rust1", since = "1.0.0")]
13751355
impl<T> ops::IndexMut<ops::RangeFull> for Vec<T> {
13761356
type Output = [T];
@@ -1934,8 +1914,6 @@ mod tests {
19341914
use prelude::*;
19351915
use core::mem::size_of;
19361916
use core::iter::repeat;
1937-
#[cfg(stage0)]
1938-
use core::ops::FullRange;
19391917
use test::Bencher;
19401918
use super::as_vec;
19411919

branches/snap-stage3/src/libcore/array.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ use fmt;
2020
use hash::{Hash, Hasher, self};
2121
use iter::IntoIterator;
2222
use marker::Copy;
23-
#[cfg(stage0)]
24-
use ops::{Deref, FullRange};
25-
#[cfg(not(stage0))]
2623
use ops::Deref;
2724
use option::Option;
2825
use slice::{Iter, IterMut, SliceExt};

0 commit comments

Comments
 (0)