Format function interface fingerprint hash tests
This commit is contained in:
parent
104ebd2c43
commit
3f0cc7caca
@ -35,7 +35,8 @@
|
||||
pub fn add_parameter() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn add_parameter(p: i32) {}
|
||||
|
||||
@ -57,7 +58,8 @@ pub fn add_return_type() -> () {}
|
||||
pub fn type_of_parameter(p: i32) {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_of_parameter(p: i64) {}
|
||||
|
||||
@ -68,7 +70,8 @@ pub fn type_of_parameter(p: i64) {}
|
||||
pub fn type_of_parameter_ref(p: &i32) {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_of_parameter_ref(p: &mut i32) {}
|
||||
|
||||
@ -79,7 +82,8 @@ pub fn type_of_parameter_ref(p: &mut i32) {}
|
||||
pub fn order_of_parameters(p1: i32, p2: i64) {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn order_of_parameters(p2: i64, p1: i32) {}
|
||||
|
||||
@ -90,7 +94,8 @@ pub fn order_of_parameters(p2: i64, p1: i32) {}
|
||||
pub fn make_unsafe() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub unsafe fn make_unsafe() {}
|
||||
|
||||
@ -103,7 +108,7 @@ pub fn make_extern() {}
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "Hir, HirBody, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub extern fn make_extern() {}
|
||||
pub extern "C" fn make_extern() {}
|
||||
|
||||
|
||||
// Extern C Extern Rust-Intrinsic ----------------------------------------------
|
||||
@ -123,7 +128,8 @@ pub extern "rust-intrinsic" fn make_intrinsic() {}
|
||||
pub fn type_parameter() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_parameter<T>() {}
|
||||
|
||||
@ -167,7 +173,8 @@ pub fn builtin_bound<T: Send>() {}
|
||||
pub fn lifetime_bound<'a, T>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn lifetime_bound<'a, T: 'a>() {}
|
||||
|
||||
@ -200,7 +207,8 @@ pub fn second_builtin_bound<T: Send + Sized>() {}
|
||||
pub fn second_lifetime_bound<'a, 'b, T: 'a>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
|
||||
|
||||
@ -295,7 +303,8 @@ pub mod change_return_type_indirectly {
|
||||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as ReturnType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_return_type() -> ReturnType {
|
||||
ReturnType {}
|
||||
@ -311,7 +320,8 @@ pub mod change_parameter_type_indirectly {
|
||||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as ParameterType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail2",
|
||||
except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_parameter_type(p: ParameterType) {}
|
||||
}
|
||||
@ -344,5 +354,9 @@ pub mod change_trait_bound_indirectly_in_where_clause {
|
||||
|
||||
#[rustc_clean(cfg = "cfail2", except = "Hir, HirBody, PredicatesOfItem")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_trait_bound_where<T>(p: T) where T: Trait {}
|
||||
pub fn indirect_trait_bound_where<T>(p: T)
|
||||
where
|
||||
T: Trait,
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user