Skip to content

Commit 800dba5

Browse files
committed
---
yaml --- r: 173491 b: refs/heads/master c: 2a320f2 h: refs/heads/master i: 173489: 996de61 173487: bdd946c v: v3
1 parent 5b3525a commit 800dba5

File tree

246 files changed

+1672
-3809
lines changed

Some content is hidden

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

246 files changed

+1672
-3809
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0c96037ec1676b420002a06ea337865f95abbf2c
2+
refs/heads/master: 2a320f21d0e5f943b9cd02bb7882531bfb7ef0b9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 210f0dcf007104240b2e286ed0b80cb4a61d7bae
55
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c

trunk/configure

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ case $CFG_CPUTYPE in
448448
CFG_CPUTYPE=aarch64
449449
;;
450450

451-
powerpc)
452-
CFG_CPUTYPE=powerpc
453-
;;
454-
455451
x86_64 | x86-64 | x64 | amd64)
456452
CFG_CPUTYPE=x86_64
457453
;;
@@ -1008,7 +1004,7 @@ do
10081004
make_dir $t/rt/jemalloc
10091005
for i in \
10101006
isaac sync test \
1011-
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips arch/powerpc
1007+
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
10121008
do
10131009
make_dir $t/rt/stage$s/$i
10141010
done
@@ -1173,7 +1169,7 @@ do
11731169

11741170
msg "configuring LLVM for $gnu_t"
11751171

1176-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips,powerpc"
1172+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
11771173
LLVM_BUILD="--build=$gnu_t"
11781174
LLVM_HOST="--host=$gnu_t"
11791175
LLVM_TARGET="--target=$gnu_t"

trunk/mk/cfg/powerpc-unknown-linux-gnu.mk

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

trunk/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ endif
263263
######################################################################
264264

265265
# FIXME: x86-ism
266-
LLVM_COMPONENTS=x86 arm aarch64 mips powerpc ipo bitreader bitwriter linker asmparser mcjit \
266+
LLVM_COMPONENTS=x86 arm aarch64 mips ipo bitreader bitwriter linker asmparser mcjit \
267267
interpreter instrumentation
268268

269269
# Only build these LLVM tools

trunk/mk/platform.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ define CFG_MAKE_TOOLCHAIN
177177
$$(CFG_GCCISH_DEF_FLAG_$(1))$$(3) $$(2) \
178178
$$(call CFG_INSTALL_NAME_$(1),$$(4))
179179

180-
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)
180+
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel),)
181181

182182
# We're using llvm-mc as our assembler because it supports
183183
# .cfi pseudo-ops on mac
@@ -189,7 +189,7 @@ define CFG_MAKE_TOOLCHAIN
189189
-o=$$(1)
190190
else
191191

192-
# For the ARM, AARCH64, MIPS and POWER crosses, use the toolchain assembler
192+
# For the ARM, AARCH64 and MIPS crosses, use the toolchain assembler
193193
# FIXME: We should be able to use the LLVM assembler
194194
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
195195
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)

trunk/src/compiletest/runtest.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -966,16 +966,6 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
966966
line.starts_with( prefix )
967967
}
968968

