Remove label
in dirty/clean annotations.
This commit is contained in:
parent
e1ff91f439
commit
da093d713a
37 changed files with 452 additions and 699 deletions
|
@ -30,7 +30,6 @@ use std::iter::FromIterator;
|
|||
use std::vec::Vec;
|
||||
|
||||
const EXCEPT: Symbol = sym::except;
|
||||
const LABEL: Symbol = sym::label;
|
||||
const CFG: Symbol = sym::cfg;
|
||||
|
||||
// Base and Extra labels to build up the labels
|
||||
|
@ -122,16 +121,6 @@ struct Assertion {
|
|||
dirty: Labels,
|
||||
}
|
||||
|
||||
impl Assertion {
|
||||
fn from_clean_labels(labels: Labels) -> Assertion {
|
||||
Assertion { clean: labels, dirty: Labels::default() }
|
||||
}
|
||||
|
||||
fn from_dirty_labels(labels: Labels) -> Assertion {
|
||||
Assertion { clean: Labels::default(), dirty: labels }
|
||||
}
|
||||
}
|
||||
|
||||
pub fn check_dirty_clean_annotations(tcx: TyCtxt<'_>) {
|
||||
if !tcx.sess.opts.debugging_opts.query_dep_graph {
|
||||
return;
|
||||
|
@ -181,15 +170,7 @@ impl DirtyCleanVisitor<'tcx> {
|
|||
// skip: not the correct `cfg=`
|
||||
return None;
|
||||
}
|
||||
let assertion = if let Some(labels) = self.labels(attr) {
|
||||
if is_clean {
|
||||
Assertion::from_clean_labels(labels)
|
||||
} else {
|
||||
Assertion::from_dirty_labels(labels)
|
||||
}
|
||||
} else {
|
||||
self.assertion_auto(item_id, attr, is_clean)
|
||||
};
|
||||
let assertion = self.assertion_auto(item_id, attr, is_clean);
|
||||
Some(assertion)
|
||||
}
|
||||
|
||||
|
@ -218,16 +199,6 @@ impl DirtyCleanVisitor<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn labels(&self, attr: &Attribute) -> Option<Labels> {
|
||||
for item in attr.meta_item_list().unwrap_or_else(Vec::new) {
|
||||
if item.has_name(LABEL) {
|
||||
let value = expect_associated_value(self.tcx, &item);
|
||||
return Some(self.resolve_labels(&item, value));
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
/// `except=` attribute value
|
||||
fn except(&self, attr: &Attribute) -> Labels {
|
||||
for item in attr.meta_item_list().unwrap_or_else(Vec::new) {
|
||||
|
@ -437,30 +408,19 @@ impl ItemLikeVisitor<'tcx> for DirtyCleanVisitor<'tcx> {
|
|||
/// Given a `#[rustc_dirty]` or `#[rustc_clean]` attribute, scan
|
||||
/// for a `cfg="foo"` attribute and check whether we have a cfg
|
||||
/// flag called `foo`.
|
||||
///
|
||||
/// Also make sure that the `label` and `except` fields do not
|
||||
/// both exist.
|
||||
fn check_config(tcx: TyCtxt<'_>, attr: &Attribute) -> bool {
|
||||
debug!("check_config(attr={:?})", attr);
|
||||
let config = &tcx.sess.parse_sess.config;
|
||||
debug!("check_config: config={:?}", config);
|
||||
let (mut cfg, mut except, mut label) = (None, false, false);
|
||||
let mut cfg = None;
|
||||
for item in attr.meta_item_list().unwrap_or_else(Vec::new) {
|
||||
if item.has_name(CFG) {
|
||||
let value = expect_associated_value(tcx, &item);
|
||||
debug!("check_config: searching for cfg {:?}", value);
|
||||
cfg = Some(config.contains(&(value, None)));
|
||||
} else if !item.has_name(EXCEPT) {
|
||||
tcx.sess.span_err(attr.span, &format!("unknown item `{}`", item.name_or_empty()));
|
||||
}
|
||||
if item.has_name(LABEL) {
|
||||
label = true;
|
||||
}
|
||||
if item.has_name(EXCEPT) {
|
||||
except = true;
|
||||
}
|
||||
}
|
||||
|
||||
if label && except {
|
||||
tcx.sess.span_fatal(attr.span, "must specify only one of: `label`, `except`");
|
||||
}
|
||||
|
||||
match cfg {
|
||||
|
|
|
@ -24,7 +24,7 @@ extern crate point;
|
|||
pub mod fn_calls_methods_in_same_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
@ -35,7 +35,7 @@ pub mod fn_calls_methods_in_same_impl {
|
|||
pub mod fn_calls_free_fn {
|
||||
use point::{self, Point};
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
point::distance_squared(&x);
|
||||
|
@ -46,7 +46,7 @@ pub mod fn_calls_free_fn {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn call_function0() {
|
||||
a::function0(77);
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn call_function1() {
|
||||
a::function1(77);
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ pub mod point {
|
|||
pub mod fn_with_type_in_sig {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn boop(p: Option<&Point>) -> f32 {
|
||||
p.map(|p| p.total()).unwrap_or(0.0)
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ pub mod fn_with_type_in_sig {
|
|||
pub mod call_fn_with_type_in_sig {
|
||||
use fn_with_type_in_sig;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
pub fn bip() -> f32 {
|
||||
fn_with_type_in_sig::boop(None)
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ pub mod call_fn_with_type_in_sig {
|
|||
pub mod fn_with_type_in_body {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
pub fn boop() -> f32 {
|
||||
Point::origin().total()
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ pub mod fn_with_type_in_body {
|
|||
pub mod call_fn_with_type_in_body {
|
||||
use fn_with_type_in_body;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn bip() -> f32 {
|
||||
fn_with_type_in_body::boop()
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ pub mod call_fn_with_type_in_body {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn make_origin(p: Point) -> Point {
|
||||
Point { ..p }
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,fn_sig,optimized_mir", cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ pub mod point {
|
|||
pub mod fn_calls_methods_in_same_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
@ -62,7 +62,7 @@ pub mod fn_calls_methods_in_same_impl {
|
|||
pub mod fn_calls_methods_in_another_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let mut x = Point { x: 2.0, y: 2.0 };
|
||||
x.translate(3.0, 3.0);
|
||||
|
@ -73,7 +73,7 @@ pub mod fn_calls_methods_in_another_impl {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ extern crate point;
|
|||
pub mod fn_calls_methods_in_same_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
@ -34,7 +34,7 @@ pub mod fn_calls_methods_in_same_impl {
|
|||
pub mod fn_calls_methods_in_another_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let mut x = Point { x: 2.0, y: 2.0 };
|
||||
x.translate(3.0, 3.0);
|
||||
|
@ -45,7 +45,7 @@ pub mod fn_calls_methods_in_another_impl {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ pub mod point {
|
|||
pub mod fn_calls_methods_in_same_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
@ -62,7 +62,7 @@ pub mod fn_calls_methods_in_same_impl {
|
|||
pub mod fn_calls_methods_in_another_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let mut x = Point { x: 2.0, y: 2.0 };
|
||||
x.translate(3.0, 3.0);
|
||||
|
@ -73,7 +73,7 @@ pub mod fn_calls_methods_in_another_impl {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ extern crate point;
|
|||
pub mod fn_calls_methods_in_same_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let x = Point { x: 2.0, y: 2.0 };
|
||||
x.distance_from_origin();
|
||||
|
@ -35,7 +35,7 @@ pub mod fn_calls_methods_in_same_impl {
|
|||
pub mod fn_calls_methods_in_another_impl {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn dirty() {
|
||||
let mut x = Point { x: 2.0, y: 2.0 };
|
||||
x.translate(3.0, 3.0);
|
||||
|
@ -46,7 +46,7 @@ pub mod fn_calls_methods_in_another_impl {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ pub mod point {
|
|||
pub mod fn_calls_changed_method {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let p = Point { x: 2.0, y: 2.0 };
|
||||
p.distance_from_origin();
|
||||
|
@ -53,7 +53,7 @@ pub mod fn_calls_changed_method {
|
|||
pub mod fn_calls_another_method {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let p = Point { x: 2.0, y: 2.0 };
|
||||
p.x();
|
||||
|
@ -64,7 +64,7 @@ pub mod fn_calls_another_method {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ pub mod point {
|
|||
pub mod fn_calls_changed_method {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let p = Point { x: 2.0, y: 2.0 };
|
||||
p.distance_from_point(None);
|
||||
|
@ -63,7 +63,7 @@ pub mod fn_calls_changed_method {
|
|||
pub mod fn_calls_another_method {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn check() {
|
||||
let p = Point { x: 2.0, y: 2.0 };
|
||||
p.x();
|
||||
|
@ -74,7 +74,7 @@ pub mod fn_calls_another_method {
|
|||
pub mod fn_make_struct {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn make_origin() -> Point {
|
||||
Point { x: 2.0, y: 2.0 }
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ pub mod fn_make_struct {
|
|||
pub mod fn_read_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn get_x(p: Point) -> f32 {
|
||||
p.x
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ pub mod fn_read_field {
|
|||
pub mod fn_write_field {
|
||||
use point::Point;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn inc_x(p: &mut Point) {
|
||||
p.x += 1.0;
|
||||
}
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
|
||||
// Check that reordering otherwise identical items is not considered a
|
||||
// change at all.
|
||||
#[rustc_clean(label = "hir_crate", cfg = "rpass2")]
|
||||
#[rustc_clean(cfg = "rpass2")]
|
||||
// But removing an item, naturally, is.
|
||||
#[rustc_dirty(label = "hir_crate", cfg = "rpass3")]
|
||||
#[rustc_clean(except="hir_crate", cfg = "rpass3")]
|
||||
#[cfg(rpass1)]
|
||||
pub struct X {
|
||||
pub x: u32,
|
||||
|
|
|
@ -25,15 +25,21 @@ mod x {
|
|||
mod y {
|
||||
use x;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_dirty(except="typeck", cfg="cfail2")]
|
||||
pub fn y() {
|
||||
//[cfail2]~^ ERROR `typeck(y)` should be clean but is not
|
||||
//[cfail2]~^ ERROR `hir_owner(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `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
|
||||
//[cfail2]~| ERROR `fn_sig(y)` should be dirty but is not
|
||||
//[cfail2]~| ERROR `typeck(y)` should be clean but is not
|
||||
x::x();
|
||||
}
|
||||
}
|
||||
|
||||
mod z {
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
pub fn z() {
|
||||
//[cfail2]~^ ERROR `typeck(z)` should be dirty but is not
|
||||
}
|
||||
|
|
|
@ -55,12 +55,8 @@ mod change_callee_indirectly_function {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::callee2 as callee;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
|
||||
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub fn change_callee_indirectly_function() {
|
||||
callee(1, 2)
|
||||
}
|
||||
|
|
|
@ -20,10 +20,8 @@ fn change_simple_index(slice: &[u32]) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn change_simple_index(slice: &[u32]) -> u32 {
|
||||
slice[4]
|
||||
}
|
||||
|
@ -37,10 +35,8 @@ fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn change_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[2..5]
|
||||
}
|
||||
|
@ -54,10 +50,8 @@ fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn change_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
}
|
||||
|
@ -71,10 +65,8 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn add_lower_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..4]
|
||||
}
|
||||
|
@ -88,10 +80,8 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn add_upper_bound(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..7]
|
||||
}
|
||||
|
@ -105,10 +95,8 @@ fn change_mutability(slice: &mut [u32]) -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn change_mutability(slice: &mut [u32]) -> u32 {
|
||||
(&slice[3..5])[0]
|
||||
}
|
||||
|
@ -122,10 +110,8 @@ fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] {
|
||||
&slice[3..=7]
|
||||
}
|
||||
|
|
|
@ -24,16 +24,8 @@
|
|||
pub struct LayoutPacked;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[repr(packed)]
|
||||
pub struct LayoutPacked;
|
||||
|
||||
|
@ -41,16 +33,8 @@ pub struct LayoutPacked;
|
|||
struct LayoutC;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[repr(C)]
|
||||
struct LayoutC;
|
||||
|
||||
|
@ -61,16 +45,8 @@ struct LayoutC;
|
|||
struct TupleStructFieldType(i32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
// 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.
|
||||
struct TupleStructFieldType(
|
||||
|
@ -84,16 +60,8 @@ struct TupleStructFieldType(
|
|||
struct TupleStructAddField(i32);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct TupleStructAddField(
|
||||
i32,
|
||||
u32
|
||||
|
@ -106,16 +74,8 @@ struct TupleStructAddField(
|
|||
struct TupleStructFieldVisibility(char);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct TupleStructFieldVisibility(pub char);
|
||||
|
||||
|
||||
|
@ -125,16 +85,8 @@ struct TupleStructFieldVisibility(pub char);
|
|||
struct RecordStructFieldType { x: f32 }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
// 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.
|
||||
struct RecordStructFieldType {
|
||||
|
@ -148,16 +100,8 @@ struct RecordStructFieldType {
|
|||
struct RecordStructFieldName { x: f32 }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct RecordStructFieldName { y: f32 }
|
||||
|
||||
|
||||
|
@ -167,16 +111,8 @@ struct RecordStructFieldName { y: f32 }
|
|||
struct RecordStructAddField { x: f32 }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct RecordStructAddField {
|
||||
x: f32,
|
||||
y: () }
|
||||
|
@ -188,16 +124,8 @@ struct RecordStructAddField {
|
|||
struct RecordStructFieldVisibility { x: f32 }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct RecordStructFieldVisibility {
|
||||
pub x: f32
|
||||
}
|
||||
|
@ -209,16 +137,8 @@ struct RecordStructFieldVisibility {
|
|||
struct AddLifetimeParameter<'a>(&'a f32, &'a f64);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of,generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddLifetimeParameter<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
|
||||
|
@ -228,16 +148,8 @@ struct AddLifetimeParameter<'a, 'b>(&'a f32, &'b f64);
|
|||
struct AddLifetimeParameterBound<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddLifetimeParameterBound<'a, 'b: 'a>(
|
||||
&'a f32,
|
||||
&'b f64
|
||||
|
@ -247,16 +159,8 @@ struct AddLifetimeParameterBound<'a, 'b: 'a>(
|
|||
struct AddLifetimeParameterBoundWhereClause<'a, 'b>(&'a f32, &'b f64);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddLifetimeParameterBoundWhereClause<'a, 'b>(
|
||||
&'a f32,
|
||||
&'b f64)
|
||||
|
@ -269,16 +173,8 @@ struct AddLifetimeParameterBoundWhereClause<'a, 'b>(
|
|||
struct AddTypeParameter<T1>(T1, T1);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="type_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,type_of,generics_of,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddTypeParameter<T1, T2>(
|
||||
// The field contains the parent's Generics, so it's dirty even though its
|
||||
// type hasn't changed.
|
||||
|
@ -293,16 +189,8 @@ struct AddTypeParameter<T1, T2>(
|
|||
struct AddTypeParameterBound<T>(T);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddTypeParameterBound<T: Send>(
|
||||
T
|
||||
);
|
||||
|
@ -312,16 +200,8 @@ struct AddTypeParameterBound<T: Send>(
|
|||
struct AddTypeParameterBoundWhereClause<T>(T);
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct AddTypeParameterBoundWhereClause<T>(
|
||||
T
|
||||
) where T: Sync;
|
||||
|
@ -332,16 +212,8 @@ struct AddTypeParameterBoundWhereClause<T>(
|
|||
// fingerprint is stable (i.e., that there are no random influences like memory
|
||||
// addresses taken into account by the hashing algorithm).
|
||||
// Note: there is no #[cfg(...)], so this is ALWAYS compiled
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub struct EmptyStruct;
|
||||
|
||||
|
||||
|
@ -351,16 +223,8 @@ pub struct EmptyStruct;
|
|||
struct Visibility;
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub struct Visibility;
|
||||
|
||||
struct ReferencedType1;
|
||||
|
@ -373,16 +237,8 @@ mod tuple_struct_change_field_type_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct TupleStruct(
|
||||
FieldType
|
||||
);
|
||||
|
@ -396,16 +252,8 @@ mod record_struct_change_field_type_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedType2 as FieldType;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct RecordStruct {
|
||||
_x: FieldType
|
||||
}
|
||||
|
@ -424,16 +272,8 @@ mod change_trait_bound_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct Struct<T: Trait>(T);
|
||||
}
|
||||
|
||||
|
@ -444,15 +284,7 @@ mod change_trait_bound_indirectly_in_where_clause {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait2 as Trait;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail2")]
|
||||
#[rustc_dirty(label="predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(label="type_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="generics_of", cfg="cfail3")]
|
||||
#[rustc_clean(label="predicates_of", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,predicates_of", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
struct Struct<T>(T) where T : Trait;
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
trait TraitVisibility { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub trait TraitVisibility { }
|
||||
|
||||
|
||||
|
@ -36,8 +36,8 @@ pub trait TraitVisibility { }
|
|||
trait TraitUnsafety { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
unsafe trait TraitUnsafety { }
|
||||
|
||||
|
||||
|
@ -48,8 +48,8 @@ trait TraitAddMethod {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub trait TraitAddMethod {
|
||||
fn method();
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ trait TraitChangeMethodName {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeMethodName {
|
||||
fn methodChanged();
|
||||
}
|
||||
|
@ -78,11 +78,11 @@ trait TraitAddReturnType {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddReturnType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method() -> u32;
|
||||
}
|
||||
|
||||
|
@ -95,11 +95,11 @@ trait TraitChangeReturnType {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeReturnType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method() -> u64;
|
||||
}
|
||||
|
||||
|
@ -112,11 +112,11 @@ trait TraitAddParameterToMethod {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddParameterToMethod {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(a: u32);
|
||||
}
|
||||
|
||||
|
@ -130,18 +130,16 @@ trait TraitChangeMethodParameterName {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeMethodParameterName {
|
||||
// FIXME(#38501) This should preferably always be clean.
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(b: u32);
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn with_default(y: i32) {}
|
||||
}
|
||||
|
||||
|
@ -154,11 +152,11 @@ trait TraitChangeMethodParameterType {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeMethodParameterType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(a: i64);
|
||||
}
|
||||
|
||||
|
@ -171,11 +169,11 @@ trait TraitChangeMethodParameterTypeRef {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeMethodParameterTypeRef {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(a: &mut i32);
|
||||
}
|
||||
|
||||
|
@ -188,11 +186,11 @@ trait TraitChangeMethodParametersOrder {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeMethodParametersOrder {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(b: i64, a: i32);
|
||||
}
|
||||
|
||||
|
@ -205,11 +203,11 @@ trait TraitAddMethodAutoImplementation {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddMethodAutoImplementation {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method() { }
|
||||
}
|
||||
|
||||
|
@ -223,8 +221,8 @@ trait TraitChangeOrderOfMethods {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeOrderOfMethods {
|
||||
fn method1();
|
||||
fn method0();
|
||||
|
@ -239,11 +237,11 @@ trait TraitChangeModeSelfRefToMut {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeModeSelfRefToMut {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(&mut self);
|
||||
}
|
||||
|
||||
|
@ -255,13 +253,11 @@ trait TraitChangeModeSelfOwnToMut: Sized {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeModeSelfOwnToMut: Sized {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(mut self) {}
|
||||
}
|
||||
|
||||
|
@ -273,11 +269,11 @@ trait TraitChangeModeSelfOwnToRef {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeModeSelfOwnToRef {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(&self);
|
||||
}
|
||||
|
||||
|
@ -290,11 +286,11 @@ trait TraitAddUnsafeModifier {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddUnsafeModifier {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
unsafe fn method();
|
||||
}
|
||||
|
||||
|
@ -307,11 +303,11 @@ trait TraitAddExternModifier {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddExternModifier {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
extern "C" fn method();
|
||||
}
|
||||
|
||||
|
@ -324,11 +320,11 @@ trait TraitChangeExternCToRustIntrinsic {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeExternCToRustIntrinsic {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
extern "stdcall" fn method();
|
||||
}
|
||||
|
||||
|
@ -341,11 +337,11 @@ trait TraitAddTypeParameterToMethod {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTypeParameterToMethod {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T>();
|
||||
}
|
||||
|
||||
|
@ -358,11 +354,11 @@ trait TraitAddLifetimeParameterToMethod {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeParameterToMethod {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<'a>();
|
||||
}
|
||||
|
||||
|
@ -379,11 +375,11 @@ trait TraitAddTraitBoundToMethodTypeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitBoundToMethodTypeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T: ReferencedTrait0>();
|
||||
}
|
||||
|
||||
|
@ -396,11 +392,11 @@ trait TraitAddBuiltinBoundToMethodTypeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltinBoundToMethodTypeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T: Sized>();
|
||||
}
|
||||
|
||||
|
@ -413,11 +409,11 @@ trait TraitAddLifetimeBoundToMethodLifetimeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToMethodLifetimeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<'a, 'b: 'a>(a: &'a u32, b: &'b u32);
|
||||
}
|
||||
|
||||
|
@ -430,11 +426,11 @@ trait TraitAddSecondTraitBoundToMethodTypeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondTraitBoundToMethodTypeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T: ReferencedTrait0 + ReferencedTrait1>();
|
||||
}
|
||||
|
||||
|
@ -447,11 +443,11 @@ trait TraitAddSecondBuiltinBoundToMethodTypeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondBuiltinBoundToMethodTypeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T: Sized + Sync>();
|
||||
}
|
||||
|
||||
|
@ -464,11 +460,11 @@ trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<'a, 'b, 'c: 'a + 'b>(a: &'a u32, b: &'b u32, c: &'c u32);
|
||||
}
|
||||
|
||||
|
@ -478,14 +474,14 @@ trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter {
|
|||
#[cfg(cfail1)]
|
||||
trait TraitAddAssociatedType {
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method();
|
||||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddAssociatedType {
|
||||
type Associated;
|
||||
|
||||
|
@ -506,11 +502,11 @@ trait TraitAddTraitBoundToAssociatedType {
|
|||
// Apparently the type bound contributes to the predicates of the trait, but
|
||||
// does not change the associated item itself.
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitBoundToAssociatedType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type Associated: ReferencedTrait0;
|
||||
|
||||
fn method();
|
||||
|
@ -527,11 +523,11 @@ trait TraitAddLifetimeBoundToAssociatedType<'a> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToAssociatedType<'a> {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type Associated: 'a;
|
||||
|
||||
fn method();
|
||||
|
@ -548,11 +544,11 @@ trait TraitAddDefaultToAssociatedType {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddDefaultToAssociatedType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
type Associated = ReferenceType0;
|
||||
|
||||
fn method();
|
||||
|
@ -567,8 +563,8 @@ trait TraitAddAssociatedConstant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddAssociatedConstant {
|
||||
const Value: u32;
|
||||
|
||||
|
@ -586,15 +582,15 @@ trait TraitAddInitializerToAssociatedConstant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddInitializerToAssociatedConstant {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const Value: u32 = 1;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method();
|
||||
}
|
||||
|
||||
|
@ -609,15 +605,15 @@ trait TraitChangeTypeOfAssociatedConstant {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeTypeOfAssociatedConstant {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
const Value: f64;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method();
|
||||
}
|
||||
|
||||
|
@ -628,8 +624,8 @@ trait TraitChangeTypeOfAssociatedConstant {
|
|||
trait TraitAddSuperTrait { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSuperTrait : ReferencedTrait0 { }
|
||||
|
||||
|
||||
|
@ -639,8 +635,8 @@ trait TraitAddSuperTrait : ReferencedTrait0 { }
|
|||
trait TraitAddBuiltiBound { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltiBound : Send { }
|
||||
|
||||
|
||||
|
@ -650,8 +646,8 @@ trait TraitAddBuiltiBound : Send { }
|
|||
trait TraitAddStaticLifetimeBound { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddStaticLifetimeBound : 'static { }
|
||||
|
||||
|
||||
|
@ -661,16 +657,16 @@ trait TraitAddStaticLifetimeBound : 'static { }
|
|||
trait TraitAddTraitAsSecondBound : ReferencedTrait0 { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitAsSecondBound : ReferencedTrait0 + ReferencedTrait1 { }
|
||||
|
||||
#[cfg(cfail1)]
|
||||
trait TraitAddTraitAsSecondBoundFromBuiltin : Send { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitAsSecondBoundFromBuiltin : Send + ReferencedTrait0 { }
|
||||
|
||||
|
||||
|
@ -680,16 +676,16 @@ trait TraitAddTraitAsSecondBoundFromBuiltin : Send + ReferencedTrait0 { }
|
|||
trait TraitAddBuiltinBoundAsSecondBound : ReferencedTrait0 { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltinBoundAsSecondBound : ReferencedTrait0 + Send { }
|
||||
|
||||
#[cfg(cfail1)]
|
||||
trait TraitAddBuiltinBoundAsSecondBoundFromBuiltin : Send { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltinBoundAsSecondBoundFromBuiltin: Send + Copy { }
|
||||
|
||||
|
||||
|
@ -699,16 +695,16 @@ trait TraitAddBuiltinBoundAsSecondBoundFromBuiltin: Send + Copy { }
|
|||
trait TraitAddStaticBoundAsSecondBound : ReferencedTrait0 { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddStaticBoundAsSecondBound : ReferencedTrait0 + 'static { }
|
||||
|
||||
#[cfg(cfail1)]
|
||||
trait TraitAddStaticBoundAsSecondBoundFromBuiltin : Send { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddStaticBoundAsSecondBoundFromBuiltin : Send + 'static { }
|
||||
|
||||
|
||||
|
@ -718,8 +714,8 @@ trait TraitAddStaticBoundAsSecondBoundFromBuiltin : Send + 'static { }
|
|||
trait TraitAddTypeParameterToTrait { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTypeParameterToTrait<T> { }
|
||||
|
||||
|
||||
|
@ -729,8 +725,8 @@ trait TraitAddTypeParameterToTrait<T> { }
|
|||
trait TraitAddLifetimeParameterToTrait { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeParameterToTrait<'a> { }
|
||||
|
||||
|
||||
|
@ -740,8 +736,8 @@ trait TraitAddLifetimeParameterToTrait<'a> { }
|
|||
trait TraitAddTraitBoundToTypeParameterOfTrait<T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0> { }
|
||||
|
||||
|
||||
|
@ -751,8 +747,8 @@ trait TraitAddTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0> { }
|
|||
trait TraitAddLifetimeBoundToTypeParameterOfTrait<'a, T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToTypeParameterOfTrait<'a, T: 'a> { }
|
||||
|
||||
|
||||
|
@ -762,8 +758,8 @@ trait TraitAddLifetimeBoundToTypeParameterOfTrait<'a, T: 'a> { }
|
|||
trait TraitAddLifetimeBoundToLifetimeParameterOfTrait<'a, 'b> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToLifetimeParameterOfTrait<'a: 'b, 'b> { }
|
||||
|
||||
|
||||
|
@ -773,8 +769,8 @@ trait TraitAddLifetimeBoundToLifetimeParameterOfTrait<'a: 'b, 'b> { }
|
|||
trait TraitAddBuiltinBoundToTypeParameterOfTrait<T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltinBoundToTypeParameterOfTrait<T: Send> { }
|
||||
|
||||
|
||||
|
@ -784,8 +780,8 @@ trait TraitAddBuiltinBoundToTypeParameterOfTrait<T: Send> { }
|
|||
trait TraitAddSecondTypeParameterToTrait<T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondTypeParameterToTrait<T, S> { }
|
||||
|
||||
|
||||
|
@ -795,8 +791,8 @@ trait TraitAddSecondTypeParameterToTrait<T, S> { }
|
|||
trait TraitAddSecondLifetimeParameterToTrait<'a> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeParameterToTrait<'a, 'b> { }
|
||||
|
||||
|
||||
|
@ -806,8 +802,8 @@ trait TraitAddSecondLifetimeParameterToTrait<'a, 'b> { }
|
|||
trait TraitAddSecondTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0 + ReferencedTrait1> { }
|
||||
|
||||
|
||||
|
@ -817,8 +813,8 @@ trait TraitAddSecondTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0 + Refer
|
|||
trait TraitAddSecondLifetimeBoundToTypeParameterOfTrait<'a, 'b, T: 'a> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeBoundToTypeParameterOfTrait<'a, 'b, T: 'a + 'b> { }
|
||||
|
||||
|
||||
|
@ -828,8 +824,8 @@ trait TraitAddSecondLifetimeBoundToTypeParameterOfTrait<'a, 'b, T: 'a + 'b> { }
|
|||
trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTrait<'a: 'b, 'b, 'c> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTrait<'a: 'b + 'c, 'b, 'c> { }
|
||||
|
||||
|
||||
|
@ -839,8 +835,8 @@ trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTrait<'a: 'b + 'c, 'b, 'c>
|
|||
trait TraitAddSecondBuiltinBoundToTypeParameterOfTrait<T: Send> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondBuiltinBoundToTypeParameterOfTrait<T: Send + Sync> { }
|
||||
|
||||
|
||||
|
@ -855,8 +851,8 @@ struct ReferenceType1 {}
|
|||
trait TraitAddTraitBoundToTypeParameterOfTraitWhere<T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddTraitBoundToTypeParameterOfTraitWhere<T> where T: ReferencedTrait0 { }
|
||||
|
||||
|
||||
|
@ -866,8 +862,8 @@ trait TraitAddTraitBoundToTypeParameterOfTraitWhere<T> where T: ReferencedTrait0
|
|||
trait TraitAddLifetimeBoundToTypeParameterOfTraitWhere<'a, T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToTypeParameterOfTraitWhere<'a, T> where T: 'a { }
|
||||
|
||||
|
||||
|
@ -877,8 +873,8 @@ trait TraitAddLifetimeBoundToTypeParameterOfTraitWhere<'a, T> where T: 'a { }
|
|||
trait TraitAddLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b> where 'a: 'b { }
|
||||
|
||||
|
||||
|
@ -888,8 +884,8 @@ trait TraitAddLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b> where 'a: 'b
|
|||
trait TraitAddBuiltinBoundToTypeParameterOfTraitWhere<T> { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send { }
|
||||
|
||||
|
||||
|
@ -899,8 +895,8 @@ trait TraitAddBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send { }
|
|||
trait TraitAddSecondTraitBoundToTypeParameterOfTraitWhere<T> where T: ReferencedTrait0 { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondTraitBoundToTypeParameterOfTraitWhere<T>
|
||||
where T: ReferencedTrait0 + ReferencedTrait1 { }
|
||||
|
||||
|
@ -911,8 +907,8 @@ trait TraitAddSecondTraitBoundToTypeParameterOfTraitWhere<T>
|
|||
trait TraitAddSecondLifetimeBoundToTypeParameterOfTraitWhere<'a, 'b, T> where T: 'a { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeBoundToTypeParameterOfTraitWhere<'a, 'b, T> where T: 'a + 'b { }
|
||||
|
||||
|
||||
|
@ -922,8 +918,8 @@ trait TraitAddSecondLifetimeBoundToTypeParameterOfTraitWhere<'a, 'b, T> where T:
|
|||
trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b, 'c> where 'a: 'b { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b, 'c> where 'a: 'b + 'c { }
|
||||
|
||||
|
||||
|
@ -933,8 +929,8 @@ trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b, 'c> whe
|
|||
trait TraitAddSecondBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send { }
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitAddSecondBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send + Sync { }
|
||||
|
||||
|
||||
|
@ -945,11 +941,11 @@ mod change_return_type_of_method_indirectly_use {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferenceType1 as ReturnType;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeReturnType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method() -> ReturnType;
|
||||
}
|
||||
}
|
||||
|
@ -963,11 +959,11 @@ mod change_method_parameter_type_indirectly_by_use {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferenceType1 as ArgType;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeArgType {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method(a: ArgType);
|
||||
}
|
||||
}
|
||||
|
@ -981,11 +977,11 @@ mod change_method_parameter_type_bound_indirectly_by_use {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait1 as Bound;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeBoundOfMethodTypeParameter {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T: Bound>(a: T);
|
||||
}
|
||||
}
|
||||
|
@ -1000,11 +996,11 @@ mod change_method_parameter_type_bound_indirectly_by_use_where {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait1 as Bound;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeBoundOfMethodTypeParameterWhere {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method<T>(a: T) where T: Bound;
|
||||
}
|
||||
}
|
||||
|
@ -1018,8 +1014,8 @@ mod change_method_type_parameter_bound_indirectly {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait1 as Bound;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeTraitBound<T: Bound> {
|
||||
fn method(a: T);
|
||||
}
|
||||
|
@ -1035,8 +1031,8 @@ mod change_method_type_parameter_bound_indirectly_where {
|
|||
#[cfg(not(cfail1))]
|
||||
use super::ReferencedTrait1 as Bound;
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
trait TraitChangeTraitBoundWhere<T> where T: Bound {
|
||||
fn method(a: T);
|
||||
}
|
||||
|
|
|
@ -30,18 +30,18 @@ impl ChangeMethodNameTrait for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub trait ChangeMethodNameTrait {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name2();
|
||||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeMethodNameTrait for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name2() { }
|
||||
}
|
||||
|
||||
|
@ -59,13 +59,11 @@ impl ChangeMethodBodyTrait for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeMethodBodyTrait for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name() {
|
||||
()
|
||||
}
|
||||
|
@ -86,13 +84,11 @@ impl ChangeMethodBodyTraitInlined for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeMethodBodyTraitInlined for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
fn method_name() {
|
||||
panic!()
|
||||
|
@ -117,11 +113,11 @@ pub trait ChangeMethodSelfnessTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeMethodSelfnessTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name(&self) {
|
||||
()
|
||||
}
|
||||
|
@ -145,11 +141,11 @@ pub trait RemoveMethodSelfnessTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl RemoveMethodSelfnessTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name() {}
|
||||
}
|
||||
|
||||
|
@ -171,11 +167,11 @@ pub trait ChangeMethodSelfmutnessTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeMethodSelfmutnessTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name(&mut self) {}
|
||||
}
|
||||
|
||||
|
@ -197,8 +193,8 @@ pub trait ChangeItemKindTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeItemKindTrait for Foo {
|
||||
type name = ();
|
||||
}
|
||||
|
@ -223,8 +219,8 @@ pub trait RemoveItemTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl RemoveItemTrait for Foo {
|
||||
type TypeName = ();
|
||||
}
|
||||
|
@ -248,8 +244,8 @@ pub trait AddItemTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl AddItemTrait for Foo {
|
||||
type TypeName = ();
|
||||
fn method_name() { }
|
||||
|
@ -268,17 +264,17 @@ impl ChangeHasValueTrait for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
pub trait ChangeHasValueTrait {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name() { }
|
||||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeHasValueTrait for Foo {
|
||||
fn method_name() { }
|
||||
}
|
||||
|
@ -295,11 +291,11 @@ impl AddDefaultTrait for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl AddDefaultTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
default fn method_name() { }
|
||||
}
|
||||
|
||||
|
@ -321,11 +317,11 @@ pub trait AddArgumentTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl AddArgumentTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name(&self, _x: u32) { }
|
||||
}
|
||||
|
||||
|
@ -347,11 +343,11 @@ pub trait ChangeArgumentTypeTrait {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeArgumentTypeTrait for Foo {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn method_name(&self, _x: char) { }
|
||||
}
|
||||
|
||||
|
@ -370,11 +366,11 @@ impl AddTypeParameterToImpl<u32> for Bar<u32> {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T> AddTypeParameterToImpl<T> for Bar<T> {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn id(t: T) -> T { t }
|
||||
}
|
||||
|
||||
|
@ -391,11 +387,11 @@ impl ChangeSelfTypeOfImpl for u32 {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl ChangeSelfTypeOfImpl for u64 {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn id(self) -> Self { self }
|
||||
}
|
||||
|
||||
|
@ -412,11 +408,11 @@ impl<T> AddLifetimeBoundToImplParameter for T {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T: 'static> AddLifetimeBoundToImplParameter for T {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn id(self) -> Self { self }
|
||||
}
|
||||
|
||||
|
@ -433,11 +429,11 @@ impl<T> AddTraitBoundToImplParameter for T {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl<T: Clone> AddTraitBoundToImplParameter for T {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
fn id(self) -> Self { self }
|
||||
}
|
||||
|
||||
|
@ -454,11 +450,11 @@ impl AddNoMangleToMethod for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl AddNoMangleToMethod for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[no_mangle]
|
||||
fn add_no_mangle_to_method(&self) { }
|
||||
}
|
||||
|
@ -475,11 +471,11 @@ impl MakeMethodInline for Foo {
|
|||
}
|
||||
|
||||
#[cfg(not(cfail1))]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
impl MakeMethodInline for Foo {
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail3")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail3")]
|
||||
#[inline]
|
||||
fn make_method_inline(&self) -> u8 { 0 }
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ mod x {
|
|||
mod y {
|
||||
use x;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn yyyy() {
|
||||
x::xxxx();
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ mod y {
|
|||
mod z {
|
||||
use y;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn z() {
|
||||
y::yyyy();
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ macro_rules! first_macro {
|
|||
}
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck,optimized_mir,promoted_mir", cfg="rpass2")]
|
||||
#[inline(always)]
|
||||
pub fn changed_fn() {
|
||||
// This will cause additional hygiene to be generate,
|
||||
|
|
|
@ -26,16 +26,12 @@ mod mod3 {
|
|||
#[cfg(rpass2)]
|
||||
use Trait2;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
fn bar() {
|
||||
().method();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
fn baz() {
|
||||
22; // no method call, traits in scope don't matter
|
||||
}
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
#![crate_type = "rlib"]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
#[rustc_clean(label = "hir_owner", cfg = "cfail2")]
|
||||
#[rustc_dirty(label = "hir_owner_nodes", cfg = "cfail2")]
|
||||
#[rustc_clean(except = "hir_owner_nodes", cfg = "cfail2")]
|
||||
pub fn foo() {
|
||||
#[cfg(cfail1)]
|
||||
pub fn baz() {} // order is different...
|
||||
|
||||
#[rustc_clean(label = "hir_owner", cfg = "cfail2")]
|
||||
#[rustc_clean(label = "hir_owner_nodes", cfg = "cfail2")]
|
||||
#[rustc_clean(cfg = "cfail2")]
|
||||
pub fn bar() {} // but that doesn't matter.
|
||||
|
||||
#[cfg(cfail2)]
|
||||
|
|
|
@ -29,18 +29,14 @@ mod mod3 {
|
|||
#[cfg(rpass3)]
|
||||
use mod2::Foo;
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass3")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
fn in_expr() {
|
||||
Foo(0);
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass3")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass3")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,typeck", cfg="rpass3")]
|
||||
fn in_type() {
|
||||
test::<Foo>();
|
||||
}
|
||||
|
|
|
@ -12,15 +12,15 @@
|
|||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="typeck,optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: a::X = 22;
|
||||
x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck", cfg="rpass3")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_Y() {
|
||||
let x: a::Y = 'c';
|
||||
}
|
||||
|
|
|
@ -7,26 +7,22 @@
|
|||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
fn line_same() {
|
||||
let _ = line!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
fn col_same() {
|
||||
let _ = column!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
fn file_same() {
|
||||
let _ = file!();
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
fn line_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
|
@ -38,8 +34,7 @@ fn line_different() {
|
|||
}
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
fn col_different() {
|
||||
#[cfg(rpass1)]
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub struct SomeType {
|
||||
pub x: u32,
|
||||
pub y: i64,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#[rustc_clean(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub struct SomeOtherType {
|
||||
pub a: i32,
|
||||
pub b: u64,
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
pub fn main() {}
|
||||
|
||||
#[cfg(rpass2)]
|
||||
#[rustc_dirty(label="hir_owner", cfg="rpass2")]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
pub fn main() {}
|
||||
|
|
|
@ -13,7 +13,7 @@ pub fn main() {
|
|||
}
|
||||
|
||||
#[cfg(rpass2)]
|
||||
#[rustc_dirty(label="optimized_mir", cfg="rpass2")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
||||
pub fn main() {
|
||||
let _ = 0u8 + 1;
|
||||
}
|
||||
|
|
|
@ -18,8 +18,7 @@ pub mod x {
|
|||
}
|
||||
|
||||
#[cfg(cfail2)]
|
||||
#[rustc_dirty(label="hir_owner_nodes", cfg="cfail2")]
|
||||
#[rustc_dirty(label="optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner,hir_owner_nodes,optimized_mir,promoted_mir", cfg="cfail2")]
|
||||
pub fn x() {
|
||||
println!("{}", "2");
|
||||
}
|
||||
|
@ -28,8 +27,7 @@ pub mod x {
|
|||
pub mod y {
|
||||
use x;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(label="optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn y() {
|
||||
x::x();
|
||||
}
|
||||
|
@ -38,8 +36,7 @@ pub mod y {
|
|||
pub mod z {
|
||||
use y;
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(label="optimized_mir", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn z() {
|
||||
y::y();
|
||||
}
|
||||
|
|
|
@ -21,17 +21,17 @@ pub struct Y {
|
|||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="fn_sig,typeck", cfg="rpass2")]
|
||||
pub fn use_X(x: X) -> u32 {
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ pub struct Y {
|
|||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
//[cfail2]~^ ERROR struct `X` has no field named `x`
|
||||
|
@ -32,13 +32,13 @@ pub fn use_X() -> u32 {
|
|||
//[cfail2]~^ ERROR no field `x` on type `X`
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(except="typeck", cfg="cfail2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
//[cfail2]~^ ERROR no field `x` on type `X`
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -24,19 +24,19 @@ pub struct Y {
|
|||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_EmbedX(x: EmbedX) -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -8,18 +8,18 @@ extern crate a;
|
|||
|
||||
use a::*;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -24,19 +24,19 @@ pub struct Y {
|
|||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_EmbedX(x: EmbedX) -> u32 {
|
||||
let x: X = X { x: 22 };
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -25,17 +25,17 @@ pub struct Y {
|
|||
pub y: char
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck,fn_sig", cfg="rpass2")]
|
||||
pub fn use_X(x: X) -> u32 {
|
||||
x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
pub fn use_EmbedX(embed: EmbedX) -> u32 {
|
||||
embed.x.x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
pub fn use_Y() {
|
||||
let x: Y = Y { y: 'c' };
|
||||
}
|
||||
|
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_dirty(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck", cfg="rpass3")]
|
||||
#[rustc_clean(except="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: a::X = 22;
|
||||
x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="typeck", cfg="rpass2")]
|
||||
#[rustc_clean(label="typeck", cfg="rpass3")]
|
||||
#[rustc_clean(cfg="rpass2")]
|
||||
#[rustc_clean(cfg="rpass3")]
|
||||
pub fn use_Y() {
|
||||
let x: a::Y = 'c';
|
||||
}
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
|
||||
fn main() {
|
||||
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
|
||||
{
|
||||
// empty block
|
||||
}
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
|
||||
{
|
||||
// empty block
|
||||
|
@ -24,11 +24,11 @@ fn main() {
|
|||
}
|
||||
|
||||
struct _Struct {
|
||||
#[rustc_dirty(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(except="hir_owner", cfg="cfail2")]
|
||||
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
|
||||
_field1: i32,
|
||||
|
||||
#[rustc_clean(label="hir_owner", cfg="cfail2")]
|
||||
#[rustc_clean(cfg="cfail2")]
|
||||
//[cfail2]~^ ERROR found unchecked `#[rustc_dirty]` / `#[rustc_clean]` attribute
|
||||
_field2: i32,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue