Skip to content

Commit 7866a46

Browse files
committed
---
yaml --- r: 277115 b: refs/heads/try c: 73c2d2a h: refs/heads/master i: 277113: 8e83684 277111: 5c985f7
1 parent 58cdc4e commit 7866a46

File tree

48 files changed

+186
-372
lines changed

Some content is hidden

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

48 files changed

+186
-372
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: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 5d5f4b5e3fcd377400bcc2140621cff6fd73a617
4+
refs/heads/try: 73c2d2a7419844f763b1ac72b89236bd3183bfaf
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/RELEASES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ Compatibility Notes
418418
numbers [no longer return platform-specific types][1.8r], but
419419
instead return widened integers. [RFC 1415].
420420
* [Modules sourced from the filesystem cannot appear within arbitrary
421-
blocks, but only within other modules][1.8mf].
421+
blocks, but only within other modules][1.8m].
422422
* [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
423423
* On Unix, [stack overflow triggers a runtime abort instead of a
424424
SIGSEGV][1.8so].
@@ -448,7 +448,7 @@ Compatibility Notes
448448
[1.8h]: https://github.com/rust-lang/rust/pull/31460
449449
[1.8l]: https://github.com/rust-lang/rust/pull/31668
450450
[1.8m]: https://github.com/rust-lang/rust/pull/31020
451-
[1.8mf]: https://github.com/rust-lang/rust/pull/31534
451+
[1.8m]: https://github.com/rust-lang/rust/pull/31534
452452
[1.8mp]: https://github.com/rust-lang/rust/pull/30894
453453
[1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
454454
[1.8ms]: https://github.com/rust-lang/rust/pull/30448

branches/try/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.10.0
16+
CFG_RELEASE_NUM=1.9.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

branches/try/src/bootstrap/Cargo.lock

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

branches/try/src/bootstrap/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ path = "rustdoc.rs"
2121

2222
[dependencies]
2323
build_helper = { path = "../build_helper" }
24-
cmake = "0.1.17"
24+
cmake = "0.1.10"
2525
filetime = "0.1"
2626
num_cpus = "0.2"
2727
toml = "0.1"
@@ -31,4 +31,3 @@ winapi = "0.2"
3131
kernel32-sys = "0.2"
3232
gcc = "0.3.17"
3333
libc = "0.2"
34-
md5 = "0.1"

branches/try/src/bootstrap/build/channel.rs

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

11-
use std::env;
1211
use std::fs::{self, File};
1312
use std::io::prelude::*;
13+
use std::path::Path;
1414
use std::process::Command;
1515

1616
use build_helper::output;
17-
use md5;
1817

1918
use build::Build;
19+
use build::util::mtime;
2020

2121
pub fn collect(build: &mut Build) {
2222
let mut main_mk = String::new();
@@ -80,8 +80,7 @@ pub fn collect(build: &mut Build) {
8080
build.short_ver_hash = Some(short_ver_hash);
8181
}
8282

83-
let key = md5::compute(build.release.as_bytes());
84-
build.bootstrap_key = format!("{:02x}{:02x}{:02x}{:02x}",
85-
key[0], key[1], key[2], key[3]);
86-
env::set_var("RUSTC_BOOTSTRAP_KEY", &build.bootstrap_key);
83+
build.bootstrap_key = mtime(Path::new("config.toml")).seconds()
84+
.to_string();
8785
}
86+

branches/try/src/bootstrap/build/check.rs

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

11+
use std::fs;
12+
1113
use build::{Build, Compiler};
1214

1315
pub fn linkcheck(build: &Build, stage: u32, host: &str) {
@@ -29,9 +31,16 @@ pub fn cargotest(build: &Build, stage: u32, host: &str) {
2931
let sep = if cfg!(windows) { ";" } else {":" };
3032
let ref newpath = format!("{}{}{}", path.display(), sep, old_path);
3133

34+
// Note that this is a short, cryptic, and not scoped directory name. This
35+
// is currently to minimize the length of path on Windows where we otherwise
36+
// quickly run into path name limit constraints.
37+
let out_dir = build.out.join("ct");
38+
t!(fs::create_dir_all(&out_dir));
39+
3240
build.run(build.tool_cmd(compiler, "cargotest")
33-
.env("PATH", newpath)
34-
.arg(&build.cargo));
41+
.env("PATH", newpath)
42+
.arg(&build.cargo)
43+
.arg(&out_dir));
3544
}
3645

3746
pub fn tidy(build: &Build, stage: u32, host: &str) {

branches/try/src/bootstrap/build/config.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ use toml::{Parser, Decoder, Value};
3131
#[derive(Default)]
3232
pub struct Config {
3333
pub ccache: bool,
34-
pub ninja: bool,
3534
pub verbose: bool,
3635
pub submodules: bool,
3736
pub compiler_docs: bool,
@@ -108,7 +107,6 @@ struct Build {
108107
#[derive(RustcDecodable, Default)]
109108
struct Llvm {
110109
ccache: Option<bool>,
111-
ninja: Option<bool>,
112110
assertions: Option<bool>,
113111
optimize: Option<bool>,
114112
version_check: Option<bool>,
@@ -202,9 +200,9 @@ impl Config {
202200

203201
if let Some(ref llvm) = toml.llvm {
204202
set(&mut config.ccache, llvm.ccache);
205-
set(&mut config.ninja, llvm.ninja);
206203
set(&mut config.llvm_assertions, llvm.assertions);
207204
set(&mut config.llvm_optimize, llvm.optimize);
205+
set(&mut config.llvm_optimize, llvm.optimize);
208206
set(&mut config.llvm_version_check, llvm.version_check);
209207
set(&mut config.llvm_static_stdcpp, llvm.static_libstdcpp);
210208
}

branches/try/src/bootstrap/build/native.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ pub fn llvm(build: &Build, target: &str) {
4343

4444
// http://llvm.org/docs/CMake.html
4545
let mut cfg = cmake::Config::new(build.src.join("src/llvm"));
46-
if build.config.ninja {
47-
cfg.generator("Ninja");
48-
}
4946
cfg.target(target)
5047
.host(&build.config.build)
5148
.out_dir(&dst)

branches/try/src/bootstrap/build/sanity.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ pub fn check(build: &mut Build) {
4848
}
4949
}
5050
need_cmd("cmake".as_ref());
51-
if build.config.ninja {
52-
need_cmd("ninja".as_ref())
53-
}
5451
break
5552
}
5653

branches/try/src/bootstrap/build/step.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ impl<'a> Step<'a> {
318318
vec![self.tool_linkchecker(stage), self.doc(stage)]
319319
}
320320
Source::CheckCargoTest { stage } => {
321-
vec![self.tool_cargotest(stage)]
321+
vec![self.tool_cargotest(stage),
322+
self.librustc(self.compiler(stage))]
322323
}
323324
Source::CheckTidy { stage } => {
324325
vec![self.tool_tidy(stage)]
@@ -333,7 +334,7 @@ impl<'a> Step<'a> {
333334
vec![self.librustc(self.compiler(stage))]
334335
}
335336
Source::ToolCargoTest { stage } => {
336-
vec![self.librustc(self.compiler(stage))]
337+
vec![self.libstd(self.compiler(stage))]
337338
}
338339

339340
Source::DistDocs { stage } => vec![self.doc(stage)],

branches/try/src/bootstrap/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extern crate libc;
2020
extern crate num_cpus;
2121
extern crate rustc_serialize;
2222
extern crate toml;
23-
extern crate md5;
2423

2524
use std::env;
2625

branches/try/src/doc/book/guessing-game.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ fn main() {
988988
989989
# Complete!
990990
991-
This project showed you a lot: `let`, `match`, methods, associated
992-
functions, using external crates, and more.
993-
994991
At this point, you have successfully built the Guessing Game! Congratulations!
992+
993+
This first project showed you a lot: `let`, `match`, methods, associated
994+
functions, using external crates, and more. Our next project will show off
995+
even more.

branches/try/src/libcollections/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
2828

2929
#![cfg_attr(test, allow(deprecated))] // rand
30-
#![cfg_attr(not(test), feature(slice_binary_search_by_key))] // impl [T]
3130
#![cfg_attr(not(stage0), deny(warnings))]
3231

3332
#![feature(alloc)]
@@ -132,10 +131,3 @@ pub enum Bound<T> {
132131
/// An infinite endpoint. Indicates that there is no bound in this direction.
133132
Unbounded,
134133
}
135-
136-
/// An intermediate trait for specialization of `Extend`.
137-
#[doc(hidden)]
138-
trait SpecExtend<I: IntoIterator> {
139-
/// Extends `self` with the contents of the given iterator.
140-
fn spec_extend(&mut self, iter: I);
141-
}

branches/try/src/libcollections/linked_list.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ use core::mem;
3030
use core::ops::{BoxPlace, InPlace, Place, Placer};
3131
use core::ptr::{self, Shared};
3232

33-
use super::SpecExtend;
34-
3533
/// A doubly-linked list.
3634
#[stable(feature = "rust1", since = "1.0.0")]
3735
pub struct LinkedList<T> {
@@ -971,24 +969,12 @@ impl<'a, T> IntoIterator for &'a mut LinkedList<T> {
971969
#[stable(feature = "rust1", since = "1.0.0")]
972970
impl<A> Extend<A> for LinkedList<A> {
973971
fn extend<T: IntoIterator<Item = A>>(&mut self, iter: T) {
974-
<Self as SpecExtend<T>>::spec_extend(self, iter);
975-
}
976-
}
977-
978-
impl<I: IntoIterator> SpecExtend<I> for LinkedList<I::Item> {
979-
default fn spec_extend(&mut self, iter: I) {
980972
for elt in iter {
981973
self.push_back(elt);
982974
}
983975
}
984976
}
985977

986-
impl<T> SpecExtend<LinkedList<T>> for LinkedList<T> {
987-
fn spec_extend(&mut self, ref mut other: LinkedList<T>) {
988-
self.append(other);
989-
}
990-
}
991-
992978
#[stable(feature = "extend_ref", since = "1.2.0")]
993979
impl<'a, T: 'a + Copy> Extend<&'a T> for LinkedList<T> {
994980
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) {

branches/try/src/libcollections/slice.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -741,44 +741,6 @@ impl<T> [T] {
741741
core_slice::SliceExt::binary_search_by(self, f)
742742
}
743743

744-
/// Binary search a sorted slice with a key extraction function.
745-
///
746-
/// Assumes that the slice is sorted by the key, for instance with
747-
/// `sort_by_key` using the same key extraction function.
748-
///
749-
/// If a matching value is found then returns `Ok`, containing the
750-
/// index for the matched element; if no match is found then `Err`
751-
/// is returned, containing the index where a matching element could
752-
/// be inserted while maintaining sorted order.
753-
///
754-
/// # Examples
755-
///
756-
/// Looks up a series of four elements in a slice of pairs sorted by
757-
/// their second elements. The first is found, with a uniquely
758-
/// determined position; the second and third are not found; the
759-
/// fourth could match any position in `[1,4]`.
760-
///
761-
/// ```rust
762-
/// #![feature(slice_binary_search_by_key)]
763-
/// let s = [(0, 0), (2, 1), (4, 1), (5, 1), (3, 1),
764-
/// (1, 2), (2, 3), (4, 5), (5, 8), (3, 13),
765-
/// (1, 21), (2, 34), (4, 55)];
766-
///
767-
/// assert_eq!(s.binary_search_by_key(&13, |&(a,b)| b), Ok(9));
768-
/// assert_eq!(s.binary_search_by_key(&4, |&(a,b)| b), Err(7));
769-
/// assert_eq!(s.binary_search_by_key(&100, |&(a,b)| b), Err(13));
770-
/// let r = s.binary_search_by_key(&1, |&(a,b)| b);
771-
/// assert!(match r { Ok(1...4) => true, _ => false, });
772-
/// ```
773-
#[unstable(feature = "slice_binary_search_by_key", reason = "recently added", issue = "0")]
774-
#[inline]
775-
pub fn binary_search_by_key<B, F>(&self, b: &B, f: F) -> Result<usize, usize>
776-
where F: FnMut(&T) -> B,
777-
B: Ord
778-
{
779-
core_slice::SliceExt::binary_search_by_key(self, b, f)
780-
}
781-
782744
/// Sorts the slice, in place.
783745
///
784746
/// This is equivalent to `self.sort_by(|a, b| a.cmp(b))`.

branches/try/src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,9 @@ impl str {
634634
/// Basic usage:
635635
///
636636
/// ```
637-
/// let mut s = "Per Martin-Löf".to_string();
637+
/// let s = "Per Martin-Löf";
638638
///
639-
/// let (first, last) = s.split_at_mut(3);
639+
/// let (first, last) = s.split_at(3);
640640
///
641641
/// assert_eq!("Per", first);
642642
/// assert_eq!(" Martin-Löf", last);

branches/try/src/libcollections/vec.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ use core::ops;
7575
use core::ptr;
7676
use core::slice;
7777

78-
use super::SpecExtend;
7978
use super::range::RangeArgument;
8079

8180
/// A contiguous growable array type, written `Vec<T>` but pronounced 'vector.'
@@ -1391,22 +1390,10 @@ impl<'a, T> IntoIterator for &'a mut Vec<T> {
13911390
impl<T> Extend<T> for Vec<T> {
13921391
#[inline]
13931392
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
1394-
<Self as SpecExtend<I>>::spec_extend(self, iter);
1395-
}
1396-
}
1397-
1398-
impl<I: IntoIterator> SpecExtend<I> for Vec<I::Item> {
1399-
default fn spec_extend(&mut self, iter: I) {
14001393
self.extend_desugared(iter.into_iter())
14011394
}
14021395
}
14031396

1404-
impl<T> SpecExtend<Vec<T>> for Vec<T> {
1405-
fn spec_extend(&mut self, ref mut other: Vec<T>) {
1406-
self.append(other);
1407-
}
1408-
}
1409-
14101397
impl<T> Vec<T> {
14111398
fn extend_desugared<I: Iterator<Item = T>>(&mut self, mut iterator: I) {
14121399
// This function should be the moral equivalent of:

branches/try/src/libcollectionstest/linked_list.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -339,22 +339,6 @@ fn test_extend_ref() {
339339
assert_eq!(a, list_from(&[1, 2, 3, 4, 5, 6]));
340340
}
341341

342-
#[test]
343-
fn test_extend() {
344-
let mut a = LinkedList::new();
345-
a.push_back(1);
346-
a.extend(vec![2, 3, 4]); // uses iterator
347-
348-
assert_eq!(a.len(), 4);
349-
assert!(a.iter().eq(&[1, 2, 3, 4]));
350-
351-
let b: LinkedList<_> = vec![5, 6, 7].into_iter().collect();
352-
a.extend(b); // specializes to `append`
353-
354-
assert_eq!(a.len(), 7);
355-
assert!(a.iter().eq(&[1, 2, 3, 4, 5, 6, 7]));
356-
}
357-
358342
#[bench]
359343
fn bench_collect_into(b: &mut test::Bencher) {
360344
let v = &[0; 64];

0 commit comments

Comments
 (0)