mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Auto merge of #120346 - petrochenkov:ownodes, r=oli-obk
hir: Refactor getters for owner nodes
This commit is contained in:
commit
d53ddcd8bb
@ -578,7 +578,7 @@ pub fn check_function_signature<'tcx>(
|
||||
fn_id: LocalDefId,
|
||||
) -> rustc_span::Span {
|
||||
let mut args = {
|
||||
let node = tcx.hir().expect_owner(fn_id);
|
||||
let node = tcx.expect_hir_owner_node(fn_id);
|
||||
let decl = node.fn_decl().unwrap_or_else(|| bug!("expected fn decl, found {:?}", node));
|
||||
decl.inputs.iter().map(|t| t.span).chain(std::iter::once(decl.output.span()))
|
||||
};
|
||||
|
@ -188,7 +188,7 @@ where
|
||||
}
|
||||
|
||||
fn check_well_formed(tcx: TyCtxt<'_>, def_id: hir::OwnerId) -> Result<(), ErrorGuaranteed> {
|
||||
let node = tcx.hir().owner(def_id);
|
||||
let node = tcx.hir_owner_node(def_id);
|
||||
let mut res = match node {
|
||||
hir::OwnerNode::Crate(_) => bug!("check_well_formed cannot be applied to the crate root"),
|
||||
hir::OwnerNode::Item(item) => check_item(tcx, item),
|
||||
|
@ -254,7 +254,7 @@ fn resolve_bound_vars(tcx: TyCtxt<'_>, local_def_id: hir::OwnerId) -> ResolveBou
|
||||
map: &mut named_variable_map,
|
||||
scope: &Scope::Root { opt_parent_item: None },
|
||||
};
|
||||
match tcx.hir().owner(local_def_id) {
|
||||
match tcx.hir_owner_node(local_def_id) {
|
||||
hir::OwnerNode::Item(item) => visitor.visit_item(item),
|
||||
hir::OwnerNode::ForeignItem(item) => visitor.visit_foreign_item(item),
|
||||
hir::OwnerNode::TraitItem(item) => {
|
||||
|
@ -131,7 +131,7 @@ impl<'tcx> IfThisChanged<'tcx> {
|
||||
None => DepNode::from_def_path_hash(
|
||||
self.tcx,
|
||||
def_path_hash,
|
||||
dep_kinds::hir_owner_nodes,
|
||||
dep_kinds::opt_hir_owner_nodes,
|
||||
),
|
||||
Some(n) => {
|
||||
match DepNode::from_label_string(self.tcx, n.as_str(), def_path_hash) {
|
||||
|
@ -57,8 +57,8 @@ const BASE_FN: &[&str] = &[
|
||||
|
||||
/// DepNodes for Hir, which is pretty much everything
|
||||
const BASE_HIR: &[&str] = &[
|
||||
// hir_owner_nodes should be computed for all nodes
|
||||
label_strs::hir_owner_nodes,
|
||||
// opt_hir_owner_nodes should be computed for all nodes
|
||||
label_strs::opt_hir_owner_nodes,
|
||||
];
|
||||
|
||||
/// `impl` implementation of struct/trait
|
||||
|
@ -2555,7 +2555,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
||||
add_lt_suggs,
|
||||
new_lt: &new_lt,
|
||||
};
|
||||
match self.tcx.hir().expect_owner(lifetime_scope) {
|
||||
match self.tcx.expect_hir_owner_node(lifetime_scope) {
|
||||
hir::OwnerNode::Item(i) => visitor.visit_item(i),
|
||||
hir::OwnerNode::ForeignItem(i) => visitor.visit_foreign_item(i),
|
||||
hir::OwnerNode::ImplItem(i) => visitor.visit_impl_item(i),
|
||||
|
@ -443,7 +443,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
|
||||
if let hir::OwnerNode::Item(Item {
|
||||
kind: ItemKind::Impl(hir::Impl { self_ty, .. }),
|
||||
..
|
||||
}) = tcx.hir().owner(impl_did)
|
||||
}) = tcx.hir_owner_node(impl_did)
|
||||
{
|
||||
Some((impl_item.ident, self_ty))
|
||||
} else {
|
||||
|
@ -181,7 +181,7 @@ fn shallow_lint_levels_on(tcx: TyCtxt<'_>, owner: hir::OwnerId) -> ShallowLintLe
|
||||
// Otherwise, we need to visit the attributes in source code order, so we fetch HIR and do
|
||||
// a standard visit.
|
||||
// FIXME(#102522) Just iterate on attrs once that iteration order matches HIR's.
|
||||
_ => match tcx.hir().owner(owner) {
|
||||
_ => match tcx.hir_owner_node(owner) {
|
||||
hir::OwnerNode::Item(item) => levels.visit_item(item),
|
||||
hir::OwnerNode::ForeignItem(item) => levels.visit_foreign_item(item),
|
||||
hir::OwnerNode::TraitItem(item) => levels.visit_trait_item(item),
|
||||
|
@ -107,9 +107,8 @@ impl<'hir> Iterator for ParentOwnerIterator<'hir> {
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
if self.current_id.local_id.index() != 0 {
|
||||
self.current_id.local_id = ItemLocalId::new(0);
|
||||
if let Some(node) = self.map.tcx.hir_owner(self.current_id.owner) {
|
||||
return Some((self.current_id.owner, node));
|
||||
}
|
||||
let node = self.map.tcx.hir_owner_node(self.current_id.owner);
|
||||
return Some((self.current_id.owner, node));
|
||||
}
|
||||
if self.current_id == CRATE_HIR_ID {
|
||||
return None;
|
||||
@ -125,22 +124,42 @@ impl<'hir> Iterator for ParentOwnerIterator<'hir> {
|
||||
self.current_id = HirId::make_owner(parent_id.def_id);
|
||||
|
||||
// If this `HirId` doesn't have an entry, skip it and look for its `parent_id`.
|
||||
if let Some(node) = self.map.tcx.hir_owner(self.current_id.owner) {
|
||||
return Some((self.current_id.owner, node));
|
||||
}
|
||||
let node = self.map.tcx.hir_owner_node(self.current_id.owner);
|
||||
return Some((self.current_id.owner, node));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx> TyCtxt<'tcx> {
|
||||
#[inline]
|
||||
fn hir_owner(self, owner: OwnerId) -> Option<OwnerNode<'tcx>> {
|
||||
Some(self.hir_owner_nodes(owner).as_owner()?.node())
|
||||
fn expect_hir_owner_nodes(self, def_id: LocalDefId) -> &'tcx OwnerNodes<'tcx> {
|
||||
self.opt_hir_owner_nodes(def_id)
|
||||
.unwrap_or_else(|| span_bug!(self.def_span(def_id), "{def_id:?} is not an owner"))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn hir_owner_nodes(self, owner_id: OwnerId) -> &'tcx OwnerNodes<'tcx> {
|
||||
self.expect_hir_owner_nodes(owner_id.def_id)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn opt_hir_owner_node(self, def_id: LocalDefId) -> Option<OwnerNode<'tcx>> {
|
||||
self.opt_hir_owner_nodes(def_id).map(|nodes| nodes.node())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn expect_hir_owner_node(self, def_id: LocalDefId) -> OwnerNode<'tcx> {
|
||||
self.expect_hir_owner_nodes(def_id).node()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn hir_owner_node(self, owner_id: OwnerId) -> OwnerNode<'tcx> {
|
||||
self.hir_owner_nodes(owner_id).node()
|
||||
}
|
||||
|
||||
/// Retrieves the `hir::Node` corresponding to `id`, returning `None` if cannot be found.
|
||||
pub fn opt_hir_node(self, id: HirId) -> Option<Node<'tcx>> {
|
||||
let owner = self.hir_owner_nodes(id.owner).as_owner()?;
|
||||
let owner = self.hir_owner_nodes(id.owner);
|
||||
let node = owner.nodes[id.local_id].as_ref()?;
|
||||
Some(node.node)
|
||||
}
|
||||
@ -174,8 +193,8 @@ impl<'hir> Map<'hir> {
|
||||
|
||||
#[inline]
|
||||
pub fn root_module(self) -> &'hir Mod<'hir> {
|
||||
match self.tcx.hir_owner(CRATE_OWNER_ID) {
|
||||
Some(OwnerNode::Crate(item)) => item,
|
||||
match self.tcx.hir_owner_node(CRATE_OWNER_ID) {
|
||||
OwnerNode::Crate(item) => item,
|
||||
_ => bug!(),
|
||||
}
|
||||
}
|
||||
@ -213,7 +232,7 @@ impl<'hir> Map<'hir> {
|
||||
if id.local_id == ItemLocalId::from_u32(0) {
|
||||
Some(self.tcx.hir_owner_parent(id.owner))
|
||||
} else {
|
||||
let owner = self.tcx.hir_owner_nodes(id.owner).as_owner()?;
|
||||
let owner = self.tcx.hir_owner_nodes(id.owner);
|
||||
let node = owner.nodes[id.local_id].as_ref()?;
|
||||
let hir_id = HirId { owner: id.owner, local_id: node.parent };
|
||||
// HIR indexing should have checked that.
|
||||
@ -241,32 +260,27 @@ impl<'hir> Map<'hir> {
|
||||
}
|
||||
|
||||
pub fn get_generics(self, id: LocalDefId) -> Option<&'hir Generics<'hir>> {
|
||||
let node = self.tcx.hir_owner(OwnerId { def_id: id })?;
|
||||
node.generics()
|
||||
}
|
||||
|
||||
pub fn owner(self, id: OwnerId) -> OwnerNode<'hir> {
|
||||
self.tcx.hir_owner(id).unwrap_or_else(|| bug!("expected owner for {:?}", id))
|
||||
self.tcx.opt_hir_owner_node(id)?.generics()
|
||||
}
|
||||
|
||||
pub fn item(self, id: ItemId) -> &'hir Item<'hir> {
|
||||
self.tcx.hir_owner(id.owner_id).unwrap().expect_item()
|
||||
self.tcx.hir_owner_node(id.owner_id).expect_item()
|
||||
}
|
||||
|
||||
pub fn trait_item(self, id: TraitItemId) -> &'hir TraitItem<'hir> {
|
||||
self.tcx.hir_owner(id.owner_id).unwrap().expect_trait_item()
|
||||
self.tcx.hir_owner_node(id.owner_id).expect_trait_item()
|
||||
}
|
||||
|
||||
pub fn impl_item(self, id: ImplItemId) -> &'hir ImplItem<'hir> {
|
||||
self.tcx.hir_owner(id.owner_id).unwrap().expect_impl_item()
|
||||
self.tcx.hir_owner_node(id.owner_id).expect_impl_item()
|
||||
}
|
||||
|
||||
pub fn foreign_item(self, id: ForeignItemId) -> &'hir ForeignItem<'hir> {
|
||||
self.tcx.hir_owner(id.owner_id).unwrap().expect_foreign_item()
|
||||
self.tcx.hir_owner_node(id.owner_id).expect_foreign_item()
|
||||
}
|
||||
|
||||
pub fn body(self, id: BodyId) -> &'hir Body<'hir> {
|
||||
self.tcx.hir_owner_nodes(id.hir_id.owner).unwrap().bodies[&id.hir_id.local_id]
|
||||
self.tcx.hir_owner_nodes(id.hir_id.owner).bodies[&id.hir_id.local_id]
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
@ -436,9 +450,9 @@ impl<'hir> Map<'hir> {
|
||||
|
||||
pub fn get_module(self, module: LocalModDefId) -> (&'hir Mod<'hir>, Span, HirId) {
|
||||
let hir_id = HirId::make_owner(module.to_local_def_id());
|
||||
match self.tcx.hir_owner(hir_id.owner) {
|
||||
Some(OwnerNode::Item(&Item { span, kind: ItemKind::Mod(m), .. })) => (m, span, hir_id),
|
||||
Some(OwnerNode::Crate(item)) => (item, item.spans.inner_span, hir_id),
|
||||
match self.tcx.hir_owner_node(hir_id.owner) {
|
||||
OwnerNode::Item(&Item { span, kind: ItemKind::Mod(m), .. }) => (m, span, hir_id),
|
||||
OwnerNode::Crate(item) => (item, item.spans.inner_span, hir_id),
|
||||
node => panic!("not a module: {node:?}"),
|
||||
}
|
||||
}
|
||||
@ -726,8 +740,8 @@ impl<'hir> Map<'hir> {
|
||||
|
||||
pub fn get_foreign_abi(self, hir_id: HirId) -> Abi {
|
||||
let parent = self.get_parent_item(hir_id);
|
||||
if let Some(node) = self.tcx.hir_owner(parent)
|
||||
&& let OwnerNode::Item(Item { kind: ItemKind::ForeignMod { abi, .. }, .. }) = node
|
||||
if let OwnerNode::Item(Item { kind: ItemKind::ForeignMod { abi, .. }, .. }) =
|
||||
self.tcx.hir_owner_node(parent)
|
||||
{
|
||||
return *abi;
|
||||
}
|
||||
@ -737,38 +751,29 @@ impl<'hir> Map<'hir> {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn expect_owner(self, def_id: LocalDefId) -> OwnerNode<'hir> {
|
||||
self.tcx
|
||||
.hir_owner(OwnerId { def_id })
|
||||
.unwrap_or_else(|| bug!("expected owner for {:?}", def_id))
|
||||
}
|
||||
|
||||
pub fn expect_item(self, id: LocalDefId) -> &'hir Item<'hir> {
|
||||
match self.tcx.hir_owner(OwnerId { def_id: id }) {
|
||||
Some(OwnerNode::Item(item)) => item,
|
||||
match self.tcx.expect_hir_owner_node(id) {
|
||||
OwnerNode::Item(item) => item,
|
||||
_ => bug!("expected item, found {}", self.node_to_string(HirId::make_owner(id))),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn expect_impl_item(self, id: LocalDefId) -> &'hir ImplItem<'hir> {
|
||||
match self.tcx.hir_owner(OwnerId { def_id: id }) {
|
||||
Some(OwnerNode::ImplItem(item)) => item,
|
||||
match self.tcx.expect_hir_owner_node(id) {
|
||||
OwnerNode::ImplItem(item) => item,
|
||||
_ => bug!("expected impl item, found {}", self.node_to_string(HirId::make_owner(id))),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn expect_trait_item(self, id: LocalDefId) -> &'hir TraitItem<'hir> {
|
||||
match self.tcx.hir_owner(OwnerId { def_id: id }) {
|
||||
Some(OwnerNode::TraitItem(item)) => item,
|
||||
match self.tcx.expect_hir_owner_node(id) {
|
||||
OwnerNode::TraitItem(item) => item,
|
||||
_ => bug!("expected trait item, found {}", self.node_to_string(HirId::make_owner(id))),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_fn_output(self, def_id: LocalDefId) -> Option<&'hir FnRetTy<'hir>> {
|
||||
match self.tcx.hir_owner(OwnerId { def_id }) {
|
||||
Some(node) => node.fn_decl().map(|fn_decl| &fn_decl.output),
|
||||
_ => None,
|
||||
}
|
||||
Some(&self.tcx.opt_hir_owner_node(def_id)?.fn_decl()?.output)
|
||||
}
|
||||
|
||||
pub fn expect_variant(self, id: HirId) -> &'hir Variant<'hir> {
|
||||
@ -779,8 +784,8 @@ impl<'hir> Map<'hir> {
|
||||
}
|
||||
|
||||
pub fn expect_foreign_item(self, id: OwnerId) -> &'hir ForeignItem<'hir> {
|
||||
match self.tcx.hir_owner(id) {
|
||||
Some(OwnerNode::ForeignItem(item)) => item,
|
||||
match self.tcx.hir_owner_node(id) {
|
||||
OwnerNode::ForeignItem(item) => item,
|
||||
_ => {
|
||||
bug!(
|
||||
"expected foreign item, found {}",
|
||||
|
@ -135,13 +135,8 @@ pub fn provide(providers: &mut Providers) {
|
||||
MaybeOwner::NonOwner(hir_id) => hir_id,
|
||||
})
|
||||
};
|
||||
providers.hir_owner_nodes = |tcx, id| {
|
||||
if let Some(i) = tcx.hir_crate(()).owners.get(id.def_id) {
|
||||
i.map(|i| &i.nodes)
|
||||
} else {
|
||||
MaybeOwner::Phantom
|
||||
}
|
||||
};
|
||||
providers.opt_hir_owner_nodes =
|
||||
|tcx, id| tcx.hir_crate(()).owners.get(id)?.as_owner().map(|i| &i.nodes);
|
||||
providers.hir_owner_parent = |tcx, id| {
|
||||
// Accessing the local_parent is ok since its value is hashed as part of `id`'s DefPathHash.
|
||||
tcx.opt_local_parent(id.def_id).map_or(CRATE_HIR_ID, |parent| {
|
||||
|
@ -190,11 +190,11 @@ rustc_queries! {
|
||||
desc { |tcx| "getting HIR parent of `{}`", tcx.def_path_str(key) }
|
||||
}
|
||||
|
||||
/// Gives access to the HIR nodes and bodies inside the HIR owner `key`.
|
||||
/// Gives access to the HIR nodes and bodies inside `key` if it's a HIR owner.
|
||||
///
|
||||
/// This can be conveniently accessed by methods on `tcx.hir()`.
|
||||
/// Avoid calling this query directly.
|
||||
query hir_owner_nodes(key: hir::OwnerId) -> hir::MaybeOwner<&'tcx hir::OwnerNodes<'tcx>> {
|
||||
query opt_hir_owner_nodes(key: LocalDefId) -> Option<&'tcx hir::OwnerNodes<'tcx>> {
|
||||
desc { |tcx| "getting HIR owner items in `{}`", tcx.def_path_str(key) }
|
||||
}
|
||||
|
||||
|
@ -583,7 +583,7 @@ impl UnsafeOpKind {
|
||||
suggest_unsafe_block: bool,
|
||||
) {
|
||||
let parent_id = tcx.hir().get_parent_item(hir_id);
|
||||
let parent_owner = tcx.hir().owner(parent_id);
|
||||
let parent_owner = tcx.hir_owner_node(parent_id);
|
||||
let should_suggest = parent_owner.fn_sig().is_some_and(|sig| sig.header.is_unsafe());
|
||||
let unsafe_not_inherited_note = if should_suggest {
|
||||
suggest_unsafe_block.then(|| {
|
||||
|
@ -452,10 +452,5 @@ fn get_body_span<'tcx>(
|
||||
fn hash_mir_source<'tcx>(tcx: TyCtxt<'tcx>, hir_body: &'tcx rustc_hir::Body<'tcx>) -> u64 {
|
||||
// FIXME(cjgillot) Stop hashing HIR manually here.
|
||||
let owner = hir_body.id().hir_id.owner;
|
||||
tcx.hir_owner_nodes(owner)
|
||||
.unwrap()
|
||||
.opt_hash_including_bodies
|
||||
.unwrap()
|
||||
.to_smaller_hash()
|
||||
.as_u64()
|
||||
tcx.hir_owner_nodes(owner).opt_hash_including_bodies.unwrap().to_smaller_hash().as_u64()
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ use rustc_span::sym;
|
||||
use super::ITER_NTH_ZERO;
|
||||
|
||||
pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &hir::Expr<'_>, arg: &hir::Expr<'_>) {
|
||||
if let OwnerNode::Item(item) = cx.tcx.hir().owner(cx.tcx.hir().get_parent_item(expr.hir_id))
|
||||
if let OwnerNode::Item(item) = cx.tcx.hir_owner_node(cx.tcx.hir().get_parent_item(expr.hir_id))
|
||||
&& let def_id = item.owner_id.to_def_id()
|
||||
&& is_trait_method(cx, expr, sym::Iterator)
|
||||
&& let Some(Constant::Int(0)) = constant(cx, cx.typeck_results(), arg)
|
||||
|
@ -93,9 +93,7 @@ impl Visitor<'_> for IdentVisitor<'_, '_> {
|
||||
// reimplement it even if we wanted to
|
||||
cx.tcx.opt_hir_node(hir_id)
|
||||
} else {
|
||||
let Some(owner) = cx.tcx.hir_owner_nodes(hir_id.owner).as_owner() else {
|
||||
return;
|
||||
};
|
||||
let owner = cx.tcx.hir_owner_nodes(hir_id.owner);
|
||||
owner.nodes.get(hir_id.local_id).copied().flatten().map(|p| p.node)
|
||||
};
|
||||
let Some(node) = node else {
|
||||
|
@ -183,7 +183,7 @@ impl<'tcx> LateLintPass<'tcx> for Return {
|
||||
&& let ExprKind::Ret(Some(ret)) = expr.kind
|
||||
&& let ExprKind::Match(.., MatchSource::TryDesugar(_)) = ret.kind
|
||||
// Ensure this is not the final stmt, otherwise removing it would cause a compile error
|
||||
&& let OwnerNode::Item(item) = cx.tcx.hir().owner(cx.tcx.hir().get_parent_item(expr.hir_id))
|
||||
&& let OwnerNode::Item(item) = cx.tcx.hir_owner_node(cx.tcx.hir().get_parent_item(expr.hir_id))
|
||||
&& let ItemKind::Fn(_, _, body) = item.kind
|
||||
&& let block = cx.tcx.hir().body(body).value
|
||||
&& let ExprKind::Block(block, _) = block.kind
|
||||
|
@ -26,11 +26,11 @@ mod y {
|
||||
use x;
|
||||
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig",
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
pub fn y() {
|
||||
//[cfail2]~^ ERROR `hir_owner_nodes(y)` should be dirty but is not
|
||||
//[cfail2]~^ ERROR `opt_hir_owner_nodes(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `generics_of(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `predicates_of(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `type_of(y)` should be dirty but is not
|
||||
|
@ -12,14 +12,14 @@
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
#[cfg(rpass1)]
|
||||
#[rustc_clean(cfg="rpass1",except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="rpass1",except="opt_hir_owner_nodes")]
|
||||
mod foo {
|
||||
struct First;
|
||||
struct Second;
|
||||
}
|
||||
|
||||
#[cfg(rpass2)]
|
||||
#[rustc_clean(cfg="rpass2",except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="rpass2",except="opt_hir_owner_nodes")]
|
||||
mod foo {
|
||||
struct Second;
|
||||
struct First;
|
||||
|
@ -28,9 +28,9 @@ pub fn change_callee_function() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_function() {
|
||||
callee2(1, 2)
|
||||
@ -45,9 +45,9 @@ pub fn change_argument_function() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_argument_function() {
|
||||
callee1(1, 3)
|
||||
@ -62,9 +62,9 @@ mod change_callee_indirectly_function {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::callee2 as callee;
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_indirectly_function() {
|
||||
callee(1, 2)
|
||||
@ -86,9 +86,9 @@ pub fn change_callee_method() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_callee_method() {
|
||||
let s = Struct;
|
||||
@ -105,9 +105,9 @@ pub fn change_argument_method() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_argument_method() {
|
||||
let s = Struct;
|
||||
@ -124,9 +124,9 @@ pub fn change_ufcs_callee_method() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_ufcs_callee_method() {
|
||||
let s = Struct;
|
||||
@ -143,9 +143,9 @@ pub fn change_argument_method_ufcs() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_argument_method_ufcs() {
|
||||
let s = Struct;
|
||||
@ -162,11 +162,11 @@ pub fn change_to_ufcs() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// One might think this would be expanded in the hir_owner_nodes/Mir, but it actually
|
||||
// One might think this would be expanded in the opt_hir_owner_nodes/Mir, but it actually
|
||||
// results in slightly different hir_owner/Mir.
|
||||
pub fn change_to_ufcs() {
|
||||
let s = Struct;
|
||||
@ -186,9 +186,9 @@ pub mod change_ufcs_callee_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Struct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_ufcs_callee_indirectly() {
|
||||
let s = Struct;
|
||||
|
@ -24,9 +24,9 @@ pub fn change_closure_body() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_closure_body() {
|
||||
let _ = || 3u32;
|
||||
@ -42,9 +42,9 @@ pub fn add_parameter() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_parameter() {
|
||||
let x = 0u32;
|
||||
@ -60,9 +60,9 @@ pub fn change_parameter_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_parameter_pattern() {
|
||||
let _ = |(x,): (u32,)| x;
|
||||
@ -77,9 +77,9 @@ pub fn add_move() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_move() {
|
||||
let _ = move || 1;
|
||||
@ -95,9 +95,9 @@ pub fn add_type_ascription_to_parameter() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn add_type_ascription_to_parameter() {
|
||||
let closure = |x: u32| x + 1u32;
|
||||
@ -114,9 +114,9 @@ pub fn change_parameter_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const CONST_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;
|
||||
}
|
||||
|
@ -37,9 +37,9 @@ pub fn change_field_value_struct_like() -> Enum {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_value_struct_like() -> Enum {
|
||||
Enum::Struct {
|
||||
@ -62,9 +62,9 @@ pub fn change_field_order_struct_like() -> Enum {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it
|
||||
// would if it were not all constants
|
||||
@ -103,9 +103,9 @@ pub fn change_constructor_path_struct_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_struct_like() {
|
||||
let _ = Enum2::Struct {
|
||||
@ -128,9 +128,9 @@ pub fn change_constructor_variant_struct_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_variant_struct_like() {
|
||||
let _ = Enum2::Struct2 {
|
||||
@ -148,9 +148,9 @@ pub mod change_constructor_path_indirectly_struct_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::Struct {
|
||||
@ -170,9 +170,9 @@ pub mod change_constructor_variant_indirectly_struct_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2::Struct2 as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Enum2 {
|
||||
Variant {
|
||||
@ -191,9 +191,9 @@ pub fn change_field_value_tuple_like() -> Enum {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_value_tuple_like() -> Enum {
|
||||
Enum::Tuple(0, 1, 3)
|
||||
@ -210,12 +210,12 @@ pub fn change_constructor_path_tuple_like() {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_tuple_like() {
|
||||
@ -233,12 +233,12 @@ pub fn change_constructor_variant_tuple_like() {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,typeck"
|
||||
except="opt_hir_owner_nodes,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_variant_tuple_like() {
|
||||
@ -253,9 +253,9 @@ pub mod change_constructor_path_indirectly_tuple_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::Tuple(0, 1, 2)
|
||||
@ -272,9 +272,9 @@ pub mod change_constructor_variant_indirectly_tuple_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Enum2::Tuple2 as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Enum2 {
|
||||
Variant(0, 1, 2)
|
||||
@ -301,9 +301,9 @@ pub fn change_constructor_path_c_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_c_like() {
|
||||
let _x = Clike2::B;
|
||||
@ -318,9 +318,9 @@ pub fn change_constructor_variant_c_like() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_variant_c_like() {
|
||||
let _x = Clike::C;
|
||||
@ -334,9 +334,9 @@ pub mod change_constructor_path_indirectly_c_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Clike2 as TheEnum;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> TheEnum {
|
||||
TheEnum::B
|
||||
@ -353,9 +353,9 @@ pub mod change_constructor_variant_indirectly_c_like {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::Clike::B as Variant;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Clike {
|
||||
Variant
|
||||
|
@ -31,7 +31,7 @@ enum EnumVisibility { A }
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub enum EnumVisibility { A }
|
||||
|
||||
@ -45,9 +45,9 @@ enum EnumChangeNameCStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeNameCStyleVariant {
|
||||
Variant1,
|
||||
@ -64,9 +64,9 @@ enum EnumChangeNameTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeNameTupleStyleVariant {
|
||||
Variant1,
|
||||
@ -83,9 +83,9 @@ enum EnumChangeNameStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeNameStructStyleVariant {
|
||||
Variant1,
|
||||
@ -102,9 +102,9 @@ enum EnumChangeValueCStyleVariant0 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeValueCStyleVariant0 {
|
||||
Variant1,
|
||||
@ -118,9 +118,9 @@ enum EnumChangeValueCStyleVariant1 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeValueCStyleVariant1 {
|
||||
Variant1,
|
||||
@ -136,9 +136,9 @@ enum EnumAddCStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddCStyleVariant {
|
||||
Variant1,
|
||||
@ -155,9 +155,9 @@ enum EnumRemoveCStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumRemoveCStyleVariant {
|
||||
Variant1,
|
||||
@ -172,9 +172,9 @@ enum EnumAddTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddTupleStyleVariant {
|
||||
Variant1,
|
||||
@ -191,9 +191,9 @@ enum EnumRemoveTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumRemoveTupleStyleVariant {
|
||||
Variant1,
|
||||
@ -208,9 +208,9 @@ enum EnumAddStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddStructStyleVariant {
|
||||
Variant1,
|
||||
@ -227,9 +227,9 @@ enum EnumRemoveStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumRemoveStructStyleVariant {
|
||||
Variant1,
|
||||
@ -244,9 +244,9 @@ enum EnumChangeFieldTypeTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeFieldTypeTupleStyleVariant {
|
||||
Variant1(u32,
|
||||
@ -263,9 +263,9 @@ enum EnumChangeFieldTypeStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeFieldTypeStructStyleVariant {
|
||||
Variant1,
|
||||
@ -284,9 +284,9 @@ enum EnumChangeFieldNameStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeFieldNameStructStyleVariant {
|
||||
Variant1 { a: u32, c: u32 },
|
||||
@ -301,9 +301,9 @@ enum EnumChangeOrderTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeOrderTupleStyleVariant {
|
||||
Variant1(
|
||||
@ -320,9 +320,9 @@ enum EnumChangeFieldOrderStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeFieldOrderStructStyleVariant {
|
||||
Variant1 { b: f32, a: u32 },
|
||||
@ -337,9 +337,9 @@ enum EnumAddFieldTupleStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddFieldTupleStyleVariant {
|
||||
Variant1(u32, u32, u32),
|
||||
@ -354,9 +354,9 @@ enum EnumAddFieldStructStyleVariant {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddFieldStructStyleVariant {
|
||||
Variant1 { a: u32, b: u32, c: u32 },
|
||||
@ -411,9 +411,9 @@ enum EnumChangeNameOfTypeParameter<S> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeNameOfTypeParameter<T> {
|
||||
Variant1(T),
|
||||
@ -429,9 +429,9 @@ enum EnumAddTypeParameter<S> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddTypeParameter<S, T> {
|
||||
Variant1(S),
|
||||
@ -447,9 +447,9 @@ enum EnumChangeNameOfLifetimeParameter<'a> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumChangeNameOfLifetimeParameter<'b> {
|
||||
Variant1(&'b u32),
|
||||
@ -465,9 +465,9 @@ enum EnumAddLifetimeParameter<'a> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddLifetimeParameter<'a, 'b> {
|
||||
Variant1(&'a u32),
|
||||
@ -484,9 +484,9 @@ enum EnumAddLifetimeParameterBound<'a, 'b> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddLifetimeParameterBound<'a, 'b: 'a> {
|
||||
Variant1(&'a u32),
|
||||
@ -501,9 +501,9 @@ enum EnumAddLifetimeBoundToParameter<'a, T> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddLifetimeBoundToParameter<'a, T: 'a> {
|
||||
Variant1(T),
|
||||
@ -519,9 +519,9 @@ enum EnumAddTraitBound<S> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddTraitBound<T: Sync> {
|
||||
Variant1(T),
|
||||
@ -537,9 +537,9 @@ enum EnumAddLifetimeParameterBoundWhere<'a, 'b> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddLifetimeParameterBoundWhere<'a, 'b> where 'b: 'a {
|
||||
Variant1(&'a u32),
|
||||
@ -556,9 +556,9 @@ enum EnumAddLifetimeBoundToParameterWhere<'a, T> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddLifetimeBoundToParameterWhere<'a, T> where T: 'a {
|
||||
Variant1(T),
|
||||
@ -574,9 +574,9 @@ enum EnumAddTraitBoundWhere<S> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumAddTraitBoundWhere<T> where T: Sync {
|
||||
Variant1(T),
|
||||
@ -592,9 +592,9 @@ enum EnumSwapUsageTypeParameters<A, B> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumSwapUsageTypeParameters<A, B> {
|
||||
Variant1 {
|
||||
@ -615,9 +615,9 @@ enum EnumSwapUsageLifetimeParameters<'a, 'b> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum EnumSwapUsageLifetimeParameters<'a, 'b> {
|
||||
Variant1 {
|
||||
@ -642,9 +642,9 @@ mod change_field_type_indirectly_tuple_style {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum TupleStyle {
|
||||
Variant1(
|
||||
@ -662,9 +662,9 @@ mod change_field_type_indirectly_struct_style {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum StructStyle {
|
||||
Variant1 {
|
||||
@ -687,9 +687,9 @@ mod change_trait_bound_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum Enum<T: Trait> {
|
||||
Variant1(T)
|
||||
@ -705,9 +705,9 @@ mod change_trait_bound_indirectly_where {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
enum Enum<T> where T: Trait {
|
||||
Variant1(T)
|
||||
|
@ -10,7 +10,7 @@
|
||||
#![crate_type="rlib"]
|
||||
|
||||
// Case 1: The function body is not exported to metadata. If the body changes,
|
||||
// the hash of the hir_owner_nodes node should change, but not the hash of
|
||||
// the hash of the opt_hir_owner_nodes node should change, but not the hash of
|
||||
// either the hir_owner or the Metadata node.
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
@ -19,9 +19,9 @@ pub fn body_not_exported_to_metadata() -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn body_not_exported_to_metadata() -> u32 {
|
||||
2
|
||||
@ -40,9 +40,9 @@ pub fn body_exported_to_metadata_because_of_inline() -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
pub fn body_exported_to_metadata_because_of_inline() -> u32 {
|
||||
@ -62,9 +62,9 @@ pub fn body_exported_to_metadata_because_of_generic() -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
pub fn body_exported_to_metadata_because_of_generic() -> u32 {
|
||||
|
@ -24,9 +24,9 @@ extern "C" {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
extern "C" {
|
||||
pub fn change_function_name2(c: i64) -> i32;
|
||||
@ -129,9 +129,9 @@ extern "C" {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
extern "rust-call" {
|
||||
pub fn change_calling_convention(c: (i32,));
|
||||
@ -159,9 +159,9 @@ extern "C" {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
extern "C" {
|
||||
pub fn add_function1(c: i32);
|
||||
|
@ -28,9 +28,9 @@ pub fn change_loop_body() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
@ -53,9 +53,9 @@ pub fn change_iteration_variable_name() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_iteration_variable_name() {
|
||||
let mut _x = 0;
|
||||
@ -78,9 +78,9 @@ pub fn change_iteration_variable_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_iteration_variable_pattern() {
|
||||
let mut _x = 0;
|
||||
@ -103,9 +103,9 @@ pub fn change_iterable() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, promoted_mir, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, promoted_mir, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, promoted_mir, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, promoted_mir, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_iterable() {
|
||||
let mut _x = 0;
|
||||
@ -128,9 +128,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
@ -153,9 +153,9 @@ pub fn add_loop_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
@ -178,9 +178,9 @@ pub fn add_loop_label_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
@ -205,9 +205,9 @@ pub fn change_break_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
@ -232,9 +232,9 @@ pub fn add_loop_label_to_continue() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
@ -259,9 +259,9 @@ pub fn change_continue_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
@ -286,9 +286,9 @@ pub fn change_continue_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -25,12 +25,12 @@ pub fn add_parameter() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn add_parameter(p: i32) {}
|
||||
@ -41,9 +41,9 @@ pub fn add_parameter(p: i32) {}
|
||||
pub fn add_return_type() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn add_return_type() -> () {}
|
||||
|
||||
@ -55,12 +55,12 @@ pub fn type_of_parameter(p: i32) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn type_of_parameter(p: i64) {}
|
||||
@ -73,12 +73,12 @@ pub fn type_of_parameter_ref(p: &i32) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn type_of_parameter_ref(p: &mut i32) {}
|
||||
@ -91,12 +91,12 @@ pub fn order_of_parameters(p1: i32, p2: i64) {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn order_of_parameters(p2: i64, p1: i32) {}
|
||||
@ -109,12 +109,12 @@ pub fn make_unsafe() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub unsafe fn make_unsafe() {}
|
||||
@ -125,9 +125,9 @@ pub unsafe fn make_unsafe() {}
|
||||
pub fn make_extern() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub extern "C" fn make_extern() {}
|
||||
|
||||
@ -139,12 +139,12 @@ pub fn type_parameter () {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn type_parameter<T>() {}
|
||||
@ -155,9 +155,9 @@ pub fn type_parameter<T>() {}
|
||||
pub fn lifetime_parameter () {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, generics_of,fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, generics_of,fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, generics_of,fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, generics_of,fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn lifetime_parameter<'a>() {}
|
||||
|
||||
@ -167,7 +167,7 @@ pub fn lifetime_parameter<'a>() {}
|
||||
pub fn trait_bound<T >() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn trait_bound<T: Eq>() {}
|
||||
|
||||
@ -177,9 +177,9 @@ pub fn trait_bound<T: Eq>() {}
|
||||
pub fn builtin_bound<T >() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn builtin_bound<T: Send>() {}
|
||||
|
||||
@ -191,12 +191,12 @@ pub fn lifetime_bound<'a, T>() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig,optimized_mir"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig,optimized_mir"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn lifetime_bound<'a, T: 'a>() {}
|
||||
@ -207,7 +207,7 @@ pub fn lifetime_bound<'a, T: 'a>() {}
|
||||
pub fn second_trait_bound<T: Eq >() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
pub fn second_trait_bound<T: Eq + Clone>() {}
|
||||
|
||||
@ -217,9 +217,9 @@ pub fn second_trait_bound<T: Eq + Clone>() {}
|
||||
pub fn second_builtin_bound<T: Send >() {}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn second_builtin_bound<T: Send + Sized>() {}
|
||||
|
||||
@ -231,12 +231,12 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a >() {}
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
|
||||
@ -302,9 +302,9 @@ pub fn return_impl_trait() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, typeck, fn_sig")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, typeck, fn_sig, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, typeck, fn_sig, optimized_mir")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn return_impl_trait() -> impl Clone {
|
||||
0
|
||||
@ -339,12 +339,12 @@ pub mod change_return_type_indirectly {
|
||||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_return_type() -> ReturnType {
|
||||
@ -362,12 +362,12 @@ pub mod change_parameter_type_indirectly {
|
||||
|
||||
#[rustc_clean(
|
||||
cfg = "cfail2",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg = "cfail5",
|
||||
except = "hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
except = "opt_hir_owner_nodes, optimized_mir, typeck, fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_parameter_type(p: ParameterType) {}
|
||||
@ -384,9 +384,9 @@ pub mod change_trait_bound_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_trait_bound<T: Trait>(p: T) {}
|
||||
}
|
||||
@ -399,9 +399,9 @@ pub mod change_trait_bound_indirectly_in_where_clause {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(cfg = "cfail2", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail2", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail3")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail5", except = "opt_hir_owner_nodes, predicates_of")]
|
||||
#[rustc_clean(cfg = "cfail6")]
|
||||
pub fn indirect_trait_bound_where<T>(p: T)
|
||||
where
|
||||
|
@ -27,9 +27,9 @@ pub fn change_condition(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_condition(x: bool) -> u32 {
|
||||
if !x {
|
||||
@ -50,9 +50,9 @@ pub fn change_then_branch(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_then_branch(x: bool) -> u32 {
|
||||
if x {
|
||||
@ -75,9 +75,9 @@ pub fn change_else_branch(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_else_branch(x: bool) -> u32 {
|
||||
if x {
|
||||
@ -103,9 +103,9 @@ pub fn add_else_branch(x: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_else_branch(x: bool) -> u32 {
|
||||
let mut ret = 1;
|
||||
@ -131,9 +131,9 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_condition_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(_ ) = x {
|
||||
@ -156,9 +156,9 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_then_branch_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(x) = x {
|
||||
@ -181,9 +181,9 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
if let Some(x) = x {
|
||||
@ -209,9 +209,9 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_else_branch_if_let(x: Option<u32>) -> u32 {
|
||||
let mut ret = 1;
|
||||
|
@ -23,9 +23,9 @@ fn change_simple_index(slice: &[u32]) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn change_simple_index(slice: &[u32]) -> u32 {
|
||||
slice[4]
|
||||
@ -40,9 +40,9 @@ fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[2..5]
|
||||
@ -57,9 +57,9 @@ fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
@ -74,9 +74,9 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..4]
|
||||
@ -91,9 +91,9 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
@ -108,9 +108,9 @@ fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
(& slice[3..5])[0]
|
||||
@ -125,9 +125,9 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..=7]
|
||||
|
@ -26,9 +26,9 @@ impl Foo {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
@ -41,9 +41,9 @@ impl Foo {
|
||||
// This should affect the method itself, but not the impl.
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//--------------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//--------------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn method_body() {
|
||||
// -----------------------
|
||||
@ -56,9 +56,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_body() {
|
||||
println!("Hello, world!");
|
||||
@ -73,12 +73,12 @@ impl Foo {
|
||||
impl Foo {
|
||||
//------------
|
||||
//---------------
|
||||
//------------------------------------------------------------
|
||||
//----------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
//------------
|
||||
//---------------
|
||||
//------------------------------------------------------------
|
||||
//----------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
#[inline]
|
||||
@ -95,12 +95,12 @@ impl Foo {
|
||||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,optimized_mir,promoted_mir,typeck"
|
||||
except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,optimized_mir,promoted_mir,typeck"
|
||||
except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
@ -115,7 +115,7 @@ impl Foo {
|
||||
impl Foo {
|
||||
//--------------------------
|
||||
//--------------------------
|
||||
//----------------------------------------------------
|
||||
//--------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn method_privacy() { }
|
||||
}
|
||||
@ -128,7 +128,7 @@ impl Foo {
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_privacy() { }
|
||||
}
|
||||
@ -138,31 +138,31 @@ impl Foo {
|
||||
impl Foo {
|
||||
//------------
|
||||
//---------------
|
||||
//-----------------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
//------------
|
||||
//---------------
|
||||
//-----------------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
pub fn method_selfness() { }
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
except="opt_hir_owner_nodes,fn_sig,generics_of,typeck,associated_item,optimized_mir",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_selfness(&self) { }
|
||||
@ -171,9 +171,9 @@ impl Foo {
|
||||
// Change Method Selfmutness ---------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn method_selfmutness(& self) { }
|
||||
}
|
||||
@ -184,9 +184,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn method_selfmutness(&mut self) { }
|
||||
}
|
||||
@ -200,9 +200,9 @@ impl Foo {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,associated_item_def_ids")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
@ -221,9 +221,9 @@ impl Foo {
|
||||
// Add Method Parameter --------------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn add_method_parameter(&self ) { }
|
||||
}
|
||||
@ -234,9 +234,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_method_parameter(&self, _: i32) { }
|
||||
}
|
||||
@ -246,9 +246,9 @@ impl Foo {
|
||||
// Change Method Parameter Name ------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn change_method_parameter_name(&self, a: i64) { }
|
||||
}
|
||||
@ -259,9 +259,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_method_parameter_name(&self, b: i64) { }
|
||||
}
|
||||
@ -271,9 +271,9 @@ impl Foo {
|
||||
// Change Method Return Type ---------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn change_method_return_type(&self) -> u16 { 0 }
|
||||
}
|
||||
@ -284,9 +284,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_method_return_type(&self) -> u32 { 0 }
|
||||
}
|
||||
@ -323,9 +323,9 @@ impl Foo {
|
||||
// Change order of parameters -------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn change_method_parameter_order(&self, a: i64, b: i64) { }
|
||||
}
|
||||
@ -336,9 +336,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_method_parameter_order(&self, b: i64, a: i64) { }
|
||||
}
|
||||
@ -348,9 +348,9 @@ impl Foo {
|
||||
// Make method unsafe ----------------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//--------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn make_method_unsafe(&self) { }
|
||||
}
|
||||
@ -361,9 +361,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub unsafe fn make_method_unsafe(&self) { }
|
||||
}
|
||||
@ -373,9 +373,9 @@ impl Foo {
|
||||
// Make method extern ----------------------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub fn make_method_extern(&self) { }
|
||||
}
|
||||
@ -386,9 +386,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub extern "C" fn make_method_extern(&self) { }
|
||||
}
|
||||
@ -398,9 +398,9 @@ impl Foo {
|
||||
// Change method calling convention --------------------------------------------
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl Foo {
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
//------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
//--------------------------
|
||||
pub extern "C" fn change_method_calling_convention(&self) { }
|
||||
}
|
||||
@ -411,9 +411,9 @@ impl Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Foo {
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub extern "system" fn change_method_calling_convention(&self) { }
|
||||
}
|
||||
@ -432,9 +432,9 @@ impl Foo {
|
||||
// ----------------------------------------------------------
|
||||
// -----------------------------------------------------------
|
||||
// ----------------------------------------------------------
|
||||
// ----------------------------------------------------------
|
||||
// --------------------------------------------------------------
|
||||
// -------------------------
|
||||
// ----------------------------------------------------------------------
|
||||
// --------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
pub fn add_lifetime_parameter_to_method (&self) { }
|
||||
}
|
||||
@ -454,9 +454,9 @@ 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` appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,fn_sig")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,fn_sig")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,fn_sig,generics_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,fn_sig,generics_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_lifetime_parameter_to_method<'a>(&self) { }
|
||||
}
|
||||
@ -477,12 +477,12 @@ impl Foo {
|
||||
// -------------------------------------------------
|
||||
// -----------
|
||||
// --------------
|
||||
// ------------------------------------------------------------
|
||||
// ----------------------------------------------------------------
|
||||
//
|
||||
// -------------------------
|
||||
// -----------
|
||||
// --------------
|
||||
// ------------------------------------------------------------
|
||||
// ----------------------------------------------------------------
|
||||
//
|
||||
// -------------------------
|
||||
pub fn add_type_parameter_to_method (&self) { }
|
||||
@ -505,12 +505,12 @@ impl Foo {
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of",
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of",
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_type_parameter_to_method<T>(&self) { }
|
||||
@ -523,12 +523,12 @@ impl Foo {
|
||||
impl Foo {
|
||||
//------------
|
||||
//---------------
|
||||
//-------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
//------------
|
||||
//---------------
|
||||
//-------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------
|
||||
//
|
||||
//--------------------------
|
||||
pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b >(&self) { }
|
||||
@ -542,12 +542,12 @@ impl Foo {
|
||||
impl Foo {
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b: 'a>(&self) { }
|
||||
@ -569,12 +569,12 @@ impl Foo {
|
||||
// -------------------------------------------------
|
||||
// -----------
|
||||
// --------------
|
||||
// ------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// -------------------------
|
||||
// -----------
|
||||
// --------------
|
||||
// ------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// -------------------------
|
||||
pub fn add_lifetime_bound_to_type_param_of_method<'a, T >(&self) { }
|
||||
@ -597,12 +597,12 @@ impl Foo {
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(
|
||||
cfg="cfail2",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
cfg="cfail5",
|
||||
except="hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig"
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_lifetime_bound_to_type_param_of_method<'a, T: 'a>(&self) { }
|
||||
@ -622,9 +622,9 @@ impl Foo {
|
||||
// ------------------------------------------------------------
|
||||
// ------------------------------------------------------
|
||||
// -------------------------------------------------
|
||||
// -----------------------------------------------------------------
|
||||
// ---------------------------------------------------------------------
|
||||
// -------------------------
|
||||
// -----------------------------------------------------------------
|
||||
// ---------------------------------------------------------------------
|
||||
// -------------------------
|
||||
pub fn add_trait_bound_to_type_param_of_method<T >(&self) { }
|
||||
}
|
||||
@ -644,9 +644,9 @@ impl Foo {
|
||||
// generics before the body, then the `HirId` for things in the
|
||||
// body will be affected. So if you start to see `typeck`
|
||||
// appear dirty, that might be the cause. -nmatsakis
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,predicates_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_trait_bound_to_type_param_of_method<T: Clone>(&self) { }
|
||||
}
|
||||
@ -689,9 +689,9 @@ impl Bar<u32> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,generics_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,generics_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,generics_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,generics_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<T> Bar<T> {
|
||||
#[rustc_clean(
|
||||
@ -716,9 +716,9 @@ impl Bar<u32> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl Bar<u64> {
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,optimized_mir,typeck")]
|
||||
@ -737,9 +737,9 @@ impl<T> Bar<T> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<T: 'static> Bar<T> {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
@ -758,9 +758,9 @@ impl<T> Bar<T> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<T: Clone> Bar<T> {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
|
@ -33,9 +33,9 @@ pub fn change_template(_a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_template(_a: i32) -> i32 {
|
||||
@ -66,9 +66,9 @@ pub fn change_output(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_output(a: i32) -> i32 {
|
||||
@ -100,9 +100,9 @@ pub fn change_input(_a: i32, _b: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_input(_a: i32, _b: i32) -> i32 {
|
||||
@ -133,9 +133,9 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_input_constraint(_a: i32, _b: i32) -> i32 {
|
||||
@ -166,9 +166,9 @@ pub fn change_clobber(_a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_clobber(_a: i32) -> i32 {
|
||||
@ -201,9 +201,9 @@ pub fn change_options(_a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
pub fn change_options(_a: i32) -> i32 {
|
||||
|
@ -23,9 +23,9 @@ pub fn change_name() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_name() {
|
||||
let _y = 2u64;
|
||||
@ -40,9 +40,9 @@ pub fn add_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_type() {
|
||||
let _x: u32 = 2u32;
|
||||
@ -57,9 +57,9 @@ pub fn change_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_type() {
|
||||
let _x: u8 = 2;
|
||||
@ -74,9 +74,9 @@ pub fn change_mutability_of_reference_type() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_reference_type() {
|
||||
let _x: &mut u64;
|
||||
@ -91,9 +91,9 @@ pub fn change_mutability_of_slot() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_slot() {
|
||||
let _x: u64 = 0;
|
||||
@ -108,9 +108,9 @@ pub fn change_simple_binding_to_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_simple_binding_to_pattern() {
|
||||
let (_a, _b) = (0u8, 'x');
|
||||
@ -125,9 +125,9 @@ pub fn change_name_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_name_in_pattern() {
|
||||
let (_a, _c) = (1u8, 'y');
|
||||
@ -142,9 +142,9 @@ pub fn add_ref_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_ref_in_pattern() {
|
||||
let (ref _a, _b) = (1u8, 'y');
|
||||
@ -159,9 +159,9 @@ pub fn add_amp_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_amp_in_pattern() {
|
||||
let (&_a, _b) = (&1u8, 'y');
|
||||
@ -176,9 +176,9 @@ pub fn change_mutability_of_binding_in_pattern() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_binding_in_pattern() {
|
||||
let (mut _a, _b) = (99u8, 'q');
|
||||
@ -193,9 +193,9 @@ pub fn add_initializer() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_initializer() {
|
||||
let _x: i16 = 3i16;
|
||||
@ -210,9 +210,9 @@ pub fn change_initializer() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_initializer() {
|
||||
let _x = 5u16;
|
||||
|
@ -28,9 +28,9 @@ pub fn change_loop_body() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
@ -53,9 +53,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
@ -78,9 +78,9 @@ pub fn add_loop_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
@ -103,9 +103,9 @@ pub fn add_loop_label_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
@ -130,9 +130,9 @@ pub fn change_break_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
@ -157,9 +157,9 @@ pub fn add_loop_label_to_continue() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
@ -184,9 +184,9 @@ pub fn change_continue_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
@ -211,9 +211,9 @@ pub fn change_continue_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -28,9 +28,9 @@ pub fn add_arm(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
@ -54,9 +54,9 @@ pub fn change_order_of_arms(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_order_of_arms(x: u32) -> u32 {
|
||||
match x {
|
||||
@ -79,9 +79,9 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
@ -104,9 +104,9 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_guard_clause(x: u32, y: bool) -> u32 {
|
||||
match x {
|
||||
@ -129,9 +129,9 @@ pub fn add_at_binding(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_at_binding(x: u32) -> u32 {
|
||||
match x {
|
||||
@ -154,9 +154,9 @@ pub fn change_name_of_at_binding(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_name_of_at_binding(x: u32) -> u32 {
|
||||
match x {
|
||||
@ -178,9 +178,9 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_simple_name_to_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@ -202,9 +202,9 @@ pub fn change_name_in_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_name_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@ -227,9 +227,9 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
||||
|
||||
// Ignore optimized_mir in cfail2, the only change to optimized MIR is a span.
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@ -250,9 +250,9 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (x, x & 1) {
|
||||
@ -273,9 +273,9 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 {
|
||||
match (&x, x & 1) {
|
||||
@ -297,9 +297,9 @@ pub fn change_rhs_of_arm(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_rhs_of_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
@ -322,9 +322,9 @@ pub fn add_alternative_to_arm(x: u32) -> u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_alternative_to_arm(x: u32) -> u32 {
|
||||
match x {
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
// Indexing expression
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,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_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn shift_right(val: i32, shift: usize) -> i32 {
|
||||
#[cfg(cfail1)]
|
||||
|
@ -26,7 +26,7 @@ static STATIC_VISIBILITY: u8 = 0;
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub static STATIC_VISIBILITY: u8 = 0;
|
||||
|
||||
@ -36,9 +36,9 @@ pub static STATIC_VISIBILITY: u8 = 0;
|
||||
static STATIC_MUTABILITY: u8 = 0;
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static mut STATIC_MUTABILITY: u8 = 0;
|
||||
|
||||
@ -87,9 +87,9 @@ static STATIC_THREAD_LOCAL: u8 = 0;
|
||||
static STATIC_CHANGE_TYPE_1: i16 = 0;
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_TYPE_1: u64 = 0;
|
||||
|
||||
@ -99,17 +99,17 @@ static STATIC_CHANGE_TYPE_1: u64 = 0;
|
||||
static STATIC_CHANGE_TYPE_2: Option<i8> = None;
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_TYPE_2: Option<u16> = None;
|
||||
|
||||
|
||||
// Change value between simple literals
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_VALUE_1: i16 = {
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
@ -121,9 +121,9 @@ static STATIC_CHANGE_VALUE_1: i16 = {
|
||||
|
||||
|
||||
// Change value between expressions
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_VALUE_2: i16 = {
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
@ -133,9 +133,9 @@ static STATIC_CHANGE_VALUE_2: i16 = {
|
||||
{ 1 + 2 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_VALUE_3: i16 = {
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
@ -145,9 +145,9 @@ static STATIC_CHANGE_VALUE_3: i16 = {
|
||||
{ 2 * 3 }
|
||||
};
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_VALUE_4: i16 = {
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
@ -169,15 +169,15 @@ mod static_change_type_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedType2 as Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_TYPE_INDIRECTLY_1: Type = Type;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
static STATIC_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None;
|
||||
}
|
||||
|
@ -34,9 +34,9 @@ pub fn change_field_value_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_value_regular_struct() -> RegularStruct {
|
||||
RegularStruct {
|
||||
@ -59,9 +59,9 @@ pub fn change_field_order_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_order_regular_struct() -> RegularStruct {
|
||||
RegularStruct {
|
||||
@ -90,9 +90,9 @@ pub fn add_field_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_field_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
@ -127,9 +127,9 @@ pub fn change_field_label_regular_struct() -> RegularStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_label_regular_struct() -> RegularStruct {
|
||||
let struct1 = RegularStruct {
|
||||
@ -164,9 +164,9 @@ pub fn change_constructor_path_regular_struct() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_regular_struct() {
|
||||
let _ = RegularStruct2 {
|
||||
@ -185,9 +185,9 @@ pub mod change_constructor_path_indirectly_regular_struct {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::RegularStruct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn function() -> Struct {
|
||||
Struct {
|
||||
@ -209,9 +209,9 @@ pub fn change_field_value_tuple_struct() -> TupleStruct {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_field_value_tuple_struct() -> TupleStruct {
|
||||
TupleStruct(0, 1, 3)
|
||||
@ -228,9 +228,9 @@ pub fn change_constructor_path_tuple_struct() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_constructor_path_tuple_struct() {
|
||||
let _ = TupleStruct2(0, 1, 2);
|
||||
@ -245,9 +245,9 @@ pub mod change_constructor_path_indirectly_tuple_struct {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::TupleStruct2 as Struct;
|
||||
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn function() -> Struct {
|
||||
Struct(0, 1, 2)
|
||||
|
@ -51,9 +51,9 @@ struct LayoutC;
|
||||
struct TupleStructFieldType(i32);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// Note that changing the type of a field does not change the type of the struct or enum, but
|
||||
// adding/removing fields or changing a fields name or visibility does.
|
||||
@ -68,9 +68,9 @@ struct TupleStructFieldType(
|
||||
struct TupleStructAddField(i32);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct TupleStructAddField(
|
||||
i32,
|
||||
@ -86,7 +86,7 @@ struct TupleStructFieldVisibility( char);
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct TupleStructFieldVisibility(pub char);
|
||||
|
||||
@ -97,9 +97,9 @@ struct TupleStructFieldVisibility(pub char);
|
||||
struct RecordStructFieldType { x: f32 }
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
// Note that changing the type of a field does not change the type of the struct or enum, but
|
||||
// adding/removing fields or changing a fields name or visibility does.
|
||||
@ -114,9 +114,9 @@ struct RecordStructFieldType {
|
||||
struct RecordStructFieldName { x: f32 }
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct RecordStructFieldName { y: f32 }
|
||||
|
||||
@ -127,9 +127,9 @@ struct RecordStructFieldName { y: f32 }
|
||||
struct RecordStructAddField { x: f32 }
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct RecordStructAddField {
|
||||
x: f32,
|
||||
@ -144,7 +144,7 @@ struct RecordStructFieldVisibility { x: f32 }
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="type_of")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,type_of")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct RecordStructFieldVisibility { pub x: f32 }
|
||||
|
||||
@ -155,9 +155,9 @@ struct RecordStructFieldVisibility { pub x: f32 }
|
||||
struct AddLifetimeParameter<'a>(&'a f32, &'a f64);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of,generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of,generics_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddLifetimeParameter<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
@ -168,9 +168,9 @@ struct AddLifetimeParameter<'a, 'b>(&'a f32, &'b f64);
|
||||
struct AddLifetimeParameterBound<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddLifetimeParameterBound<'a, 'b: 'a>(
|
||||
&'a f32,
|
||||
@ -181,9 +181,9 @@ struct AddLifetimeParameterBound<'a, 'b: 'a>(
|
||||
struct AddLifetimeParameterBoundWhereClause<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddLifetimeParameterBoundWhereClause<'a, 'b>(
|
||||
&'a f32,
|
||||
@ -197,9 +197,9 @@ struct AddLifetimeParameterBoundWhereClause<'a, 'b>(
|
||||
struct AddTypeParameter<T1>(T1, T1);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of,generics_of,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,type_of,generics_of,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddTypeParameter<T1, T2>(
|
||||
// The field contains the parent's Generics, so it's dirty even though its
|
||||
@ -215,9 +215,9 @@ struct AddTypeParameter<T1, T2>(
|
||||
struct AddTypeParameterBound<T>(T);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddTypeParameterBound<T: Send>(
|
||||
T
|
||||
@ -228,9 +228,9 @@ struct AddTypeParameterBound<T: Send>(
|
||||
struct AddTypeParameterBoundWhereClause<T>(T);
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct AddTypeParameterBoundWhereClause<T>(
|
||||
T
|
||||
@ -257,7 +257,7 @@ struct Visibility;
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub struct Visibility;
|
||||
|
||||
@ -271,9 +271,9 @@ mod tuple_struct_change_field_type_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct TupleStruct(
|
||||
FieldType
|
||||
@ -288,9 +288,9 @@ mod record_struct_change_field_type_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct RecordStruct {
|
||||
_x: FieldType
|
||||
@ -310,9 +310,9 @@ mod change_trait_bound_indirectly {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct Struct<T: Trait>(T);
|
||||
}
|
||||
@ -324,9 +324,9 @@ mod change_trait_bound_indirectly_in_where_clause {
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
struct Struct<T>(T) where T : Trait;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -32,9 +32,9 @@ impl ChangeMethodNameTrait for Foo {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub trait ChangeMethodNameTrait {
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
@ -43,9 +43,9 @@ pub trait ChangeMethodNameTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodNameTrait for Foo {
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
@ -63,9 +63,9 @@ pub trait ChangeMethodBodyTrait {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl ChangeMethodBodyTrait for Foo {
|
||||
// ----------------------------------------------------------
|
||||
// --------------------------------------------------------------
|
||||
// -------------------------
|
||||
// ----------------------------------------------------------
|
||||
// --------------------------------------------------------------
|
||||
// -------------------------
|
||||
fn method_name() {
|
||||
//
|
||||
@ -78,9 +78,9 @@ impl ChangeMethodBodyTrait for Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodBodyTrait for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name() {
|
||||
()
|
||||
@ -97,9 +97,9 @@ pub trait ChangeMethodBodyTraitInlined {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl ChangeMethodBodyTraitInlined for Foo {
|
||||
// ------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
// ------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
#[inline]
|
||||
fn method_name() {
|
||||
@ -113,9 +113,9 @@ impl ChangeMethodBodyTraitInlined for Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodBodyTraitInlined for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
#[inline]
|
||||
fn method_name() {
|
||||
@ -141,18 +141,18 @@ pub trait ChangeMethodSelfnessTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodSelfnessTrait for Foo {
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@ -179,18 +179,18 @@ pub trait RemoveMethodSelfnessTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl RemoveMethodSelfnessTrait for Foo {
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@ -206,9 +206,9 @@ pub trait ChangeMethodSelfmutnessTrait {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl ChangeMethodSelfmutnessTrait for Foo {
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
fn method_name(& self) {}
|
||||
}
|
||||
@ -224,9 +224,9 @@ pub trait ChangeMethodSelfmutnessTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeMethodSelfmutnessTrait for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&mut self) {}
|
||||
}
|
||||
@ -249,9 +249,9 @@ pub trait ChangeItemKindTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeItemKindTrait for Foo {
|
||||
type name = ();
|
||||
@ -277,9 +277,9 @@ pub trait RemoveItemTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl RemoveItemTrait for Foo {
|
||||
type TypeName = ();
|
||||
@ -304,9 +304,9 @@ pub trait AddItemTrait {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl AddItemTrait for Foo {
|
||||
type TypeName = ();
|
||||
@ -317,9 +317,9 @@ impl AddItemTrait for Foo {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
pub trait ChangeHasValueTrait {
|
||||
//----------------------------------------------------
|
||||
//--------------------------------------------------------
|
||||
//--------------------------
|
||||
//----------------------------------------------------
|
||||
//--------------------------------------------------------
|
||||
//--------------------------
|
||||
fn method_name() ;
|
||||
}
|
||||
@ -335,9 +335,9 @@ impl ChangeHasValueTrait for Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub trait ChangeHasValueTrait {
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name() { }
|
||||
}
|
||||
@ -359,9 +359,9 @@ pub trait AddDefaultTrait {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl AddDefaultTrait for Foo {
|
||||
// ---------------------------------------------------
|
||||
// -------------------------------------------------------
|
||||
// -------------------------
|
||||
// ---------------------------------------------------
|
||||
// -------------------------------------------------------
|
||||
// -------------------------
|
||||
fn method_name() { }
|
||||
}
|
||||
@ -372,9 +372,9 @@ impl AddDefaultTrait for Foo {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl AddDefaultTrait for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
default fn method_name() { }
|
||||
}
|
||||
@ -388,9 +388,9 @@ pub trait AddArgumentTrait {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl AddArgumentTrait for Foo {
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
fn method_name(&self ) { }
|
||||
}
|
||||
@ -406,9 +406,9 @@ pub trait AddArgumentTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl AddArgumentTrait for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&self, _x: u32) { }
|
||||
}
|
||||
@ -422,9 +422,9 @@ pub trait ChangeArgumentTypeTrait {
|
||||
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
impl ChangeArgumentTypeTrait for Foo {
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
// -------------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------------
|
||||
// -------------------------
|
||||
fn method_name(&self, _x: u32 ) { }
|
||||
}
|
||||
@ -440,9 +440,9 @@ pub trait ChangeArgumentTypeTrait {
|
||||
#[rustc_clean(cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeArgumentTypeTrait for Foo {
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
fn method_name(&self, _x: char) { }
|
||||
}
|
||||
@ -462,18 +462,18 @@ impl AddTypeParameterToImpl<u32> for Bar<u32> {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,generics_of,impl_trait_ref", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_ref", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,generics_of,impl_trait_ref", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_ref", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<TTT> AddTypeParameterToImpl<TTT> for Bar<TTT> {
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
cfg="cfail2",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(
|
||||
except="hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck,optimized_mir",
|
||||
cfg="cfail5",
|
||||
)]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
@ -493,9 +493,9 @@ impl ChangeSelfTypeOfImpl for u32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,impl_trait_ref", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,impl_trait_ref", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,impl_trait_ref", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,impl_trait_ref", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl ChangeSelfTypeOfImpl for u64 {
|
||||
#[rustc_clean(except="fn_sig,typeck,optimized_mir", cfg="cfail2")]
|
||||
@ -518,9 +518,9 @@ impl<T> AddLifetimeBoundToImplParameter for T {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<T: 'static> AddLifetimeBoundToImplParameter for T {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
@ -543,9 +543,9 @@ impl<T> AddTraitBoundToImplParameter for T {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
impl<T: Clone> AddTraitBoundToImplParameter for T {
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
|
@ -24,7 +24,7 @@
|
||||
type ChangePrimitiveType = i32;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_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_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type ChangeTraitBoundIndirectly<T> where T : Trait = (T, u32);
|
||||
}
|
||||
|
@ -24,9 +24,9 @@ pub fn const_negation() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn const_negation() -> i32 {
|
||||
-1
|
||||
@ -41,9 +41,9 @@ pub fn const_bitwise_not() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn const_bitwise_not() -> i32 {
|
||||
!99
|
||||
@ -58,9 +58,9 @@ pub fn var_negation(x: i32, y: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn var_negation(x: i32, y: i32) -> i32 {
|
||||
-y
|
||||
@ -75,9 +75,9 @@ pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn var_bitwise_not(x: i32, y: i32) -> i32 {
|
||||
!y
|
||||
@ -92,9 +92,9 @@ pub fn var_deref(x: &i32, y: &i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn var_deref(x: &i32, y: &i32) -> i32 {
|
||||
*y
|
||||
@ -109,9 +109,9 @@ pub fn first_const_add() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn first_const_add() -> i32 {
|
||||
2 + 3
|
||||
@ -126,9 +126,9 @@ pub fn second_const_add() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn second_const_add() -> i32 {
|
||||
1 + 3
|
||||
@ -143,9 +143,9 @@ pub fn first_var_add(a: i32, b: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn first_var_add(a: i32, b: i32) -> i32 {
|
||||
b + 2
|
||||
@ -160,9 +160,9 @@ pub fn second_var_add(a: i32, b: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn second_var_add(a: i32, b: i32) -> i32 {
|
||||
1 + b
|
||||
@ -177,9 +177,9 @@ pub fn plus_to_minus(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn plus_to_minus(a: i32) -> i32 {
|
||||
1 - a
|
||||
@ -194,9 +194,9 @@ pub fn plus_to_mult(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn plus_to_mult(a: i32) -> i32 {
|
||||
1 * a
|
||||
@ -211,9 +211,9 @@ pub fn plus_to_div(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn plus_to_div(a: i32) -> i32 {
|
||||
1 / a
|
||||
@ -228,9 +228,9 @@ pub fn plus_to_mod(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn plus_to_mod(a: i32) -> i32 {
|
||||
1 % a
|
||||
@ -245,9 +245,9 @@ pub fn and_to_or(a: bool, b: bool) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn and_to_or(a: bool, b: bool) -> bool {
|
||||
a || b
|
||||
@ -262,9 +262,9 @@ pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 {
|
||||
1 | a
|
||||
@ -279,9 +279,9 @@ pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 {
|
||||
1 ^ a
|
||||
@ -296,9 +296,9 @@ pub fn bitwise_and_to_lshift(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn bitwise_and_to_lshift(a: i32) -> i32 {
|
||||
a << 1
|
||||
@ -313,9 +313,9 @@ pub fn bitwise_and_to_rshift(a: i32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn bitwise_and_to_rshift(a: i32) -> i32 {
|
||||
a >> 1
|
||||
@ -330,9 +330,9 @@ pub fn eq_to_uneq(a: i32) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn eq_to_uneq(a: i32) -> bool {
|
||||
a != 1
|
||||
@ -347,9 +347,9 @@ pub fn eq_to_lt(a: i32) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn eq_to_lt(a: i32) -> bool {
|
||||
a < 1
|
||||
@ -364,9 +364,9 @@ pub fn eq_to_gt(a: i32) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn eq_to_gt(a: i32) -> bool {
|
||||
a > 1
|
||||
@ -381,9 +381,9 @@ pub fn eq_to_le(a: i32) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn eq_to_le(a: i32) -> bool {
|
||||
a <= 1
|
||||
@ -398,9 +398,9 @@ pub fn eq_to_ge(a: i32) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn eq_to_ge(a: i32) -> bool {
|
||||
a >= 1
|
||||
@ -417,9 +417,9 @@ pub fn type_cast(a: u8) -> u64 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn type_cast(a: u8) -> u64 {
|
||||
let b = a as u32;
|
||||
@ -436,9 +436,9 @@ pub fn value_cast(a: u32) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn value_cast(a: u32) -> i32 {
|
||||
2 as i32
|
||||
@ -456,9 +456,9 @@ pub fn place() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn place() -> i32 {
|
||||
let mut x = 10;
|
||||
@ -478,9 +478,9 @@ pub fn rvalue() -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn rvalue() -> i32 {
|
||||
let mut x = 10;
|
||||
@ -497,9 +497,9 @@ pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 {
|
||||
s[j]
|
||||
|
@ -28,9 +28,9 @@ pub fn change_loop_body() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
@ -53,9 +53,9 @@ pub fn change_loop_condition() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_condition() {
|
||||
let mut _x = 0;
|
||||
@ -78,9 +78,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
@ -103,9 +103,9 @@ pub fn add_loop_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
@ -128,9 +128,9 @@ pub fn add_loop_label_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
@ -155,9 +155,9 @@ pub fn change_break_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
@ -180,9 +180,9 @@ pub fn add_loop_label_to_continue() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
@ -207,9 +207,9 @@ pub fn change_continue_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
@ -234,9 +234,9 @@ pub fn change_continue_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -28,9 +28,9 @@ pub fn change_loop_body() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_body() {
|
||||
let mut _x = 0;
|
||||
@ -53,9 +53,9 @@ pub fn change_loop_condition() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_loop_condition() {
|
||||
let mut _x = 0;
|
||||
@ -78,9 +78,9 @@ pub fn add_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir, typeck")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_break() {
|
||||
let mut _x = 0;
|
||||
@ -103,9 +103,9 @@ pub fn add_loop_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label() {
|
||||
let mut _x = 0;
|
||||
@ -128,9 +128,9 @@ pub fn add_loop_label_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_break() {
|
||||
let mut _x = 0;
|
||||
@ -155,9 +155,9 @@ pub fn change_break_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes,optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_break_label() {
|
||||
let mut _x = 0;
|
||||
@ -182,9 +182,9 @@ pub fn add_loop_label_to_continue() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn add_loop_label_to_continue() {
|
||||
let mut _x = 0;
|
||||
@ -209,9 +209,9 @@ pub fn change_continue_label() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_label() {
|
||||
let mut _x = 0;
|
||||
@ -236,9 +236,9 @@ pub fn change_continue_to_break() {
|
||||
}
|
||||
|
||||
#[cfg(not(any(cfail1,cfail4)))]
|
||||
#[rustc_clean(cfg="cfail2", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail2", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail5", except="hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail5", except="opt_hir_owner_nodes, optimized_mir")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
pub fn change_continue_to_break() {
|
||||
let mut _x = 0;
|
||||
|
@ -13,7 +13,7 @@ macro_rules! first_macro {
|
||||
}
|
||||
}
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck,optimized_mir,promoted_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck,optimized_mir,promoted_mir", cfg="rpass2")]
|
||||
#[inline(always)]
|
||||
pub fn changed_fn() {
|
||||
// This will cause additional hygiene to be generate,
|
||||
|
@ -8,7 +8,7 @@
|
||||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
#[rustc_clean(except = "hir_owner_nodes", cfg = "cfail2")]
|
||||
#[rustc_clean(except = "opt_hir_owner_nodes", cfg = "cfail2")]
|
||||
pub fn foo() {
|
||||
#[cfg(cfail1)]
|
||||
pub fn baz() {} // order is different...
|
||||
|
@ -30,13 +30,13 @@ mod mod3 {
|
||||
use mod2::Foo;
|
||||
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
fn in_expr() {
|
||||
Foo(0);
|
||||
}
|
||||
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
fn in_type() {
|
||||
test::<Foo>();
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ fn file_same() {
|
||||
let _ = file!();
|
||||
}
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
fn line_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
@ -34,7 +34,7 @@ fn line_different() {
|
||||
}
|
||||
}
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
fn col_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ pub mod x {
|
||||
}
|
||||
|
||||
#[cfg(cfail2)]
|
||||
#[rustc_clean(except = "hir_owner_nodes,promoted_mir", cfg = "cfail2")]
|
||||
#[rustc_clean(except = "opt_hir_owner_nodes,promoted_mir", cfg = "cfail2")]
|
||||
pub fn x() {
|
||||
println!("{}", "2");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user