Fix tests.
Avoid invoking queries inside `check_paths`, since we are holding a lock to the reconstructed graph.
This commit is contained in:
parent
39b306a53d
commit
cfe786e5e0
11 changed files with 30 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// check-pass
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/issue-64964
|
||||
// edition:2018
|
||||
|
||||
// Regression test for ICE related to `await`ing in a method + incr. comp. (#64964)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that when a trait impl changes, fns whose body uses that trait
|
||||
// must also be recompiled.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-assoc-type-codegen
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(warnings)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that immediate callers have to change when callee changes, but
|
||||
// not callers' callers.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-caller-callee
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test cases where a changing struct appears in the signature of fns
|
||||
// and methods.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-struct-signature
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that adding an impl to a trait `Foo` DOES affect functions
|
||||
// that only use `Bar` if they have methods in common.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-trait-impl-two-traits-same-method
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that adding an impl to a trait `Foo` does not affect functions
|
||||
// that only use `Bar`, so long as they do not have methods in common.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-trait-impl-two-traits
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(warnings)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that when a trait impl changes, fns whose body uses that trait
|
||||
// must also be recompiled.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-trait-impl
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(warnings)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// Test that changing what a `type` points to does not go unnoticed.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-type-alias
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Test that changing what a `type` points to does not go unnoticed
|
||||
// by the variance analysis.
|
||||
|
||||
// compile-flags: -Z query-dep-graph
|
||||
// compile-flags: -Z query-dep-graph -C incremental=tmp/dep-graph-variance-alias
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue