diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-08-05 20:14:47 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-08-09 08:26:06 -0400 |
| commit | 02a47032dda473e6d8fa9da969bf157c48fba6dd (patch) | |
| tree | ad11a8b80b66e4e6f6b2a0d28e65e643046b5b9e /src/test/incremental | |
| parent | 9978cbc8f42247ab75093b355b54e74b3efbcbf8 (diff) | |
use preds to serialize just what we need
This massively speeds up serialization. It also seems to produce deterministic metadata hashes (before I was seeing inconsistent results). Fixes #35232.
Diffstat (limited to 'src/test/incremental')
| -rw-r--r-- | src/test/incremental/callee_caller_cross_crate/b.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/dirty_clean.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/hello_world.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/rlib_cross_crate/b.rs | 2 | ||||
| -rw-r--r-- | src/test/incremental/spike.rs | 5 | ||||
| -rw-r--r-- | src/test/incremental/string_constant.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_add_field.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_change_field_name.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_change_field_type.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_change_field_type_cross_crate/b.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_change_nothing.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/struct_remove_field.rs | 1 | ||||
| -rw-r--r-- | src/test/incremental/type_alias_cross_crate/b.rs | 1 |
13 files changed, 12 insertions, 6 deletions
diff --git a/src/test/incremental/callee_caller_cross_crate/b.rs b/src/test/incremental/callee_caller_cross_crate/b.rs index e81f828beb1..e8b187b5454 100644 --- a/src/test/incremental/callee_caller_cross_crate/b.rs +++ b/src/test/incremental/callee_caller_cross_crate/b.rs @@ -10,6 +10,7 @@ // aux-build:a.rs // revisions:rpass1 rpass2 +// compile-flags:-Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/dirty_clean.rs b/src/test/incremental/dirty_clean.rs index 9a3097831c5..64b7f2951d2 100644 --- a/src/test/incremental/dirty_clean.rs +++ b/src/test/incremental/dirty_clean.rs @@ -9,6 +9,7 @@ // except according to those terms. // revisions: rpass1 cfail2 +// compile-flags: -Z query-dep-graph #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/src/test/incremental/hello_world.rs b/src/test/incremental/hello_world.rs index f98ae188bad..a06c25ac055 100644 --- a/src/test/incremental/hello_world.rs +++ b/src/test/incremental/hello_world.rs @@ -9,6 +9,7 @@ // except according to those terms. // revisions: rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/src/test/incremental/rlib_cross_crate/b.rs b/src/test/incremental/rlib_cross_crate/b.rs index 55398370425..21b654bdf58 100644 --- a/src/test/incremental/rlib_cross_crate/b.rs +++ b/src/test/incremental/rlib_cross_crate/b.rs @@ -16,7 +16,7 @@ // aux-build:a.rs // revisions:rpass1 rpass2 rpass3 // no-prefer-dynamic - +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/spike.rs b/src/test/incremental/spike.rs index 68af20d4191..257699cd3fc 100644 --- a/src/test/incremental/spike.rs +++ b/src/test/incremental/spike.rs @@ -35,14 +35,10 @@ mod x { X { x: 11, y: 11 } } - #[rustc_dirty(label="TypeckItemBody", cfg="rpass2")] - #[rustc_clean(label="ItemSignature", cfg="rpass2")] pub fn new() -> X { make() } - #[rustc_clean(label="TypeckItemBody", cfg="rpass2")] - #[rustc_clean(label="ItemSignature", cfg="rpass2")] pub fn sum(x: &X) -> u32 { x.x + x.y } @@ -51,7 +47,6 @@ mod x { mod y { use x; - #[rustc_clean(label="TypeckItemBody", cfg="rpass2")] pub fn assert_sum() -> bool { let x = x::new(); x::sum(&x) == 22 diff --git a/src/test/incremental/string_constant.rs b/src/test/incremental/string_constant.rs index 0aa728b94dd..f4062169256 100644 --- a/src/test/incremental/string_constant.rs +++ b/src/test/incremental/string_constant.rs @@ -9,6 +9,7 @@ // except according to those terms. // revisions: rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_add_field.rs b/src/test/incremental/struct_add_field.rs index cc8ef8aedd7..da1b32cd73d 100644 --- a/src/test/incremental/struct_add_field.rs +++ b/src/test/incremental/struct_add_field.rs @@ -12,6 +12,7 @@ // in between revisions (hashing should be stable). // revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_change_field_name.rs b/src/test/incremental/struct_change_field_name.rs index fe29ad66b5f..ba469c62002 100644 --- a/src/test/incremental/struct_change_field_name.rs +++ b/src/test/incremental/struct_change_field_name.rs @@ -12,6 +12,7 @@ // in between revisions (hashing should be stable). // revisions:rpass1 cfail2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_change_field_type.rs b/src/test/incremental/struct_change_field_type.rs index 1a50d515db6..65f3b1b4f36 100644 --- a/src/test/incremental/struct_change_field_type.rs +++ b/src/test/incremental/struct_change_field_type.rs @@ -12,6 +12,7 @@ // in between revisions (hashing should be stable). // revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_change_field_type_cross_crate/b.rs b/src/test/incremental/struct_change_field_type_cross_crate/b.rs index 7a4900d1d9a..95e15d0b7f9 100644 --- a/src/test/incremental/struct_change_field_type_cross_crate/b.rs +++ b/src/test/incremental/struct_change_field_type_cross_crate/b.rs @@ -10,6 +10,7 @@ // aux-build:a.rs // revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_change_nothing.rs b/src/test/incremental/struct_change_nothing.rs index 8095e1ecd84..2bc636153f7 100644 --- a/src/test/incremental/struct_change_nothing.rs +++ b/src/test/incremental/struct_change_nothing.rs @@ -12,6 +12,7 @@ // in between revisions (hashing should be stable). // revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/struct_remove_field.rs b/src/test/incremental/struct_remove_field.rs index ae6399463b8..a7ed79d1a5a 100644 --- a/src/test/incremental/struct_remove_field.rs +++ b/src/test/incremental/struct_remove_field.rs @@ -12,6 +12,7 @@ // in between revisions (hashing should be stable). // revisions:rpass1 rpass2 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] diff --git a/src/test/incremental/type_alias_cross_crate/b.rs b/src/test/incremental/type_alias_cross_crate/b.rs index c5421fcbf5c..09d4db33198 100644 --- a/src/test/incremental/type_alias_cross_crate/b.rs +++ b/src/test/incremental/type_alias_cross_crate/b.rs @@ -10,6 +10,7 @@ // aux-build:a.rs // revisions:rpass1 rpass2 rpass3 +// compile-flags: -Z query-dep-graph #![feature(rustc_attrs)] |
