mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Rename typeck into typeck_root in tests/incremental
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn call_function0() {
|
||||
a::function0(77);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ pub fn x(&self) -> f32 {
|
||||
pub mod fn_with_type_in_sig {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn boop(p: Option<&Point>) -> f32 {
|
||||
p.map(|p| p.total()).unwrap_or(0.0)
|
||||
}
|
||||
@@ -86,7 +86,7 @@ pub fn boop(p: Option<&Point>) -> f32 {
|
||||
pub mod call_fn_with_type_in_sig {
|
||||
use fn_with_type_in_sig;
|
||||
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,optimized_mir", cfg="cfail2")]
|
||||
pub fn bip() -> f32 {
|
||||
fn_with_type_in_sig::boop(None)
|
||||
}
|
||||
@@ -102,7 +102,7 @@ pub fn bip() -> f32 {
|
||||
pub mod fn_with_type_in_body {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,optimized_mir", cfg="cfail2")]
|
||||
pub fn boop() -> f32 {
|
||||
Point::origin().total()
|
||||
}
|
||||
@@ -125,7 +125,7 @@ pub fn bip() -> f32 {
|
||||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn make_origin(p: Point) -> Point {
|
||||
Point { ..p }
|
||||
}
|
||||
@@ -135,7 +135,7 @@ pub fn make_origin(p: Point) -> Point {
|
||||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
@@ -145,7 +145,7 @@ pub fn get_x(p: Point) -> f32 {
|
||||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
use a::A;
|
||||
use b::B;
|
||||
|
||||
//? #[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
//? #[rustc_clean(label="typeck_root", cfg="rpass2")]
|
||||
pub fn main() {
|
||||
A + B;
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ pub mod fn_calls_methods_in_same_impl {
|
||||
// The cached result should actually be loaded from disk
|
||||
// (not just marked green) - for example, `DeadVisitor`
|
||||
// always runs during compilation as a "pass", and loads
|
||||
// the typeck results for bodies.
|
||||
#[rustc_clean(cfg="cfail2", loaded_from_disk="typeck")]
|
||||
// the typeck_root results for bodies.
|
||||
#[rustc_clean(cfg="cfail2", loaded_from_disk="typeck_root")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
||||
@@ -52,7 +52,7 @@ pub fn x(&self) -> f32 {
|
||||
pub mod fn_calls_changed_method {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root,optimized_mir", cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let p = Point { x: 2.0, y: 2.0 };
|
||||
p.distance_from_point(None);
|
||||
|
||||
@@ -36,14 +36,14 @@ pub fn y() {
|
||||
//[cfail2]~| ERROR `predicates_of(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `type_of(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `fn_sig(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `typeck(y)` should be clean but is not
|
||||
//[cfail2]~| ERROR `typeck_root(y)` should be clean but is not
|
||||
x::x();
|
||||
}
|
||||
}
|
||||
|
||||
mod z {
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="cfail2")]
|
||||
pub fn z() {
|
||||
//[cfail2]~^ ERROR `typeck(z)` should be dirty but is not
|
||||
//[cfail2]~^ ERROR `typeck_root(z)` should be dirty but is not
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ pub fn change_callee_function() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_function() {
|
||||
callee2(1, 2)
|
||||
@@ -63,9 +63,9 @@ mod change_callee_indirectly_function {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::callee2 as callee;
|
||||
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_indirectly_function() {
|
||||
callee(1, 2)
|
||||
@@ -87,9 +87,9 @@ pub fn change_callee_method() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_method() {
|
||||
let s = Struct;
|
||||
@@ -125,9 +125,9 @@ pub fn change_ufcs_callee_method() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_ufcs_callee_method() {
|
||||
let s = Struct;
|
||||
@@ -163,9 +163,9 @@ pub fn change_to_ufcs() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// One might think this would be expanded in the opt_hir_owner_nodes/Mir, but it actually
|
||||
// results in slightly different hir_owner/Mir.
|
||||
@@ -187,9 +187,9 @@ pub mod change_ufcs_callee_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Struct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_ufcs_callee_indirectly() {
|
||||
let s = Struct;
|
||||
|
||||
@@ -43,9 +43,9 @@ pub fn add_parameter() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_parameter() {
|
||||
let x = 0u32;
|
||||
@@ -61,9 +61,9 @@ pub fn change_parameter_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_parameter_pattern() {
|
||||
let _ = |(x,): (u32,)| x;
|
||||
@@ -96,9 +96,9 @@ pub fn add_type_ascription_to_parameter() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn add_type_ascription_to_parameter() {
|
||||
let closure = |x: u32| x + 1u32;
|
||||
@@ -115,9 +115,9 @@ pub fn change_parameter_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_parameter_type() {
|
||||
let closure = |x: u16| (x as u64) + 1;
|
||||
|
||||
@@ -63,9 +63,9 @@ pub fn change_field_order_struct_like() -> Enum {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it
|
||||
// would if it were not all constants
|
||||
@@ -104,9 +104,9 @@ pub fn change_constructor_path_struct_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_struct_like() {
|
||||
let _ = Enum2::Struct {
|
||||
@@ -149,9 +149,9 @@ pub mod change_constructor_path_indirectly_struct_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::Struct {
|
||||
@@ -211,12 +211,12 @@ pub fn change_constructor_path_tuple_like() {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck_root"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck_root"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_tuple_like() {
|
||||
@@ -234,12 +234,12 @@ pub fn change_constructor_variant_tuple_like() {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck_root"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck_root"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_variant_tuple_like() {
|
||||
@@ -254,9 +254,9 @@ pub mod change_constructor_path_indirectly_tuple_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::Tuple(0, 1, 2)
|
||||
@@ -273,9 +273,9 @@ pub mod change_constructor_variant_indirectly_tuple_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2::Tuple2 as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Enum2 {
|
||||
Variant(0, 1, 2)
|
||||
@@ -302,9 +302,9 @@ pub fn change_constructor_path_c_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_c_like() {
|
||||
let _x = Clike2::B;
|
||||
@@ -335,9 +335,9 @@ pub mod change_constructor_path_indirectly_c_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Clike2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::B
|
||||
|
||||
@@ -79,9 +79,9 @@ pub fn change_iteration_variable_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_iteration_variable_pattern() {
|
||||
let mut _x = 0;
|
||||
@@ -129,9 +129,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
||||
@@ -26,12 +26,12 @@ pub fn add_parameter() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn add_parameter(p: i32) {}
|
||||
@@ -56,12 +56,12 @@ pub fn type_of_parameter(p: i32) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn type_of_parameter(p: i64) {}
|
||||
@@ -74,12 +74,12 @@ pub fn type_of_parameter_ref(p: &i32) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn type_of_parameter_ref(p: &mut i32) {}
|
||||
@@ -92,12 +92,12 @@ pub fn order_of_parameters(p1: i32, p2: i64) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn order_of_parameters(p2: i64, p1: i32) {}
|
||||
@@ -110,12 +110,12 @@ pub fn make_unsafe() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub unsafe fn make_unsafe() {}
|
||||
@@ -126,9 +126,9 @@ pub unsafe fn make_unsafe() {}
|
||||
pub fn make_extern() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck_root, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub extern "C" fn make_extern() {}
|
||||
|
||||
@@ -303,9 +303,9 @@ pub fn return_impl_trait() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck, fn_sig, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck_root, fn_sig, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn return_impl_trait() -> impl Clone {
|
||||
0
|
||||
@@ -321,7 +321,7 @@ pub fn change_return_impl_trait() -> impl Clone {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn change_return_impl_trait() -> impl Copy {
|
||||
0u32
|
||||
@@ -340,12 +340,12 @@ pub mod change_return_type_indirectly {
|
||||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_return_type() -> ReturnType {
|
||||
@@ -363,12 +363,12 @@ pub mod change_parameter_type_indirectly {
|
||||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_parameter_type(p: ParameterType) {}
|
||||
|
||||
@@ -28,9 +28,9 @@ pub fn change_condition(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_condition(x: bool) -> u32 {
|
||||
if !x {
|
||||
@@ -104,9 +104,9 @@ pub fn add_else_branch(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_else_branch(x: bool) -> u32 {
|
||||
let mut ret = 1;
|
||||
@@ -132,9 +132,9 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(_ ) = x {
|
||||
@@ -157,9 +157,9 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(x) = x {
|
||||
@@ -210,9 +210,9 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
let mut ret = 1;
|
||||
|
||||
@@ -75,9 +75,9 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..4]
|
||||
@@ -92,9 +92,9 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
@@ -109,9 +109,9 @@ fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
(& slice[3..5])[0]
|
||||
@@ -126,9 +126,9 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..=7]
|
||||
|
||||
@@ -58,9 +58,9 @@ pub fn method_body() {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_body() {
|
||||
println!("Hello, world!");
|
||||
@@ -89,9 +89,9 @@ pub fn method_body_inlined() {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
pub fn method_body_inlined() {
|
||||
@@ -147,12 +147,12 @@ pub fn method_selfness() { }
|
||||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck_root,associated_item,optimized_mir",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck_root,associated_item,optimized_mir",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_selfness(&self) { }
|
||||
@@ -174,9 +174,9 @@ pub fn method_selfmutness(& self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_selfmutness(&mut self) { }
|
||||
}
|
||||
@@ -224,9 +224,9 @@ pub fn add_method_parameter(&self ) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_method_parameter(&self, _: i32) { }
|
||||
}
|
||||
@@ -274,9 +274,9 @@ pub fn change_method_return_type(&self) -> u16 { 0 }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_method_return_type(&self) -> u32 { 0 }
|
||||
}
|
||||
@@ -351,9 +351,9 @@ pub fn make_method_unsafe(&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub unsafe fn make_method_unsafe(&self) { }
|
||||
}
|
||||
@@ -376,9 +376,9 @@ pub fn make_method_extern(&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub extern "C" fn make_method_extern(&self) { }
|
||||
}
|
||||
@@ -401,9 +401,9 @@ pub extern "C" fn change_method_calling_convention(&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub extern "system" fn change_method_calling_convention(&self) { }
|
||||
}
|
||||
@@ -435,15 +435,15 @@ pub fn add_lifetime_parameter_to_method (&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
// Warning: Note that `typeck` are coming up clean here.
|
||||
// Warning: Note that `typeck_root` are coming up clean here.
|
||||
// The addition or removal of lifetime parameters that don't
|
||||
// appear in the arguments or fn body in any way does not, in
|
||||
// fact, affect the `typeck` in any semantic way (at least
|
||||
// fact, affect the `typeck_root` in any semantic way (at least
|
||||
// as of this writing). **However,** altering the order of
|
||||
// lowering **can** cause it appear to affect the `typeck`:
|
||||
// lowering **can** cause it appear to affect the `typeck_root`:
|
||||
// if we lower generics before the body, then the `HirId` for
|
||||
// things in the body will be affected. So if you start to see
|
||||
// `typeck` appear dirty, that might be the cause. -nmatsakis
|
||||
// `typeck_root` appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,generics_of")]
|
||||
@@ -484,14 +484,14 @@ pub fn add_type_parameter_to_method (&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
// Warning: Note that `typeck` are coming up clean here.
|
||||
// Warning: Note that `typeck_root` are coming up clean here.
|
||||
// The addition or removal of type parameters that don't appear in
|
||||
// the arguments or fn body in any way does not, in fact, affect
|
||||
// the `typeck` in any semantic way (at least as of this
|
||||
// the `typeck_root` in any semantic way (at least as of this
|
||||
// writing). **However,** altering the order of lowering **can**
|
||||
// cause it appear to affect the `typeck`: if we lower
|
||||
// cause it appear to affect the `typeck_root`: if we lower
|
||||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck`
|
||||
// body will be affected. So if you start to see `typeck_root`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
@@ -576,14 +576,14 @@ pub fn add_lifetime_bound_to_type_param_of_method<'a, T >(&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
// Warning: Note that `typeck` are coming up clean here.
|
||||
// Warning: Note that `typeck_root` are coming up clean here.
|
||||
// The addition or removal of bounds that don't appear in the
|
||||
// arguments or fn body in any way does not, in fact, affect the
|
||||
// `typeck` in any semantic way (at least as of this
|
||||
// `typeck_root` in any semantic way (at least as of this
|
||||
// writing). **However,** altering the order of lowering **can**
|
||||
// cause it appear to affect the `typeck`: if we lower
|
||||
// cause it appear to affect the `typeck_root`: if we lower
|
||||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck`
|
||||
// body will be affected. So if you start to see `typeck_root`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
@@ -625,14 +625,14 @@ pub fn add_trait_bound_to_type_param_of_method<T >(&self) { }
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
// Warning: Note that `typeck` are coming up clean here.
|
||||
// Warning: Note that `typeck_root` are coming up clean here.
|
||||
// The addition or removal of bounds that don't appear in the
|
||||
// arguments or fn body in any way does not, in fact, affect the
|
||||
// `typeck` in any semantic way (at least as of this
|
||||
// `typeck_root` in any semantic way (at least as of this
|
||||
// writing). **However,** altering the order of lowering **can**
|
||||
// cause it appear to affect the `typeck`: if we lower
|
||||
// cause it appear to affect the `typeck_root`: if we lower
|
||||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck`
|
||||
// body will be affected. So if you start to see `typeck_root`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
@@ -686,12 +686,12 @@ pub fn add_type_parameter_to_impl(&self) { }
|
||||
impl<T> Bar<T> {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="generics_of,fn_sig,typeck,type_of,optimized_mir"
|
||||
except="generics_of,fn_sig,typeck_root,type_of,optimized_mir"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="generics_of,fn_sig,typeck,type_of,optimized_mir"
|
||||
except="generics_of,fn_sig,typeck_root,type_of,optimized_mir"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_type_parameter_to_impl(&self) { }
|
||||
@@ -711,9 +711,9 @@ pub fn change_impl_self_type(&self) { }
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Bar<u64> {
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_impl_self_type(&self) { }
|
||||
}
|
||||
|
||||
@@ -41,9 +41,9 @@ pub fn add_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_type() {
|
||||
let _x: u32 = 2u32;
|
||||
@@ -58,9 +58,9 @@ pub fn change_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_type() {
|
||||
let _x: u8 = 2;
|
||||
@@ -75,9 +75,9 @@ pub fn change_mutability_of_reference_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_reference_type() {
|
||||
let _x: &mut u64;
|
||||
@@ -92,9 +92,9 @@ pub fn change_mutability_of_slot() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_slot() {
|
||||
let _x: u64 = 0;
|
||||
@@ -109,9 +109,9 @@ pub fn change_simple_binding_to_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_simple_binding_to_pattern() {
|
||||
let (_a, _b) = (0u8, 'x');
|
||||
@@ -143,9 +143,9 @@ pub fn add_ref_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_ref_in_pattern() {
|
||||
let (ref _a, _b) = (1u8, 'y');
|
||||
@@ -160,9 +160,9 @@ pub fn add_amp_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_amp_in_pattern() {
|
||||
let (&_a, _b) = (&1u8, 'y');
|
||||
@@ -177,9 +177,9 @@ pub fn change_mutability_of_binding_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_binding_in_pattern() {
|
||||
let (mut _a, _b) = (99u8, 'q');
|
||||
@@ -194,9 +194,9 @@ pub fn add_initializer() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_initializer() {
|
||||
let _x: i16 = 3i16;
|
||||
|
||||
@@ -54,9 +54,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
@@ -131,9 +131,9 @@ pub fn change_break_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
@@ -212,9 +212,9 @@ pub fn change_continue_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck_root, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck_root, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
||||
@@ -29,9 +29,9 @@ pub fn add_arm(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
@@ -80,9 +80,9 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
@@ -105,9 +105,9 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
@@ -130,9 +130,9 @@ pub fn add_at_binding(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_at_binding(x: u32) -> u32 {
|
||||
match x {
|
||||
@@ -179,9 +179,9 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@@ -228,9 +228,9 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
||||
|
||||
// Ignore optimized_mir in cfail2, the only change to optimized MIR is a span.
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@@ -251,9 +251,9 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@@ -274,9 +274,9 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (&x, x & 1) {
|
||||
@@ -323,9 +323,9 @@ pub fn add_alternative_to_arm(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_alternative_to_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
|
||||
@@ -60,9 +60,9 @@ pub fn change_field_order_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_order_regular_struct() -> RegularStruct {
|
||||
RegularStruct {
|
||||
@@ -91,9 +91,9 @@ pub fn add_field_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_field_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
@@ -128,9 +128,9 @@ pub fn change_field_label_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_label_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
@@ -165,9 +165,9 @@ pub fn change_constructor_path_regular_struct() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_regular_struct() {
|
||||
let _ = RegularStruct2 {
|
||||
@@ -186,9 +186,9 @@ pub mod change_constructor_path_indirectly_regular_struct {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::RegularStruct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Struct {
|
||||
Struct {
|
||||
@@ -229,9 +229,9 @@ pub fn change_constructor_path_tuple_struct() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_tuple_struct() {
|
||||
let _ = TupleStruct2(0, 1, 2);
|
||||
@@ -246,9 +246,9 @@ pub mod change_constructor_path_indirectly_tuple_struct {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::TupleStruct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Struct {
|
||||
Struct(0, 1, 2)
|
||||
|
||||
@@ -356,9 +356,9 @@ fn method( self) {}
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
trait TraitChangeModeSelfOwnToMut: Sized {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method(mut self) {}
|
||||
}
|
||||
|
||||
@@ -79,9 +79,9 @@ fn method_name() {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodBodyTrait for Foo {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name() {
|
||||
()
|
||||
@@ -114,9 +114,9 @@ fn method_name() {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodBodyTraitInlined for Foo {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
fn method_name() {
|
||||
@@ -148,12 +148,12 @@ pub trait ChangeMethodSelfnessTrait {
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodSelfnessTrait for Foo {
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@@ -186,12 +186,12 @@ pub trait RemoveMethodSelfnessTrait {
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl RemoveMethodSelfnessTrait for Foo {
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@@ -225,9 +225,9 @@ pub trait ChangeMethodSelfmutnessTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodSelfmutnessTrait for Foo {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&mut self) {}
|
||||
}
|
||||
@@ -407,9 +407,9 @@ pub trait AddArgumentTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl AddArgumentTrait for Foo {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&self, _x: u32) { }
|
||||
}
|
||||
@@ -441,9 +441,9 @@ pub trait ChangeArgumentTypeTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeArgumentTypeTrait for Foo {
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&self, _x: char) { }
|
||||
}
|
||||
@@ -469,12 +469,12 @@ fn id(t: u32) -> u32 { t }
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<TTT> AddTypeParameterToImpl<TTT> for Bar<TTT> {
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck_root,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck_root,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@@ -499,9 +499,9 @@ fn id(self) -> Self { self }
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,impl_trait_header", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeSelfTypeOfImpl for u64 {
|
||||
#[rustc_clean(except="fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn id(self) -> Self { self }
|
||||
}
|
||||
|
||||
@@ -418,9 +418,9 @@ pub fn type_cast(a: u8) -> u64 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn type_cast(a: u8) -> u64 {
|
||||
let b = a as u32;
|
||||
|
||||
@@ -79,9 +79,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
||||
@@ -79,9 +79,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
||||
@@ -13,7 +13,7 @@ macro_rules! first_macro {
|
||||
}
|
||||
}
|
||||
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="rpass2")]
|
||||
#[inline(always)]
|
||||
pub fn changed_fn() {
|
||||
// This will cause additional hygiene to be generate,
|
||||
|
||||
@@ -27,7 +27,7 @@ mod mod3 {
|
||||
#[cfg(rpass2)]
|
||||
use Trait2;
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
fn bar() {
|
||||
().method();
|
||||
}
|
||||
|
||||
@@ -31,13 +31,13 @@ mod mod3 {
|
||||
use mod2::Foo;
|
||||
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="rpass3")]
|
||||
fn in_expr() {
|
||||
Foo(0);
|
||||
}
|
||||
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="rpass3")]
|
||||
fn in_type() {
|
||||
test::<Foo>();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Regression test for #42602. It used to be that we had
|
||||
// a dep-graph like
|
||||
//
|
||||
// typeck(foo) -> FnOnce -> typeck(bar)
|
||||
// typeck_root(foo) -> FnOnce -> typeck_root(bar)
|
||||
//
|
||||
// This was fixed by improving the resolution of the `FnOnce` trait
|
||||
// selection node.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: a::X = 22;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
// Here the only thing which changes is the string constant in `x`.
|
||||
// Therefore, the compiler deduces (correctly) that typeck is not
|
||||
// Therefore, the compiler deduces (correctly) that typeck_root is not
|
||||
// needed even for callers of `x`.
|
||||
|
||||
pub mod x {
|
||||
|
||||
@@ -22,12 +22,12 @@ pub struct Y {
|
||||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_clean(except="fn_sig,typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="fn_sig,typeck_root", cfg="rpass2")]
|
||||
pub fn use_X(x: X) -> u32 {
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ pub struct Y {
|
||||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="cfail2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
//[cfail2]~^ ERROR struct `X` has no field named `x`
|
||||
@@ -34,7 +34,7 @@ pub fn use_X() -> u32 {
|
||||
//[cfail2]~^ ERROR no field `x` on type `X`
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="cfail2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
//[cfail2]~^ ERROR no field `x` on type `X`
|
||||
|
||||
@@ -25,13 +25,13 @@ pub struct Y {
|
||||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_EmbedX(x: EmbedX) -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
|
||||
use a::*;
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
@@ -26,12 +26,12 @@ pub struct Y {
|
||||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck,fn_sig", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root,fn_sig", cfg="rpass2")]
|
||||
pub fn use_X(x: X) -> u32 {
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck_root", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: a::X = 22;
|
||||
|
||||
Reference in New Issue
Block a user