Fix dependency graph test cases to have correct commments and use -Z incr-comp
This commit is contained in:
parent
876de6e495
commit
93996b160c
6 changed files with 22 additions and 6 deletions
|
@ -8,7 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// Test that two unrelated functions have no trans dependency.
|
// Test that immediate callers have to change when callee changes, but
|
||||||
|
// not callers' callers.
|
||||||
|
|
||||||
|
// compile-flags: -Z incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// Test that two unrelated functions have no trans dependency.
|
// Test cases where a changing struct appears in the signature of fns
|
||||||
|
// and methods.
|
||||||
|
|
||||||
|
// compile-flags: -Z incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
@ -68,7 +71,7 @@ mod signatures {
|
||||||
|
|
||||||
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
|
#[rustc_then_this_would_need(ItemSignature)] //~ ERROR OK
|
||||||
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
|
#[rustc_then_this_would_need(CollectItem)] //~ ERROR OK
|
||||||
fn indirect(x: WillChange) { }
|
fn indirect(x: WillChanges) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
// these are invalid dependencies, though sometimes we create edges
|
// these are invalid dependencies, though sometimes we create edges
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// Test that two unrelated functions have no trans dependency.
|
// 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 incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// Test that adding an impl to a trait `Foo` does not affect functions
|
// Test that adding an impl to a trait `Foo` does not affect functions
|
||||||
// that only use `Bar`.
|
// that only use `Bar`, so long as they do not have methods in common.
|
||||||
|
|
||||||
|
// compile-flags: -Z incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(warnings)]
|
#![allow(warnings)]
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// Test that two unrelated functions have no trans dependency.
|
// Test that when a trait impl changes, fns whose body uses that trait
|
||||||
|
// must also be recompiled.
|
||||||
|
|
||||||
|
// compile-flags: -Z incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(warnings)]
|
#![allow(warnings)]
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
// Test that two unrelated functions have no trans dependency.
|
// Test that two unrelated functions have no trans dependency.
|
||||||
|
|
||||||
|
// compile-flags: -Z incr-comp
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue