Skip to content

Commit bdfcb6d

Browse files
committed
---
yaml --- r: 236531 b: refs/heads/tmp c: f34eafd h: refs/heads/master i: 236529: 3f83c7b 236527: bd589e3 v: v3
1 parent 2d603e5 commit bdfcb6d

File tree

12 files changed

+31
-71
lines changed

12 files changed

+31
-71
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 355bbfb8955ffdfb2bb7940ca1b38f2bbb5defd4
28+
refs/heads/tmp: f34eafdcf9486189f594dc1e38a5b490bcba67ec
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/mk/grammar.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ check-lexer: $(BG) $(BG)RustLexer.class check-build-lexer-verifier
5858
$(Q)$(SG)check.sh $(S) "$(BG)" \
5959
"$(CFG_GRUN)" "$(BG)verify" "$(BG)RustLexer.tokens"
6060
else
61-
$(info cfg: lexer tooling not available, skipping lexer test...)
61+
$(info cfg: grun not available, skipping lexer test...)
6262
check-lexer:
6363

6464
endif
6565
else
66-
$(info cfg: lexer tooling not available, skipping lexer test...)
66+
$(info cfg: antlr4 not available, skipping lexer test...)
6767
check-lexer:
6868

6969
endif
7070
else
71-
$(info cfg: lexer tooling not available, skipping lexer test...)
71+
$(info cfg: javac not available, skipping lexer test...)
7272
check-lexer:
7373

7474
endif

branches/tmp/src/doc/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ An example of a function:
921921

922922
```
923923
fn add(x: i32, y: i32) -> i32 {
924-
return x + y;
924+
x + y
925925
}
926926
```
927927

branches/tmp/src/libcollections/binary_heap.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,22 +167,12 @@ use vec::{self, Vec};
167167
/// item's ordering relative to any other item, as determined by the `Ord`
168168
/// trait, changes while it is in the heap. This is normally only possible
169169
/// through `Cell`, `RefCell`, global state, I/O, or unsafe code.
170+
#[derive(Clone)]
170171
#[stable(feature = "rust1", since = "1.0.0")]
171172
pub struct BinaryHeap<T> {
172173
data: Vec<T>,
173174
}
174175