969-
// A multi-line error will have followup lines which will always
970-
// start with one of these strings.
971-
fn continuation( line: &str) -> bool {
972-
line.starts_with(" expected") ||
973-
line.starts_with(" found") ||
974-
// 1234
975-
// Should have 4 spaces: see issue 18946
976-
line.starts_with("(")
977-
}
978-
979969
// Scan and extract our error/warning messages,
980970
// which look like:
981971
// filename:line1:col1: line2:col2: *error:* msg
@@ -991,7 +981,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
991981
ee.kind,
992982
ee.msg,
993983
line);
994-
if (prefix_matches(line, prefixes[i].as_slice()) || continuation(line)) &&
984+
if prefix_matches(line, prefixes[i].as_slice()) &&
995985
line.contains(ee.kind.as_slice()) &&
996986
line.contains(ee.msg.as_slice()) {
997987
found_flags[i] = true;

trunk/src/doc/reference.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,13 +2117,6 @@ macro scope.
21172117
destructors from being run twice. Destructors might be run multiple times on
21182118
the same object with this attribute.
21192119
- `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
2120-
- `rustc_on_unimplemented` - Write a custom note to be shown along with the error
2121-
when the trait is found to be unimplemented on a type.
2122-
You may use format arguments like `{T}`, `{A}` to correspond to the
2123-
types at the point of use corresponding to the type parameters of the
2124-
trait of the same name. `{Self}` will be replaced with the type that is supposed
2125-
to implement the trait but doesn't. To use this, the `on_unimplemented` feature gate
2126-
must be enabled.
21272120

21282121
### Conditional compilation
21292122

@@ -2170,7 +2163,7 @@ arbitrarily complex configurations through nesting.
21702163
The following configurations must be defined by the implementation:
21712164

21722165
* `target_arch = "..."`. Target CPU architecture, such as `"x86"`, `"x86_64"`
2173-
`"mips"`, `"powerpc"`, `"arm"`, or `"aarch64"`.
2166+
`"mips"`, `"arm"`, or `"aarch64"`.
21742167
* `target_endian = "..."`. Endianness of the target CPU, either `"little"` or
21752168
`"big"`.
21762169
* `target_family = "..."`. Operating system family of the target, e. g.

trunk/src/etc/emacs/rust-mode.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@
3131
(modify-syntax-entry ?\" "\"" table)
3232
(modify-syntax-entry ?\\ "\\" table)
3333

34-
;; mark _ as a word constituent so that identifiers
35-
;; such as xyz_type don't cause type to be highlighted
36-
;; as a keyword
37-
(modify-syntax-entry ?_ "w" table)
38-
3934
;; Comments
4035
(modify-syntax-entry ?/ ". 124b" table)
4136
(modify-syntax-entry ?* ". 23" table)

trunk/src/liballoc/arc.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ unsafe impl<T: Sync + Send> Send for Weak<T> { }
137137
unsafe impl<T: Sync + Send> Sync for Weak<T> { }
138138

139139
struct ArcInner<T> {
140-
strong: atomic::AtomicUsize,
141-
weak: atomic::AtomicUsize,
140+
strong: atomic::AtomicUint,
141+
weak: atomic::AtomicUint,
142142
data: T,
143143
}
144144

@@ -161,8 +161,8 @@ impl<T> Arc<T> {
161161
// Start the weak pointer count as 1 which is the weak pointer that's
162162
// held by all the strong pointers (kinda), see std/rc.rs for more info
163163
let x = box ArcInner {
164-
strong: atomic::AtomicUsize::new(1),
165-
weak: atomic::AtomicUsize::new(1),
164+
strong: atomic::AtomicUint::new(1),
165+
weak: atomic::AtomicUint::new(1),
166166
data: data,
167167
};
168168
Arc { _ptr: unsafe { NonZero::new(mem::transmute(x)) } }
@@ -619,7 +619,7 @@ mod tests {
619619
use super::{Arc, Weak, weak_count, strong_count};
620620
use std::sync::Mutex;
621621

622-
struct Canary(*mut atomic::AtomicUsize);
622+
struct Canary(*mut atomic::AtomicUint);
623623

624624
impl Drop for Canary
625625
{
@@ -743,16 +743,16 @@ mod tests {
743743

744744
#[test]
745745
fn drop_arc() {
746-
let mut canary = atomic::AtomicUsize::new(0);
747-
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
746+
let mut canary = atomic::AtomicUint::new(0);
747+
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
748748
drop(x);
749749
assert!(canary.load(Acquire) == 1);
750750
}
751751

752752
#[test]
753753
fn drop_arc_weak() {
754-
let mut canary = atomic::AtomicUsize::new(0);
755-
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
754+
let mut canary = atomic::AtomicUint::new(0);
755+
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
756756
let arc_weak = arc.downgrade();
757757
assert!(canary.load(Acquire) == 0);
758758
drop(arc);

trunk/src/liballoc/heap.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ unsafe fn exchange_free(ptr: *mut u8, old_size: uint, align: uint) {
119119
not(feature = "external_crate"),
120120
any(target_arch = "arm",
121121
target_arch = "mips",
122-
target_arch = "mipsel",
123-
target_arch = "powerpc")))]
122+
target_arch = "mipsel")))]
124123
const MIN_ALIGN: uint = 8;
125124
#[cfg(all(not(feature = "external_funcs"),
126125
not(feature = "external_crate"),

trunk/src/libcollections/slice.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ mod tests {
16311631
#[test]
16321632
fn test_slice_from() {
16331633
let vec: &[int] = &[1, 2, 3, 4];
1634-
assert_eq!(&vec[], vec);
1634+
assert_eq!(&vec[0..], vec);
16351635
let b: &[int] = &[3, 4];
16361636
assert_eq!(&vec[2..], b);
16371637
let b: &[int] = &[];
@@ -1641,11 +1641,11 @@ mod tests {
16411641
#[test]
16421642
fn test_slice_to() {
16431643
let vec: &[int] = &[1, 2, 3, 4];
1644-
assert_eq!(&vec[..4], vec);
1644+
assert_eq!(&vec[0..4], vec);
16451645
let b: &[int] = &[1, 2];
1646-
assert_eq!(&vec[..2], b);
1646+
assert_eq!(&vec[0..2], b);
16471647
let b: &[int] = &[];
1648-
assert_eq!(&vec[..0], b);
1648+
assert_eq!(&vec[0..0], b);
16491649
}
16501650

16511651

@@ -2538,15 +2538,15 @@ mod tests {
25382538
let (left, right) = values.split_at_mut(2);
25392539
{
25402540
let left: &[_] = left;
2541-
assert!(left[..left.len()] == [1, 2][]);
2541+
assert!(left[0..left.len()] == [1, 2][]);
25422542
}
25432543
for p in left.iter_mut() {
25442544
*p += 1;
25452545
}
25462546

25472547
{
25482548
let right: &[_] = right;
2549-
assert!(right[..right.len()] == [3, 4, 5][]);
2549+
assert!(right[0..right.len()] == [3, 4, 5][]);
25502550
}
25512551
for p in right.iter_mut() {
25522552
*p += 2;

trunk/src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ pub trait StrExt: Index<FullRange, Output = str> {
807807
/// out of bounds.
808808
///
809809
/// See also `slice`, `slice_from` and `slice_chars`.
810-
#[unstable = "use slice notation [..a] instead"]
810+
#[unstable = "use slice notation [0..a] instead"]
811811
fn slice_to(&self, end: uint) -> &str {
812812
core_str::StrExt::slice_to(&self[], end)
813813
}

trunk/src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl String {
168168

169169
if i > 0 {
170170
unsafe {
171-
res.as_mut_vec().push_all(&v[..i])
171+
res.as_mut_vec().push_all(&v[0..i])
172172
};
173173
}
174174

trunk/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ mod tests {
21992199

22002200
#[test]
22012201
fn test_map_in_place_zero_drop_count() {
2202-
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
2202+
use std::sync::atomic::{AtomicUint, Ordering, ATOMIC_UINT_INIT};
22032203

22042204
#[derive(Clone, PartialEq, Show)]
22052205
struct Nothing;
@@ -2213,7 +2213,7 @@ mod tests {
22132213
}
22142214
}
22152215
const NUM_ELEMENTS: uint = 2;
2216-
static DROP_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
2216+
static DROP_COUNTER: AtomicUint = ATOMIC_UINT_INIT;
22172217

22182218
let v = repeat(Nothing).take(NUM_ELEMENTS).collect::<Vec<_>>();
22192219

0 commit comments

Comments
 (0)