1
Fork 0

Bless incremental tests.

This commit is contained in:
Camille GILLOT 2021-08-29 15:33:03 +02:00
parent a1a35576eb
commit 11024b26bf
2 changed files with 11 additions and 7 deletions

View file

@ -143,13 +143,13 @@ extern "rust-call" {
// Make function public -------------------------------------------------------- // Make function public --------------------------------------------------------
#[cfg(any(cfail1,cfail4))] #[cfg(any(cfail1,cfail4))]
extern "C" { extern "C" {
fn make_function_public(c: i32); fn make_function_public(c: i32);
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(cfg = "cfail2", except = "hir_owner")] #[rustc_clean(cfg = "cfail2")]
#[rustc_clean(cfg = "cfail3")] #[rustc_clean(cfg = "cfail3")]
#[rustc_clean(cfg = "cfail5", except = "hir_owner")] #[rustc_clean(cfg = "cfail5")]
#[rustc_clean(cfg = "cfail6")] #[rustc_clean(cfg = "cfail6")]
extern "C" { extern "C" {
pub fn make_function_public(c: i32); pub fn make_function_public(c: i32);

View file

@ -116,20 +116,24 @@ 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() { }
} }
#[cfg(not(any(cfail1,cfail4)))] #[cfg(not(any(cfail1,cfail4)))]
#[rustc_clean(cfg="cfail2", except="hir_owner")] #[rustc_clean(cfg="cfail2")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(cfg="cfail5", except="hir_owner")] #[rustc_clean(cfg="cfail5")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
impl Foo { impl Foo {
#[rustc_clean(cfg="cfail2", except="associated_item,hir_owner,hir_owner_nodes")] #[rustc_clean(cfg="cfail2", except="associated_item,hir_owner,hir_owner_nodes")]
#[rustc_clean(cfg="cfail3")] #[rustc_clean(cfg="cfail3")]
#[rustc_clean(cfg="cfail5", except="associated_item,hir_owner,hir_owner_nodes,optimized_mir")] #[rustc_clean(cfg="cfail5", except="associated_item,hir_owner,hir_owner_nodes")]
#[rustc_clean(cfg="cfail6")] #[rustc_clean(cfg="cfail6")]
fn method_privacy() { } fn method_privacy() { }
} }
// Change Method Selfness ----------------------------------------------------------- // Change Method Selfness -----------------------------------------------------------