incr.comp.: Use red/green tracking for CGU re-use.
This commit is contained in:
parent
c9a17ef174
commit
e6badfd449
30 changed files with 203 additions and 243 deletions
|
|
@ -15,7 +15,6 @@
|
|||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
// ignore-test FIXME(#42293) this regressed in #44142 but should get fixed with red/green
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
//[rpass1] rustc-env:RUSTC_FORCE_INCR_COMP_ARTIFACT_HEADER="l33t haxx0r rustc 2.1 LTS"
|
||||
|
||||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![rustc_partition_translated(module="cache_file_headers", cfg="rpass2")]
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// revisions:rpass1 rpass2
|
||||
// compile-flags:-Z query-dep-graph
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
extern crate a;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
// compile-flags: -Z query-dep-graph
|
||||
// aux-build:point.rs
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@
|
|||
// except according to those terms.
|
||||
|
||||
// revisions: rpass1 rpass2
|
||||
// compile-flags: -Zquery-dep-graph
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(private_no_mangle_fns)]
|
||||
|
||||
#![rustc_partition_reused(module="change_symbol_export_status", cfg="rpass2")]
|
||||
#![rustc_partition_translated(module="change_symbol_export_status-mod1", cfg="rpass2")]
|
||||
|
||||
#![rustc_partition_reused(module="change_symbol_export_status-mod2", cfg="rpass2")]
|
||||
|
||||
// This test case makes sure that a change in symbol visibility is detected by
|
||||
// our dependency tracking. We do this by changing a module's visibility to
|
||||
|
|
@ -37,6 +37,11 @@ mod mod1 {
|
|||
pub fn foo() {}
|
||||
}
|
||||
|
||||
pub mod mod2 {
|
||||
#[no_mangle]
|
||||
pub fn bar() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
mod1::foo();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
// the cache while changing an untracked one doesn't.
|
||||
|
||||
// revisions:rpass1 rpass2 rpass3
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
// equal example.
|
||||
|
||||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![rustc_partition_reused(module="issue_35593", cfg="rpass2")]
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
// dep-node.
|
||||
|
||||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
// revisions:rpass1 rpass2 rpass3
|
||||
// compile-flags: -Z query-dep-graph -g -Zincremental-cc
|
||||
// aux-build:extern_crate.rs
|
||||
// ignore-test FIXME(#42293) this regressed in #44142 but should get fixed with red/green
|
||||
|
||||
|
||||
// This test case makes sure that we detect if paths emitted into debuginfo
|
||||
// are changed, even when the change happens in an external crate.
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@
|
|||
#![feature(rustc_attrs)]
|
||||
#![crate_type = "bin"]
|
||||
|
||||
// FIXME(#42293) this regressed in #44142 but should get fixed with red/green
|
||||
// #![rustc_partition_reused(module="main", cfg="rpass2")]
|
||||
#![rustc_partition_reused(module="main", cfg="rpass2")]
|
||||
|
||||
extern crate a;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@
|
|||
// no-prefer-dynamic
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
extern crate a;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
// `y` module entirely (but not the `x` module).
|
||||
|
||||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// revisions:rpass1 rpass2
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
extern crate a;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// revisions:rpass1 rpass2 rpass3
|
||||
// compile-flags: -Z query-dep-graph
|
||||
|
||||
// ignore-test -- ignored until red/green restores cross-crate tracking fidelity
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
extern crate a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue