Skip to content

Commit 92ba656

Browse files
committed
---
yaml --- r: 210339 b: refs/heads/try c: 30b883b h: refs/heads/master i: 210337: 96062cc 210335: 27d3b97 v: v3
1 parent c9302ab commit 92ba656

File tree

20 files changed

+54
-682
lines changed

20 files changed

+54
-682
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 0848d1c6a5908a9c3e6545e8a527027b164c7d05
5+
refs/heads/try: 30b883b93f94be643e4b29e32bc8dcdbf07bf1d9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/mk/crates.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_data_structures
5959
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
6060
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
61-
TOOLS := compiletest rustdoc rustc rustbook error-index-generator
61+
TOOLS := compiletest rustdoc rustc rustbook
6262

6363
DEPS_core :=
6464
DEPS_libc := core
@@ -107,12 +107,10 @@ TOOL_DEPS_compiletest := test getopts
107107
TOOL_DEPS_rustdoc := rustdoc
108108
TOOL_DEPS_rustc := rustc_driver
109109
TOOL_DEPS_rustbook := std rustdoc
110-
TOOL_DEPS_error-index-generator := rustdoc syntax serialize
111110
TOOL_SOURCE_compiletest := $(S)src/compiletest/compiletest.rs
112111
TOOL_SOURCE_rustdoc := $(S)src/driver/driver.rs
113112
TOOL_SOURCE_rustc := $(S)src/driver/driver.rs
114113
TOOL_SOURCE_rustbook := $(S)src/rustbook/main.rs
115-
TOOL_SOURCE_error-index-generator := $(S)src/error-index-generator/main.rs
116114

117115
ONLY_RLIB_core := 1
118116
ONLY_RLIB_libc := 1

branches/try/mk/docs.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,9 @@ RUSTBOOK_EXE = $(HBIN2_H_$(CFG_BUILD))/rustbook$(X_$(CFG_BUILD))
7171
# ./configure
7272
RUSTBOOK = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(RUSTBOOK_EXE)
7373

74-
# The error-index-generator executable...
75-
ERR_IDX_GEN_EXE = $(HBIN2_H_$(CFG_BUILD))/error-index-generator$(X_$(CFG_BUILD))
76-
ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
77-
7874
D := $(S)src/doc
7975

80-
DOC_TARGETS := trpl style error-index
76+
DOC_TARGETS := trpl style
8177
COMPILER_DOC_TARGETS :=
8278
DOC_L10N_TARGETS :=
8379

@@ -292,9 +288,3 @@ doc/style/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/style/*.md) | doc/
292288
@$(call E, rustbook: $@)
293289
$(Q)rm -rf doc/style
294290
$(Q)$(RUSTBOOK) build $(S)src/doc/style doc/style
295-
296-
error-index: doc/error-index.html
297-
298-
doc/error-index.html: $(ERR_IDX_GEN_EXE) | doc/
299-
$(Q)$(call E, error-index-generator: $@)
300-
$(Q)$(ERR_IDX_GEN)

branches/try/mk/prepare.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ define PREPARE_MAN
7070
$(Q)$(PREPARE_MAN_CMD) $(PREPARE_SOURCE_MAN_DIR)/$(1) $(PREPARE_DEST_MAN_DIR)/$(1)
7171
endef
7272

73-
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS))
73+
PREPARE_TOOLS = $(filter-out compiletest rustbook, $(TOOLS))
7474

7575

7676
# $(1) is tool

branches/try/src/error-index-generator/main.rs

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

branches/try/src/libcollections/slice.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -996,13 +996,9 @@ impl<T> [T] {
996996
////////////////////////////////////////////////////////////////////////////////
997997
// Extension traits for slices over specific kinds of data
998998
////////////////////////////////////////////////////////////////////////////////
999-
#[unstable(feature = "collections", reason = "recently changed")]
999+
#[unstable(feature = "collections", reason = "U should be an associated type")]
10001000
/// An extension trait for concatenating slices
1001-
pub trait SliceConcatExt<T: ?Sized> {
1002-
#[unstable(feature = "collections", reason = "recently changed")]
1003-
/// The resulting type after concatenation
1004-
type Output;
1005-
1001+
pub trait SliceConcatExt<T: ?Sized, U> {
10061002
/// Flattens a slice of `T` into a single value `U`.
10071003
///
10081004
/// # Examples
@@ -1011,7 +1007,7 @@ pub trait SliceConcatExt<T: ?Sized> {
10111007
/// assert_eq!(["hello", "world"].concat(), "helloworld");
10121008
/// ```
10131009
#[stable(feature = "rust1", since = "1.0.0")]
1014-
fn concat(&self) -> Self::Output;
1010+
fn concat(&self) -> U;
10151011

10161012
/// Flattens a slice of `T` into a single value `U`, placing a given separator between each.
10171013
///
@@ -1021,12 +1017,10 @@ pub trait SliceConcatExt<T: ?Sized> {
10211017
/// assert_eq!(["hello", "world"].connect(" "), "hello world");
10221018
/// ```
10231019
#[stable(feature = "rust1", since = "1.0.0")]
1024-
fn connect(&self, sep: &T) -> Self::Output;
1020+
fn connect(&self, sep: &T) -> U;
10251021
}
10261022

1027-
impl<T: Clone, V: AsRef<[T]>> SliceConcatExt<T> for [V] {
1028-
type Output = Vec<T>;
1029-
1023+
impl<T: Clone, V: AsRef<[T]>> SliceConcatExt<T, Vec<T>> for [V] {
10301024
fn concat(&self) -> Vec<T> {
10311025
let size = self.iter().fold(0, |acc, v| acc + v.as_ref().len());
10321026
let mut result = Vec::with_capacity(size);

branches/try/src/libcollections/str.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ pub use core::str::pattern;
8383
Section: Creating a string
8484
*/
8585

86-
impl<S: AsRef<str>> SliceConcatExt<str> for [S] {
87-
type Output = String;
88-
86+
impl<S: AsRef<str>> SliceConcatExt<str, String> for [S] {
8987
fn concat(&self) -> String {
9088
if self.is_empty() {
9189
return String::new();

branches/try/src/libcollections/vec_deque.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,42 +1395,6 @@ impl<T> VecDeque<T> {
13951395
// naive impl
13961396
self.extend(other.drain());
13971397
}
1398-
1399-
/// Retains only the elements specified by the predicate.
1400-
///
1401-
/// In other words, remove all elements `e` such that `f(&e)` returns false.
1402-
/// This method operates in place and preserves the order of the retained
1403-
/// elements.
1404-
///
1405-
/// # Examples
1406-
///
1407-
/// ```
1408-
/// # #![feature(vec_deque_retain)]
1409-
/// use std::collections::VecDeque;
1410-
///
1411-
/// let mut buf = VecDeque::new();
1412-
/// buf.extend(1..5);
1413-
/// buf.retain(|&x| x%2 == 0);
1414-
///
1415-
/// let v: Vec<_> = buf.into_iter().collect();
1416-
/// assert_eq!(&v[..], &[2, 4]);
1417-
/// ```
1418-
#[unstable(feature = "vec_deque_retain",
1419-
reason = "new API, waiting for dust to settle")]
1420-
pub fn retain<F>(&mut self, mut f: F) where F: FnMut(&T) -> bool {
1421-
let len = self.len();
1422-
let mut del = 0;
1423-
for i in 0..len {
1424-
if !f(&self[i]) {
1425-
del += 1;
1426-
} else if del > 0 {
1427-
self.swap(i-del, i);
1428-
}
1429-
}
1430-
if del > 0 {
1431-
self.truncate(len - del);
1432-
}
1433-
}
14341398
}
14351399

14361400
impl<T: Clone> VecDeque<T> {

branches/try/src/libcollectionstest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#![feature(into_cow)]
2222
#![feature(step_by)]
2323
#![cfg_attr(test, feature(str_char))]
24-
#![cfg_attr(test, feature(vec_deque_retain))]
2524

2625
#[macro_use] extern crate log;
2726

branches/try/src/libcollectionstest/vec_deque.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -885,12 +885,3 @@ fn test_append() {
885885
assert_eq!(b.iter().cloned().collect::<Vec<_>>(), [1, 2, 3, 4, 5, 6]);
886886
assert_eq!(a.iter().cloned().collect::<Vec<_>>(), []);
887887
}
888-
889-
#[test]
890-
fn test_retain() {
891-
let mut buf = VecDeque::new();
892-
buf.extend(1..5);
893-
buf.retain(|&x| x % 2 == 0);
894-
let v: Vec<_> = buf.into_iter().collect();
895-
assert_eq!(&v[..], &[2, 4]);
896-
}

0 commit comments

Comments
 (0)