175-
#[stable(feature = "rust1", since = "1.0.0")]
176-
impl<T: Clone> Clone for BinaryHeap<T> {
177-
fn clone(&self) -> Self {
178-
BinaryHeap { data: self.data.clone() }
179-
}
180-
181-
fn clone_from(&mut self, source: &Self) {
182-
self.data.clone_from(&source.data);
183-
}
184-
}
185-
186176
#[stable(feature = "rust1", since = "1.0.0")]
187177
impl<T: Ord> Default for BinaryHeap<T> {
188178
#[inline]

branches/tmp/src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#![feature(unsafe_no_drop_flag, filling_drop)]
6363
#![feature(decode_utf16)]
6464
#![feature(utf8_error)]
65-
#![cfg_attr(test, feature(clone_from_slice, rand, test))]
65+
#![cfg_attr(test, feature(rand, test))]
6666

6767
#![feature(no_std)]
6868
#![no_std]

branches/tmp/src/libcollections/str.rs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ impl str {
715715
/// Returns `None` if it doesn't exist.
716716
///
717717
/// The pattern can be a simple `&str`, `char`, or a closure that
718-
/// determines if a character matches.
718+
/// determines the
719+
/// split.
719720
///
720721
/// # Examples
721722
///
@@ -759,7 +760,7 @@ impl str {
759760
/// Returns `None` if it doesn't exist.
760761
///
761762
/// The pattern can be a simple `&str`, `char`,
762-
/// or a closure that determines if a character matches.
763+
/// or a closure that determines the split.
763764
///
764765
/// # Examples
765766
///
@@ -1095,7 +1096,7 @@ impl str {
10951096
/// An iterator over the matches of a pattern within `self`.
10961097
///
10971098
/// The pattern can be a simple `&str`, `char`, or a closure that
1098-
/// determines if a character matches.
1099+
/// determines the split.
10991100
/// Additional libraries might provide more complex patterns like
11001101
/// regular expressions.
11011102
///
@@ -1128,7 +1129,7 @@ impl str {
11281129
/// reverse order.
11291130
///
11301131
/// The pattern can be a simple `&str`, `char`, or a closure that
1131-
/// determines if a character matches.
1132+
/// determines the split.
11321133
/// Additional libraries might provide more complex patterns like
11331134
/// regular expressions.
11341135
///
@@ -1165,7 +1166,8 @@ impl str {
11651166
/// match are returned.
11661167
///
11671168
/// The pattern can be a simple `&str`, `char`, or a closure that
1168-
/// determines if a character matches.
1169+
/// determines
1170+
/// the split.
11691171
/// Additional libraries might provide more complex patterns like
11701172
/// regular expressions.
11711173
///
@@ -1212,7 +1214,8 @@ impl str {
12121214
/// match are returned.
12131215
///
12141216
/// The pattern can be a simple `&str`, `char`, or a closure that
1215-
/// determines if a character matches.
1217+
/// determines
1218+
/// the split.
12161219
/// Additional libraries might provide more complex patterns like
12171220
/// regular expressions.
12181221
///
@@ -1293,7 +1296,7 @@ impl str {
12931296
/// repeatedly removed.
12941297
///
12951298
/// The pattern can be a simple `char`, or a closure that determines
1296-
/// if a character matches.
1299+
/// the split.
12971300
///
12981301
/// # Examples
12991302
///
@@ -1323,7 +1326,7 @@ impl str {
13231326
/// repeatedly removed.
13241327
///
13251328
/// The pattern can be a simple `&str`, `char`, or a closure that
1326-
/// determines if a character matches.
1329+
/// determines the split.
13271330
///
13281331
/// # Examples
13291332
///
@@ -1343,7 +1346,7 @@ impl str {
13431346
/// repeatedly removed.
13441347
///
13451348
/// The pattern can be a simple `&str`, `char`, or a closure that
1346-
/// determines if a character matches.
1349+
/// determines the split.
13471350
///
13481351
/// # Examples
13491352
///

branches/tmp/src/libcollections/string.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use vec::Vec;
3030
use boxed::Box;
3131

3232
/// A growable string stored as a UTF-8 encoded buffer.
33-
#[derive(PartialOrd, Eq, Ord)]
33+
#[derive(Clone, PartialOrd, Eq, Ord)]
3434
#[stable(feature = "rust1", since = "1.0.0")]
3535
pub struct String {
3636
vec: Vec<u8>,
@@ -765,17 +765,6 @@ impl fmt::Display for FromUtf16Error {
765765
}
766766
}
767767

768-
#[stable(feature = "rust1", since = "1.0.0")]
769-
impl Clone for String {
770-
fn clone(&self) -> Self {
771-
String { vec: self.vec.clone() }
772-
}
773-
774-
fn clone_from(&mut self, source: &Self) {
775-
self.vec.clone_from(&source.vec);
776-
}
777-
}
778-
779768
#[stable(feature = "rust1", since = "1.0.0")]
780769
impl FromIterator<char> for String {
781770
fn from_iter<I: IntoIterator<Item=char>>(iterable: I) -> String {

branches/tmp/src/libcollections/vec.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,15 +1007,19 @@ impl<T:Clone> Clone for Vec<T> {
10071007

10081008
fn clone_from(&mut self, other: &Vec<T>) {
10091009
// drop anything in self that will not be overwritten
1010-
self.truncate(other.len());
1011-
let len = self.len();
1010+
if self.len() > other.len() {
1011+
self.truncate(other.len())
1012+
}
10121013

10131014
// reuse the contained values' allocations/resources.
1014-
self.clone_from_slice(&other[..len]);
1015+
for (place, thing) in self.iter_mut().zip(other) {
1016+
place.clone_from(thing)
1017+
}
10151018

10161019
// self.len <= other.len due to the truncate above, so the
10171020
// slice here is always in-bounds.
1018-
self.push_all(&other[len..]);
1021+
let slice = &other[self.len()..];
1022+
self.push_all(slice);
10191023
}
10201024
}
10211025

branches/tmp/src/liblibc/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,12 +1683,10 @@ pub mod types {
16831683
pub mod posix01 {
16841684
use types::common::c95::{c_void};
16851685
use types::common::c99::{uint32_t, uint64_t};
1686-
use types::os::arch::c95::{c_long, time_t};
1686+
use types::os::arch::c95::{c_int, c_uint, c_long, time_t};
16871687
use types::os::arch::posix88::{dev_t, gid_t};
16881688
use types::os::arch::posix88::{mode_t, off_t};
16891689
use types::os::arch::posix88::{uid_t};
1690-
#[cfg(target_os = "netbsd")]
1691-
use types::os::arch::c95::{c_int, c_uint};
16921690

16931691
pub type nlink_t = uint32_t;
16941692
pub type blksize_t = uint32_t;

branches/tmp/src/librustc/middle/liveness.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,8 +1399,9 @@ fn check_arm(this: &mut Liveness, arm: &hir::Arm) {
13991399

14001400
fn check_expr(this: &mut Liveness, expr: &Expr) {
14011401
match expr.node {
1402-
hir::ExprAssign(ref l, _) => {
1402+
hir::ExprAssign(ref l, ref r) => {
14031403
this.check_lvalue(&**l);
1404+
this.visit_expr(&**r);
14041405

14051406
visit::walk_expr(this, expr);
14061407
}

branches/tmp/src/test/compile-fail/issue-22599.rs

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

branches/tmp/src/test/run-make/tools.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ ifeq ($(UNAME),Bitrig)
8585
else
8686
ifeq ($(UNAME),OpenBSD)
8787
EXTRACFLAGS := -lm -lpthread
88-
# extend search lib for found estdc++ if build using gcc from
89-
# ports under OpenBSD. This is needed for:
90-
# - run-make/execution-engine
91-
# - run-make/issue-19371
92-
RUSTC := $(RUSTC) -L/usr/local/lib
9388
else
9489
EXTRACFLAGS := -lm -lrt -ldl -lpthread
9590
EXTRACXXFLAGS := -lstdc++

0 commit comments

Comments
 (0)