1
Fork 0

Bless incremental tests.

This commit is contained in:
Camille GILLOT 2022-07-30 18:43:37 +02:00
parent 957548183d
commit 6c5f077157
3 changed files with 47 additions and 31 deletions

View file

@ -116,9 +116,9 @@ impl Foo {
// Change Method Privacy ------------------------------------------------------- // Change Method Privacy -------------------------------------------------------
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
impl Foo { impl Foo {
//----------------------------------------------------
//-------------------------- //--------------------------
//------------------------------------------------------------------------------ //--------------------------
//--------------------------------------------------------------
//-------------------------- //--------------------------
pub fn method_privacy() { } pub fn method_privacy() { }
} }
@ -129,9 +129,9 @@ impl Foo {
#[rustc_clean(cfg="cfail5")] #[rustc_clean(cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
impl Foo { impl Foo {
#[rustc_clean(cfg="cfail2", except="associated_item")] #[rustc_clean(cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(cfg="cfail5", except="hir_owner,hir_owner_nodes,associated_item")] #[rustc_clean(cfg="cfail5", except="hir_owner,hir_owner_nodes")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
fn method_privacy() { } fn method_privacy() { }
} }

View file

@ -277,23 +277,23 @@ trait TraitChangeMethodParametersOrder {
// Add default implementation to method // Add default implementation to method
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
trait TraitAddMethodAutoImplementation { trait TraitAddMethodAutoImplementation {
// ----------------------------------------------------------------------------- // -------------------------------------------------------------
// ------------------------- // -------------------------
// ----------------------------------------------------------------------------- // -------------------------------------------------------------
// ------------------------- // -------------------------
fn method() ; fn method() ;
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
trait TraitAddMethodAutoImplementation {
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
trait TraitAddMethodAutoImplementation {
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
fn method() {} fn method() {}
} }
@ -795,21 +795,25 @@ trait TraitAddLifetimeBoundToAssociatedType<'a> {
// Add default to associated type // Add default to associated type
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
trait TraitAddDefaultToAssociatedType { trait TraitAddDefaultToAssociatedType {
//--------------------------------------------------------------
//--------------------------
//--------------------------------------------------------------
//--------------------------
type Associated ; type Associated ;
fn method(); fn method();
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
trait TraitAddDefaultToAssociatedType {
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
trait TraitAddDefaultToAssociatedType {
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
type Associated = ReferenceType0; type Associated = ReferenceType0;
fn method(); fn method();
@ -839,21 +843,29 @@ trait TraitAddAssociatedConstant {
// Add initializer to associated constant // Add initializer to associated constant
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
trait TraitAddInitializerToAssociatedConstant { trait TraitAddInitializerToAssociatedConstant {
//--------------------------------------------------------------
//--------------------------
//--------------------------------------------------------------
//--------------------------
const Value: u32 ; const Value: u32 ;
//--------------------------
//--------------------------
//--------------------------
//--------------------------
fn method(); fn method();
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
trait TraitAddInitializerToAssociatedConstant {
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
trait TraitAddInitializerToAssociatedConstant {
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
const Value: u32 = 1; const Value: u32 = 1;
#[rustc_clean(cfg="cfail2")] #[rustc_clean(cfg="cfail2")]

View file

@ -320,6 +320,10 @@ impl AddItemTrait for Foo {
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
pub trait ChangeHasValueTrait { pub trait ChangeHasValueTrait {
//--------------------------------------------------------------
//--------------------------
//--------------------------------------------------------------
//--------------------------
fn method_name() ; fn method_name() ;
} }
@ -329,15 +333,15 @@ impl ChangeHasValueTrait for Foo {
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
pub trait ChangeHasValueTrait {
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
pub trait ChangeHasValueTrait {
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes,associated_item", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
fn method_name() { } fn method_name() { }
} }
@ -358,23 +362,23 @@ pub trait AddDefaultTrait {
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
impl AddDefaultTrait for Foo { impl AddDefaultTrait for Foo {
// ---------------------------------------------------- // -------------------------------------------------------------
// ------------------------- // -------------------------
// ---------------------------------------------------- // -------------------------------------------------------------
// ------------------------- // -------------------------
fn method_name() { } fn method_name() { }
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
impl AddDefaultTrait for Foo {
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")] #[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
impl AddDefaultTrait for Foo {
#[rustc_clean(except="associated_item", cfg="cfail2")]
#[rustc_clean(cfg="cfail3")]
#[rustc_clean(except="associated_item", cfg="cfail5")]
#[rustc_clean(cfg="cfail6")]
default fn method_name() { } default fn method_name() { }
} }