Skip to content

Commit f43a0f1

Browse files
committed
---
yaml --- r: 272117 b: refs/heads/master c: 60c988e h: refs/heads/master i: 272115: 0b0a74b
1 parent fb2ee00 commit f43a0f1

File tree

279 files changed

+1766
-3573
lines changed

Some content is hidden

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

279 files changed

+1766
-3573
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: 7979dd6089ee5cba39cfbe6e880a3edeb7fff788
2+
refs/heads/master: 60c988ec176b9653bc1c3a6d6a738646d15a5ad6
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/mk/crates.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_platform_intrinsics \
6060
rustc_plugin rustc_metadata rustc_passes rustc_save_analysis \
61-
rustc_const_eval rustc_const_math rustc_incremental
61+
rustc_const_eval rustc_const_math
6262
HOST_CRATES := syntax syntax_ext $(RUSTC_CRATES) rustdoc fmt_macros \
6363
flate arena graphviz rbml log serialize
6464
TOOLS := compiletest rustdoc rustc rustbook error_index_generator
@@ -105,8 +105,7 @@ DEPS_rustc_data_structures := std log serialize
105105
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
106106
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
107107
rustc_trans rustc_privacy rustc_lint rustc_plugin \
108-
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval \
109-
rustc_incremental
108+
rustc_metadata syntax_ext rustc_passes rustc_save_analysis rustc_const_eval
110109
DEPS_rustc_lint := rustc log syntax rustc_const_eval
111110
DEPS_rustc_llvm := native:rustllvm libc std rustc_bitflags
112111
DEPS_rustc_metadata := rustc syntax rbml rustc_const_math
@@ -118,8 +117,7 @@ DEPS_rustc_plugin := rustc rustc_metadata syntax rustc_mir
118117
DEPS_rustc_privacy := rustc log syntax
119118
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back rustc_mir \
120119
log syntax serialize rustc_llvm rustc_platform_intrinsics \
121-
rustc_const_math rustc_const_eval rustc_incremental
122-
DEPS_rustc_incremental := rbml rustc serialize rustc_data_structures
120+
rustc_const_math rustc_const_eval
123121
DEPS_rustc_save_analysis := rustc log syntax
124122
DEPS_rustc_typeck := rustc syntax rustc_platform_intrinsics rustc_const_math \
125123
rustc_const_eval

trunk/mk/tests.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
305305
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
306306
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-gdb-exec \
307307
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-lldb-exec \
308-
check-stage$(1)-T-$(2)-H-$(3)-incremental-exec \
309308
check-stage$(1)-T-$(2)-H-$(3)-doc-exec \
310309
check-stage$(1)-T-$(2)-H-$(3)-pretty-exec
311310

@@ -482,7 +481,6 @@ DEBUGINFO_LLDB_RS := $(call rwildcard,$(S)src/test/debuginfo/,*.rs)
482481
CODEGEN_RS := $(call rwildcard,$(S)src/test/codegen/,*.rs)
483482
CODEGEN_CC := $(call rwildcard,$(S)src/test/codegen/,*.cc)
484483
CODEGEN_UNITS_RS := $(call rwildcard,$(S)src/test/codegen-units/,*.rs)
485-
INCREMENTAL_RS := $(call rwildcard,$(S)src/test/incremental/,*.rs)
486484
RUSTDOCCK_RS := $(call rwildcard,$(S)src/test/rustdoc/,*.rs)
487485

488486
RPASS_TESTS := $(RPASS_RS)
@@ -498,7 +496,6 @@ DEBUGINFO_GDB_TESTS := $(DEBUGINFO_GDB_RS)
498496
DEBUGINFO_LLDB_TESTS := $(DEBUGINFO_LLDB_RS)
499497
CODEGEN_TESTS := $(CODEGEN_RS) $(CODEGEN_CC)
500498
CODEGEN_UNITS_TESTS := $(CODEGEN_UNITS_RS)
501-
INCREMENTAL_TESTS := $(INCREMENTAL_RS)
502499
RUSTDOCCK_TESTS := $(RUSTDOCCK_RS)
503500

504501
CTEST_SRC_BASE_rpass = run-pass
@@ -561,11 +558,6 @@ CTEST_BUILD_BASE_codegen-units = codegen-units
561558
CTEST_MODE_codegen-units = codegen-units
562559
CTEST_RUNTOOL_codegen-units = $(CTEST_RUNTOOL)
563560

