hir: replace "items" terminology with "nodes" where appropriate.
This commit is contained in:
parent
3c6f982cc9
commit
e8f1dfae64
40 changed files with 392 additions and 390 deletions
|
@ -165,8 +165,8 @@ macro_rules! arena_types {
|
|||
// HIR query types
|
||||
[few] indexed_hir: rustc::hir::map::IndexedHir<$tcx>,
|
||||
[few] hir_definitions: rustc::hir::map::definitions::Definitions,
|
||||
[] hir_owner: rustc::hir::HirOwner<$tcx>,
|
||||
[] hir_owner_items: rustc::hir::HirOwnerItems<$tcx>,
|
||||
[] hir_owner: rustc::hir::Owner<$tcx>,
|
||||
[] hir_owner_nodes: rustc::hir::OwnerNodes<$tcx>,
|
||||
], $tcx);
|
||||
)
|
||||
}
|
||||
|
|
|
@ -659,7 +659,7 @@ impl DepGraph {
|
|||
// bug that must be fixed before removing this.
|
||||
match dep_dep_node.kind {
|
||||
DepKind::hir_owner
|
||||
| DepKind::hir_owner_items
|
||||
| DepKind::hir_owner_nodes
|
||||
| DepKind::CrateMetadata => {
|
||||
if let Some(def_id) = dep_dep_node.extract_def_id(tcx) {
|
||||
if def_id_corresponds_to_hir_dep_node(tcx, def_id) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::arena::Arena;
|
||||
use crate::hir::map::definitions::{self, DefPathHash};
|
||||
use crate::hir::map::{Entry, HirOwnerData, Map};
|
||||
use crate::hir::{HirItem, HirOwner, HirOwnerItems};
|
||||
use crate::hir::{Owner, OwnerNodes, ParentedNode};
|
||||
use crate::ich::StableHashingContext;
|
||||
use crate::middle::cstore::CrateStore;
|
||||
use rustc_data_structures::fingerprint::Fingerprint;
|
||||
|
@ -203,30 +203,30 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
|
|||
let data = &mut self.map[id.owner];
|
||||
|
||||
if data.with_bodies.is_none() {
|
||||
data.with_bodies = Some(arena.alloc(HirOwnerItems {
|
||||
data.with_bodies = Some(arena.alloc(OwnerNodes {
|
||||
hash,
|
||||
items: IndexVec::new(),
|
||||
nodes: IndexVec::new(),
|
||||
bodies: FxHashMap::default(),
|
||||
}));
|
||||
}
|
||||
|
||||
let items = data.with_bodies.as_mut().unwrap();
|
||||
let nodes = data.with_bodies.as_mut().unwrap();
|
||||
|
||||
if i == 0 {
|
||||
// Overwrite the dummy hash with the real HIR owner hash.
|
||||
items.hash = hash;
|
||||
nodes.hash = hash;
|
||||
|
||||
// FIXME: feature(impl_trait_in_bindings) broken and trigger this assert
|
||||
//assert!(data.signature.is_none());
|
||||
|
||||
data.signature =
|
||||
Some(self.arena.alloc(HirOwner { parent: entry.parent, node: entry.node }));
|
||||
Some(self.arena.alloc(Owner { parent: entry.parent, node: entry.node }));
|
||||
} else {
|
||||
assert_eq!(entry.parent.owner, id.owner);
|
||||
insert_vec_map(
|
||||
&mut items.items,
|
||||
&mut nodes.nodes,
|
||||
id.local_id,
|
||||
HirItem { parent: entry.parent.local_id, node: entry.node },
|
||||
ParentedNode { parent: entry.parent.local_id, node: entry.node },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ pub use self::definitions::{
|
|||
DefKey, DefPath, DefPathData, DefPathHash, Definitions, DisambiguatedDefPathData,
|
||||
};
|
||||
|
||||
use crate::hir::{HirOwner, HirOwnerItems};
|
||||
use crate::hir::{Owner, OwnerNodes};
|
||||
use crate::ty::query::Providers;
|
||||
use crate::ty::TyCtxt;
|
||||
use rustc_ast::ast::{self, Name, NodeId};
|
||||
|
@ -130,8 +130,8 @@ fn is_body_owner<'hir>(node: Node<'hir>, hir_id: HirId) -> bool {
|
|||
}
|
||||
|
||||
pub(super) struct HirOwnerData<'hir> {
|
||||
pub(super) signature: Option<&'hir HirOwner<'hir>>,
|
||||
pub(super) with_bodies: Option<&'hir mut HirOwnerItems<'hir>>,
|
||||
pub(super) signature: Option<&'hir Owner<'hir>>,
|
||||
pub(super) with_bodies: Option<&'hir mut OwnerNodes<'hir>>,
|
||||
}
|
||||
|
||||
pub struct IndexedHir<'hir> {
|
||||
|
@ -345,9 +345,12 @@ impl<'hir> Map<'hir> {
|
|||
let owner = self.tcx.hir_owner(id.owner);
|
||||
Entry { parent: owner.parent, node: owner.node }
|
||||
} else {
|
||||
let owner = self.tcx.hir_owner_items(id.owner);
|
||||
let item = owner.items[id.local_id].as_ref().unwrap();
|
||||
Entry { parent: HirId { owner: id.owner, local_id: item.parent }, node: item.node }
|
||||
let owner = self.tcx.hir_owner_nodes(id.owner);
|
||||
let node = owner.nodes[id.local_id].as_ref().unwrap();
|
||||
// FIXME(eddyb) use a single generic type insted of having both
|
||||
// `Entry` and `ParentedNode`, which are effectively the same.
|
||||
// Alternatively, rewrite code using `Entry` to use `ParentedNode`.
|
||||
Entry { parent: HirId { owner: id.owner, local_id: node.parent }, node: node.node }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -373,7 +376,7 @@ impl<'hir> Map<'hir> {
|
|||
}
|
||||
|
||||
pub fn body(&self, id: BodyId) -> &'hir Body<'hir> {
|
||||
self.tcx.hir_owner_items(id.hir_id.owner).bodies.get(&id.hir_id.local_id).unwrap()
|
||||
self.tcx.hir_owner_nodes(id.hir_id.owner).bodies.get(&id.hir_id.local_id).unwrap()
|
||||
}
|
||||
|
||||
pub fn fn_decl_by_hir_id(&self, hir_id: HirId) -> Option<&'hir FnDecl<'hir>> {
|
||||
|
|
|
@ -18,14 +18,14 @@ use rustc_hir::ItemLocalId;
|
|||
use rustc_hir::Node;
|
||||
use rustc_index::vec::IndexVec;
|
||||
|
||||
pub struct HirOwner<'tcx> {
|
||||
pub struct Owner<'tcx> {
|
||||
parent: HirId,
|
||||
node: Node<'tcx>,
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for HirOwner<'tcx> {
|
||||
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Owner<'tcx> {
|
||||
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
|
||||
let HirOwner { parent, node } = self;
|
||||
let Owner { parent, node } = self;
|
||||
hcx.while_hashing_hir_bodies(false, |hcx| {
|
||||
parent.hash_stable(hcx, hasher);
|
||||
node.hash_stable(hcx, hasher);
|
||||
|
@ -34,22 +34,22 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for HirOwner<'tcx> {
|
|||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct HirItem<'tcx> {
|
||||
pub struct ParentedNode<'tcx> {
|
||||
parent: ItemLocalId,
|
||||
node: Node<'tcx>,
|
||||
}
|
||||
|
||||
pub struct HirOwnerItems<'tcx> {
|
||||
pub struct OwnerNodes<'tcx> {
|
||||
hash: Fingerprint,
|
||||
items: IndexVec<ItemLocalId, Option<HirItem<'tcx>>>,
|
||||
nodes: IndexVec<ItemLocalId, Option<ParentedNode<'tcx>>>,
|
||||
bodies: FxHashMap<ItemLocalId, &'tcx Body<'tcx>>,
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for HirOwnerItems<'tcx> {
|
||||
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for OwnerNodes<'tcx> {
|
||||
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
|
||||
// We ignore the `items` and `bodies` fields since these refer to information included in
|
||||
// We ignore the `nodes` and `bodies` fields since these refer to information included in
|
||||
// `hash` which is hashed in the collector and used for the crate hash.
|
||||
let HirOwnerItems { hash, items: _, bodies: _ } = *self;
|
||||
let OwnerNodes { hash, nodes: _, bodies: _ } = *self;
|
||||
hash.hash_stable(hcx, hasher);
|
||||
}
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ pub fn provide(providers: &mut Providers<'_>) {
|
|||
&tcx.untracked_crate.modules[&module]
|
||||
};
|
||||
providers.hir_owner = |tcx, id| tcx.index_hir(LOCAL_CRATE).map[id].signature.unwrap();
|
||||
providers.hir_owner_items = |tcx, id| {
|
||||
tcx.index_hir(LOCAL_CRATE).map[id].with_bodies.as_ref().map(|items| &**items).unwrap()
|
||||
providers.hir_owner_nodes = |tcx, id| {
|
||||
tcx.index_hir(LOCAL_CRATE).map[id].with_bodies.as_ref().map(|nodes| &**nodes).unwrap()
|
||||
};
|
||||
map::provide(providers);
|
||||
}
|
||||
|
|
|
@ -71,20 +71,20 @@ rustc_queries! {
|
|||
desc { |tcx| "HIR module items in `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
}
|
||||
|
||||
// An HIR item with a `LocalDefId` that can own other HIR items which do
|
||||
// An HIR node with a `LocalDefId` that can own other HIR nodes which do
|
||||
// not themselves have a `LocalDefId`.
|
||||
// This can be conveniently accessed by methods on `tcx.hir()`.
|
||||
// Avoid calling this query directly.
|
||||
query hir_owner(key: LocalDefId) -> &'tcx HirOwner<'tcx> {
|
||||
query hir_owner(key: LocalDefId) -> &'tcx crate::hir::Owner<'tcx> {
|
||||
eval_always
|
||||
desc { |tcx| "HIR owner of `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
}
|
||||
|
||||
// The HIR items which do not themselves have a `LocalDefId` and are
|
||||
// owned by another HIR item with a `LocalDefId`.
|
||||
// The HIR nodes which do not themselves have a `LocalDefId` and are
|
||||
// owned by another HIR node with a `LocalDefId`.
|
||||
// This can be conveniently accessed by methods on `tcx.hir()`.
|
||||
// Avoid calling this query directly.
|
||||
query hir_owner_items(key: LocalDefId) -> &'tcx HirOwnerItems<'tcx> {
|
||||
query hir_owner_nodes(key: LocalDefId) -> &'tcx crate::hir::OwnerNodes<'tcx> {
|
||||
eval_always
|
||||
desc { |tcx| "HIR owner items in `{}`", tcx.def_path_str(key.to_def_id()) }
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use crate::dep_graph::{self, DepConstructor, DepNode, DepNodeParams};
|
||||
use crate::hir::exports::Export;
|
||||
use crate::hir::map;
|
||||
use crate::hir::{HirOwner, HirOwnerItems};
|
||||
use crate::infer::canonical::{self, Canonical};
|
||||
use crate::lint::LintLevelMap;
|
||||
use crate::middle::codegen_fn_attrs::CodegenFnAttrs;
|
||||
|
|
|
@ -53,9 +53,9 @@ const BASE_FN: &[&str] = &[
|
|||
|
||||
/// DepNodes for Hir, which is pretty much everything
|
||||
const BASE_HIR: &[&str] = &[
|
||||
// hir_owner and hir_owner_items should be computed for all nodes
|
||||
// hir_owner and hir_owner_nodes should be computed for all nodes
|
||||
label_strs::hir_owner,
|
||||
label_strs::hir_owner_items,
|
||||
label_strs::hir_owner_nodes,
|
||||
];
|
||||
|
||||
/// `impl` implementation of struct/trait
|
||||
|
|
|
@ -140,7 +140,7 @@ provide! { <'tcx> tcx, def_id, other, cdata,
|
|||
cdata.get_deprecation(def_id.index).map(DeprecationEntry::external)
|
||||
}
|
||||
item_attrs => { cdata.get_item_attrs(def_id.index, tcx.sess) }
|
||||
// FIXME(#38501) We've skipped a `read` on the `hir_owner_items` of
|
||||
// FIXME(#38501) We've skipped a `read` on the `hir_owner_nodes` of
|
||||
// a `fn` when encoding, so the dep-tracking wouldn't work.
|
||||
// This is only used by rustdoc anyway, which shouldn't have
|
||||
// incremental recompilation ever enabled.
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_callee_function() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_callee_function() {
|
||||
callee2(1, 2)
|
||||
|
@ -40,7 +40,7 @@ pub fn change_argument_function() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_argument_function() {
|
||||
callee1(1, 3)
|
||||
|
@ -57,8 +57,8 @@ mod change_callee_indirectly_function {
|
|||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
|
||||
|
||||
pub fn change_callee_indirectly_function() {
|
||||
|
@ -81,7 +81,7 @@ pub fn change_callee_method() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_callee_method() {
|
||||
let s = Struct;
|
||||
|
@ -98,7 +98,7 @@ pub fn change_argument_method() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_argument_method() {
|
||||
let s = Struct;
|
||||
|
@ -115,7 +115,7 @@ pub fn change_ufcs_callee_method() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_ufcs_callee_method() {
|
||||
let s = Struct;
|
||||
|
@ -132,7 +132,7 @@ pub fn change_argument_method_ufcs() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_argument_method_ufcs() {
|
||||
let s = Struct;
|
||||
|
@ -149,9 +149,9 @@ pub fn change_to_ufcs() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
// One might think this would be expanded in the hir_owner_items/Mir, but it actually
|
||||
// One might think this would be expanded in the hir_owner_nodes/Mir, but it actually
|
||||
// results in slightly different hir_owner/Mir.
|
||||
pub fn change_to_ufcs() {
|
||||
let s = Struct;
|
||||
|
@ -171,7 +171,7 @@ pub mod change_ufcs_callee_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::Struct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ pub fn change_closure_body() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_closure_body() {
|
||||
let _ = || 3u32;
|
||||
|
@ -37,7 +37,7 @@ pub fn add_parameter() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_parameter() {
|
||||
let x = 0u32;
|
||||
|
@ -53,7 +53,7 @@ pub fn change_parameter_pattern() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_parameter_pattern() {
|
||||
let _ = |(x,): (u32,)| x;
|
||||
|
@ -68,7 +68,7 @@ pub fn add_move() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_move() {
|
||||
let _ = move || 1;
|
||||
|
@ -84,7 +84,7 @@ pub fn add_type_ascription_to_parameter() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_items, typeck_tables_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, typeck_tables_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn add_type_ascription_to_parameter() {
|
||||
let closure = |x: u32| x + 1u32;
|
||||
|
@ -101,7 +101,7 @@ pub fn change_parameter_type() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_parameter_type() {
|
||||
let closure = |x: u16| (x as u64) + 1;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
const CONST_VISIBILITY: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub const CONST_VISIBILITY: u8 = 0;
|
||||
|
||||
|
@ -29,7 +29,7 @@ pub const CONST_VISIBILITY: u8 = 0;
|
|||
const CONST_CHANGE_TYPE_1: i32 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_1: u32 = 0;
|
||||
|
||||
|
@ -39,13 +39,13 @@ const CONST_CHANGE_TYPE_1: u32 = 0;
|
|||
const CONST_CHANGE_TYPE_2: Option<u32> = None;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_2: Option<u64> = None;
|
||||
|
||||
|
||||
// Change value between simple literals
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_VALUE_1: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -57,7 +57,7 @@ const CONST_CHANGE_VALUE_1: i16 = {
|
|||
|
||||
|
||||
// Change value between expressions
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_VALUE_2: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -67,7 +67,7 @@ const CONST_CHANGE_VALUE_2: i16 = {
|
|||
{ 1 + 2 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_VALUE_3: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -77,7 +77,7 @@ const CONST_CHANGE_VALUE_3: i16 = {
|
|||
{ 2 * 3 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_VALUE_4: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -99,11 +99,11 @@ mod const_change_type_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ pub fn change_field_value_struct_like() -> Enum {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_value_struct_like() -> Enum {
|
||||
Enum::Struct {
|
||||
|
@ -57,7 +57,7 @@ pub fn change_field_order_struct_like() -> Enum {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
// FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it
|
||||
// would if it were not all constants
|
||||
|
@ -96,7 +96,7 @@ pub fn change_constructor_path_struct_like() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_path_struct_like() {
|
||||
let _ = Enum2::Struct {
|
||||
|
@ -119,7 +119,7 @@ pub fn change_constructor_variant_struct_like() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_variant_struct_like() {
|
||||
let _ = Enum2::Struct2 {
|
||||
|
@ -139,7 +139,7 @@ pub mod change_constructor_path_indirectly_struct_like {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="fn_sig,hir_owner,hir_owner_items,optimized_mir,mir_built,\
|
||||
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,mir_built,\
|
||||
typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
|
@ -161,7 +161,7 @@ pub mod change_constructor_variant_indirectly_struct_like {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::Enum2::Struct2 as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Enum2 {
|
||||
Variant {
|
||||
|
@ -180,7 +180,7 @@ pub fn change_field_value_tuple_like() -> Enum {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_value_tuple_like() -> Enum {
|
||||
Enum::Tuple(0, 1, 3)
|
||||
|
@ -197,7 +197,7 @@ pub fn change_constructor_path_tuple_like() {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of"
|
||||
except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_path_tuple_like() {
|
||||
|
@ -215,7 +215,7 @@ pub fn change_constructor_variant_tuple_like() {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of"
|
||||
except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_variant_tuple_like() {
|
||||
|
@ -232,7 +232,7 @@ pub mod change_constructor_path_indirectly_tuple_like {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="fn_sig,hir_owner,hir_owner_items,optimized_mir,mir_built,\
|
||||
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,mir_built,\
|
||||
typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
|
@ -251,7 +251,7 @@ pub mod change_constructor_variant_indirectly_tuple_like {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::Enum2::Tuple2 as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Enum2 {
|
||||
Variant(0, 1, 2)
|
||||
|
@ -278,7 +278,7 @@ pub fn change_constructor_path_c_like() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_path_c_like() {
|
||||
let _ = Clike2::B;
|
||||
|
@ -293,7 +293,7 @@ pub fn change_constructor_variant_c_like() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_variant_c_like() {
|
||||
let _ = Clike::C;
|
||||
|
@ -309,7 +309,7 @@ pub mod change_constructor_path_indirectly_c_like {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="fn_sig,hir_owner,hir_owner_items,optimized_mir,mir_built,\
|
||||
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,mir_built,\
|
||||
typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
|
@ -328,7 +328,7 @@ pub mod change_constructor_variant_indirectly_c_like {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::Clike::B as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Clike {
|
||||
Variant
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
enum EnumVisibility { A }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub enum EnumVisibility {
|
||||
A
|
||||
|
@ -42,7 +42,7 @@ enum EnumChangeNameCStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeNameCStyleVariant {
|
||||
Variant1,
|
||||
|
@ -59,7 +59,7 @@ enum EnumChangeNameTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeNameTupleStyleVariant {
|
||||
Variant1,
|
||||
|
@ -76,7 +76,7 @@ enum EnumChangeNameStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeNameStructStyleVariant {
|
||||
Variant1,
|
||||
|
@ -93,7 +93,7 @@ enum EnumChangeValueCStyleVariant0 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeValueCStyleVariant0 {
|
||||
Variant1,
|
||||
|
@ -109,7 +109,7 @@ enum EnumChangeValueCStyleVariant1 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeValueCStyleVariant1 {
|
||||
Variant1,
|
||||
|
@ -125,7 +125,7 @@ enum EnumAddCStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumAddCStyleVariant {
|
||||
Variant1,
|
||||
|
@ -142,7 +142,7 @@ enum EnumRemoveCStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumRemoveCStyleVariant {
|
||||
Variant1,
|
||||
|
@ -157,7 +157,7 @@ enum EnumAddTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumAddTupleStyleVariant {
|
||||
Variant1,
|
||||
|
@ -174,7 +174,7 @@ enum EnumRemoveTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumRemoveTupleStyleVariant {
|
||||
Variant1,
|
||||
|
@ -189,7 +189,7 @@ enum EnumAddStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumAddStructStyleVariant {
|
||||
Variant1,
|
||||
|
@ -206,7 +206,7 @@ enum EnumRemoveStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumRemoveStructStyleVariant {
|
||||
Variant1,
|
||||
|
@ -221,7 +221,7 @@ enum EnumChangeFieldTypeTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeFieldTypeTupleStyleVariant {
|
||||
Variant1(u32,
|
||||
|
@ -238,7 +238,7 @@ enum EnumChangeFieldTypeStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeFieldTypeStructStyleVariant {
|
||||
Variant1,
|
||||
|
@ -257,7 +257,7 @@ enum EnumChangeFieldNameStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeFieldNameStructStyleVariant {
|
||||
Variant1 { a: u32, c: u32 },
|
||||
|
@ -272,7 +272,7 @@ enum EnumChangeOrderTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeOrderTupleStyleVariant {
|
||||
Variant1(
|
||||
|
@ -289,7 +289,7 @@ enum EnumChangeFieldOrderStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumChangeFieldOrderStructStyleVariant {
|
||||
Variant1 { b: f32, a: u32 },
|
||||
|
@ -304,7 +304,7 @@ enum EnumAddFieldTupleStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumAddFieldTupleStyleVariant {
|
||||
Variant1(u32, u32, u32),
|
||||
|
@ -319,7 +319,7 @@ enum EnumAddFieldStructStyleVariant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumAddFieldStructStyleVariant {
|
||||
Variant1 { a: u32, b: u32, c: u32 },
|
||||
|
@ -335,7 +335,7 @@ enum EnumAddMustUse {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[must_use]
|
||||
enum EnumAddMustUse {
|
||||
|
@ -353,7 +353,7 @@ enum EnumAddReprC {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[repr(C)]
|
||||
enum EnumAddReprC {
|
||||
|
@ -531,7 +531,7 @@ enum EnumSwapUsageTypeParameters<A, B> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumSwapUsageTypeParameters<A, B> {
|
||||
Variant1 {
|
||||
|
@ -552,7 +552,7 @@ enum EnumSwapUsageLifetimeParameters<'a, 'b> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum EnumSwapUsageLifetimeParameters<'a, 'b> {
|
||||
Variant1 {
|
||||
|
@ -577,7 +577,7 @@ mod change_field_type_indirectly_tuple_style {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum TupleStyle {
|
||||
Variant1(
|
||||
|
@ -595,7 +595,7 @@ mod change_field_type_indirectly_struct_style {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum StructStyle {
|
||||
Variant1 {
|
||||
|
@ -618,7 +618,7 @@ mod change_trait_bound_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum Enum<T: Trait> {
|
||||
Variant1(T)
|
||||
|
@ -634,7 +634,7 @@ mod change_trait_bound_indirectly_where {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
enum Enum<T> where T: Trait {
|
||||
Variant1(T)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#![crate_type="rlib"]
|
||||
|
||||
// Case 1: The function body is not exported to metadata. If the body changes,
|
||||
// the hash of the hir_owner_items node should change, but not the hash of
|
||||
// the hash of the hir_owner_nodes node should change, but not the hash of
|
||||
// either the hir_owner or the Metadata node.
|
||||
|
||||
#[cfg(cfail1)]
|
||||
|
@ -16,7 +16,7 @@ pub fn body_not_exported_to_metadata() -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn body_not_exported_to_metadata() -> u32 {
|
||||
2
|
||||
|
@ -35,7 +35,7 @@ pub fn body_exported_to_metadata_because_of_inline() -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
pub fn body_exported_to_metadata_because_of_inline() -> u32 {
|
||||
|
@ -55,7 +55,7 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
pub fn body_exported_to_metadata_because_of_generic() -> u32 {
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_loop_body() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
|
@ -48,7 +48,7 @@ pub fn change_iteration_variable_name() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_iteration_variable_name() {
|
||||
let mut _x = 0;
|
||||
|
@ -71,7 +71,7 @@ pub fn change_iteration_variable_pattern() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_iteration_variable_pattern() {
|
||||
let mut _x = 0;
|
||||
|
@ -94,7 +94,7 @@ pub fn change_iterable() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, promoted_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, promoted_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_iterable() {
|
||||
let mut _x = 0;
|
||||
|
@ -116,7 +116,7 @@ pub fn add_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -139,7 +139,7 @@ pub fn add_loop_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -162,7 +162,7 @@ pub fn add_loop_label_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -187,7 +187,7 @@ pub fn change_break_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -212,7 +212,7 @@ pub fn add_loop_label_to_continue() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
|
@ -237,7 +237,7 @@ pub fn change_continue_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -262,7 +262,7 @@ pub fn change_continue_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
|
|
@ -22,7 +22,7 @@ pub fn add_parameter() {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn add_parameter(p: i32) {}
|
||||
|
@ -33,7 +33,7 @@ pub fn add_parameter(p: i32) {}
|
|||
pub fn add_return_type() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn add_return_type() -> () {}
|
||||
|
||||
|
@ -45,7 +45,7 @@ pub fn type_of_parameter(p: i32) {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_of_parameter(p: i64) {}
|
||||
|
@ -58,7 +58,7 @@ pub fn type_of_parameter_ref(p: &i32) {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_of_parameter_ref(p: &mut i32) {}
|
||||
|
@ -71,7 +71,7 @@ pub fn order_of_parameters(p1: i32, p2: i64) {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn order_of_parameters(p2: i64, p1: i32) {}
|
||||
|
@ -84,7 +84,7 @@ pub fn make_unsafe() {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub unsafe fn make_unsafe() {}
|
||||
|
@ -95,7 +95,7 @@ pub unsafe fn make_unsafe() {}
|
|||
pub fn make_extern() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, typeck_tables_of, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, typeck_tables_of, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub extern "C" fn make_extern() {}
|
||||
|
||||
|
@ -107,7 +107,7 @@ pub fn type_parameter() {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, generics_of, type_of, predicates_of"
|
||||
except = "hir_owner, hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn type_parameter<T>() {}
|
||||
|
@ -118,7 +118,7 @@ pub fn type_parameter<T>() {}
|
|||
pub fn lifetime_parameter() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, generics_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, generics_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn lifetime_parameter<'a>() {}
|
||||
|
||||
|
@ -128,7 +128,7 @@ pub fn lifetime_parameter<'a>() {}
|
|||
pub fn trait_bound<T>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn trait_bound<T: Eq>() {}
|
||||
|
||||
|
@ -138,7 +138,7 @@ pub fn trait_bound<T: Eq>() {}
|
|||
pub fn builtin_bound<T>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn builtin_bound<T: Send>() {}
|
||||
|
||||
|
@ -150,7 +150,7 @@ pub fn lifetime_bound<'a, T>() {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, generics_of, type_of, predicates_of"
|
||||
except = "hir_owner, hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn lifetime_bound<'a, T: 'a>() {}
|
||||
|
@ -161,7 +161,7 @@ pub fn lifetime_bound<'a, T: 'a>() {}
|
|||
pub fn second_trait_bound<T: Eq>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn second_trait_bound<T: Eq + Clone>() {}
|
||||
|
||||
|
@ -171,7 +171,7 @@ pub fn second_trait_bound<T: Eq + Clone>() {}
|
|||
pub fn second_builtin_bound<T: Send>() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn second_builtin_bound<T: Send + Sized>() {}
|
||||
|
||||
|
@ -183,7 +183,7 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a>() {}
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, generics_of, type_of, predicates_of"
|
||||
except = "hir_owner, hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
|
||||
|
@ -194,7 +194,7 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
|
|||
pub fn inline() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[inline]
|
||||
pub fn inline() {}
|
||||
|
@ -206,7 +206,7 @@ pub fn inline() {}
|
|||
pub fn inline_never() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[inline(never)]
|
||||
pub fn inline_never() {}
|
||||
|
@ -217,7 +217,7 @@ pub fn inline_never() {}
|
|||
pub fn no_mangle() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[no_mangle]
|
||||
pub fn no_mangle() {}
|
||||
|
@ -228,7 +228,7 @@ pub fn no_mangle() {}
|
|||
pub fn linkage() {}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[linkage = "weak_odr"]
|
||||
pub fn linkage() {}
|
||||
|
@ -241,7 +241,7 @@ pub fn return_impl_trait() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, typeck_tables_of, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, typeck_tables_of, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn return_impl_trait() -> impl Clone {
|
||||
0
|
||||
|
@ -274,7 +274,7 @@ pub mod change_return_type_indirectly {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_return_type() -> ReturnType {
|
||||
|
@ -292,7 +292,7 @@ pub mod change_parameter_type_indirectly {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner, hir_owner_items, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
except = "hir_owner, hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_parameter_type(p: ParameterType) {}
|
||||
|
@ -309,7 +309,7 @@ pub mod change_trait_bound_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_trait_bound<T: Trait>(p: T) {}
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ pub mod change_trait_bound_indirectly_in_where_clause {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_items, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner, hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn indirect_trait_bound_where<T>(p: T)
|
||||
where
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_condition(x: bool) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_condition(x: bool) -> u32 {
|
||||
if !x {
|
||||
|
@ -46,7 +46,7 @@ pub fn change_then_branch(x: bool) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_then_branch(x: bool) -> u32 {
|
||||
if x {
|
||||
|
@ -69,7 +69,7 @@ pub fn change_else_branch(x: bool) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_else_branch(x: bool) -> u32 {
|
||||
if x {
|
||||
|
@ -94,7 +94,7 @@ pub fn add_else_branch(x: bool) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_else_branch(x: bool) -> u32 {
|
||||
let mut ret = 1;
|
||||
|
@ -120,7 +120,7 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(_) = x {
|
||||
|
@ -143,7 +143,7 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(x) = x {
|
||||
|
@ -166,7 +166,7 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(x) = x {
|
||||
|
@ -191,7 +191,7 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
let mut ret = 1;
|
||||
|
|
|
@ -22,8 +22,8 @@ fn change_simple_index(slice: &[u32]) -> u32 {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn change_simple_index(slice: &[u32]) -> u32 {
|
||||
slice[4]
|
||||
}
|
||||
|
@ -39,8 +39,8 @@ fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[2..5]
|
||||
}
|
||||
|
@ -56,8 +56,8 @@ fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
}
|
||||
|
@ -73,8 +73,8 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..4]
|
||||
}
|
||||
|
@ -90,8 +90,8 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
}
|
||||
|
@ -107,8 +107,8 @@ fn change_mutability(slice: &mut [u32]) -> u32 {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
(&slice[3..5])[0]
|
||||
}
|
||||
|
@ -124,8 +124,8 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
|||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..=7]
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ impl Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
|
@ -44,7 +44,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_items,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
|
||||
except="hir_owner_nodes,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn method_body() {
|
||||
|
@ -68,7 +68,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_items,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
|
||||
except="hir_owner_nodes,optimized_mir,promoted_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
|
@ -85,10 +85,10 @@ impl Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="associated_item,hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="associated_item,hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_privacy() { }
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ impl Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_dirty(cfg="cfail2", except="type_of,predicates_of,promoted_mir")]
|
||||
|
@ -120,7 +120,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
except="hir_owner,hir_owner_nodes,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn method_selfmutness(&mut self) { }
|
||||
|
@ -135,7 +135,7 @@ impl Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
|
@ -160,7 +160,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
except="hir_owner,hir_owner_nodes,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_method_parameter(&self, _: i32) { }
|
||||
|
@ -178,7 +178,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_method_parameter_name(&self, b: i64) { }
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,fn_sig,optimized_mir,mir_built,typeck_tables_of")]
|
||||
except="hir_owner,hir_owner_nodes,fn_sig,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_method_return_type(&self) -> u8 { 0 }
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
pub fn make_method_inline(&self) -> u8 { 0 }
|
||||
|
@ -232,7 +232,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_method_parameter_order(&self, b: i64, a: i64) { }
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
except="hir_owner,hir_owner_nodes,fn_sig,typeck_tables_of,optimized_mir,mir_built"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub unsafe fn make_method_unsafe(&self) { }
|
||||
|
@ -269,7 +269,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,fn_sig,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,fn_sig,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub extern fn make_method_extern(&self) { }
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,fn_sig,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,fn_sig,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub extern "system" fn change_method_calling_convention(&self) { }
|
||||
}
|
||||
|
@ -312,7 +312,7 @@ impl Foo {
|
|||
// 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_tables_of` appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_lifetime_parameter_to_method<'a>(&self) { }
|
||||
}
|
||||
|
@ -340,7 +340,7 @@ impl Foo {
|
|||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,generics_of,predicates_of,type_of",
|
||||
except="hir_owner,hir_owner_nodes,generics_of,predicates_of,type_of",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_type_parameter_to_method<T>(&self) { }
|
||||
|
@ -360,7 +360,7 @@ impl Foo {
|
|||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner,hir_owner_items,generics_of,predicates_of,type_of"
|
||||
except="hir_owner,hir_owner_nodes,generics_of,predicates_of,type_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b: 'a>(&self) { }
|
||||
|
@ -387,7 +387,7 @@ impl Foo {
|
|||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck_tables_of`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,generics_of,predicates_of,\
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,generics_of,predicates_of,\
|
||||
type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_lifetime_bound_to_type_param_of_method<'a, T: 'a>(&self) { }
|
||||
|
@ -414,7 +414,7 @@ impl Foo {
|
|||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck_tables_of`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_trait_bound_to_type_param_of_method<T: Clone>(&self) { }
|
||||
}
|
||||
|
@ -431,7 +431,7 @@ impl Foo {
|
|||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[no_mangle]
|
||||
pub fn add_no_mangle_to_method(&self) { }
|
||||
|
@ -448,7 +448,7 @@ impl Bar<u32> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,generics_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,generics_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T> Bar<T> {
|
||||
#[rustc_clean(
|
||||
|
@ -468,7 +468,7 @@ impl Bar<u32> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl Bar<u64> {
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,optimized_mir,mir_built,typeck_tables_of")]
|
||||
|
@ -485,7 +485,7 @@ impl<T> Bar<T> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T: 'static> Bar<T> {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
|
@ -502,7 +502,7 @@ impl<T> Bar<T> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T: Clone> Bar<T> {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
|
|
|
@ -33,7 +33,7 @@ pub fn change_template(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_template(a: i32) -> i32 {
|
||||
|
@ -69,7 +69,7 @@ pub fn change_output(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_output(a: i32) -> i32 {
|
||||
|
@ -105,7 +105,7 @@ pub fn change_input(_a: i32, _b: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_input(_a: i32, _b: i32) -> i32 {
|
||||
|
@ -140,7 +140,7 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
|
||||
|
@ -175,7 +175,7 @@ pub fn change_clobber(_a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_clobber(_a: i32) -> i32 {
|
||||
|
@ -210,7 +210,7 @@ pub fn change_options(_a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_options(_a: i32) -> i32 {
|
||||
|
|
|
@ -22,7 +22,7 @@ pub fn change_name() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_name() {
|
||||
let _y = 2u64;
|
||||
|
@ -38,7 +38,7 @@ pub fn add_type() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_type() {
|
||||
let _x: u32 = 2u32;
|
||||
|
@ -54,7 +54,7 @@ pub fn change_type() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_type() {
|
||||
let _x: u8 = 2;
|
||||
|
@ -70,7 +70,7 @@ pub fn change_mutability_of_reference_type() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_mutability_of_reference_type() {
|
||||
let _x: &mut u64;
|
||||
|
@ -86,7 +86,7 @@ pub fn change_mutability_of_slot() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_mutability_of_slot() {
|
||||
let _x: u64 = 0;
|
||||
|
@ -102,7 +102,7 @@ pub fn change_simple_binding_to_pattern() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_simple_binding_to_pattern() {
|
||||
let (_a, _b) = (0u8, 'x');
|
||||
|
@ -118,7 +118,7 @@ pub fn change_name_in_pattern() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_name_in_pattern() {
|
||||
let (_a, _c) = (1u8, 'y');
|
||||
|
@ -134,7 +134,7 @@ pub fn add_ref_in_pattern() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_ref_in_pattern() {
|
||||
let (ref _a, _b) = (1u8, 'y');
|
||||
|
@ -150,7 +150,7 @@ pub fn add_amp_in_pattern() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_amp_in_pattern() {
|
||||
let (&_a, _b) = (&1u8, 'y');
|
||||
|
@ -166,7 +166,7 @@ pub fn change_mutability_of_binding_in_pattern() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_mutability_of_binding_in_pattern() {
|
||||
let (mut _a, _b) = (99u8, 'q');
|
||||
|
@ -182,7 +182,7 @@ pub fn add_initializer() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,typeck_tables_of,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,typeck_tables_of,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_initializer() {
|
||||
let _x: i16 = 3i16;
|
||||
|
@ -198,7 +198,7 @@ pub fn change_initializer() {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_initializer() {
|
||||
let _x = 5u16;
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_loop_body() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
|
@ -47,7 +47,7 @@ pub fn add_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -70,7 +70,7 @@ pub fn add_loop_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -93,7 +93,7 @@ pub fn add_loop_label_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -118,7 +118,7 @@ pub fn change_break_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -143,7 +143,7 @@ pub fn add_loop_label_to_continue() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
|
@ -168,7 +168,7 @@ pub fn change_continue_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -193,7 +193,7 @@ pub fn change_continue_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
|
|
@ -26,7 +26,7 @@ pub fn add_arm(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -51,7 +51,7 @@ pub fn change_order_of_arms(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_order_of_arms(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -75,7 +75,7 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
|
@ -99,7 +99,7 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
|
@ -123,7 +123,7 @@ pub fn add_at_binding(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_at_binding(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -147,7 +147,7 @@ pub fn change_name_of_at_binding(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_name_of_at_binding(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -170,7 +170,7 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
|
@ -193,7 +193,7 @@ pub fn change_name_in_pattern(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_name_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
|
@ -216,7 +216,7 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
|
@ -238,7 +238,7 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
|
@ -260,7 +260,7 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (&x, x & 1) {
|
||||
|
@ -283,7 +283,7 @@ pub fn change_rhs_of_arm(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_rhs_of_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -307,7 +307,7 @@ pub fn add_alternative_to_arm(x: u32) -> u32 {
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2",
|
||||
except="hir_owner_items,mir_built,optimized_mir,typeck_tables_of")]
|
||||
except="hir_owner_nodes,mir_built,optimized_mir,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_alternative_to_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
|
||||
// Indexing expression
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn indexing(slice: &[u8]) -> u8 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -33,7 +33,7 @@ pub fn indexing(slice: &[u8]) -> u8 {
|
|||
|
||||
|
||||
// Arithmetic overflow plus
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn arithmetic_overflow_plus(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -48,7 +48,7 @@ pub fn arithmetic_overflow_plus(val: i32) -> i32 {
|
|||
|
||||
|
||||
// Arithmetic overflow minus
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn arithmetic_overflow_minus(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -63,7 +63,7 @@ pub fn arithmetic_overflow_minus(val: i32) -> i32 {
|
|||
|
||||
|
||||
// Arithmetic overflow mult
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn arithmetic_overflow_mult(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -78,7 +78,7 @@ pub fn arithmetic_overflow_mult(val: i32) -> i32 {
|
|||
|
||||
|
||||
// Arithmetic overflow negation
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn arithmetic_overflow_negation(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -93,7 +93,7 @@ pub fn arithmetic_overflow_negation(val: i32) -> i32 {
|
|||
|
||||
|
||||
// Division by zero
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn division_by_zero(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -107,7 +107,7 @@ pub fn division_by_zero(val: i32) -> i32 {
|
|||
}
|
||||
|
||||
// Division by zero
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn mod_by_zero(val: i32) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -122,7 +122,7 @@ pub fn mod_by_zero(val: i32) -> i32 {
|
|||
|
||||
|
||||
// shift left
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn shift_left(val: i32, shift: usize) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -137,7 +137,7 @@ pub fn shift_left(val: i32, shift: usize) -> i32 {
|
|||
|
||||
|
||||
// shift right
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn shift_right(val: i32, shift: usize) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
static STATIC_VISIBILITY: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub static STATIC_VISIBILITY: u8 = 0;
|
||||
|
||||
|
@ -31,7 +31,7 @@ pub static STATIC_VISIBILITY: u8 = 0;
|
|||
static STATIC_MUTABILITY: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static mut STATIC_MUTABILITY: u8 = 0;
|
||||
|
||||
|
@ -41,7 +41,7 @@ static mut STATIC_MUTABILITY: u8 = 0;
|
|||
static STATIC_LINKAGE: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[linkage="weak_odr"]
|
||||
static STATIC_LINKAGE: u8 = 0;
|
||||
|
@ -52,7 +52,7 @@ static STATIC_LINKAGE: u8 = 0;
|
|||
static STATIC_NO_MANGLE: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[no_mangle]
|
||||
static STATIC_NO_MANGLE: u8 = 0;
|
||||
|
@ -63,7 +63,7 @@ static STATIC_NO_MANGLE: u8 = 0;
|
|||
static STATIC_THREAD_LOCAL: u8 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[thread_local]
|
||||
static STATIC_THREAD_LOCAL: u8 = 0;
|
||||
|
@ -74,7 +74,7 @@ static STATIC_THREAD_LOCAL: u8 = 0;
|
|||
static STATIC_CHANGE_TYPE_1: i16 = 0;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_TYPE_1: u64 = 0;
|
||||
|
||||
|
@ -84,13 +84,13 @@ static STATIC_CHANGE_TYPE_1: u64 = 0;
|
|||
static STATIC_CHANGE_TYPE_2: Option<i8> = None;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_TYPE_2: Option<u16> = None;
|
||||
|
||||
|
||||
// Change value between simple literals
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_VALUE_1: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -102,7 +102,7 @@ static STATIC_CHANGE_VALUE_1: i16 = {
|
|||
|
||||
|
||||
// Change value between expressions
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_VALUE_2: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -112,7 +112,7 @@ static STATIC_CHANGE_VALUE_2: i16 = {
|
|||
{ 1 + 2 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_VALUE_3: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -122,7 +122,7 @@ static STATIC_CHANGE_VALUE_3: i16 = {
|
|||
{ 2 * 3 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_VALUE_4: i16 = {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -144,11 +144,11 @@ mod static_change_type_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
static STATIC_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ pub fn change_field_value_regular_struct() -> RegularStruct {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_value_regular_struct() -> RegularStruct {
|
||||
RegularStruct {
|
||||
|
@ -54,7 +54,7 @@ pub fn change_field_order_regular_struct() -> RegularStruct {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_order_regular_struct() -> RegularStruct {
|
||||
RegularStruct {
|
||||
|
@ -82,7 +82,7 @@ pub fn add_field_regular_struct() -> RegularStruct {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_field_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
|
@ -117,7 +117,7 @@ pub fn change_field_label_regular_struct() -> RegularStruct {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_label_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
|
@ -152,7 +152,7 @@ pub fn change_constructor_path_regular_struct() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_path_regular_struct() {
|
||||
let _ = RegularStruct2 {
|
||||
|
@ -173,7 +173,7 @@ pub mod change_constructor_path_indirectly_regular_struct {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="fn_sig,hir_owner,hir_owner_items,optimized_mir,mir_built,typeck_tables_of"
|
||||
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Struct {
|
||||
|
@ -196,7 +196,7 @@ pub fn change_field_value_tuple_struct() -> TupleStruct {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_field_value_tuple_struct() -> TupleStruct {
|
||||
TupleStruct(0, 1, 3)
|
||||
|
@ -213,7 +213,7 @@ pub fn change_constructor_path_tuple_struct() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,mir_built,typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_constructor_path_tuple_struct() {
|
||||
let _ = TupleStruct2(0, 1, 2);
|
||||
|
@ -230,7 +230,7 @@ pub mod change_constructor_path_indirectly_tuple_struct {
|
|||
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="fn_sig,hir_owner,hir_owner_items,optimized_mir,mir_built,typeck_tables_of"
|
||||
except="fn_sig,hir_owner,hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Struct {
|
||||
|
|
|
@ -25,12 +25,12 @@ pub struct LayoutPacked;
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -42,12 +42,12 @@ struct LayoutC;
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -62,12 +62,12 @@ struct TupleStructFieldType(i32);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -85,12 +85,12 @@ struct TupleStructAddField(i32);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -107,12 +107,12 @@ struct TupleStructFieldVisibility(char);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -126,12 +126,12 @@ struct RecordStructFieldType { x: f32 }
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -149,12 +149,12 @@ struct RecordStructFieldName { x: f32 }
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -168,12 +168,12 @@ struct RecordStructAddField { x: f32 }
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -189,12 +189,12 @@ struct RecordStructFieldVisibility { x: f32 }
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -210,12 +210,12 @@ struct AddLifetimeParameter<'a>(&'a f32, &'a f64);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -229,12 +229,12 @@ struct AddLifetimeParameterBound<'a, 'b>(&'a f32, &'b f64);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -248,12 +248,12 @@ struct AddLifetimeParameterBoundWhereClause<'a, 'b>(&'a f32, &'b f64);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -270,12 +270,12 @@ struct AddTypeParameter<T1>(T1, T1);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -294,12 +294,12 @@ struct AddTypeParameterBound<T>(T);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -313,12 +313,12 @@ struct AddTypeParameterBoundWhereClause<T>(T);
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -333,12 +333,12 @@ struct AddTypeParameterBoundWhereClause<T>(
|
|||
// addresses taken into account by the hashing algorithm).
|
||||
// Note: there is no #[cfg(...)], so this is ALWAYS compiled
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -352,12 +352,12 @@ struct Visibility;
|
|||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -374,12 +374,12 @@ mod tuple_struct_change_field_type_indirectly {
|
|||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -397,12 +397,12 @@ mod record_struct_change_field_type_indirectly {
|
|||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -425,12 +425,12 @@ mod change_trait_bound_indirectly {
|
|||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
@ -445,12 +445,12 @@ mod change_trait_bound_indirectly_in_where_clause {
|
|||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
|
|
|
@ -140,8 +140,8 @@ trait TraitChangeMethodParameterName {
|
|||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn with_default(y: i32) {}
|
||||
}
|
||||
|
||||
|
@ -260,8 +260,8 @@ trait TraitChangeModeSelfOwnToMut: Sized {
|
|||
trait TraitChangeModeSelfOwnToMut: Sized {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn method(mut self) {}
|
||||
}
|
||||
|
||||
|
|
|
@ -64,8 +64,8 @@ impl ChangeMethodBodyTrait for Foo {
|
|||
impl ChangeMethodBodyTrait for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
fn method_name() {
|
||||
()
|
||||
}
|
||||
|
@ -91,8 +91,8 @@ impl ChangeMethodBodyTraitInlined for Foo {
|
|||
impl ChangeMethodBodyTraitInlined for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[inline]
|
||||
fn method_name() {
|
||||
panic!()
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
type ChangePrimitiveType = i32;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangePrimitiveType = i64;
|
||||
|
||||
|
@ -35,7 +35,7 @@ type ChangePrimitiveType = i64;
|
|||
type ChangeMutability = &'static i32;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeMutability = &'static mut i32;
|
||||
|
||||
|
@ -46,7 +46,7 @@ type ChangeMutability = &'static mut i32;
|
|||
type ChangeLifetime<'a> = (&'static i32, &'a i32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeLifetime<'a> = (&'a i32, &'a i32);
|
||||
|
||||
|
@ -60,7 +60,7 @@ struct Struct2;
|
|||
type ChangeTypeStruct = Struct1;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTypeStruct = Struct2;
|
||||
|
||||
|
@ -71,7 +71,7 @@ type ChangeTypeStruct = Struct2;
|
|||
type ChangeTypeTuple = (u32, u64);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTypeTuple = (u32, i64);
|
||||
|
||||
|
@ -91,7 +91,7 @@ enum Enum2 {
|
|||
type ChangeTypeEnum = Enum1;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTypeEnum = Enum2;
|
||||
|
||||
|
@ -102,7 +102,7 @@ type ChangeTypeEnum = Enum2;
|
|||
type AddTupleField = (i32, i64);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddTupleField = (i32, i64, i16);
|
||||
|
||||
|
@ -113,7 +113,7 @@ type AddTupleField = (i32, i64, i16);
|
|||
type ChangeNestedTupleField = (i32, (i64, i16));
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeNestedTupleField = (i32, (i64, i8));
|
||||
|
||||
|
@ -124,7 +124,7 @@ type ChangeNestedTupleField = (i32, (i64, i8));
|
|||
type AddTypeParam<T1> = (T1, T1);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddTypeParam<T1, T2> = (T1, T2);
|
||||
|
||||
|
@ -135,7 +135,7 @@ type AddTypeParam<T1, T2> = (T1, T2);
|
|||
type AddTypeParamBound<T1> = (T1, u32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddTypeParamBound<T1: Clone> = (T1, u32);
|
||||
|
||||
|
@ -146,7 +146,7 @@ type AddTypeParamBound<T1: Clone> = (T1, u32);
|
|||
type AddTypeParamBoundWhereClause<T1> where T1: Clone = (T1, u32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddTypeParamBoundWhereClause<T1> where T1: Clone+Copy = (T1, u32);
|
||||
|
||||
|
@ -157,7 +157,7 @@ type AddTypeParamBoundWhereClause<T1> where T1: Clone+Copy = (T1, u32);
|
|||
type AddLifetimeParam<'a> = (&'a u32, &'a u32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddLifetimeParam<'a, 'b> = (&'a u32, &'b u32);
|
||||
|
||||
|
@ -168,7 +168,7 @@ type AddLifetimeParam<'a, 'b> = (&'a u32, &'b u32);
|
|||
type AddLifetimeParamBound<'a, 'b> = (&'a u32, &'b u32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddLifetimeParamBound<'a, 'b: 'a> = (&'a u32, &'b u32);
|
||||
|
||||
|
@ -181,7 +181,7 @@ where 'b: 'a
|
|||
= (&'a u32, &'b u32, &'c u32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type AddLifetimeParamBoundWhereClause<'a, 'b, 'c>
|
||||
where 'b: 'a,
|
||||
|
@ -200,7 +200,7 @@ mod change_trait_bound_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTraitBoundIndirectly<T: Trait> = (T, u32);
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ mod change_trait_bound_indirectly_in_where_clause {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner,hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTraitBoundIndirectly<T> where T : Trait = (T, u32);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ pub fn const_negation() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn const_negation() -> i32 {
|
||||
-1
|
||||
|
@ -36,7 +36,7 @@ pub fn const_bitwise_not() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn const_bitwise_not() -> i32 {
|
||||
!99
|
||||
|
@ -51,7 +51,7 @@ pub fn var_negation(x: i32, y: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn var_negation(x: i32, y: i32) -> i32 {
|
||||
-y
|
||||
|
@ -66,7 +66,7 @@ pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
|
||||
!y
|
||||
|
@ -81,7 +81,7 @@ pub fn var_deref(x: &i32, y: &i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn var_deref(x: &i32, y: &i32) -> i32 {
|
||||
*y
|
||||
|
@ -96,7 +96,7 @@ pub fn first_const_add() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn first_const_add() -> i32 {
|
||||
2 + 3
|
||||
|
@ -111,7 +111,7 @@ pub fn second_const_add() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn second_const_add() -> i32 {
|
||||
1 + 3
|
||||
|
@ -126,7 +126,7 @@ pub fn first_var_add(a: i32, b: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn first_var_add(a: i32, b: i32) -> i32 {
|
||||
b + 2
|
||||
|
@ -141,7 +141,7 @@ pub fn second_var_add(a: i32, b: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn second_var_add(a: i32, b: i32) -> i32 {
|
||||
1 + b
|
||||
|
@ -156,7 +156,7 @@ pub fn plus_to_minus(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn plus_to_minus(a: i32) -> i32 {
|
||||
1 - a
|
||||
|
@ -171,7 +171,7 @@ pub fn plus_to_mult(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn plus_to_mult(a: i32) -> i32 {
|
||||
1 * a
|
||||
|
@ -186,7 +186,7 @@ pub fn plus_to_div(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn plus_to_div(a: i32) -> i32 {
|
||||
1 / a
|
||||
|
@ -201,7 +201,7 @@ pub fn plus_to_mod(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn plus_to_mod(a: i32) -> i32 {
|
||||
1 % a
|
||||
|
@ -216,7 +216,7 @@ pub fn and_to_or(a: bool, b: bool) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn and_to_or(a: bool, b: bool) -> bool {
|
||||
a || b
|
||||
|
@ -231,7 +231,7 @@ pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
|
||||
1 | a
|
||||
|
@ -246,7 +246,7 @@ pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
|
||||
1 ^ a
|
||||
|
@ -261,7 +261,7 @@ pub fn bitwise_and_to_lshift(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn bitwise_and_to_lshift(a: i32) -> i32 {
|
||||
a << 1
|
||||
|
@ -276,7 +276,7 @@ pub fn bitwise_and_to_rshift(a: i32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn bitwise_and_to_rshift(a: i32) -> i32 {
|
||||
a >> 1
|
||||
|
@ -291,7 +291,7 @@ pub fn eq_to_uneq(a: i32) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn eq_to_uneq(a: i32) -> bool {
|
||||
a != 1
|
||||
|
@ -306,7 +306,7 @@ pub fn eq_to_lt(a: i32) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn eq_to_lt(a: i32) -> bool {
|
||||
a < 1
|
||||
|
@ -321,7 +321,7 @@ pub fn eq_to_gt(a: i32) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn eq_to_gt(a: i32) -> bool {
|
||||
a > 1
|
||||
|
@ -336,7 +336,7 @@ pub fn eq_to_le(a: i32) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn eq_to_le(a: i32) -> bool {
|
||||
a <= 1
|
||||
|
@ -351,7 +351,7 @@ pub fn eq_to_ge(a: i32) -> bool {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn eq_to_ge(a: i32) -> bool {
|
||||
a >= 1
|
||||
|
@ -368,7 +368,7 @@ pub fn type_cast(a: u8) -> u64 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built,typeck_tables_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built,typeck_tables_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn type_cast(a: u8) -> u64 {
|
||||
let b = a as u32;
|
||||
|
@ -385,7 +385,7 @@ pub fn value_cast(a: u32) -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn value_cast(a: u32) -> i32 {
|
||||
2 as i32
|
||||
|
@ -403,7 +403,7 @@ pub fn place() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn place() -> i32 {
|
||||
let mut x = 10;
|
||||
|
@ -423,7 +423,7 @@ pub fn rvalue() -> i32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn rvalue() -> i32 {
|
||||
let mut x = 10;
|
||||
|
@ -440,7 +440,7 @@ pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(except="hir_owner_items,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,mir_built", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
|
||||
s[j]
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_loop_body() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
|
@ -48,7 +48,7 @@ pub fn change_loop_condition() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_condition() {
|
||||
let mut _x = 0;
|
||||
|
@ -70,7 +70,7 @@ pub fn add_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -93,7 +93,7 @@ pub fn add_loop_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -116,7 +116,7 @@ pub fn add_loop_label_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -141,7 +141,7 @@ pub fn change_break_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -166,7 +166,7 @@ pub fn add_loop_label_to_continue() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
|
@ -191,7 +191,7 @@ pub fn change_continue_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
|
|
@ -25,7 +25,7 @@ pub fn change_loop_body() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
|
@ -48,7 +48,7 @@ pub fn change_loop_condition() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_loop_condition() {
|
||||
let mut _x = 0;
|
||||
|
@ -70,7 +70,7 @@ pub fn add_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir, typeck_tables_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -93,7 +93,7 @@ pub fn add_loop_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -116,7 +116,7 @@ pub fn add_loop_label_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -141,7 +141,7 @@ pub fn change_break_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -166,7 +166,7 @@ pub fn add_loop_label_to_continue() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
|
@ -191,7 +191,7 @@ pub fn change_continue_label() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
|
@ -216,7 +216,7 @@ pub fn change_continue_to_break() {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_items, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, mir_built, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
|
|
@ -27,14 +27,14 @@ mod mod3 {
|
|||
use Trait2;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_dirty(label="typeck_tables_of", cfg="rpass2")]
|
||||
fn bar() {
|
||||
().method();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck_tables_of", cfg="rpass2")]
|
||||
fn baz() {
|
||||
22; // no method call, traits in scope don't matter
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#![feature(rustc_attrs)]
|
||||
|
||||
#[rustc_clean(label = "hir_owner", cfg = "cfail2")]
|
||||
#[rustc_dirty(label = "hir_owner_items", cfg = "cfail2")]
|
||||
#[rustc_dirty(label = "hir_owner_nodes", cfg = "cfail2")]
|
||||
pub fn foo() {
|
||||
#[cfg(cfail1)]
|
||||
pub fn baz() {} // order is different...
|
||||
|
@ -17,7 +17,7 @@ pub fn foo() {
|
|||
// the parent node, which is the statement holding this item. Changing the position of
|
||||
// `bar` in `foo` will update that reference and make `hir_owner(bar)` dirty.
|
||||
#[rustc_dirty(label = "hir_owner", cfg = "cfail2")]
|
||||
#[rustc_clean(label = "hir_owner_items", cfg = "cfail2")]
|
||||
#[rustc_clean(label = "hir_owner_nodes", cfg = "cfail2")]
|
||||
pub fn bar() {} // but that doesn't matter.
|
||||
|
||||
#[cfg(cfail2)]
|
||||
|
|
|
@ -29,17 +29,17 @@ mod mod3 {
|
|||
use mod2::Foo;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass3")]
|
||||
fn in_expr() {
|
||||
Foo(0);
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass3")]
|
||||
fn in_type() {
|
||||
test::<Foo>();
|
||||
}
|
||||
|
|
|
@ -8,25 +8,25 @@
|
|||
#![feature(rustc_attrs)]
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
fn line_same() {
|
||||
let _ = line!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
fn col_same() {
|
||||
let _ = column!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
fn file_same() {
|
||||
let _ = file!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
fn line_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ fn line_different() {
|
|||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
fn col_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
|
|
|
@ -13,5 +13,5 @@ pub fn main() {}
|
|||
|
||||
#[cfg(rpass2)]
|
||||
#[rustc_dirty(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
pub fn main() {}
|
||||
|
|
|
@ -18,7 +18,7 @@ pub mod x {
|
|||
}
|
||||
|
||||
#[cfg(cfail2)]
|
||||
#[rustc_dirty(label="hir_owner_items", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="optimized_mir", cfg="cfail2")]
|
||||
pub fn x() {
|
||||
println!("{}", "2");
|
||||
|
|
Loading…
Add table
Reference in a new issue