564-
CTEST_SRC_BASE_incremental = incremental
565-
CTEST_BUILD_BASE_incremental = incremental
566-
CTEST_MODE_incremental = incremental
567-
CTEST_RUNTOOL_incremental = $(CTEST_RUNTOOL)
568-
569561
CTEST_SRC_BASE_rustdocck = rustdoc
570562
CTEST_BUILD_BASE_rustdocck = rustdoc
571563
CTEST_MODE_rustdocck = rustdoc
@@ -689,7 +681,6 @@ CTEST_DEPS_debuginfo-lldb_$(1)-T-$(2)-H-$(3) = $$(DEBUGINFO_LLDB_TESTS) \
689681
$(S)src/etc/lldb_rust_formatters.py
690682
CTEST_DEPS_codegen_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_TESTS)
691683
CTEST_DEPS_codegen-units_$(1)-T-$(2)-H-$(3) = $$(CODEGEN_UNITS_TESTS)
692-
CTEST_DEPS_incremental_$(1)-T-$(2)-H-$(3) = $$(INCREMENTAL_TESTS)
693684
CTEST_DEPS_rustdocck_$(1)-T-$(2)-H-$(3) = $$(RUSTDOCCK_TESTS) \
694685
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
695686
$(S)src/etc/htmldocck.py
@@ -756,7 +747,7 @@ endif
756747
endef
757748

758749
CTEST_NAMES = rpass rpass-valgrind rpass-full rfail-full cfail-full rfail cfail pfail \
759-
debuginfo-gdb debuginfo-lldb codegen codegen-units rustdocck incremental
750+
debuginfo-gdb debuginfo-lldb codegen codegen-units rustdocck
760751

761752
$(foreach host,$(CFG_HOST), \
762753
$(eval $(foreach target,$(CFG_TARGET), \
@@ -954,7 +945,6 @@ TEST_GROUPS = \
954945
debuginfo-lldb \
955946
codegen \
956947
codegen-units \
957-
incremental \
958948
doc \
959949
$(foreach docname,$(DOC_NAMES),doc-$(docname)) \
960950
pretty \

trunk/src/compiletest/common.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ pub enum Mode {
2525
DebugInfoLldb,
2626
Codegen,
2727
Rustdoc,
28-
CodegenUnits,
29-
Incremental,
28+
CodegenUnits
3029
}
3130

3231
impl FromStr for Mode {
@@ -44,7 +43,6 @@ impl FromStr for Mode {
4443
"codegen" => Ok(Codegen),
4544
"rustdoc" => Ok(Rustdoc),
4645
"codegen-units" => Ok(CodegenUnits),
47-
"incremental" => Ok(Incremental),
4846
_ => Err(()),
4947
}
5048
}
@@ -64,7 +62,6 @@ impl fmt::Display for Mode {
6462
Codegen => "codegen",
6563
Rustdoc => "rustdoc",
6664
CodegenUnits => "codegen-units",
67-
Incremental => "incremental",
6865
}, f)
6966
}
7067
}

trunk/src/compiletest/compiletest.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ pub fn parse_config(args: Vec<String> ) -> Config {
7171
reqopt("", "aux-base", "directory to find auxiliary test files", "PATH"),
7272
reqopt("", "stage-id", "the target-stage identifier", "stageN-TARGET"),
7373
reqopt("", "mode", "which sort of compile tests to run",
74-
"(compile-fail|parse-fail|run-fail|run-pass|\
75-
run-pass-valgrind|pretty|debug-info|incremental)"),
74+
"(compile-fail|parse-fail|run-fail|run-pass|run-pass-valgrind|pretty|debug-info)"),
7675
optflag("", "ignored", "run tests marked as ignored"),
7776
optopt("", "runtool", "supervisor program to run tests under \
7877
(eg. emulator, valgrind)", "PROGRAM"),

trunk/src/compiletest/runtest.rs

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use common::Config;
1212
use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind};
1313
use common::{Codegen, DebugInfoLldb, DebugInfoGdb, Rustdoc, CodegenUnits};
14-
use common::{Incremental};
1514
use errors::{self, ErrorKind};
1615
use header::TestProps;
1716
use header;
@@ -60,7 +59,6 @@ pub fn run(config: Config, testpaths: &TestPaths) {
6059
Codegen => run_codegen_test(&config, &props, &testpaths),
6160
Rustdoc => run_rustdoc_test(&config, &props, &testpaths),
6261
CodegenUnits => run_codegen_units_test(&config, &props, &testpaths),
63-
Incremental => run_incremental_test(&config, &props, &testpaths),
6462
}
6563
}
6664

@@ -1968,67 +1966,3 @@ fn run_codegen_units_test(config: &Config, props: &TestProps, testpaths: &TestPa
19681966
panic!();
19691967
}
19701968
}
1971-
1972-
fn run_incremental_test(config: &Config, props: &TestProps, testpaths: &TestPaths) {
1973-
// Basic plan for a test incremental/foo/bar.rs:
1974-
// - load list of revisions pass1, fail2, pass3
1975-
// - each should begin with `rpass`, `rfail`, or `cfail`
1976-
// - if `rpass`, expect compile and execution to succeed
1977-
// - if `cfail`, expect compilation to fail
1978-
// - if `rfail`, expect execution to fail
1979-
// - create a directory build/foo/bar.incremental
1980-
// - compile foo/bar.rs with -Z incremental=.../foo/bar.incremental and -C pass1
1981-
// - because name of revision starts with "pass", expect success
1982-
// - compile foo/bar.rs with -Z incremental=.../foo/bar.incremental and -C fail2
1983-
// - because name of revision starts with "fail", expect an error
1984-
// - load expected errors as usual, but filter for those that end in `[fail2]`
1985-
// - compile foo/bar.rs with -Z incremental=.../foo/bar.incremental and -C pass3
1986-
// - because name of revision starts with "pass", expect success
1987-
// - execute build/foo/bar.exe and save output
1988-
//
1989-
// FIXME -- use non-incremental mode as an oracle? That doesn't apply
1990-
// to #[rustc_dirty] and clean tests I guess
1991-
1992-
assert!(!props.revisions.is_empty(), "incremental tests require a list of revisions");
1993-
1994-
let output_base_name = output_base_name(config, testpaths);
1995-
1996-
// Create the incremental workproduct directory.
1997-
let incremental_dir = output_base_name.with_extension("incremental");
1998-
if incremental_dir.exists() {
1999-
fs::remove_dir_all(&incremental_dir).unwrap();
2000-
}
2001-
fs::create_dir_all(&incremental_dir).unwrap();
2002-
2003-
if config.verbose {
2004-
print!("incremental_dir={}", incremental_dir.display());
2005-
}
2006-
2007-
for revision in &props.revisions {
2008-
let mut revision_props = props.clone();
2009-
header::load_props_into(&mut revision_props, &testpaths.file, Some(&revision));
2010-
2011-
revision_props.compile_flags.extend(vec![
2012-
format!("-Z"),
2013-
format!("incremental={}", incremental_dir.display()),
2014-
format!("--cfg"),
2015-
format!("{}", revision),
2016-
]);
2017-
2018-
if config.verbose {
2019-
print!("revision={:?} revision_props={:#?}", revision, revision_props);
2020-
}
2021-
2022-
if revision.starts_with("rpass") {
2023-
run_rpass_test_revision(config, &revision_props, testpaths, Some(&revision));
2024-
} else if revision.starts_with("rfail") {
2025-
run_rfail_test_revision(config, &revision_props, testpaths, Some(&revision));
2026-
} else if revision.starts_with("cfail") {
2027-
run_cfail_test_revision(config, &revision_props, testpaths, Some(&revision));
2028-
} else {
2029-
fatal(
2030-
Some(revision),
2031-
"revision name must begin with rpass, rfail, or cfail");
2032-
}
2033-
}
2034-
}

trunk/src/doc/book/closures.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,13 +371,14 @@ assert_eq!(6, answer);
371371
This gives us these long, related errors:
372372

373373
```text
374-
error: the trait bound `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
374+
error: the trait `core::marker::Sized` is not implemented for the type
375+
`core::ops::Fn(i32) -> i32` [E0277]
375376
fn factory() -> (Fn(i32) -> i32) {
376377
^~~~~~~~~~~~~~~~
377378
note: `core::ops::Fn(i32) -> i32` does not have a constant size known at compile-time
378379
fn factory() -> (Fn(i32) -> i32) {
379380
^~~~~~~~~~~~~~~~
380-
error: the trait bound `core::ops::Fn(i32) -> i32 : core::marker::Sized` is not satisfied [E0277]
381+
error: the trait `core::marker::Sized` is not implemented for the type `core::ops::Fn(i32) -> i32` [E0277]
381382
let f = factory();
382383
^
383384
note: `core::ops::Fn(i32) -> i32` does not have a constant size known at compile-time

trunk/src/doc/book/concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ fn main() {
234234
This won't work, however, and will give us the error:
235235

236236
```text
237-
13:9: 13:22 error: the trait bound `alloc::rc::Rc<collections::vec::Vec<i32>> : core::marker::Send`
238-
is not satisfied
237+
13:9: 13:22 error: the trait `core::marker::Send` is not
238+
implemented for the type `alloc::rc::Rc<collections::vec::Vec<i32>>`
239239
...
240240
13:9: 13:22 note: `alloc::rc::Rc<collections::vec::Vec<i32>>`
241241
cannot be sent between threads safely

trunk/src/doc/book/traits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ print_area(5);
154154
We get a compile-time error:
155155

156156
```text
157-
error: the trait bound `_ : HasArea` is not satisfied [E0277]
157+
error: the trait `HasArea` is not implemented for the type `_` [E0277]
158158
```
159159

160160
## Trait bounds on generic structs
@@ -496,7 +496,7 @@ impl FooBar for Baz {
496496
If we forget to implement `Foo`, Rust will tell us:
497497

498498
```text
499-
error: the trait bound `main::Baz : main::Foo` is not satisfied [E0277]
499+
error: the trait `main::Foo` is not implemented for the type `main::Baz` [E0277]
500500
```
501501

502502
# Deriving

trunk/src/doc/book/vectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ v[j];
5656
Indexing with a non-`usize` type gives an error that looks like this:
5757

5858
```text
59-
error: the trait bound `collections::vec::Vec<_> : core::ops::Index<i32>`
60-
is not satisfied [E0277]
59+
error: the trait `core::ops::Index<i32>` is not implemented for the type
60+
`collections::vec::Vec<_>` [E0277]
6161
v[j];
6262
^~~~
6363
note: the type `collections::vec::Vec<_>` cannot be indexed by `i32`

trunk/src/doc/nomicon/coercions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn main() {
6464
```
6565

6666
```text
67-
<anon>:10:5: 10:8 error: the trait bound `&mut i32 : Trait` is not satisfied [E0277]
67+
<anon>:10:5: 10:8 error: the trait `Trait` is not implemented for the type `&mut i32` [E0277]
6868
<anon>:10 foo(t);
6969
^~~
7070
```

trunk/src/liballoc/arc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ impl<T: ?Sized> Arc<T> {
263263
loop {
264264
// check if the weak counter is currently "locked"; if so, spin.
265265
if cur == usize::MAX {
266-
cur = this.inner().weak.load(Relaxed);
267266
continue;
268267
}
269268

trunk/src/libcollectionstest/slice.rs

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -574,48 +574,18 @@ fn test_slice_2() {
574574
assert_eq!(v[1], 3);
575575
}
576576

577-
macro_rules! assert_order {
578-
(Greater, $a:expr, $b:expr) => {
579-
assert_eq!($a.cmp($b), Greater);
580-
assert!($a > $b);
581-
};
582-
(Less, $a:expr, $b:expr) => {
583-
assert_eq!($a.cmp($b), Less);
584-
assert!($a < $b);
585-
};
586-
(Equal, $a:expr, $b:expr) => {
587-
assert_eq!($a.cmp($b), Equal);
588-
assert_eq!($a, $b);
589-
}
590-
}
591-
592-
#[test]
593-
fn test_total_ord_u8() {
594-
let c = &[1u8, 2, 3];
595-
assert_order!(Greater, &[1u8, 2, 3, 4][..], &c[..]);
596-
let c = &[1u8, 2, 3, 4];
597-
assert_order!(Less, &[1u8, 2, 3][..], &c[..]);
598-
let c = &[1u8, 2, 3, 6];
599-
assert_order!(Equal, &[1u8, 2, 3, 6][..], &c[..]);
600-
let c = &[1u8, 2, 3, 4, 5, 6];
601-
assert_order!(Less, &[1u8, 2, 3, 4, 5, 5, 5, 5][..], &c[..]);
602-
let c = &[1u8, 2, 3, 4];
603-
assert_order!(Greater, &[2u8, 2][..], &c[..]);
604-
}
605-
606-
607577
#[test]
608-
fn test_total_ord_i32() {
578+
fn test_total_ord() {
609579
let c = &[1, 2, 3];
610-
assert_order!(Greater, &[1, 2, 3, 4][..], &c[..]);
580+
[1, 2, 3, 4][..].cmp(c) == Greater;
611581
let c = &[1, 2, 3, 4];
612-
assert_order!(Less, &[1, 2, 3][..], &c[..]);
582+
[1, 2, 3][..].cmp(c) == Less;
613583
let c = &[1, 2, 3, 6];
614-
assert_order!(Equal, &[1, 2, 3, 6][..], &c[..]);
584+
[1, 2, 3, 4][..].cmp(c) == Equal;
615585
let c = &[1, 2, 3, 4, 5, 6];
616-
assert_order!(Less, &[1, 2, 3, 4, 5, 5, 5, 5][..], &c[..]);
586+
[1, 2, 3, 4, 5, 5, 5, 5][..].cmp(c) == Less;
617587
let c = &[1, 2, 3, 4];
618-
assert_order!(Greater, &[2, 2][..], &c[..]);
588+
[2, 2][..].cmp(c) == Greater;
619589
}
620590

621591
#[test]

trunk/src/libcore/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
#![feature(unwind_attributes)]
7676
#![feature(repr_simd, platform_intrinsics)]
7777
#![feature(rustc_attrs)]
78-
#![feature(specialization)]
7978
#![feature(staged_api)]
8079
#![feature(unboxed_closures)]
8180
#![feature(question_mark)]

0 commit comments

Comments
 (0)