| author | bors <bors@rust-lang.org> 2026-04-22 06:20:12 UTC |
| committer | bors <bors@rust-lang.org> 2026-04-22 06:20:12 UTC |
| log | cf1817bc6ecd2d14ca492247c804bad31948dd56 |
| tree | ce1e42e6bcdc62b4a6a86c6445ade2c31ffa3b7c |
| parent | 1bfcb284f7a2199ad322daa463e29e708d5bc635 |
| parent | 6fa2b1d01a0250d273b34529ce4202ea49f2a324 |
Rollup of 7 pull requests
Successful merges:
- rust-lang/rust#155589 (Forbid `check-pass`/`build-pass`/`run-pass` directives in incremental tests)
- rust-lang/rust#155610 (Add missing `dyn` keyword to `trait_alias` page of the Unstable Book)
- rust-lang/rust#155615 (test cleanups for `ui/derives` and `ui/deriving`)
- rust-lang/rust#154874 (Fix ICE for inherited const conditions on const closures)
- rust-lang/rust#155605 (std: Update support for `wasm32-wasip3`)
- rust-lang/rust#155613 (c-variadic: tweak `std` docs)
- rust-lang/rust#155619 (Remove a bunch of unnecessary explicit lifetimes from the ast validator)114 files changed, 4090 insertions(+), 4118 deletions(-)
compiler/rustc_ast_passes/src/ast_validation.rs+16-16| ... | ... | @@ -208,7 +208,7 @@ impl<'a> AstValidator<'a> { |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | // Mirrors `visit::walk_ty`, but tracks relevant state. |
| 211 | fn walk_ty(&mut self, t: &'a Ty) { | |
| 211 | fn walk_ty(&mut self, t: &Ty) { | |
| 212 | 212 | match &t.kind { |
| 213 | 213 | TyKind::ImplTrait(_, bounds) => { |
| 214 | 214 | self.with_impl_trait(Some(t.span), |this| visit::walk_ty(this, t)); |
| ... | ... | @@ -731,7 +731,7 @@ impl<'a> AstValidator<'a> { |
| 731 | 731 | /// C-variadics must be: |
| 732 | 732 | /// - Non-const |
| 733 | 733 | /// - Either foreign, or free and `unsafe extern "C"` semantically |
| 734 | fn check_c_variadic_type(&self, fk: FnKind<'a>, attrs: &'a AttrVec) { | |
| 734 | fn check_c_variadic_type(&self, fk: FnKind<'_>, attrs: &AttrVec) { | |
| 735 | 735 | // `...` is already rejected when it is not the final parameter. |
| 736 | 736 | let variadic_param = match fk.decl().inputs.last() { |
| 737 | 737 | Some(param) if matches!(param.ty.kind, TyKind::CVarArgs) => param, |
| ... | ... | @@ -806,7 +806,7 @@ impl<'a> AstValidator<'a> { |
| 806 | 806 | fn check_c_variadic_abi( |
| 807 | 807 | &self, |
| 808 | 808 | abi: ExternAbi, |
| 809 | attrs: &'a AttrVec, | |
| 809 | attrs: &AttrVec, | |
| 810 | 810 | dotdotdot_span: Span, |
| 811 | 811 | sig: &FnSig, |
| 812 | 812 | ) { |
| ... | ... | @@ -976,7 +976,7 @@ impl<'a> AstValidator<'a> { |
| 976 | 976 | }); |
| 977 | 977 | } |
| 978 | 978 | |
| 979 | fn visit_ty_common(&mut self, ty: &'a Ty) { | |
| 979 | fn visit_ty_common(&mut self, ty: &Ty) { | |
| 980 | 980 | match &ty.kind { |
| 981 | 981 | TyKind::FnPtr(bfty) => { |
| 982 | 982 | self.check_fn_ptr_safety(bfty.decl_span, bfty.safety); |
| ... | ... | @@ -1039,13 +1039,13 @@ impl<'a> AstValidator<'a> { |
| 1039 | 1039 | } |
| 1040 | 1040 | |
| 1041 | 1041 | // Used within `visit_item` for item kinds where we don't call `visit::walk_item`. |
| 1042 | fn visit_attrs_vis(&mut self, attrs: &'a AttrVec, vis: &'a Visibility) { | |
| 1042 | fn visit_attrs_vis(&mut self, attrs: &AttrVec, vis: &Visibility) { | |
| 1043 | 1043 | walk_list!(self, visit_attribute, attrs); |
| 1044 | 1044 | self.visit_vis(vis); |
| 1045 | 1045 | } |
| 1046 | 1046 | |
| 1047 | 1047 | // Used within `visit_item` for item kinds where we don't call `visit::walk_item`. |
| 1048 | fn visit_attrs_vis_ident(&mut self, attrs: &'a AttrVec, vis: &'a Visibility, ident: &'a Ident) { | |
| 1048 | fn visit_attrs_vis_ident(&mut self, attrs: &AttrVec, vis: &Visibility, ident: &Ident) { | |
| 1049 | 1049 | walk_list!(self, visit_attribute, attrs); |
| 1050 | 1050 | self.visit_vis(vis); |
| 1051 | 1051 | self.visit_ident(ident); |
| ... | ... | @@ -1125,17 +1125,17 @@ fn validate_generic_param_order(dcx: DiagCtxtHandle<'_>, generics: &[GenericPara |
| 1125 | 1125 | } |
| 1126 | 1126 | } |
| 1127 | 1127 | |
| 1128 | impl<'a> Visitor<'a> for AstValidator<'a> { | |
| 1128 | impl Visitor<'_> for AstValidator<'_> { | |
| 1129 | 1129 | fn visit_attribute(&mut self, attr: &Attribute) { |
| 1130 | 1130 | validate_attr::check_attr(&self.sess.psess, attr); |
| 1131 | 1131 | } |
| 1132 | 1132 | |
| 1133 | fn visit_ty(&mut self, ty: &'a Ty) { | |
| 1133 | fn visit_ty(&mut self, ty: &Ty) { | |
| 1134 | 1134 | self.visit_ty_common(ty); |
| 1135 | 1135 | self.walk_ty(ty) |
| 1136 | 1136 | } |
| 1137 | 1137 | |
| 1138 | fn visit_item(&mut self, item: &'a Item) { | |
| 1138 | fn visit_item(&mut self, item: &Item) { | |
| 1139 | 1139 | if item.attrs.iter().any(|attr| attr.is_proc_macro_attr()) { |
| 1140 | 1140 | self.has_proc_macro_decls = true; |
| 1141 | 1141 | } |
| ... | ... | @@ -1477,7 +1477,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1477 | 1477 | self.lint_node_id = previous_lint_node_id; |
| 1478 | 1478 | } |
| 1479 | 1479 | |
| 1480 | fn visit_foreign_item(&mut self, fi: &'a ForeignItem) { | |
| 1480 | fn visit_foreign_item(&mut self, fi: &ForeignItem) { | |
| 1481 | 1481 | match &fi.kind { |
| 1482 | 1482 | ForeignItemKind::Fn(box Fn { defaultness, ident, sig, body, .. }) => { |
| 1483 | 1483 | self.check_defaultness(fi.span, *defaultness, AllowDefault::No, AllowFinal::No); |
| ... | ... | @@ -1527,7 +1527,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1527 | 1527 | } |
| 1528 | 1528 | |
| 1529 | 1529 | // Mirrors `visit::walk_generic_args`, but tracks relevant state. |
| 1530 | fn visit_generic_args(&mut self, generic_args: &'a GenericArgs) { | |
| 1530 | fn visit_generic_args(&mut self, generic_args: &GenericArgs) { | |
| 1531 | 1531 | match generic_args { |
| 1532 | 1532 | GenericArgs::AngleBracketed(data) => { |
| 1533 | 1533 | self.check_generic_args_before_constraints(data); |
| ... | ... | @@ -1557,7 +1557,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1557 | 1557 | } |
| 1558 | 1558 | } |
| 1559 | 1559 | |
| 1560 | fn visit_generics(&mut self, generics: &'a Generics) { | |
| 1560 | fn visit_generics(&mut self, generics: &Generics) { | |
| 1561 | 1561 | let mut prev_param_default = None; |
| 1562 | 1562 | for param in &generics.params { |
| 1563 | 1563 | match param.kind { |
| ... | ... | @@ -1613,7 +1613,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1613 | 1613 | } |
| 1614 | 1614 | } |
| 1615 | 1615 | |
| 1616 | fn visit_param_bound(&mut self, bound: &'a GenericBound, ctxt: BoundKind) { | |
| 1616 | fn visit_param_bound(&mut self, bound: &GenericBound, ctxt: BoundKind) { | |
| 1617 | 1617 | match bound { |
| 1618 | 1618 | GenericBound::Trait(trait_ref) => { |
| 1619 | 1619 | match (ctxt, trait_ref.modifiers.constness, trait_ref.modifiers.polarity) { |
| ... | ... | @@ -1671,7 +1671,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1671 | 1671 | visit::walk_param_bound(self, bound) |
| 1672 | 1672 | } |
| 1673 | 1673 | |
| 1674 | fn visit_fn(&mut self, fk: FnKind<'a>, attrs: &AttrVec, span: Span, id: NodeId) { | |
| 1674 | fn visit_fn(&mut self, fk: FnKind<'_>, attrs: &AttrVec, span: Span, id: NodeId) { | |
| 1675 | 1675 | // Only associated `fn`s can have `self` parameters. |
| 1676 | 1676 | let self_semantic = match fk.ctxt() { |
| 1677 | 1677 | Some(FnCtxt::Assoc(_)) => SelfSemantic::Yes, |
| ... | ... | @@ -1784,7 +1784,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1784 | 1784 | self.with_tilde_const(disallowed, |this| visit::walk_fn(this, fk)); |
| 1785 | 1785 | } |
| 1786 | 1786 | |
| 1787 | fn visit_assoc_item(&mut self, item: &'a AssocItem, ctxt: AssocCtxt) { | |
| 1787 | fn visit_assoc_item(&mut self, item: &AssocItem, ctxt: AssocCtxt) { | |
| 1788 | 1788 | if let Some(ident) = item.kind.ident() |
| 1789 | 1789 | && attr::contains_name(&item.attrs, sym::no_mangle) |
| 1790 | 1790 | { |
| ... | ... | @@ -1931,7 +1931,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> { |
| 1931 | 1931 | } |
| 1932 | 1932 | } |
| 1933 | 1933 | |
| 1934 | fn visit_anon_const(&mut self, anon_const: &'a AnonConst) { | |
| 1934 | fn visit_anon_const(&mut self, anon_const: &AnonConst) { | |
| 1935 | 1935 | self.with_tilde_const( |
| 1936 | 1936 | Some(TildeConstReason::AnonConst { span: anon_const.value.span }), |
| 1937 | 1937 | |this| visit::walk_anon_const(this, anon_const), |
compiler/rustc_trait_selection/src/traits/effects.rs+2-9| ... | ... | @@ -556,15 +556,8 @@ fn evaluate_host_effect_for_fn_goal<'tcx>( |
| 556 | 556 | |
| 557 | 557 | ty::Closure(def, args) => { |
| 558 | 558 | // For now we limit ourselves to closures without binders. The next solver can handle them. |
| 559 | let sig = | |
| 560 | args.as_closure().sig().no_bound_vars().ok_or(EvaluationFailure::NoSolution)?; | |
| 561 | ( | |
| 562 | def, | |
| 563 | tcx.mk_args_from_iter( | |
| 564 | [ty::GenericArg::from(*sig.inputs().get(0).unwrap()), sig.output().into()] | |
| 565 | .into_iter(), | |
| 566 | ), | |
| 567 | ) | |
| 559 | args.as_closure().sig().no_bound_vars().ok_or(EvaluationFailure::NoSolution)?; | |
| 560 | (def, args) | |
| 568 | 561 | } |
| 569 | 562 | |
| 570 | 563 | // Everything else needs explicit impls or cannot have an impl |
library/Cargo.lock+16-4| ... | ... | @@ -346,6 +346,7 @@ dependencies = [ |
| 346 | 346 | "vex-sdk", |
| 347 | 347 | "wasip1", |
| 348 | 348 | "wasip2", |
| 349 | "wasip3", | |
| 349 | 350 | "windows-link 0.0.0", |
| 350 | 351 | ] |
| 351 | 352 | |
| ... | ... | @@ -418,9 +419,20 @@ dependencies = [ |
| 418 | 419 | |
| 419 | 420 | [[package]] |
| 420 | 421 | name = "wasip2" |
| 421 | version = "1.0.2+wasi-0.2.9" | |
| 422 | version = "1.0.3+wasi-0.2.9" | |
| 422 | 423 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 423 | checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" | |
| 424 | checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" | |
| 425 | dependencies = [ | |
| 426 | "rustc-std-workspace-alloc", | |
| 427 | "rustc-std-workspace-core", | |
| 428 | "wit-bindgen", | |
| 429 | ] | |
| 430 | ||
| 431 | [[package]] | |
| 432 | name = "wasip3" | |
| 433 | version = "0.6.0+wasi-0.3.0-rc-2026-03-15" | |
| 434 | source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 435 | checksum = "ed83456dd6a0b8581998c0365e4651fa2997e5093b49243b7f35391afaa7a3d9" | |
| 424 | 436 | dependencies = [ |
| 425 | 437 | "rustc-std-workspace-alloc", |
| 426 | 438 | "rustc-std-workspace-core", |
| ... | ... | @@ -513,9 +525,9 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" |
| 513 | 525 | |
| 514 | 526 | [[package]] |
| 515 | 527 | name = "wit-bindgen" |
| 516 | version = "0.51.0" | |
| 528 | version = "0.57.1" | |
| 517 | 529 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 518 | checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" | |
| 530 | checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" | |
| 519 | 531 | dependencies = [ |
| 520 | 532 | "rustc-std-workspace-alloc", |
| 521 | 533 | "rustc-std-workspace-core", |
library/core/src/ffi/va_list.rs+30-11| ... | ... | @@ -213,14 +213,15 @@ crate::cfg_select! { |
| 213 | 213 | /// assert_eq!(unsafe { my_func(3, 42i32, -7i32, 20i32) }, 55); |
| 214 | 214 | /// ``` |
| 215 | 215 | /// |
| 216 | /// The [`VaList::arg`] method can be used to read an argument from the list. This method | |
| 217 | /// automatically advances the `VaList` to the next argument. The C equivalent is `va_arg`. | |
| 216 | /// The [`VaList::arg`] method reads the next argument from the variable argument list, | |
| 217 | /// and is equivalent to C `va_arg`. | |
| 218 | 218 | /// |
| 219 | 219 | /// Cloning a `VaList` performs the equivalent of C `va_copy`, producing an independent cursor |
| 220 | 220 | /// that arguments can be read from without affecting the original. Dropping a `VaList` performs |
| 221 | 221 | /// the equivalent of C `va_end`. |
| 222 | 222 | /// |
| 223 | /// This can be used across an FFI boundary, and fully matches the platform's `va_list`. | |
| 223 | /// A `VaList` can be used across an FFI boundary, and fully matches the platform's `va_list` in | |
| 224 | /// terms of layout and ABI. | |
| 224 | 225 | #[repr(transparent)] |
| 225 | 226 | #[lang = "va_list"] |
| 226 | 227 | pub struct VaList<'a> { |
| ... | ... | @@ -285,17 +286,33 @@ mod sealed { |
| 285 | 286 | |
| 286 | 287 | /// Types that are valid to read using [`VaList::arg`]. |
| 287 | 288 | /// |
| 288 | /// # Safety | |
| 289 | /// This trait is implemented for primitive types that have a variable argument application-binary | |
| 290 | /// interface (ABI) on the current platform. It is always implemented for: | |
| 291 | /// | |
| 292 | /// - [`c_int`], [`c_long`] and [`c_longlong`] | |
| 293 | /// - [`c_uint`], [`c_ulong`] and [`c_ulonglong`] | |
| 294 | /// - [`c_double`] | |
| 295 | /// - `*const T` and `*mut T` | |
| 289 | 296 | /// |
| 290 | /// The standard library implements this trait for primitive types that are | |
| 291 | /// expected to have a variable argument application-binary interface (ABI) on all | |
| 292 | /// platforms. | |
| 297 | /// Implementations for e.g. `i32` or `usize` shouldn't be relied upon directly, | |
| 298 | /// because they may not be available on all platforms. | |
| 299 | /// | |
| 300 | /// # Safety | |
| 293 | 301 | /// |
| 294 | /// When C passes variable arguments, integers smaller than [`c_int`] and floats smaller | |
| 295 | /// than [`c_double`] are implicitly promoted to [`c_int`] and [`c_double`] respectively. | |
| 296 | /// Implementing this trait for types that are subject to this promotion rule is invalid. | |
| 302 | /// When C passes variable arguments, signed integers smaller than [`c_int`] are promoted | |
| 303 | /// to [`c_int`], unsigned integers smaller than [`c_uint`] are promoted to [`c_uint`], | |
| 304 | /// and [`c_float`] is promoted to [`c_double`]. Implementing this trait for types that are | |
| 305 | /// subject to this promotion rule is invalid. | |
| 297 | 306 | /// |
| 298 | 307 | /// [`c_int`]: core::ffi::c_int |
| 308 | /// [`c_long`]: core::ffi::c_long | |
| 309 | /// [`c_longlong`]: core::ffi::c_longlong | |
| 310 | /// | |
| 311 | /// [`c_uint`]: core::ffi::c_uint | |
| 312 | /// [`c_ulong`]: core::ffi::c_ulong | |
| 313 | /// [`c_ulonglong`]: core::ffi::c_ulonglong | |
| 314 | /// | |
| 315 | /// [`c_float`]: core::ffi::c_float | |
| 299 | 316 | /// [`c_double`]: core::ffi::c_double |
| 300 | 317 | // We may unseal this trait in the future, but currently our `va_arg` implementations don't support |
| 301 | 318 | // types with an alignment larger than 8, or with a non-scalar layout. Inline assembly can be used |
| ... | ... | @@ -352,14 +369,16 @@ const _: () = { |
| 352 | 369 | va_arg_safe_check::<crate::ffi::c_int>(); |
| 353 | 370 | va_arg_safe_check::<crate::ffi::c_uint>(); |
| 354 | 371 | va_arg_safe_check::<crate::ffi::c_long>(); |
| 372 | ||
| 355 | 373 | va_arg_safe_check::<crate::ffi::c_ulong>(); |
| 356 | 374 | va_arg_safe_check::<crate::ffi::c_longlong>(); |
| 357 | 375 | va_arg_safe_check::<crate::ffi::c_ulonglong>(); |
| 376 | ||
| 358 | 377 | va_arg_safe_check::<crate::ffi::c_double>(); |
| 359 | 378 | }; |
| 360 | 379 | |
| 361 | 380 | impl<'f> VaList<'f> { |
| 362 | /// Read an argument from the variable argument list, and advance to the next argument. | |
| 381 | /// Read the next argument from the variable argument list. | |
| 363 | 382 | /// |
| 364 | 383 | /// Only types that implement [`VaArgSafe`] can be read from a variable argument list. |
| 365 | 384 | /// |
library/std/Cargo.toml+2-2| ... | ... | @@ -84,12 +84,12 @@ wasip1 = { version = "1.0.0", features = [ |
| 84 | 84 | ], default-features = false } |
| 85 | 85 | |
| 86 | 86 | [target.'cfg(all(target_os = "wasi", target_env = "p2"))'.dependencies] |
| 87 | wasip2 = { version = '1.0.2', features = [ | |
| 87 | wasip2 = { version = '1.0.3', features = [ | |
| 88 | 88 | 'rustc-dep-of-std', |
| 89 | 89 | ], default-features = false } |
| 90 | 90 | |
| 91 | 91 | [target.'cfg(all(target_os = "wasi", target_env = "p3"))'.dependencies] |
| 92 | wasip2 = { version = '1.0.2', features = [ | |
| 92 | wasip3 = { version = '0.6.0', features = [ | |
| 93 | 93 | 'rustc-dep-of-std', |
| 94 | 94 | ], default-features = false } |
| 95 | 95 |
library/std/src/sys/args/mod.rs+2-2| ... | ... | @@ -42,8 +42,8 @@ cfg_select! { |
| 42 | 42 | pub use wasip1::*; |
| 43 | 43 | } |
| 44 | 44 | all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => { |
| 45 | mod wasip2; | |
| 46 | pub use wasip2::*; | |
| 45 | mod wasi; | |
| 46 | pub use wasi::*; | |
| 47 | 47 | } |
| 48 | 48 | target_os = "xous" => { |
| 49 | 49 | mod xous; |
library/std/src/sys/args/wasi.rs created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | #[cfg(target_env = "p2")] | |
| 2 | use wasip2 as wasi; | |
| 3 | #[cfg(target_env = "p3")] | |
| 4 | use wasip3 as wasi; | |
| 5 | ||
| 6 | pub use super::common::Args; | |
| 7 | ||
| 8 | /// Returns the command line arguments | |
| 9 | pub fn args() -> Args { | |
| 10 | Args::new(wasi::cli::environment::get_arguments().into_iter().map(|arg| arg.into()).collect()) | |
| 11 | } |
library/std/src/sys/args/wasip2.rs deleted-6| ... | ... | @@ -1,6 +0,0 @@ |
| 1 | pub use super::common::Args; | |
| 2 | ||
| 3 | /// Returns the command line arguments | |
| 4 | pub fn args() -> Args { | |
| 5 | Args::new(wasip2::cli::environment::get_arguments().into_iter().map(|arg| arg.into()).collect()) | |
| 6 | } |
library/std/src/sys/random/mod.rs+2-2| ... | ... | @@ -95,8 +95,8 @@ cfg_select! { |
| 95 | 95 | pub use wasip1::fill_bytes; |
| 96 | 96 | } |
| 97 | 97 | all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => { |
| 98 | mod wasip2; | |
| 99 | pub use wasip2::{fill_bytes, hashmap_random_keys}; | |
| 98 | mod wasi; | |
| 99 | pub use wasi::{fill_bytes, hashmap_random_keys}; | |
| 100 | 100 | } |
| 101 | 101 | target_os = "zkvm" => { |
| 102 | 102 | mod zkvm; |
library/std/src/sys/random/wasi.rs created+12| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | #[cfg(target_env = "p2")] | |
| 2 | use wasip2::random::{insecure_seed::insecure_seed as get_insecure_seed, random::get_random_bytes}; | |
| 3 | #[cfg(target_env = "p3")] | |
| 4 | use wasip3::random::{insecure_seed::get_insecure_seed, random::get_random_bytes}; | |
| 5 | ||
| 6 | pub fn fill_bytes(bytes: &mut [u8]) { | |
| 7 | bytes.copy_from_slice(&get_random_bytes(u64::try_from(bytes.len()).unwrap())); | |
| 8 | } | |
| 9 | ||
| 10 | pub fn hashmap_random_keys() -> (u64, u64) { | |
| 11 | get_insecure_seed() | |
| 12 | } |
library/std/src/sys/random/wasip2.rs deleted-9| ... | ... | @@ -1,9 +0,0 @@ |
| 1 | pub fn fill_bytes(bytes: &mut [u8]) { | |
| 2 | bytes.copy_from_slice(&wasip2::random::random::get_random_bytes( | |
| 3 | u64::try_from(bytes.len()).unwrap(), | |
| 4 | )); | |
| 5 | } | |
| 6 | ||
| 7 | pub fn hashmap_random_keys() -> (u64, u64) { | |
| 8 | wasip2::random::insecure_seed::insecure_seed() | |
| 9 | } |
src/doc/rustc-dev-guide/src/tests/compiletest.md+5-4| ... | ... | @@ -156,11 +156,12 @@ series of steps. |
| 156 | 156 | Compiletest starts with an empty directory with the `-C incremental` flag, and |
| 157 | 157 | then runs the compiler for each revision, reusing the incremental results from previous steps. |
| 158 | 158 | |
| 159 | The revisions should start with: | |
| 159 | Each revision name must start with one of: | |
| 160 | 160 | |
| 161 | * `bfail` — the test should fail to compile | |
| 162 | * `bpass` — the test should compile successully | |
| 163 | * `rpass` — the test should compile and run successfully | |
| 161 | * `cpass` - the test must compile successfully (check build, no codegen) | |
| 162 | * `bfail` — the test must fail to compile (full build, with codegen) | |
| 163 | * `bpass` — the test must compile successully (full build, with codegen) | |
| 164 | * `rpass` — the test must compile and run successfully | |
| 164 | 165 | |
| 165 | 166 | To make the revisions unique, you should add a suffix like `rpass1` and `rpass2`. |
| 166 | 167 |
src/doc/rustc-dev-guide/src/tests/directives.md+6-6| ... | ... | @@ -70,11 +70,11 @@ See [Controlling pass/fail expectations](ui.md#controlling-passfail-expectations |
| 70 | 70 | |
| 71 | 71 | | Directive | Explanation | Supported test suites | Possible values | |
| 72 | 72 | |-----------------------------|---------------------------------------------|-------------------------------------------|-----------------| |
| 73 | | `check-pass` | Building (no codegen) should pass | `ui`, `crashes`, `incremental` | N/A | | |
| 73 | | `check-pass` | Building (no codegen) should pass | `ui`, `crashes` | N/A | | |
| 74 | 74 | | `check-fail` | Building (no codegen) should fail | `ui`, `crashes` | N/A | |
| 75 | | `build-pass` | Building should pass | `ui`, `crashes`, `codegen`, `incremental` | N/A | | |
| 75 | | `build-pass` | Building should pass | `ui`, `crashes`, `codegen` | N/A | | |
| 76 | 76 | | `build-fail` | Building should fail | `ui`, `crashes` | N/A | |
| 77 | | `run-pass` | Program must exit with code `0` | `ui`, `crashes`, `incremental` | N/A | | |
| 77 | | `run-pass` | Program must exit with code `0` | `ui`, `crashes` | N/A | | |
| 78 | 78 | | `run-fail` | Program must exit with code `1..=127` | `ui`, `crashes` | N/A | |
| 79 | 79 | | `run-crash` | Program must crash | `ui` | N/A | |
| 80 | 80 | | `run-fail-or-crash` | Program must `run-fail` or `run-crash` | `ui` | N/A | |
| ... | ... | @@ -90,9 +90,9 @@ comparison](ui.md#output-comparison) and [Rustfix tests](ui.md#rustfix-tests) fo |
| 90 | 90 | |
| 91 | 91 | | Directive | Explanation | Supported test suites | Possible values | |
| 92 | 92 | |-----------------------------------|--------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|-----------------------------------------------------------------------------------------| |
| 93 | | `check-run-results` | Check run test binary `run-{pass,fail}` output snapshot | `ui`, `crashes`, `incremental` if `run-pass` | N/A | | |
| 94 | | `error-pattern` | Check that output contains a specific string | `ui`, `crashes`, `incremental` if `run-pass` | String | | |
| 95 | | `regex-error-pattern` | Check that output contains a regex pattern | `ui`, `crashes`, `incremental` if `run-pass` | Regex | | |
| 93 | | `check-run-results` | Check run test binary `run-{pass,fail}` output snapshot | `ui`, `crashes`, `incremental` | N/A | | |
| 94 | | `error-pattern` | Check that output contains a specific string | `ui`, `crashes`, `incremental` | String | | |
| 95 | | `regex-error-pattern` | Check that output contains a regex pattern | `ui`, `crashes`, `incremental` | Regex | | |
| 96 | 96 | | `check-stdout` | Check `stdout` against `error-pattern`s from running test binary[^check_stdout] | `ui`, `crashes`, `incremental` | N/A | |
| 97 | 97 | | `normalize-stderr-32bit` | Normalize actual stderr (for 32-bit platforms) with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot | `ui`, `incremental` | `"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax | |
| 98 | 98 | | `normalize-stderr-64bit` | Normalize actual stderr (for 64-bit platforms) with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot | `ui`, `incremental` | `"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax | |
src/doc/unstable-book/src/language-features/trait-alias.md+1-1| ... | ... | @@ -26,7 +26,7 @@ pub fn main() { |
| 26 | 26 | foo(&1); |
| 27 | 27 | |
| 28 | 28 | // Use trait alias for trait objects. |
| 29 | let a: &Bar = &123; | |
| 29 | let a: &dyn Bar = &123; | |
| 30 | 30 | println!("{:?}", a); |
| 31 | 31 | let b = Box::new(456) as Box<dyn Foo>; |
| 32 | 32 | println!("{:?}", b); |
src/tools/compiletest/src/directives.rs-7| ... | ... | @@ -439,13 +439,6 @@ impl TestProps { |
| 439 | 439 | (TestMode::Ui, _) => (), |
| 440 | 440 | (TestMode::Crashes, _) => (), |
| 441 | 441 | (TestMode::Codegen, "build-pass") => (), |
| 442 | (TestMode::Incremental, _) => { | |
| 443 | // FIXME(Zalathar): This only detects forbidden directives that are | |
| 444 | // declared _after_ the incompatible `//@ revisions:` directive(s). | |
| 445 | if self.revisions.iter().any(|r| !r.starts_with("bfail")) { | |
| 446 | panic!("`{s}` directive is only supported in `bfail` incremental tests") | |
| 447 | } | |
| 448 | } | |
| 449 | 442 | (mode, _) => panic!("`{s}` directive is not supported in `{mode}` tests"), |
| 450 | 443 | }; |
| 451 | 444 | let pass_mode = if config.parse_name_directive(ln, "check-pass") { |
src/tools/compiletest/src/runtest.rs+6-3| ... | ... | @@ -327,12 +327,15 @@ impl<'test> TestCx<'test> { |
| 327 | 327 | TestMode::Incremental => { |
| 328 | 328 | let revision = |
| 329 | 329 | self.revision.expect("incremental tests require a list of revisions"); |
| 330 | if revision.starts_with("bpass") || revision.starts_with("rpass") { | |
| 330 | if revision.starts_with("cpass") | |
| 331 | || revision.starts_with("bpass") | |
| 332 | || revision.starts_with("rpass") | |
| 333 | { | |
| 331 | 334 | true |
| 332 | 335 | } else if revision.starts_with("bfail") { |
| 333 | pm.is_some() | |
| 336 | false | |
| 334 | 337 | } else { |
| 335 | panic!("revision name must begin with `bfail`, `bpass`, or `rpass`"); | |
| 338 | panic!("revision name must begin with `cpass`, `bfail`, `bpass`, or `rpass`"); | |
| 336 | 339 | } |
| 337 | 340 | } |
| 338 | 341 | mode => panic!("unimplemented for mode {:?}", mode), |
src/tools/compiletest/src/runtest/incremental.rs+10-2| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | use super::{FailMode, ProcRes, TestCx, WillExecute}; | |
| 1 | use super::{Emit, FailMode, PassMode, ProcRes, TestCx, WillExecute}; | |
| 2 | 2 | |
| 3 | 3 | impl TestCx<'_> { |
| 4 | 4 | pub(super) fn run_incremental_test(&self) { |
| ... | ... | @@ -31,7 +31,9 @@ impl TestCx<'_> { |
| 31 | 31 | write!(self.stdout, "revision={:?} props={:#?}", revision, self.props); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | if revision.starts_with("bpass") { | |
| 34 | if revision.starts_with("cpass") { | |
| 35 | self.run_cpass_test(); | |
| 36 | } else if revision.starts_with("bpass") { | |
| 35 | 37 | self.run_bpass_test(); |
| 36 | 38 | } else if revision.starts_with("rpass") { |
| 37 | 39 | self.run_rpass_test(); |
| ... | ... | @@ -42,6 +44,12 @@ impl TestCx<'_> { |
| 42 | 44 | } |
| 43 | 45 | } |
| 44 | 46 | |
| 47 | fn run_cpass_test(&self) { | |
| 48 | let proc_res = self.compile_test(WillExecute::No, Emit::Metadata); | |
| 49 | self.check_if_test_should_compile(None, Some(PassMode::Check), &proc_res); | |
| 50 | self.check_compiler_output_for_incr(&proc_res); | |
| 51 | } | |
| 52 | ||
| 45 | 53 | fn run_bpass_test(&self) { |
| 46 | 54 | let emit_metadata = self.should_emit_metadata(self.pass_mode()); |
| 47 | 55 | let proc_res = self.compile_test(WillExecute::No, emit_metadata); |
src/tools/tidy/src/deps.rs+1| ... | ... | @@ -541,6 +541,7 @@ const PERMITTED_STDLIB_DEPENDENCIES: &[&str] = &[ |
| 541 | 541 | "vex-sdk", |
| 542 | 542 | "wasip1", |
| 543 | 543 | "wasip2", |
| 544 | "wasip3", | |
| 544 | 545 | "windows-link", |
| 545 | 546 | "windows-sys", |
| 546 | 547 | "windows-targets", |
src/tools/tidy/src/issues.txt-9| ... | ... | @@ -844,15 +844,6 @@ ui/derives/issue-43023.rs |
| 844 | 844 | ui/derives/issue-91492.rs |
| 845 | 845 | ui/derives/issue-91550.rs |
| 846 | 846 | ui/derives/issue-97343.rs |
| 847 | ui/deriving/issue-103157.rs | |
| 848 | ui/deriving/issue-15689-1.rs | |
| 849 | ui/deriving/issue-15689-2.rs | |
| 850 | ui/deriving/issue-18738.rs | |
| 851 | ui/deriving/issue-19358.rs | |
| 852 | ui/deriving/issue-3935.rs | |
| 853 | ui/deriving/issue-58319.rs | |
| 854 | ui/deriving/issue-6341.rs | |
| 855 | ui/deriving/issue-89188-gat-hrtb.rs | |
| 856 | 847 | ui/did_you_mean/issue-103909.rs |
| 857 | 848 | ui/did_you_mean/issue-105225-named-args.rs |
| 858 | 849 | ui/did_you_mean/issue-105225.rs |
tests/incremental/add_private_fn_at_krate_root_cc/struct_point.rs+11-12| ... | ... | @@ -2,21 +2,20 @@ |
| 2 | 2 | // crate. This should not cause anything we use to be invalidated. |
| 3 | 3 | // Regression test for #36168. |
| 4 | 4 | |
| 5 | //@ revisions: bfail1 bfail2 | |
| 5 | //@ revisions: bpass1 bpass2 | |
| 6 | 6 | //@ compile-flags: -Z query-dep-graph |
| 7 | 7 | //@ aux-build:point.rs |
| 8 | //@ build-pass | |
| 9 | 8 | //@ ignore-backends: gcc |
| 10 | 9 | |
| 11 | 10 | #![feature(rustc_attrs)] |
| 12 | 11 | #![allow(dead_code)] |
| 13 | 12 | #![crate_type = "rlib"] |
| 14 | 13 | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_calls_free_fn", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_free_fn", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 20 | 19 | |
| 21 | 20 | extern crate point; |
| 22 | 21 | |
| ... | ... | @@ -24,7 +23,7 @@ extern crate point; |
| 24 | 23 | pub mod fn_calls_methods_in_same_impl { |
| 25 | 24 | use point::Point; |
| 26 | 25 | |
| 27 | #[rustc_clean(cfg="bfail2")] | |
| 26 | #[rustc_clean(cfg="bpass2")] | |
| 28 | 27 | pub fn check() { |
| 29 | 28 | let x = Point { x: 2.0, y: 2.0 }; |
| 30 | 29 | x.distance_from_origin(); |
| ... | ... | @@ -35,7 +34,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 35 | 34 | pub mod fn_calls_free_fn { |
| 36 | 35 | use point::{self, Point}; |
| 37 | 36 | |
| 38 | #[rustc_clean(cfg="bfail2")] | |
| 37 | #[rustc_clean(cfg="bpass2")] | |
| 39 | 38 | pub fn check() { |
| 40 | 39 | let x = Point { x: 2.0, y: 2.0 }; |
| 41 | 40 | point::distance_squared(&x); |
| ... | ... | @@ -46,7 +45,7 @@ pub mod fn_calls_free_fn { |
| 46 | 45 | pub mod fn_make_struct { |
| 47 | 46 | use point::Point; |
| 48 | 47 | |
| 49 | #[rustc_clean(cfg="bfail2")] | |
| 48 | #[rustc_clean(cfg="bpass2")] | |
| 50 | 49 | pub fn make_origin() -> Point { |
| 51 | 50 | Point { x: 2.0, y: 2.0 } |
| 52 | 51 | } |
| ... | ... | @@ -56,7 +55,7 @@ pub mod fn_make_struct { |
| 56 | 55 | pub mod fn_read_field { |
| 57 | 56 | use point::Point; |
| 58 | 57 | |
| 59 | #[rustc_clean(cfg="bfail2")] | |
| 58 | #[rustc_clean(cfg="bpass2")] | |
| 60 | 59 | pub fn get_x(p: Point) -> f32 { |
| 61 | 60 | p.x |
| 62 | 61 | } |
| ... | ... | @@ -66,7 +65,7 @@ pub mod fn_read_field { |
| 66 | 65 | pub mod fn_write_field { |
| 67 | 66 | use point::Point; |
| 68 | 67 | |
| 69 | #[rustc_clean(cfg="bfail2")] | |
| 68 | #[rustc_clean(cfg="bpass2")] | |
| 70 | 69 | pub fn inc_x(p: &mut Point) { |
| 71 | 70 | p.x += 1.0; |
| 72 | 71 | } |
tests/incremental/change_add_field/struct_point.rs+22-23| ... | ... | @@ -3,9 +3,8 @@ |
| 3 | 3 | // Fns with that type used only in their body are also recompiled, but |
| 4 | 4 | // their callers are not. |
| 5 | 5 | |
| 6 | //@ revisions: bfail1 bfail2 | |
| 6 | //@ revisions: bpass1 bpass2 | |
| 7 | 7 | //@ compile-flags: -Z query-dep-graph |
| 8 | //@ build-pass | |
| 9 | 8 | //@ ignore-backends: gcc |
| 10 | 9 | |
| 11 | 10 | #![feature(rustc_attrs)] |
| ... | ... | @@ -13,24 +12,24 @@ |
| 13 | 12 | #![crate_type = "rlib"] |
| 14 | 13 | |
| 15 | 14 | // These are expected to require codegen. |
| 16 | #![rustc_partition_codegened(module="struct_point-point", cfg="bfail2")] | |
| 17 | #![rustc_partition_codegened(module="struct_point-fn_with_type_in_sig", cfg="bfail2")] | |
| 18 | #![rustc_partition_codegened(module="struct_point-call_fn_with_type_in_sig", cfg="bfail2")] | |
| 19 | #![rustc_partition_codegened(module="struct_point-fn_with_type_in_body", cfg="bfail2")] | |
| 20 | #![rustc_partition_codegened(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 21 | #![rustc_partition_codegened(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 22 | #![rustc_partition_codegened(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 15 | #![rustc_partition_codegened(module="struct_point-point", cfg="bpass2")] | |
| 16 | #![rustc_partition_codegened(module="struct_point-fn_with_type_in_sig", cfg="bpass2")] | |
| 17 | #![rustc_partition_codegened(module="struct_point-call_fn_with_type_in_sig", cfg="bpass2")] | |
| 18 | #![rustc_partition_codegened(module="struct_point-fn_with_type_in_body", cfg="bpass2")] | |
| 19 | #![rustc_partition_codegened(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 20 | #![rustc_partition_codegened(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 21 | #![rustc_partition_codegened(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 23 | 22 | |
| 24 | #![rustc_partition_reused(module="struct_point-call_fn_with_type_in_body", cfg="bfail2")] | |
| 23 | #![rustc_partition_reused(module="struct_point-call_fn_with_type_in_body", cfg="bpass2")] | |
| 25 | 24 | |
| 26 | 25 | pub mod point { |
| 27 | #[cfg(bfail1)] | |
| 26 | #[cfg(bpass1)] | |
| 28 | 27 | pub struct Point { |
| 29 | 28 | pub x: f32, |
| 30 | 29 | pub y: f32, |
| 31 | 30 | } |
| 32 | 31 | |
| 33 | #[cfg(bfail2)] | |
| 32 | #[cfg(bpass2)] | |
| 34 | 33 | pub struct Point { |
| 35 | 34 | pub x: f32, |
| 36 | 35 | pub y: f32, |
| ... | ... | @@ -39,18 +38,18 @@ pub mod point { |
| 39 | 38 | |
| 40 | 39 | impl Point { |
| 41 | 40 | pub fn origin() -> Point { |
| 42 | #[cfg(bfail1)] | |
| 41 | #[cfg(bpass1)] | |
| 43 | 42 | return Point { x: 0.0, y: 0.0 }; |
| 44 | 43 | |
| 45 | #[cfg(bfail2)] | |
| 44 | #[cfg(bpass2)] | |
| 46 | 45 | return Point { x: 0.0, y: 0.0, z: 0.0 }; |
| 47 | 46 | } |
| 48 | 47 | |
| 49 | 48 | pub fn total(&self) -> f32 { |
| 50 | #[cfg(bfail1)] | |
| 49 | #[cfg(bpass1)] | |
| 51 | 50 | return self.x + self.y; |
| 52 | 51 | |
| 53 | #[cfg(bfail2)] | |
| 52 | #[cfg(bpass2)] | |
| 54 | 53 | return self.x + self.y + self.z; |
| 55 | 54 | } |
| 56 | 55 | |
| ... | ... | @@ -70,7 +69,7 @@ pub mod point { |
| 70 | 69 | pub mod fn_with_type_in_sig { |
| 71 | 70 | use point::Point; |
| 72 | 71 | |
| 73 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bfail2")] | |
| 72 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bpass2")] | |
| 74 | 73 | pub fn boop(p: Option<&Point>) -> f32 { |
| 75 | 74 | p.map(|p| p.total()).unwrap_or(0.0) |
| 76 | 75 | } |
| ... | ... | @@ -86,7 +85,7 @@ pub mod fn_with_type_in_sig { |
| 86 | 85 | pub mod call_fn_with_type_in_sig { |
| 87 | 86 | use fn_with_type_in_sig; |
| 88 | 87 | |
| 89 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bfail2")] | |
| 88 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bpass2")] | |
| 90 | 89 | pub fn bip() -> f32 { |
| 91 | 90 | fn_with_type_in_sig::boop(None) |
| 92 | 91 | } |
| ... | ... | @@ -102,7 +101,7 @@ pub mod call_fn_with_type_in_sig { |
| 102 | 101 | pub mod fn_with_type_in_body { |
| 103 | 102 | use point::Point; |
| 104 | 103 | |
| 105 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bfail2")] | |
| 104 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bpass2")] | |
| 106 | 105 | pub fn boop() -> f32 { |
| 107 | 106 | Point::origin().total() |
| 108 | 107 | } |
| ... | ... | @@ -115,7 +114,7 @@ pub mod fn_with_type_in_body { |
| 115 | 114 | pub mod call_fn_with_type_in_body { |
| 116 | 115 | use fn_with_type_in_body; |
| 117 | 116 | |
| 118 | #[rustc_clean(cfg="bfail2")] | |
| 117 | #[rustc_clean(cfg="bpass2")] | |
| 119 | 118 | pub fn bip() -> f32 { |
| 120 | 119 | fn_with_type_in_body::boop() |
| 121 | 120 | } |
| ... | ... | @@ -125,7 +124,7 @@ pub mod call_fn_with_type_in_body { |
| 125 | 124 | pub mod fn_make_struct { |
| 126 | 125 | use point::Point; |
| 127 | 126 | |
| 128 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bfail2")] | |
| 127 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bpass2")] | |
| 129 | 128 | pub fn make_origin(p: Point) -> Point { |
| 130 | 129 | Point { ..p } |
| 131 | 130 | } |
| ... | ... | @@ -135,7 +134,7 @@ pub mod fn_make_struct { |
| 135 | 134 | pub mod fn_read_field { |
| 136 | 135 | use point::Point; |
| 137 | 136 | |
| 138 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bfail2")] | |
| 137 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bpass2")] | |
| 139 | 138 | pub fn get_x(p: Point) -> f32 { |
| 140 | 139 | p.x |
| 141 | 140 | } |
| ... | ... | @@ -145,7 +144,7 @@ pub mod fn_read_field { |
| 145 | 144 | pub mod fn_write_field { |
| 146 | 145 | use point::Point; |
| 147 | 146 | |
| 148 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bfail2")] | |
| 147 | #[rustc_clean(except="typeck_root,fn_sig,optimized_mir", cfg="bpass2")] | |
| 149 | 148 | pub fn inc_x(p: &mut Point) { |
| 150 | 149 | p.x += 1.0; |
| 151 | 150 | } |
tests/incremental/change_crate_dep_kind.rs+4-4| ... | ... | @@ -2,16 +2,16 @@ |
| 2 | 2 | // detected then -Zincremental-verify-ich will trigger an assertion. |
| 3 | 3 | |
| 4 | 4 | //@ needs-unwind |
| 5 | //@ revisions: bfail1 bfail2 | |
| 5 | //@ revisions: bpass1 bpass2 | |
| 6 | 6 | //@ compile-flags: -Z query-dep-graph -Cpanic=unwind |
| 7 | 7 | //@ needs-unwind |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | 8 | //@ ignore-backends: gcc |
| 9 | // FIXME(#62277): could be check-pass? | |
| 10 | 10 | |
| 11 | #![cfg_attr(bfail1, feature(panic_unwind))] | |
| 11 | #![cfg_attr(bpass1, feature(panic_unwind))] | |
| 12 | 12 | |
| 13 | 13 | // Turn the panic_unwind crate from an explicit into an implicit query: |
| 14 | #[cfg(bfail1)] | |
| 14 | #[cfg(bpass1)] | |
| 15 | 15 | extern crate panic_unwind; |
| 16 | 16 | |
| 17 | 17 | fn main() {} |
tests/incremental/change_private_fn/struct_point.rs+15-15| ... | ... | @@ -1,22 +1,22 @@ |
| 1 | 1 | // Test where we change the body of a private method in an impl. |
| 2 | 2 | // We then test what sort of functions must be rebuilt as a result. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 5 | 5 | //@ compile-flags: -Z query-dep-graph |
| 6 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 7 | 6 | //@ ignore-backends: gcc |
| 7 | // FIXME(#62277): could be check-pass? | |
| 8 | 8 | |
| 9 | 9 | #![feature(rustc_attrs)] |
| 10 | 10 | #![allow(dead_code)] |
| 11 | 11 | #![crate_type = "rlib"] |
| 12 | 12 | |
| 13 | #![rustc_partition_codegened(module="struct_point-point", cfg="bfail2")] | |
| 13 | #![rustc_partition_codegened(module="struct_point-point", cfg="bpass2")] | |
| 14 | 14 | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 20 | 20 | |
| 21 | 21 | pub mod point { |
| 22 | 22 | pub struct Point { |
| ... | ... | @@ -25,10 +25,10 @@ pub mod point { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | fn distance_squared(this: &Point) -> f32 { |
| 28 | #[cfg(bfail1)] | |
| 28 | #[cfg(bpass1)] | |
| 29 | 29 | return this.x + this.y; |
| 30 | 30 | |
| 31 | #[cfg(bfail2)] | |
| 31 | #[cfg(bpass2)] | |
| 32 | 32 | return this.x * this.x + this.y * this.y; |
| 33 | 33 | } |
| 34 | 34 | |
| ... | ... | @@ -55,7 +55,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 55 | 55 | // (not just marked green) - for example, `DeadVisitor` |
| 56 | 56 | // always runs during compilation as a "pass", and loads |
| 57 | 57 | // the typeck_root results for bodies. |
| 58 | #[rustc_clean(cfg="bfail2", loaded_from_disk="typeck_root")] | |
| 58 | #[rustc_clean(cfg="bpass2", loaded_from_disk="typeck_root")] | |
| 59 | 59 | pub fn check() { |
| 60 | 60 | let x = Point { x: 2.0, y: 2.0 }; |
| 61 | 61 | x.distance_from_origin(); |
| ... | ... | @@ -66,7 +66,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 66 | 66 | pub mod fn_calls_methods_in_another_impl { |
| 67 | 67 | use point::Point; |
| 68 | 68 | |
| 69 | #[rustc_clean(cfg="bfail2")] | |
| 69 | #[rustc_clean(cfg="bpass2")] | |
| 70 | 70 | pub fn check() { |
| 71 | 71 | let mut x = Point { x: 2.0, y: 2.0 }; |
| 72 | 72 | x.translate(3.0, 3.0); |
| ... | ... | @@ -77,7 +77,7 @@ pub mod fn_calls_methods_in_another_impl { |
| 77 | 77 | pub mod fn_make_struct { |
| 78 | 78 | use point::Point; |
| 79 | 79 | |
| 80 | #[rustc_clean(cfg="bfail2")] | |
| 80 | #[rustc_clean(cfg="bpass2")] | |
| 81 | 81 | pub fn make_origin() -> Point { |
| 82 | 82 | Point { x: 2.0, y: 2.0 } |
| 83 | 83 | } |
| ... | ... | @@ -87,7 +87,7 @@ pub mod fn_make_struct { |
| 87 | 87 | pub mod fn_read_field { |
| 88 | 88 | use point::Point; |
| 89 | 89 | |
| 90 | #[rustc_clean(cfg="bfail2")] | |
| 90 | #[rustc_clean(cfg="bpass2")] | |
| 91 | 91 | pub fn get_x(p: Point) -> f32 { |
| 92 | 92 | p.x |
| 93 | 93 | } |
| ... | ... | @@ -97,7 +97,7 @@ pub mod fn_read_field { |
| 97 | 97 | pub mod fn_write_field { |
| 98 | 98 | use point::Point; |
| 99 | 99 | |
| 100 | #[rustc_clean(cfg="bfail2")] | |
| 100 | #[rustc_clean(cfg="bpass2")] | |
| 101 | 101 | pub fn inc_x(p: &mut Point) { |
| 102 | 102 | p.x += 1.0; |
| 103 | 103 | } |
tests/incremental/change_private_fn_cc/auxiliary/point.rs+2-2| ... | ... | @@ -4,10 +4,10 @@ pub struct Point { |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | fn distance_squared(this: &Point) -> f32 { |
| 7 | #[cfg(bfail1)] | |
| 7 | #[cfg(bpass1)] | |
| 8 | 8 | return this.x + this.y; |
| 9 | 9 | |
| 10 | #[cfg(bfail2)] | |
| 10 | #[cfg(bpass2)] | |
| 11 | 11 | return this.x * this.x + this.y * this.y; |
| 12 | 12 | } |
| 13 | 13 |
tests/incremental/change_private_fn_cc/struct_point.rs+12-12| ... | ... | @@ -1,21 +1,21 @@ |
| 1 | 1 | // Test where we change the body of a private method in an impl. |
| 2 | 2 | // We then test what sort of functions must be rebuilt as a result. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 5 | 5 | //@ compile-flags: -Z query-dep-graph |
| 6 | 6 | //@ aux-build:point.rs |
| 7 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 8 | 7 | //@ ignore-backends: gcc |
| 8 | // FIXME(#62277): could be check-pass? | |
| 9 | 9 | |
| 10 | 10 | #![crate_type = "rlib"] |
| 11 | 11 | #![feature(rustc_attrs)] |
| 12 | 12 | #![allow(dead_code)] |
| 13 | 13 | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 19 | 19 | |
| 20 | 20 | extern crate point; |
| 21 | 21 | |
| ... | ... | @@ -23,7 +23,7 @@ extern crate point; |
| 23 | 23 | pub mod fn_calls_methods_in_same_impl { |
| 24 | 24 | use point::Point; |
| 25 | 25 | |
| 26 | #[rustc_clean(cfg="bfail2")] | |
| 26 | #[rustc_clean(cfg="bpass2")] | |
| 27 | 27 | pub fn check() { |
| 28 | 28 | let x = Point { x: 2.0, y: 2.0 }; |
| 29 | 29 | x.distance_from_origin(); |
| ... | ... | @@ -34,7 +34,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 34 | 34 | pub mod fn_calls_methods_in_another_impl { |
| 35 | 35 | use point::Point; |
| 36 | 36 | |
| 37 | #[rustc_clean(cfg="bfail2")] | |
| 37 | #[rustc_clean(cfg="bpass2")] | |
| 38 | 38 | pub fn check() { |
| 39 | 39 | let mut x = Point { x: 2.0, y: 2.0 }; |
| 40 | 40 | x.translate(3.0, 3.0); |
| ... | ... | @@ -45,7 +45,7 @@ pub mod fn_calls_methods_in_another_impl { |
| 45 | 45 | pub mod fn_make_struct { |
| 46 | 46 | use point::Point; |
| 47 | 47 | |
| 48 | #[rustc_clean(cfg="bfail2")] | |
| 48 | #[rustc_clean(cfg="bpass2")] | |
| 49 | 49 | pub fn make_origin() -> Point { |
| 50 | 50 | Point { x: 2.0, y: 2.0 } |
| 51 | 51 | } |
| ... | ... | @@ -55,7 +55,7 @@ pub mod fn_make_struct { |
| 55 | 55 | pub mod fn_read_field { |
| 56 | 56 | use point::Point; |
| 57 | 57 | |
| 58 | #[rustc_clean(cfg="bfail2")] | |
| 58 | #[rustc_clean(cfg="bpass2")] | |
| 59 | 59 | pub fn get_x(p: Point) -> f32 { |
| 60 | 60 | p.x |
| 61 | 61 | } |
| ... | ... | @@ -65,7 +65,7 @@ pub mod fn_read_field { |
| 65 | 65 | pub mod fn_write_field { |
| 66 | 66 | use point::Point; |
| 67 | 67 | |
| 68 | #[rustc_clean(cfg="bfail2")] | |
| 68 | #[rustc_clean(cfg="bpass2")] | |
| 69 | 69 | pub fn inc_x(p: &mut Point) { |
| 70 | 70 | p.x += 1.0; |
| 71 | 71 | } |
tests/incremental/change_private_impl_method/struct_point.rs+14-15| ... | ... | @@ -1,22 +1,21 @@ |
| 1 | 1 | // Test where we change the body of a private method in an impl. |
| 2 | 2 | // We then test what sort of functions must be rebuilt as a result. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 5 | 5 | //@ compile-flags: -Z query-dep-graph |
| 6 | //@ build-pass | |
| 7 | 6 | //@ ignore-backends: gcc |
| 8 | 7 | |
| 9 | 8 | #![feature(rustc_attrs)] |
| 10 | 9 | #![allow(dead_code)] |
| 11 | 10 | #![crate_type = "rlib"] |
| 12 | 11 | |
| 13 | #![rustc_partition_codegened(module="struct_point-point", cfg="bfail2")] | |
| 12 | #![rustc_partition_codegened(module="struct_point-point", cfg="bpass2")] | |
| 14 | 13 | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 20 | 19 | |
| 21 | 20 | pub mod point { |
| 22 | 21 | pub struct Point { |
| ... | ... | @@ -26,10 +25,10 @@ pub mod point { |
| 26 | 25 | |
| 27 | 26 | impl Point { |
| 28 | 27 | pub fn distance_squared(&self) -> f32 { |
| 29 | #[cfg(bfail1)] | |
| 28 | #[cfg(bpass1)] | |
| 30 | 29 | return self.x + self.y; |
| 31 | 30 | |
| 32 | #[cfg(bfail2)] | |
| 31 | #[cfg(bpass2)] | |
| 33 | 32 | return self.x * self.x + self.y * self.y; |
| 34 | 33 | } |
| 35 | 34 | |
| ... | ... | @@ -51,7 +50,7 @@ pub mod point { |
| 51 | 50 | pub mod fn_calls_methods_in_same_impl { |
| 52 | 51 | use point::Point; |
| 53 | 52 | |
| 54 | #[rustc_clean(cfg="bfail2")] | |
| 53 | #[rustc_clean(cfg="bpass2")] | |
| 55 | 54 | pub fn check() { |
| 56 | 55 | let x = Point { x: 2.0, y: 2.0 }; |
| 57 | 56 | x.distance_from_origin(); |
| ... | ... | @@ -62,7 +61,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 62 | 61 | pub mod fn_calls_methods_in_another_impl { |
| 63 | 62 | use point::Point; |
| 64 | 63 | |
| 65 | #[rustc_clean(cfg="bfail2")] | |
| 64 | #[rustc_clean(cfg="bpass2")] | |
| 66 | 65 | pub fn check() { |
| 67 | 66 | let mut x = Point { x: 2.0, y: 2.0 }; |
| 68 | 67 | x.translate(3.0, 3.0); |
| ... | ... | @@ -73,7 +72,7 @@ pub mod fn_calls_methods_in_another_impl { |
| 73 | 72 | pub mod fn_make_struct { |
| 74 | 73 | use point::Point; |
| 75 | 74 | |
| 76 | #[rustc_clean(cfg="bfail2")] | |
| 75 | #[rustc_clean(cfg="bpass2")] | |
| 77 | 76 | pub fn make_origin() -> Point { |
| 78 | 77 | Point { x: 2.0, y: 2.0 } |
| 79 | 78 | } |
| ... | ... | @@ -83,7 +82,7 @@ pub mod fn_make_struct { |
| 83 | 82 | pub mod fn_read_field { |
| 84 | 83 | use point::Point; |
| 85 | 84 | |
| 86 | #[rustc_clean(cfg="bfail2")] | |
| 85 | #[rustc_clean(cfg="bpass2")] | |
| 87 | 86 | pub fn get_x(p: Point) -> f32 { |
| 88 | 87 | p.x |
| 89 | 88 | } |
| ... | ... | @@ -93,7 +92,7 @@ pub mod fn_read_field { |
| 93 | 92 | pub mod fn_write_field { |
| 94 | 93 | use point::Point; |
| 95 | 94 | |
| 96 | #[rustc_clean(cfg="bfail2")] | |
| 95 | #[rustc_clean(cfg="bpass2")] | |
| 97 | 96 | pub fn inc_x(p: &mut Point) { |
| 98 | 97 | p.x += 1.0; |
| 99 | 98 | } |
tests/incremental/change_private_impl_method_cc/auxiliary/point.rs+2-2| ... | ... | @@ -5,10 +5,10 @@ pub struct Point { |
| 5 | 5 | |
| 6 | 6 | impl Point { |
| 7 | 7 | fn distance_squared(&self) -> f32 { |
| 8 | #[cfg(bfail1)] | |
| 8 | #[cfg(bpass1)] | |
| 9 | 9 | return self.x + self.y; |
| 10 | 10 | |
| 11 | #[cfg(bfail2)] | |
| 11 | #[cfg(bpass2)] | |
| 12 | 12 | return self.x * self.x + self.y * self.y; |
| 13 | 13 | } |
| 14 | 14 |
tests/incremental/change_private_impl_method_cc/struct_point.rs+12-12| ... | ... | @@ -1,22 +1,22 @@ |
| 1 | 1 | // Test where we change the body of a private method in an impl. |
| 2 | 2 | // We then test what sort of functions must be rebuilt as a result. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 5 | 5 | //@ compile-flags: -Z query-dep-graph |
| 6 | 6 | //@ aux-build:point.rs |
| 7 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 8 | 7 | //@ ignore-backends: gcc |
| 8 | // FIXME(#62277): could be check-pass? | |
| 9 | 9 | |
| 10 | 10 | #![crate_type = "rlib"] |
| 11 | 11 | #![feature(rustc_attrs)] |
| 12 | 12 | #![allow(dead_code)] |
| 13 | 13 | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 17 | 17 | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bfail2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="bpass2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="bpass2")] | |
| 20 | 20 | |
| 21 | 21 | extern crate point; |
| 22 | 22 | |
| ... | ... | @@ -24,7 +24,7 @@ extern crate point; |
| 24 | 24 | pub mod fn_calls_methods_in_same_impl { |
| 25 | 25 | use point::Point; |
| 26 | 26 | |
| 27 | #[rustc_clean(cfg="bfail2")] | |
| 27 | #[rustc_clean(cfg="bpass2")] | |
| 28 | 28 | pub fn check() { |
| 29 | 29 | let x = Point { x: 2.0, y: 2.0 }; |
| 30 | 30 | x.distance_from_origin(); |
| ... | ... | @@ -35,7 +35,7 @@ pub mod fn_calls_methods_in_same_impl { |
| 35 | 35 | pub mod fn_calls_methods_in_another_impl { |
| 36 | 36 | use point::Point; |
| 37 | 37 | |
| 38 | #[rustc_clean(cfg="bfail2")] | |
| 38 | #[rustc_clean(cfg="bpass2")] | |
| 39 | 39 | pub fn dirty() { |
| 40 | 40 | let mut x = Point { x: 2.0, y: 2.0 }; |
| 41 | 41 | x.translate(3.0, 3.0); |
| ... | ... | @@ -46,7 +46,7 @@ pub mod fn_calls_methods_in_another_impl { |
| 46 | 46 | pub mod fn_make_struct { |
| 47 | 47 | use point::Point; |
| 48 | 48 | |
| 49 | #[rustc_clean(cfg="bfail2")] | |
| 49 | #[rustc_clean(cfg="bpass2")] | |
| 50 | 50 | pub fn make_origin() -> Point { |
| 51 | 51 | Point { x: 2.0, y: 2.0 } |
| 52 | 52 | } |
| ... | ... | @@ -56,7 +56,7 @@ pub mod fn_make_struct { |
| 56 | 56 | pub mod fn_read_field { |
| 57 | 57 | use point::Point; |
| 58 | 58 | |
| 59 | #[rustc_clean(cfg="bfail2")] | |
| 59 | #[rustc_clean(cfg="bpass2")] | |
| 60 | 60 | pub fn get_x(p: Point) -> f32 { |
| 61 | 61 | p.x |
| 62 | 62 | } |
| ... | ... | @@ -66,7 +66,7 @@ pub mod fn_read_field { |
| 66 | 66 | pub mod fn_write_field { |
| 67 | 67 | use point::Point; |
| 68 | 68 | |
| 69 | #[rustc_clean(cfg="bfail2")] | |
| 69 | #[rustc_clean(cfg="bpass2")] | |
| 70 | 70 | pub fn inc_x(p: &mut Point) { |
| 71 | 71 | p.x += 1.0; |
| 72 | 72 | } |
tests/incremental/change_pub_inherent_method_body/struct_point.rs+14-15| ... | ... | @@ -1,21 +1,20 @@ |
| 1 | 1 | // Test where we change the body of a public, inherent method. |
| 2 | 2 | |
| 3 | //@ revisions: bfail1 bfail2 | |
| 3 | //@ revisions: bpass1 bpass2 | |
| 4 | 4 | //@ compile-flags: -Z query-dep-graph |
| 5 | //@ build-pass | |
| 6 | 5 | //@ ignore-backends: gcc |
| 7 | 6 | |
| 8 | 7 | #![crate_type = "rlib"] |
| 9 | 8 | #![feature(rustc_attrs)] |
| 10 | 9 | #![allow(dead_code)] |
| 11 | 10 | |
| 12 | #![rustc_partition_codegened(module="struct_point-point", cfg="bfail2")] | |
| 11 | #![rustc_partition_codegened(module="struct_point-point", cfg="bpass2")] | |
| 13 | 12 | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_changed_method", cfg="bfail2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_another_method", cfg="bfail2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 13 | #![rustc_partition_reused(module="struct_point-fn_calls_changed_method", cfg="bpass2")] | |
| 14 | #![rustc_partition_reused(module="struct_point-fn_calls_another_method", cfg="bpass2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 19 | 18 | |
| 20 | 19 | pub mod point { |
| 21 | 20 | pub struct Point { |
| ... | ... | @@ -25,10 +24,10 @@ pub mod point { |
| 25 | 24 | |
| 26 | 25 | impl Point { |
| 27 | 26 | pub fn distance_from_origin(&self) -> f32 { |
| 28 | #[cfg(bfail1)] | |
| 27 | #[cfg(bpass1)] | |
| 29 | 28 | return self.x * self.x + self.y * self.y; |
| 30 | 29 | |
| 31 | #[cfg(bfail2)] | |
| 30 | #[cfg(bpass2)] | |
| 32 | 31 | return (self.x * self.x + self.y * self.y).sqrt(); |
| 33 | 32 | } |
| 34 | 33 | |
| ... | ... | @@ -42,7 +41,7 @@ pub mod point { |
| 42 | 41 | pub mod fn_calls_changed_method { |
| 43 | 42 | use point::Point; |
| 44 | 43 | |
| 45 | #[rustc_clean(cfg="bfail2")] | |
| 44 | #[rustc_clean(cfg="bpass2")] | |
| 46 | 45 | pub fn check() { |
| 47 | 46 | let p = Point { x: 2.0, y: 2.0 }; |
| 48 | 47 | p.distance_from_origin(); |
| ... | ... | @@ -53,7 +52,7 @@ pub mod fn_calls_changed_method { |
| 53 | 52 | pub mod fn_calls_another_method { |
| 54 | 53 | use point::Point; |
| 55 | 54 | |
| 56 | #[rustc_clean(cfg="bfail2")] | |
| 55 | #[rustc_clean(cfg="bpass2")] | |
| 57 | 56 | pub fn check() { |
| 58 | 57 | let p = Point { x: 2.0, y: 2.0 }; |
| 59 | 58 | p.x(); |
| ... | ... | @@ -64,7 +63,7 @@ pub mod fn_calls_another_method { |
| 64 | 63 | pub mod fn_make_struct { |
| 65 | 64 | use point::Point; |
| 66 | 65 | |
| 67 | #[rustc_clean(cfg="bfail2")] | |
| 66 | #[rustc_clean(cfg="bpass2")] | |
| 68 | 67 | pub fn make_origin() -> Point { |
| 69 | 68 | Point { x: 2.0, y: 2.0 } |
| 70 | 69 | } |
| ... | ... | @@ -74,7 +73,7 @@ pub mod fn_make_struct { |
| 74 | 73 | pub mod fn_read_field { |
| 75 | 74 | use point::Point; |
| 76 | 75 | |
| 77 | #[rustc_clean(cfg="bfail2")] | |
| 76 | #[rustc_clean(cfg="bpass2")] | |
| 78 | 77 | pub fn get_x(p: Point) -> f32 { |
| 79 | 78 | p.x |
| 80 | 79 | } |
| ... | ... | @@ -84,7 +83,7 @@ pub mod fn_read_field { |
| 84 | 83 | pub mod fn_write_field { |
| 85 | 84 | use point::Point; |
| 86 | 85 | |
| 87 | #[rustc_clean(cfg="bfail2")] | |
| 86 | #[rustc_clean(cfg="bpass2")] | |
| 88 | 87 | pub fn inc_x(p: &mut Point) { |
| 89 | 88 | p.x += 1.0; |
| 90 | 89 | } |
tests/incremental/change_pub_inherent_method_sig/struct_point.rs+14-15| ... | ... | @@ -1,8 +1,7 @@ |
| 1 | 1 | // Test where we change the *signature* of a public, inherent method. |
| 2 | 2 | |
| 3 | //@ revisions: bfail1 bfail2 | |
| 3 | //@ revisions: bpass1 bpass2 | |
| 4 | 4 | //@ compile-flags: -Z query-dep-graph |
| 5 | //@ build-pass | |
| 6 | 5 | //@ ignore-backends: gcc |
| 7 | 6 | |
| 8 | 7 | #![crate_type = "rlib"] |
| ... | ... | @@ -10,13 +9,13 @@ |
| 10 | 9 | #![allow(dead_code)] |
| 11 | 10 | |
| 12 | 11 | // These are expected to require codegen. |
| 13 | #![rustc_partition_codegened(module="struct_point-point", cfg="bfail2")] | |
| 14 | #![rustc_partition_codegened(module="struct_point-fn_calls_changed_method", cfg="bfail2")] | |
| 12 | #![rustc_partition_codegened(module="struct_point-point", cfg="bpass2")] | |
| 13 | #![rustc_partition_codegened(module="struct_point-fn_calls_changed_method", cfg="bpass2")] | |
| 15 | 14 | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_calls_another_method", cfg="bfail2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bfail2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bfail2")] | |
| 19 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bfail2")] | |
| 15 | #![rustc_partition_reused(module="struct_point-fn_calls_another_method", cfg="bpass2")] | |
| 16 | #![rustc_partition_reused(module="struct_point-fn_make_struct", cfg="bpass2")] | |
| 17 | #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="bpass2")] | |
| 18 | #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="bpass2")] | |
| 20 | 19 | |
| 21 | 20 | pub mod point { |
| 22 | 21 | pub struct Point { |
| ... | ... | @@ -25,7 +24,7 @@ pub mod point { |
| 25 | 24 | } |
| 26 | 25 | |
| 27 | 26 | impl Point { |
| 28 | #[cfg(bfail1)] | |
| 27 | #[cfg(bpass1)] | |
| 29 | 28 | pub fn distance_from_point(&self, p: Option<Point>) -> f32 { |
| 30 | 29 | let p = p.unwrap_or(Point { x: 0.0, y: 0.0 }); |
| 31 | 30 | let x_diff = self.x - p.x; |
| ... | ... | @@ -33,7 +32,7 @@ pub mod point { |
| 33 | 32 | return x_diff * x_diff + y_diff * y_diff; |
| 34 | 33 | } |
| 35 | 34 | |
| 36 | #[cfg(bfail2)] | |
| 35 | #[cfg(bpass2)] | |
| 37 | 36 | pub fn distance_from_point(&self, p: Option<&Point>) -> f32 { |
| 38 | 37 | const ORIGIN: &Point = &Point { x: 0.0, y: 0.0 }; |
| 39 | 38 | let p = p.unwrap_or(ORIGIN); |
| ... | ... | @@ -52,7 +51,7 @@ pub mod point { |
| 52 | 51 | pub mod fn_calls_changed_method { |
| 53 | 52 | use point::Point; |
| 54 | 53 | |
| 55 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bfail2")] | |
| 54 | #[rustc_clean(except="typeck_root,optimized_mir", cfg="bpass2")] | |
| 56 | 55 | pub fn check() { |
| 57 | 56 | let p = Point { x: 2.0, y: 2.0 }; |
| 58 | 57 | p.distance_from_point(None); |
| ... | ... | @@ -63,7 +62,7 @@ pub mod fn_calls_changed_method { |
| 63 | 62 | pub mod fn_calls_another_method { |
| 64 | 63 | use point::Point; |
| 65 | 64 | |
| 66 | #[rustc_clean(cfg="bfail2")] | |
| 65 | #[rustc_clean(cfg="bpass2")] | |
| 67 | 66 | pub fn check() { |
| 68 | 67 | let p = Point { x: 2.0, y: 2.0 }; |
| 69 | 68 | p.x(); |
| ... | ... | @@ -74,7 +73,7 @@ pub mod fn_calls_another_method { |
| 74 | 73 | pub mod fn_make_struct { |
| 75 | 74 | use point::Point; |
| 76 | 75 | |
| 77 | #[rustc_clean(cfg="bfail2")] | |
| 76 | #[rustc_clean(cfg="bpass2")] | |
| 78 | 77 | pub fn make_origin() -> Point { |
| 79 | 78 | Point { x: 2.0, y: 2.0 } |
| 80 | 79 | } |
| ... | ... | @@ -84,7 +83,7 @@ pub mod fn_make_struct { |
| 84 | 83 | pub mod fn_read_field { |
| 85 | 84 | use point::Point; |
| 86 | 85 | |
| 87 | #[rustc_clean(cfg="bfail2")] | |
| 86 | #[rustc_clean(cfg="bpass2")] | |
| 88 | 87 | pub fn get_x(p: Point) -> f32 { |
| 89 | 88 | p.x |
| 90 | 89 | } |
| ... | ... | @@ -94,7 +93,7 @@ pub mod fn_read_field { |
| 94 | 93 | pub mod fn_write_field { |
| 95 | 94 | use point::Point; |
| 96 | 95 | |
| 97 | #[rustc_clean(cfg="bfail2")] | |
| 96 | #[rustc_clean(cfg="bpass2")] | |
| 98 | 97 | pub fn inc_x(p: &mut Point) { |
| 99 | 98 | p.x += 1.0; |
| 100 | 99 | } |
tests/incremental/hashes/call_expressions.rs+59-60| ... | ... | @@ -5,14 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 15 | ||
| 14 | // FIXME(#62277): could be check-pass? | |
| 16 | 15 | |
| 17 | 16 | #![allow(warnings)] |
| 18 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -23,16 +22,16 @@ fn callee2(_x: u32, _y: i64) {} |
| 23 | 22 | |
| 24 | 23 | |
| 25 | 24 | // Change Callee (Function) |
| 26 | #[cfg(any(bfail1,bfail4))] | |
| 25 | #[cfg(any(bpass1,bpass4))] | |
| 27 | 26 | pub fn change_callee_function() { |
| 28 | 27 | callee1(1, 2) |
| 29 | 28 | } |
| 30 | 29 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 30 | #[cfg(not(any(bpass1,bpass4)))] | |
| 31 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 32 | #[rustc_clean(cfg="bpass3")] | |
| 33 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 34 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 35 | pub fn change_callee_function() { |
| 37 | 36 | callee2(1, 2) |
| 38 | 37 | } |
| ... | ... | @@ -40,16 +39,16 @@ pub fn change_callee_function() { |
| 40 | 39 | |
| 41 | 40 | |
| 42 | 41 | // Change Argument (Function) |
| 43 | #[cfg(any(bfail1,bfail4))] | |
| 42 | #[cfg(any(bpass1,bpass4))] | |
| 44 | 43 | pub fn change_argument_function() { |
| 45 | 44 | callee1(1, 2) |
| 46 | 45 | } |
| 47 | 46 | |
| 48 | #[cfg(not(any(bfail1,bfail4)))] | |
| 49 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 50 | #[rustc_clean(cfg="bfail3")] | |
| 51 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 52 | #[rustc_clean(cfg="bfail6")] | |
| 47 | #[cfg(not(any(bpass1,bpass4)))] | |
| 48 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 49 | #[rustc_clean(cfg="bpass3")] | |
| 50 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 51 | #[rustc_clean(cfg="bpass6")] | |
| 53 | 52 | pub fn change_argument_function() { |
| 54 | 53 | callee1(1, 3) |
| 55 | 54 | } |
| ... | ... | @@ -58,15 +57,15 @@ pub fn change_argument_function() { |
| 58 | 57 | |
| 59 | 58 | // Change Callee Indirectly (Function) |
| 60 | 59 | mod change_callee_indirectly_function { |
| 61 | #[cfg(any(bfail1,bfail4))] | |
| 60 | #[cfg(any(bpass1,bpass4))] | |
| 62 | 61 | use super::callee1 as callee; |
| 63 | #[cfg(not(any(bfail1,bfail4)))] | |
| 62 | #[cfg(not(any(bpass1,bpass4)))] | |
| 64 | 63 | use super::callee2 as callee; |
| 65 | 64 | |
| 66 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 67 | #[rustc_clean(cfg="bfail3")] | |
| 68 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 69 | #[rustc_clean(cfg="bfail6")] | |
| 65 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 66 | #[rustc_clean(cfg="bpass3")] | |
| 67 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 68 | #[rustc_clean(cfg="bpass6")] | |
| 70 | 69 | pub fn change_callee_indirectly_function() { |
| 71 | 70 | callee(1, 2) |
| 72 | 71 | } |
| ... | ... | @@ -80,17 +79,17 @@ impl Struct { |
| 80 | 79 | } |
| 81 | 80 | |
| 82 | 81 | // Change Callee (Method) |
| 83 | #[cfg(any(bfail1,bfail4))] | |
| 82 | #[cfg(any(bpass1,bpass4))] | |
| 84 | 83 | pub fn change_callee_method() { |
| 85 | 84 | let s = Struct; |
| 86 | 85 | s.method1('x', true); |
| 87 | 86 | } |
| 88 | 87 | |
| 89 | #[cfg(not(any(bfail1,bfail4)))] | |
| 90 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 91 | #[rustc_clean(cfg="bfail3")] | |
| 92 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 93 | #[rustc_clean(cfg="bfail6")] | |
| 88 | #[cfg(not(any(bpass1,bpass4)))] | |
| 89 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 90 | #[rustc_clean(cfg="bpass3")] | |
| 91 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 92 | #[rustc_clean(cfg="bpass6")] | |
| 94 | 93 | pub fn change_callee_method() { |
| 95 | 94 | let s = Struct; |
| 96 | 95 | s.method2('x', true); |
| ... | ... | @@ -99,17 +98,17 @@ pub fn change_callee_method() { |
| 99 | 98 | |
| 100 | 99 | |
| 101 | 100 | // Change Argument (Method) |
| 102 | #[cfg(any(bfail1,bfail4))] | |
| 101 | #[cfg(any(bpass1,bpass4))] | |
| 103 | 102 | pub fn change_argument_method() { |
| 104 | 103 | let s = Struct; |
| 105 | 104 | s.method1('x', true); |
| 106 | 105 | } |
| 107 | 106 | |
| 108 | #[cfg(not(any(bfail1,bfail4)))] | |
| 109 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 110 | #[rustc_clean(cfg="bfail3")] | |
| 111 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 112 | #[rustc_clean(cfg="bfail6")] | |
| 107 | #[cfg(not(any(bpass1,bpass4)))] | |
| 108 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 109 | #[rustc_clean(cfg="bpass3")] | |
| 110 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 111 | #[rustc_clean(cfg="bpass6")] | |
| 113 | 112 | pub fn change_argument_method() { |
| 114 | 113 | let s = Struct; |
| 115 | 114 | s.method1('y', true); |
| ... | ... | @@ -118,17 +117,17 @@ pub fn change_argument_method() { |
| 118 | 117 | |
| 119 | 118 | |
| 120 | 119 | // Change Callee (Method, UFCS) |
| 121 | #[cfg(any(bfail1,bfail4))] | |
| 120 | #[cfg(any(bpass1,bpass4))] | |
| 122 | 121 | pub fn change_ufcs_callee_method() { |
| 123 | 122 | let s = Struct; |
| 124 | 123 | Struct::method1(&s, 'x', true); |
| 125 | 124 | } |
| 126 | 125 | |
| 127 | #[cfg(not(any(bfail1,bfail4)))] | |
| 128 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 129 | #[rustc_clean(cfg="bfail3")] | |
| 130 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 131 | #[rustc_clean(cfg="bfail6")] | |
| 126 | #[cfg(not(any(bpass1,bpass4)))] | |
| 127 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 128 | #[rustc_clean(cfg="bpass3")] | |
| 129 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 130 | #[rustc_clean(cfg="bpass6")] | |
| 132 | 131 | pub fn change_ufcs_callee_method() { |
| 133 | 132 | let s = Struct; |
| 134 | 133 | Struct::method2(&s, 'x', true); |
| ... | ... | @@ -137,17 +136,17 @@ pub fn change_ufcs_callee_method() { |
| 137 | 136 | |
| 138 | 137 | |
| 139 | 138 | // Change Argument (Method, UFCS) |
| 140 | #[cfg(any(bfail1,bfail4))] | |
| 139 | #[cfg(any(bpass1,bpass4))] | |
| 141 | 140 | pub fn change_argument_method_ufcs() { |
| 142 | 141 | let s = Struct; |
| 143 | 142 | Struct::method1(&s, 'x', true); |
| 144 | 143 | } |
| 145 | 144 | |
| 146 | #[cfg(not(any(bfail1,bfail4)))] | |
| 147 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 148 | #[rustc_clean(cfg="bfail3")] | |
| 149 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 150 | #[rustc_clean(cfg="bfail6")] | |
| 145 | #[cfg(not(any(bpass1,bpass4)))] | |
| 146 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 147 | #[rustc_clean(cfg="bpass3")] | |
| 148 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 149 | #[rustc_clean(cfg="bpass6")] | |
| 151 | 150 | pub fn change_argument_method_ufcs() { |
| 152 | 151 | let s = Struct; |
| 153 | 152 | Struct::method1(&s, 'x',false); |
| ... | ... | @@ -156,17 +155,17 @@ pub fn change_argument_method_ufcs() { |
| 156 | 155 | |
| 157 | 156 | |
| 158 | 157 | // Change To UFCS |
| 159 | #[cfg(any(bfail1,bfail4))] | |
| 158 | #[cfg(any(bpass1,bpass4))] | |
| 160 | 159 | pub fn change_to_ufcs() { |
| 161 | 160 | let s = Struct; |
| 162 | 161 | s.method1('x', true); // ------ |
| 163 | 162 | } |
| 164 | 163 | |
| 165 | #[cfg(not(any(bfail1,bfail4)))] | |
| 166 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 167 | #[rustc_clean(cfg="bfail3")] | |
| 168 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 169 | #[rustc_clean(cfg="bfail6")] | |
| 164 | #[cfg(not(any(bpass1,bpass4)))] | |
| 165 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 166 | #[rustc_clean(cfg="bpass3")] | |
| 167 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 168 | #[rustc_clean(cfg="bpass6")] | |
| 170 | 169 | // One might think this would be expanded in the opt_hir_owner_nodes/Mir, but it actually |
| 171 | 170 | // results in slightly different hir_owner/Mir. |
| 172 | 171 | pub fn change_to_ufcs() { |
| ... | ... | @@ -182,15 +181,15 @@ impl Struct2 { |
| 182 | 181 | |
| 183 | 182 | // Change UFCS Callee Indirectly |
| 184 | 183 | pub mod change_ufcs_callee_indirectly { |
| 185 | #[cfg(any(bfail1,bfail4))] | |
| 184 | #[cfg(any(bpass1,bpass4))] | |
| 186 | 185 | use super::Struct as Struct; |
| 187 | #[cfg(not(any(bfail1,bfail4)))] | |
| 186 | #[cfg(not(any(bpass1,bpass4)))] | |
| 188 | 187 | use super::Struct2 as Struct; |
| 189 | 188 | |
| 190 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 191 | #[rustc_clean(cfg="bfail3")] | |
| 192 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 193 | #[rustc_clean(cfg="bfail6")] | |
| 189 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 190 | #[rustc_clean(cfg="bpass3")] | |
| 191 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 192 | #[rustc_clean(cfg="bpass6")] | |
| 194 | 193 | pub fn change_ufcs_callee_indirectly() { |
| 195 | 194 | let s = Struct; |
| 196 | 195 | Struct::method1(&s, 'q', false) |
tests/incremental/hashes/closure_expressions.rs+41-41| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,16 +19,16 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change closure body |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn change_closure_body() { |
| 24 | 24 | let _ = || 1u32; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | #[cfg(not(any(bfail1,bfail4)))] | |
| 28 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg="bfail3")] | |
| 30 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg="bfail6")] | |
| 27 | #[cfg(not(any(bpass1,bpass4)))] | |
| 28 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg="bpass3")] | |
| 30 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg="bpass6")] | |
| 32 | 32 | pub fn change_closure_body() { |
| 33 | 33 | let _ = || 3u32; |
| 34 | 34 | } |
| ... | ... | @@ -36,17 +36,17 @@ pub fn change_closure_body() { |
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | // Add parameter |
| 39 | #[cfg(any(bfail1,bfail4))] | |
| 39 | #[cfg(any(bpass1,bpass4))] | |
| 40 | 40 | pub fn add_parameter() { |
| 41 | 41 | let x = 0u32; |
| 42 | 42 | let _ = | | x + 1; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | #[cfg(not(any(bfail1,bfail4)))] | |
| 46 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, typeck_root")] | |
| 47 | #[rustc_clean(cfg="bfail3")] | |
| 48 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, typeck_root")] | |
| 49 | #[rustc_clean(cfg="bfail6")] | |
| 45 | #[cfg(not(any(bpass1,bpass4)))] | |
| 46 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, typeck_root")] | |
| 47 | #[rustc_clean(cfg="bpass3")] | |
| 48 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, typeck_root")] | |
| 49 | #[rustc_clean(cfg="bpass6")] | |
| 50 | 50 | pub fn add_parameter() { |
| 51 | 51 | let x = 0u32; |
| 52 | 52 | let _ = |x: u32| x + 1; |
| ... | ... | @@ -55,16 +55,16 @@ pub fn add_parameter() { |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | // Change parameter pattern |
| 58 | #[cfg(any(bfail1,bfail4))] | |
| 58 | #[cfg(any(bpass1,bpass4))] | |
| 59 | 59 | pub fn change_parameter_pattern() { |
| 60 | 60 | let _ = | x : (u32,)| x; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | #[cfg(not(any(bfail1,bfail4)))] | |
| 64 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, typeck_root")] | |
| 65 | #[rustc_clean(cfg="bfail3")] | |
| 66 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, typeck_root")] | |
| 67 | #[rustc_clean(cfg="bfail6")] | |
| 63 | #[cfg(not(any(bpass1,bpass4)))] | |
| 64 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, typeck_root")] | |
| 65 | #[rustc_clean(cfg="bpass3")] | |
| 66 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, typeck_root")] | |
| 67 | #[rustc_clean(cfg="bpass6")] | |
| 68 | 68 | pub fn change_parameter_pattern() { |
| 69 | 69 | let _ = |(x,): (u32,)| x; |
| 70 | 70 | } |
| ... | ... | @@ -72,16 +72,16 @@ pub fn change_parameter_pattern() { |
| 72 | 72 | |
| 73 | 73 | |
| 74 | 74 | // Add `move` to closure |
| 75 | #[cfg(any(bfail1,bfail4))] | |
| 75 | #[cfg(any(bpass1,bpass4))] | |
| 76 | 76 | pub fn add_move() { |
| 77 | 77 | let _ = || 1; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | #[cfg(not(any(bfail1,bfail4)))] | |
| 81 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 82 | #[rustc_clean(cfg="bfail3")] | |
| 83 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 84 | #[rustc_clean(cfg="bfail6")] | |
| 80 | #[cfg(not(any(bpass1,bpass4)))] | |
| 81 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 82 | #[rustc_clean(cfg="bpass3")] | |
| 83 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 84 | #[rustc_clean(cfg="bpass6")] | |
| 85 | 85 | pub fn add_move() { |
| 86 | 86 | let _ = move || 1; |
| 87 | 87 | } |
| ... | ... | @@ -89,17 +89,17 @@ pub fn add_move() { |
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | // Add type ascription to parameter |
| 92 | #[cfg(any(bfail1,bfail4))] | |
| 92 | #[cfg(any(bpass1,bpass4))] | |
| 93 | 93 | pub fn add_type_ascription_to_parameter() { |
| 94 | 94 | let closure = |x | x + 1u32; |
| 95 | 95 | let _: u32 = closure(1); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | #[cfg(not(any(bfail1,bfail4)))] | |
| 99 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, typeck_root")] | |
| 100 | #[rustc_clean(cfg = "bfail3")] | |
| 101 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, typeck_root")] | |
| 102 | #[rustc_clean(cfg = "bfail6")] | |
| 98 | #[cfg(not(any(bpass1,bpass4)))] | |
| 99 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, typeck_root")] | |
| 100 | #[rustc_clean(cfg = "bpass3")] | |
| 101 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, typeck_root")] | |
| 102 | #[rustc_clean(cfg = "bpass6")] | |
| 103 | 103 | pub fn add_type_ascription_to_parameter() { |
| 104 | 104 | let closure = |x: u32| x + 1u32; |
| 105 | 105 | let _: u32 = closure(1); |
| ... | ... | @@ -108,17 +108,17 @@ pub fn add_type_ascription_to_parameter() { |
| 108 | 108 | |
| 109 | 109 | |
| 110 | 110 | // Change parameter type |
| 111 | #[cfg(any(bfail1,bfail4))] | |
| 111 | #[cfg(any(bpass1,bpass4))] | |
| 112 | 112 | pub fn change_parameter_type() { |
| 113 | 113 | let closure = |x: u32| (x as u64) + 1; |
| 114 | 114 | let _ = closure(1); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | #[cfg(not(any(bfail1,bfail4)))] | |
| 118 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 119 | #[rustc_clean(cfg="bfail3")] | |
| 120 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 121 | #[rustc_clean(cfg="bfail6")] | |
| 117 | #[cfg(not(any(bpass1,bpass4)))] | |
| 118 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 119 | #[rustc_clean(cfg="bpass3")] | |
| 120 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 121 | #[rustc_clean(cfg="bpass6")] | |
| 122 | 122 | pub fn change_parameter_type() { |
| 123 | 123 | let closure = |x: u16| (x as u64) + 1; |
| 124 | 124 | let _ = closure(1); |
tests/incremental/hashes/consts.rs+36-36| ... | ... | @@ -5,10 +5,10 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | 10 | //@ ignore-backends: gcc |
| 11 | // FIXME(#62277): could be check-pass? | |
| 12 | 12 | |
| 13 | 13 | #![allow(warnings)] |
| 14 | 14 | #![feature(rustc_attrs)] |
| ... | ... | @@ -16,75 +16,75 @@ |
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | // Change const visibility |
| 19 | #[cfg(bfail1)] | |
| 19 | #[cfg(bpass1)] | |
| 20 | 20 | const CONST_VISIBILITY: u8 = 0; |
| 21 | 21 | |
| 22 | #[cfg(not(bfail1))] | |
| 23 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 24 | #[rustc_clean(cfg="bfail3")] | |
| 22 | #[cfg(not(bpass1))] | |
| 23 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 24 | #[rustc_clean(cfg="bpass3")] | |
| 25 | 25 | pub const CONST_VISIBILITY: u8 = 0; |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | // Change type from i32 to u32 |
| 29 | #[cfg(bfail1)] | |
| 29 | #[cfg(bpass1)] | |
| 30 | 30 | const CONST_CHANGE_TYPE_1: i32 = 0; |
| 31 | 31 | |
| 32 | #[cfg(not(bfail1))] | |
| 33 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 34 | #[rustc_clean(cfg="bfail3")] | |
| 32 | #[cfg(not(bpass1))] | |
| 33 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 34 | #[rustc_clean(cfg="bpass3")] | |
| 35 | 35 | const CONST_CHANGE_TYPE_1: u32 = 0; |
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | // Change type from Option<u32> to Option<u64> |
| 39 | #[cfg(bfail1)] | |
| 39 | #[cfg(bpass1)] | |
| 40 | 40 | const CONST_CHANGE_TYPE_2: Option<u32> = None; |
| 41 | 41 | |
| 42 | #[cfg(not(bfail1))] | |
| 43 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 44 | #[rustc_clean(cfg="bfail3")] | |
| 42 | #[cfg(not(bpass1))] | |
| 43 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 44 | #[rustc_clean(cfg="bpass3")] | |
| 45 | 45 | const CONST_CHANGE_TYPE_2: Option<u64> = None; |
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | // Change value between simple literals |
| 49 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 50 | #[rustc_clean(cfg="bfail3")] | |
| 49 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 50 | #[rustc_clean(cfg="bpass3")] | |
| 51 | 51 | const CONST_CHANGE_VALUE_1: i16 = { |
| 52 | #[cfg(bfail1)] | |
| 52 | #[cfg(bpass1)] | |
| 53 | 53 | { 1 } |
| 54 | 54 | |
| 55 | #[cfg(not(bfail1))] | |
| 55 | #[cfg(not(bpass1))] | |
| 56 | 56 | { 2 } |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | // Change value between expressions |
| 61 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 62 | #[rustc_clean(cfg="bfail3")] | |
| 61 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 62 | #[rustc_clean(cfg="bpass3")] | |
| 63 | 63 | const CONST_CHANGE_VALUE_2: i16 = { |
| 64 | #[cfg(bfail1)] | |
| 64 | #[cfg(bpass1)] | |
| 65 | 65 | { 1 + 1 } |
| 66 | 66 | |
| 67 | #[cfg(not(bfail1))] | |
| 67 | #[cfg(not(bpass1))] | |
| 68 | 68 | { 1 + 2 } |
| 69 | 69 | }; |
| 70 | 70 | |
| 71 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 72 | #[rustc_clean(cfg="bfail3")] | |
| 71 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 72 | #[rustc_clean(cfg="bpass3")] | |
| 73 | 73 | const CONST_CHANGE_VALUE_3: i16 = { |
| 74 | #[cfg(bfail1)] | |
| 74 | #[cfg(bpass1)] | |
| 75 | 75 | { 2 + 3 } |
| 76 | 76 | |
| 77 | #[cfg(not(bfail1))] | |
| 77 | #[cfg(not(bpass1))] | |
| 78 | 78 | { 2 * 3 } |
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 82 | #[rustc_clean(cfg="bfail3")] | |
| 81 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 82 | #[rustc_clean(cfg="bpass3")] | |
| 83 | 83 | const CONST_CHANGE_VALUE_4: i16 = { |
| 84 | #[cfg(bfail1)] | |
| 84 | #[cfg(bpass1)] | |
| 85 | 85 | { 1 + 2 * 3 } |
| 86 | 86 | |
| 87 | #[cfg(not(bfail1))] | |
| 87 | #[cfg(not(bpass1))] | |
| 88 | 88 | { 1 + 2 * 4 } |
| 89 | 89 | }; |
| 90 | 90 | |
| ... | ... | @@ -94,17 +94,17 @@ struct ReferencedType1; |
| 94 | 94 | struct ReferencedType2; |
| 95 | 95 | |
| 96 | 96 | mod const_change_type_indirectly { |
| 97 | #[cfg(bfail1)] | |
| 97 | #[cfg(bpass1)] | |
| 98 | 98 | use super::ReferencedType1 as Type; |
| 99 | 99 | |
| 100 | #[cfg(not(bfail1))] | |
| 100 | #[cfg(not(bpass1))] | |
| 101 | 101 | use super::ReferencedType2 as Type; |
| 102 | 102 | |
| 103 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 104 | #[rustc_clean(cfg="bfail3")] | |
| 103 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 104 | #[rustc_clean(cfg="bpass3")] | |
| 105 | 105 | const CONST_CHANGE_TYPE_INDIRECTLY_1: Type = Type; |
| 106 | 106 | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | 109 | const CONST_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None; |
| 110 | 110 | } |
tests/incremental/hashes/delayed_lints.rs+6-7| ... | ... | @@ -2,8 +2,7 @@ |
| 2 | 2 | // Emitting these lints is delayed until after ast lowering. |
| 3 | 3 | // This test tests that the delayed hints are correctly hashed for incremental. |
| 4 | 4 | |
| 5 | //@ check-pass | |
| 6 | //@ revisions: bfail1 bfail2 bfail3 | |
| 5 | //@ revisions: cpass1 cpass2 cpass3 | |
| 7 | 6 | //@ compile-flags: -Z query-dep-graph -O -Zincremental-ignore-spans |
| 8 | 7 | //@ ignore-backends: gcc |
| 9 | 8 | #![feature(rustc_attrs)] |
| ... | ... | @@ -15,13 +14,13 @@ |
| 15 | 14 | // Between revision 1 and 2, the only thing we change is that we add "test = 2" |
| 16 | 15 | // This will emit an extra delayed lint, but it will not change the HIR hash. |
| 17 | 16 | // We check that even tho the HIR hash didn't change, the extra lint is emitted |
| 18 | #[cfg_attr(bfail1, doc(hidden))] | |
| 19 | #[cfg_attr(not(bfail1), doc(hidden, test = 2))] | |
| 20 | //[bfail2,bfail3]~^ WARN `#[doc(test(...)]` takes a list of attributes [invalid_doc_attributes] | |
| 17 | #[cfg_attr(cpass1, doc(hidden))] | |
| 18 | #[cfg_attr(not(cpass1), doc(hidden, test = 2))] | |
| 19 | //[cpass2,cpass3]~^ WARN `#[doc(test(...)]` takes a list of attributes [invalid_doc_attributes] | |
| 21 | 20 | |
| 22 | 21 | // The HIR hash should not change between revisions, for this test to be representative |
| 23 | #[rustc_clean(cfg="bfail2")] | |
| 24 | #[rustc_clean(cfg="bfail3")] | |
| 22 | #[rustc_clean(cfg="cpass2")] | |
| 23 | #[rustc_clean(cfg="cpass3")] | |
| 25 | 24 | trait Test {} |
| 26 | 25 | |
| 27 | 26 | fn main() {} |
tests/incremental/hashes/enum_constructors.rs+95-95| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -28,7 +28,7 @@ pub enum Enum { |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // Change field value (struct-like) ----------------------------------------- |
| 31 | #[cfg(any(bfail1,bfail4))] | |
| 31 | #[cfg(any(bpass1,bpass4))] | |
| 32 | 32 | pub fn change_field_value_struct_like() -> Enum { |
| 33 | 33 | Enum::Struct { |
| 34 | 34 | x: 0, |
| ... | ... | @@ -37,11 +37,11 @@ pub fn change_field_value_struct_like() -> Enum { |
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | #[cfg(not(any(bfail1,bfail4)))] | |
| 41 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 42 | #[rustc_clean(cfg="bfail3")] | |
| 43 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 44 | #[rustc_clean(cfg="bfail6")] | |
| 40 | #[cfg(not(any(bpass1,bpass4)))] | |
| 41 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 42 | #[rustc_clean(cfg="bpass3")] | |
| 43 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 44 | #[rustc_clean(cfg="bpass6")] | |
| 45 | 45 | pub fn change_field_value_struct_like() -> Enum { |
| 46 | 46 | Enum::Struct { |
| 47 | 47 | x: 0, |
| ... | ... | @@ -53,7 +53,7 @@ pub fn change_field_value_struct_like() -> Enum { |
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | // Change field order (struct-like) ----------------------------------------- |
| 56 | #[cfg(any(bfail1,bfail4))] | |
| 56 | #[cfg(any(bpass1,bpass4))] | |
| 57 | 57 | pub fn change_field_order_struct_like() -> Enum { |
| 58 | 58 | Enum::Struct { |
| 59 | 59 | x: 3, |
| ... | ... | @@ -62,11 +62,11 @@ pub fn change_field_order_struct_like() -> Enum { |
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | #[cfg(not(any(bfail1,bfail4)))] | |
| 66 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 67 | #[rustc_clean(cfg="bfail3")] | |
| 68 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 69 | #[rustc_clean(cfg="bfail6")] | |
| 65 | #[cfg(not(any(bpass1,bpass4)))] | |
| 66 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 67 | #[rustc_clean(cfg="bpass3")] | |
| 68 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 69 | #[rustc_clean(cfg="bpass6")] | |
| 70 | 70 | // FIXME(michaelwoerister):Interesting. I would have thought that that changes the MIR. And it |
| 71 | 71 | // would if it were not all constants |
| 72 | 72 | pub fn change_field_order_struct_like() -> Enum { |
| ... | ... | @@ -94,7 +94,7 @@ pub enum Enum2 { |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | // Change constructor path (struct-like) ------------------------------------ |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | pub fn change_constructor_path_struct_like() { |
| 99 | 99 | let _ = Enum ::Struct { |
| 100 | 100 | x: 0, |
| ... | ... | @@ -103,11 +103,11 @@ pub fn change_constructor_path_struct_like() { |
| 103 | 103 | }; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn change_constructor_path_struct_like() { |
| 112 | 112 | let _ = Enum2::Struct { |
| 113 | 113 | x: 0, |
| ... | ... | @@ -119,7 +119,7 @@ pub fn change_constructor_path_struct_like() { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | // Change variant (regular struct) ------------------------------------ |
| 122 | #[cfg(any(bfail1,bfail4))] | |
| 122 | #[cfg(any(bpass1,bpass4))] | |
| 123 | 123 | pub fn change_constructor_variant_struct_like() { |
| 124 | 124 | let _ = Enum2::Struct { |
| 125 | 125 | x: 0, |
| ... | ... | @@ -128,11 +128,11 @@ pub fn change_constructor_variant_struct_like() { |
| 128 | 128 | }; |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | #[cfg(not(any(bfail1,bfail4)))] | |
| 132 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bfail3")] | |
| 134 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bfail6")] | |
| 131 | #[cfg(not(any(bpass1,bpass4)))] | |
| 132 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bpass3")] | |
| 134 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bpass6")] | |
| 136 | 136 | pub fn change_constructor_variant_struct_like() { |
| 137 | 137 | let _ = Enum2::Struct2 { |
| 138 | 138 | x: 0, |
| ... | ... | @@ -144,15 +144,15 @@ pub fn change_constructor_variant_struct_like() { |
| 144 | 144 | |
| 145 | 145 | // Change constructor path indirectly (struct-like) ------------------------- |
| 146 | 146 | pub mod change_constructor_path_indirectly_struct_like { |
| 147 | #[cfg(any(bfail1,bfail4))] | |
| 147 | #[cfg(any(bpass1,bpass4))] | |
| 148 | 148 | use super::Enum as TheEnum; |
| 149 | #[cfg(not(any(bfail1,bfail4)))] | |
| 149 | #[cfg(not(any(bpass1,bpass4)))] | |
| 150 | 150 | use super::Enum2 as TheEnum; |
| 151 | 151 | |
| 152 | #[rustc_clean(cfg="bfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 153 | #[rustc_clean(cfg="bfail3")] | |
| 154 | #[rustc_clean(cfg="bfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 155 | #[rustc_clean(cfg="bfail6")] | |
| 152 | #[rustc_clean(cfg="bpass2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 153 | #[rustc_clean(cfg="bpass3")] | |
| 154 | #[rustc_clean(cfg="bpass5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 155 | #[rustc_clean(cfg="bpass6")] | |
| 156 | 156 | pub fn function() -> TheEnum { |
| 157 | 157 | TheEnum::Struct { |
| 158 | 158 | x: 0, |
| ... | ... | @@ -166,15 +166,15 @@ pub mod change_constructor_path_indirectly_struct_like { |
| 166 | 166 | // Change constructor variant indirectly (struct-like) --------------------------- |
| 167 | 167 | pub mod change_constructor_variant_indirectly_struct_like { |
| 168 | 168 | use super::Enum2; |
| 169 | #[cfg(any(bfail1,bfail4))] | |
| 169 | #[cfg(any(bpass1,bpass4))] | |
| 170 | 170 | use super::Enum2::Struct as Variant; |
| 171 | #[cfg(not(any(bfail1,bfail4)))] | |
| 171 | #[cfg(not(any(bpass1,bpass4)))] | |
| 172 | 172 | use super::Enum2::Struct2 as Variant; |
| 173 | 173 | |
| 174 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 175 | #[rustc_clean(cfg="bfail3")] | |
| 176 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 177 | #[rustc_clean(cfg="bfail6")] | |
| 174 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 175 | #[rustc_clean(cfg="bpass3")] | |
| 176 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 177 | #[rustc_clean(cfg="bpass6")] | |
| 178 | 178 | pub fn function() -> Enum2 { |
| 179 | 179 | Variant { |
| 180 | 180 | x: 0, |
| ... | ... | @@ -186,16 +186,16 @@ pub mod change_constructor_variant_indirectly_struct_like { |
| 186 | 186 | |
| 187 | 187 | |
| 188 | 188 | // Change field value (tuple-like) ------------------------------------------- |
| 189 | #[cfg(any(bfail1,bfail4))] | |
| 189 | #[cfg(any(bpass1,bpass4))] | |
| 190 | 190 | pub fn change_field_value_tuple_like() -> Enum { |
| 191 | 191 | Enum::Tuple(0, 1, 2) |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | #[cfg(not(any(bfail1,bfail4)))] | |
| 195 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 196 | #[rustc_clean(cfg="bfail3")] | |
| 197 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 198 | #[rustc_clean(cfg="bfail6")] | |
| 194 | #[cfg(not(any(bpass1,bpass4)))] | |
| 195 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 196 | #[rustc_clean(cfg="bpass3")] | |
| 197 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 198 | #[rustc_clean(cfg="bpass6")] | |
| 199 | 199 | pub fn change_field_value_tuple_like() -> Enum { |
| 200 | 200 | Enum::Tuple(0, 1, 3) |
| 201 | 201 | } |
| ... | ... | @@ -203,22 +203,22 @@ pub fn change_field_value_tuple_like() -> Enum { |
| 203 | 203 | |
| 204 | 204 | |
| 205 | 205 | // Change constructor path (tuple-like) -------------------------------------- |
| 206 | #[cfg(any(bfail1,bfail4))] | |
| 206 | #[cfg(any(bpass1,bpass4))] | |
| 207 | 207 | pub fn change_constructor_path_tuple_like() { |
| 208 | 208 | let _ = Enum ::Tuple(0, 1, 2); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | #[cfg(not(any(bfail1,bfail4)))] | |
| 211 | #[cfg(not(any(bpass1,bpass4)))] | |
| 212 | 212 | #[rustc_clean( |
| 213 | cfg="bfail2", | |
| 213 | cfg="bpass2", | |
| 214 | 214 | except="opt_hir_owner_nodes,typeck_root" |
| 215 | 215 | )] |
| 216 | #[rustc_clean(cfg="bfail3")] | |
| 216 | #[rustc_clean(cfg="bpass3")] | |
| 217 | 217 | #[rustc_clean( |
| 218 | cfg="bfail5", | |
| 218 | cfg="bpass5", | |
| 219 | 219 | except="opt_hir_owner_nodes,typeck_root" |
| 220 | 220 | )] |
| 221 | #[rustc_clean(cfg="bfail6")] | |
| 221 | #[rustc_clean(cfg="bpass6")] | |
| 222 | 222 | pub fn change_constructor_path_tuple_like() { |
| 223 | 223 | let _ = Enum2::Tuple(0, 1, 2); |
| 224 | 224 | } |
| ... | ... | @@ -226,22 +226,22 @@ pub fn change_constructor_path_tuple_like() { |
| 226 | 226 | |
| 227 | 227 | |
| 228 | 228 | // Change constructor variant (tuple-like) -------------------------------------- |
| 229 | #[cfg(any(bfail1,bfail4))] | |
| 229 | #[cfg(any(bpass1,bpass4))] | |
| 230 | 230 | pub fn change_constructor_variant_tuple_like() { |
| 231 | 231 | let _ = Enum2::Tuple (0, 1, 2); |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | #[cfg(not(any(bfail1,bfail4)))] | |
| 234 | #[cfg(not(any(bpass1,bpass4)))] | |
| 235 | 235 | #[rustc_clean( |
| 236 | cfg="bfail2", | |
| 236 | cfg="bpass2", | |
| 237 | 237 | except="opt_hir_owner_nodes,typeck_root" |
| 238 | 238 | )] |
| 239 | #[rustc_clean(cfg="bfail3")] | |
| 239 | #[rustc_clean(cfg="bpass3")] | |
| 240 | 240 | #[rustc_clean( |
| 241 | cfg="bfail5", | |
| 241 | cfg="bpass5", | |
| 242 | 242 | except="opt_hir_owner_nodes,typeck_root" |
| 243 | 243 | )] |
| 244 | #[rustc_clean(cfg="bfail6")] | |
| 244 | #[rustc_clean(cfg="bpass6")] | |
| 245 | 245 | pub fn change_constructor_variant_tuple_like() { |
| 246 | 246 | let _ = Enum2::Tuple2(0, 1, 2); |
| 247 | 247 | } |
| ... | ... | @@ -249,15 +249,15 @@ pub fn change_constructor_variant_tuple_like() { |
| 249 | 249 | |
| 250 | 250 | // Change constructor path indirectly (tuple-like) --------------------------- |
| 251 | 251 | pub mod change_constructor_path_indirectly_tuple_like { |
| 252 | #[cfg(any(bfail1,bfail4))] | |
| 252 | #[cfg(any(bpass1,bpass4))] | |
| 253 | 253 | use super::Enum as TheEnum; |
| 254 | #[cfg(not(any(bfail1,bfail4)))] | |
| 254 | #[cfg(not(any(bpass1,bpass4)))] | |
| 255 | 255 | use super::Enum2 as TheEnum; |
| 256 | 256 | |
| 257 | #[rustc_clean(cfg="bfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 258 | #[rustc_clean(cfg="bfail3")] | |
| 259 | #[rustc_clean(cfg="bfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 260 | #[rustc_clean(cfg="bfail6")] | |
| 257 | #[rustc_clean(cfg="bpass2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 258 | #[rustc_clean(cfg="bpass3")] | |
| 259 | #[rustc_clean(cfg="bpass5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 260 | #[rustc_clean(cfg="bpass6")] | |
| 261 | 261 | pub fn function() -> TheEnum { |
| 262 | 262 | TheEnum::Tuple(0, 1, 2) |
| 263 | 263 | } |
| ... | ... | @@ -268,15 +268,15 @@ pub mod change_constructor_path_indirectly_tuple_like { |
| 268 | 268 | // Change constructor variant indirectly (tuple-like) --------------------------- |
| 269 | 269 | pub mod change_constructor_variant_indirectly_tuple_like { |
| 270 | 270 | use super::Enum2; |
| 271 | #[cfg(any(bfail1,bfail4))] | |
| 271 | #[cfg(any(bpass1,bpass4))] | |
| 272 | 272 | use super::Enum2::Tuple as Variant; |
| 273 | #[cfg(not(any(bfail1,bfail4)))] | |
| 273 | #[cfg(not(any(bpass1,bpass4)))] | |
| 274 | 274 | use super::Enum2::Tuple2 as Variant; |
| 275 | 275 | |
| 276 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 277 | #[rustc_clean(cfg="bfail3")] | |
| 278 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 279 | #[rustc_clean(cfg="bfail6")] | |
| 276 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 277 | #[rustc_clean(cfg="bpass3")] | |
| 278 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 279 | #[rustc_clean(cfg="bpass6")] | |
| 280 | 280 | pub fn function() -> Enum2 { |
| 281 | 281 | Variant(0, 1, 2) |
| 282 | 282 | } |
| ... | ... | @@ -296,16 +296,16 @@ pub enum Clike2 { |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | // Change constructor path (C-like) -------------------------------------- |
| 299 | #[cfg(any(bfail1,bfail4))] | |
| 299 | #[cfg(any(bpass1,bpass4))] | |
| 300 | 300 | pub fn change_constructor_path_c_like() { |
| 301 | 301 | let _x = Clike ::B; |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | #[cfg(not(any(bfail1,bfail4)))] | |
| 305 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 306 | #[rustc_clean(cfg="bfail3")] | |
| 307 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 308 | #[rustc_clean(cfg="bfail6")] | |
| 304 | #[cfg(not(any(bpass1,bpass4)))] | |
| 305 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 306 | #[rustc_clean(cfg="bpass3")] | |
| 307 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 308 | #[rustc_clean(cfg="bpass6")] | |
| 309 | 309 | pub fn change_constructor_path_c_like() { |
| 310 | 310 | let _x = Clike2::B; |
| 311 | 311 | } |
| ... | ... | @@ -313,16 +313,16 @@ pub fn change_constructor_path_c_like() { |
| 313 | 313 | |
| 314 | 314 | |
| 315 | 315 | // Change constructor variant (C-like) -------------------------------------- |
| 316 | #[cfg(any(bfail1,bfail4))] | |
| 316 | #[cfg(any(bpass1,bpass4))] | |
| 317 | 317 | pub fn change_constructor_variant_c_like() { |
| 318 | 318 | let _x = Clike::A; |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | #[cfg(not(any(bfail1,bfail4)))] | |
| 322 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 323 | #[rustc_clean(cfg="bfail3")] | |
| 324 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 325 | #[rustc_clean(cfg="bfail6")] | |
| 321 | #[cfg(not(any(bpass1,bpass4)))] | |
| 322 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 323 | #[rustc_clean(cfg="bpass3")] | |
| 324 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 325 | #[rustc_clean(cfg="bpass6")] | |
| 326 | 326 | pub fn change_constructor_variant_c_like() { |
| 327 | 327 | let _x = Clike::C; |
| 328 | 328 | } |
| ... | ... | @@ -330,15 +330,15 @@ pub fn change_constructor_variant_c_like() { |
| 330 | 330 | |
| 331 | 331 | // Change constructor path indirectly (C-like) --------------------------- |
| 332 | 332 | pub mod change_constructor_path_indirectly_c_like { |
| 333 | #[cfg(any(bfail1,bfail4))] | |
| 333 | #[cfg(any(bpass1,bpass4))] | |
| 334 | 334 | use super::Clike as TheEnum; |
| 335 | #[cfg(not(any(bfail1,bfail4)))] | |
| 335 | #[cfg(not(any(bpass1,bpass4)))] | |
| 336 | 336 | use super::Clike2 as TheEnum; |
| 337 | 337 | |
| 338 | #[rustc_clean(cfg="bfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 339 | #[rustc_clean(cfg="bfail3")] | |
| 340 | #[rustc_clean(cfg="bfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 341 | #[rustc_clean(cfg="bfail6")] | |
| 338 | #[rustc_clean(cfg="bpass2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 339 | #[rustc_clean(cfg="bpass3")] | |
| 340 | #[rustc_clean(cfg="bpass5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 341 | #[rustc_clean(cfg="bpass6")] | |
| 342 | 342 | pub fn function() -> TheEnum { |
| 343 | 343 | TheEnum::B |
| 344 | 344 | } |
| ... | ... | @@ -349,15 +349,15 @@ pub mod change_constructor_path_indirectly_c_like { |
| 349 | 349 | // Change constructor variant indirectly (C-like) --------------------------- |
| 350 | 350 | pub mod change_constructor_variant_indirectly_c_like { |
| 351 | 351 | use super::Clike; |
| 352 | #[cfg(any(bfail1,bfail4))] | |
| 352 | #[cfg(any(bpass1,bpass4))] | |
| 353 | 353 | use super::Clike::A as Variant; |
| 354 | #[cfg(not(any(bfail1,bfail4)))] | |
| 354 | #[cfg(not(any(bpass1,bpass4)))] | |
| 355 | 355 | use super::Clike::B as Variant; |
| 356 | 356 | |
| 357 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 358 | #[rustc_clean(cfg="bfail3")] | |
| 359 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 360 | #[rustc_clean(cfg="bfail6")] | |
| 357 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 358 | #[rustc_clean(cfg="bpass3")] | |
| 359 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 360 | #[rustc_clean(cfg="bpass6")] | |
| 361 | 361 | pub fn function() -> Clike { |
| 362 | 362 | Variant |
| 363 | 363 | } |
tests/incremental/hashes/enum_defs.rs+227-227| ... | ... | @@ -10,13 +10,13 @@ |
| 10 | 10 | // results in a change of the ICH for the enum's metadata, and that it stays |
| 11 | 11 | // the same between rev2 and rev3. |
| 12 | 12 | |
| 13 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 14 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 13 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 15 | 14 | //@ compile-flags: -Z query-dep-graph -O |
| 16 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 18 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 15 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 16 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 19 | 18 | //@ ignore-backends: gcc |
| 19 | // FIXME(#62277): could be check-pass? | |
| 20 | 20 | |
| 21 | 21 | #![allow(warnings)] |
| 22 | 22 | #![feature(rustc_attrs)] |
| ... | ... | @@ -26,30 +26,30 @@ |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | // Change enum visibility ----------------------------------------------------- |
| 29 | #[cfg(any(bfail1,bfail4))] | |
| 29 | #[cfg(any(bpass1,bpass4))] | |
| 30 | 30 | enum EnumVisibility { A } |
| 31 | 31 | |
| 32 | #[cfg(not(any(bfail1,bfail4)))] | |
| 33 | #[rustc_clean(cfg="bfail2")] | |
| 34 | #[rustc_clean(cfg="bfail3")] | |
| 35 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 36 | #[rustc_clean(cfg="bfail6")] | |
| 32 | #[cfg(not(any(bpass1,bpass4)))] | |
| 33 | #[rustc_clean(cfg="bpass2")] | |
| 34 | #[rustc_clean(cfg="bpass3")] | |
| 35 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 36 | #[rustc_clean(cfg="bpass6")] | |
| 37 | 37 | pub enum EnumVisibility { A } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | // Change name of a c-style variant ------------------------------------------- |
| 42 | #[cfg(any(bfail1,bfail4))] | |
| 42 | #[cfg(any(bpass1,bpass4))] | |
| 43 | 43 | enum EnumChangeNameCStyleVariant { |
| 44 | 44 | Variant1, |
| 45 | 45 | Variant2, |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | #[cfg(not(any(bfail1,bfail4)))] | |
| 49 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 50 | #[rustc_clean(cfg="bfail3")] | |
| 51 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 52 | #[rustc_clean(cfg="bfail6")] | |
| 48 | #[cfg(not(any(bpass1,bpass4)))] | |
| 49 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 50 | #[rustc_clean(cfg="bpass3")] | |
| 51 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 52 | #[rustc_clean(cfg="bpass6")] | |
| 53 | 53 | enum EnumChangeNameCStyleVariant { |
| 54 | 54 | Variant1, |
| 55 | 55 | Variant2Changed, |
| ... | ... | @@ -58,17 +58,17 @@ enum EnumChangeNameCStyleVariant { |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | // Change name of a tuple-style variant --------------------------------------- |
| 61 | #[cfg(any(bfail1,bfail4))] | |
| 61 | #[cfg(any(bpass1,bpass4))] | |
| 62 | 62 | enum EnumChangeNameTupleStyleVariant { |
| 63 | 63 | Variant1, |
| 64 | 64 | Variant2(u32, f32), |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | #[cfg(not(any(bfail1,bfail4)))] | |
| 68 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 69 | #[rustc_clean(cfg="bfail3")] | |
| 70 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 71 | #[rustc_clean(cfg="bfail6")] | |
| 67 | #[cfg(not(any(bpass1,bpass4)))] | |
| 68 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 69 | #[rustc_clean(cfg="bpass3")] | |
| 70 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 71 | #[rustc_clean(cfg="bpass6")] | |
| 72 | 72 | enum EnumChangeNameTupleStyleVariant { |
| 73 | 73 | Variant1, |
| 74 | 74 | Variant2Changed(u32, f32), |
| ... | ... | @@ -77,17 +77,17 @@ enum EnumChangeNameTupleStyleVariant { |
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | // Change name of a struct-style variant -------------------------------------- |
| 80 | #[cfg(any(bfail1,bfail4))] | |
| 80 | #[cfg(any(bpass1,bpass4))] | |
| 81 | 81 | enum EnumChangeNameStructStyleVariant { |
| 82 | 82 | Variant1, |
| 83 | 83 | Variant2 { a: u32, b: f32 }, |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | #[cfg(not(any(bfail1,bfail4)))] | |
| 87 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 88 | #[rustc_clean(cfg="bfail3")] | |
| 89 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 90 | #[rustc_clean(cfg="bfail6")] | |
| 86 | #[cfg(not(any(bpass1,bpass4)))] | |
| 87 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 88 | #[rustc_clean(cfg="bpass3")] | |
| 89 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 90 | #[rustc_clean(cfg="bpass6")] | |
| 91 | 91 | enum EnumChangeNameStructStyleVariant { |
| 92 | 92 | Variant1, |
| 93 | 93 | Variant2Changed { a: u32, b: f32 }, |
| ... | ... | @@ -96,33 +96,33 @@ enum EnumChangeNameStructStyleVariant { |
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | // Change the value of a c-style variant -------------------------------------- |
| 99 | #[cfg(any(bfail1,bfail4))] | |
| 99 | #[cfg(any(bpass1,bpass4))] | |
| 100 | 100 | enum EnumChangeValueCStyleVariant0 { |
| 101 | 101 | Variant1, |
| 102 | 102 | Variant2 = 11, |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | #[cfg(not(any(bfail1,bfail4)))] | |
| 106 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 107 | #[rustc_clean(cfg="bfail3")] | |
| 108 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 109 | #[rustc_clean(cfg="bfail6")] | |
| 105 | #[cfg(not(any(bpass1,bpass4)))] | |
| 106 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 107 | #[rustc_clean(cfg="bpass3")] | |
| 108 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 109 | #[rustc_clean(cfg="bpass6")] | |
| 110 | 110 | enum EnumChangeValueCStyleVariant0 { |
| 111 | 111 | Variant1, |
| 112 | 112 | Variant2 = 22, |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | #[cfg(any(bfail1,bfail4))] | |
| 115 | #[cfg(any(bpass1,bpass4))] | |
| 116 | 116 | enum EnumChangeValueCStyleVariant1 { |
| 117 | 117 | Variant1, |
| 118 | 118 | Variant2, |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | #[cfg(not(any(bfail1,bfail4)))] | |
| 122 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 123 | #[rustc_clean(cfg="bfail3")] | |
| 124 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 125 | #[rustc_clean(cfg="bfail6")] | |
| 121 | #[cfg(not(any(bpass1,bpass4)))] | |
| 122 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 123 | #[rustc_clean(cfg="bpass3")] | |
| 124 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 125 | #[rustc_clean(cfg="bpass6")] | |
| 126 | 126 | enum EnumChangeValueCStyleVariant1 { |
| 127 | 127 | Variant1, |
| 128 | 128 | Variant2 = 11, |
| ... | ... | @@ -131,16 +131,16 @@ enum EnumChangeValueCStyleVariant1 { |
| 131 | 131 | |
| 132 | 132 | |
| 133 | 133 | // Add a c-style variant ------------------------------------------------------ |
| 134 | #[cfg(any(bfail1,bfail4))] | |
| 134 | #[cfg(any(bpass1,bpass4))] | |
| 135 | 135 | enum EnumAddCStyleVariant { |
| 136 | 136 | Variant1, |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | #[cfg(not(any(bfail1,bfail4)))] | |
| 140 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 141 | #[rustc_clean(cfg="bfail3")] | |
| 142 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 143 | #[rustc_clean(cfg="bfail6")] | |
| 139 | #[cfg(not(any(bpass1,bpass4)))] | |
| 140 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 141 | #[rustc_clean(cfg="bpass3")] | |
| 142 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 143 | #[rustc_clean(cfg="bpass6")] | |
| 144 | 144 | enum EnumAddCStyleVariant { |
| 145 | 145 | Variant1, |
| 146 | 146 | Variant2, |
| ... | ... | @@ -149,17 +149,17 @@ enum EnumAddCStyleVariant { |
| 149 | 149 | |
| 150 | 150 | |
| 151 | 151 | // Remove a c-style variant --------------------------------------------------- |
| 152 | #[cfg(any(bfail1,bfail4))] | |
| 152 | #[cfg(any(bpass1,bpass4))] | |
| 153 | 153 | enum EnumRemoveCStyleVariant { |
| 154 | 154 | Variant1, |
| 155 | 155 | Variant2, |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | #[cfg(not(any(bfail1,bfail4)))] | |
| 159 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 160 | #[rustc_clean(cfg="bfail3")] | |
| 161 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 162 | #[rustc_clean(cfg="bfail6")] | |
| 158 | #[cfg(not(any(bpass1,bpass4)))] | |
| 159 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 160 | #[rustc_clean(cfg="bpass3")] | |
| 161 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 162 | #[rustc_clean(cfg="bpass6")] | |
| 163 | 163 | enum EnumRemoveCStyleVariant { |
| 164 | 164 | Variant1, |
| 165 | 165 | } |
| ... | ... | @@ -167,16 +167,16 @@ enum EnumRemoveCStyleVariant { |
| 167 | 167 | |
| 168 | 168 | |
| 169 | 169 | // Add a tuple-style variant -------------------------------------------------- |
| 170 | #[cfg(any(bfail1,bfail4))] | |
| 170 | #[cfg(any(bpass1,bpass4))] | |
| 171 | 171 | enum EnumAddTupleStyleVariant { |
| 172 | 172 | Variant1, |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | #[cfg(not(any(bfail1,bfail4)))] | |
| 176 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 177 | #[rustc_clean(cfg="bfail3")] | |
| 178 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 179 | #[rustc_clean(cfg="bfail6")] | |
| 175 | #[cfg(not(any(bpass1,bpass4)))] | |
| 176 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 177 | #[rustc_clean(cfg="bpass3")] | |
| 178 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 179 | #[rustc_clean(cfg="bpass6")] | |
| 180 | 180 | enum EnumAddTupleStyleVariant { |
| 181 | 181 | Variant1, |
| 182 | 182 | Variant2(u32, f32), |
| ... | ... | @@ -185,17 +185,17 @@ enum EnumAddTupleStyleVariant { |
| 185 | 185 | |
| 186 | 186 | |
| 187 | 187 | // Remove a tuple-style variant ----------------------------------------------- |
| 188 | #[cfg(any(bfail1,bfail4))] | |
| 188 | #[cfg(any(bpass1,bpass4))] | |
| 189 | 189 | enum EnumRemoveTupleStyleVariant { |
| 190 | 190 | Variant1, |
| 191 | 191 | Variant2(u32, f32), |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | #[cfg(not(any(bfail1,bfail4)))] | |
| 195 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 196 | #[rustc_clean(cfg="bfail3")] | |
| 197 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 198 | #[rustc_clean(cfg="bfail6")] | |
| 194 | #[cfg(not(any(bpass1,bpass4)))] | |
| 195 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 196 | #[rustc_clean(cfg="bpass3")] | |
| 197 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 198 | #[rustc_clean(cfg="bpass6")] | |
| 199 | 199 | enum EnumRemoveTupleStyleVariant { |
| 200 | 200 | Variant1, |
| 201 | 201 | } |
| ... | ... | @@ -203,16 +203,16 @@ enum EnumRemoveTupleStyleVariant { |
| 203 | 203 | |
| 204 | 204 | |
| 205 | 205 | // Add a struct-style variant ------------------------------------------------- |
| 206 | #[cfg(any(bfail1,bfail4))] | |
| 206 | #[cfg(any(bpass1,bpass4))] | |
| 207 | 207 | enum EnumAddStructStyleVariant { |
| 208 | 208 | Variant1, |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | #[cfg(not(any(bfail1,bfail4)))] | |
| 212 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 213 | #[rustc_clean(cfg="bfail3")] | |
| 214 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 215 | #[rustc_clean(cfg="bfail6")] | |
| 211 | #[cfg(not(any(bpass1,bpass4)))] | |
| 212 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 213 | #[rustc_clean(cfg="bpass3")] | |
| 214 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 215 | #[rustc_clean(cfg="bpass6")] | |
| 216 | 216 | enum EnumAddStructStyleVariant { |
| 217 | 217 | Variant1, |
| 218 | 218 | Variant2 { a: u32, b: f32 }, |
| ... | ... | @@ -221,17 +221,17 @@ enum EnumAddStructStyleVariant { |
| 221 | 221 | |
| 222 | 222 | |
| 223 | 223 | // Remove a struct-style variant ---------------------------------------------- |
| 224 | #[cfg(any(bfail1,bfail4))] | |
| 224 | #[cfg(any(bpass1,bpass4))] | |
| 225 | 225 | enum EnumRemoveStructStyleVariant { |
| 226 | 226 | Variant1, |
| 227 | 227 | Variant2 { a: u32, b: f32 }, |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | #[cfg(not(any(bfail1,bfail4)))] | |
| 231 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 232 | #[rustc_clean(cfg="bfail3")] | |
| 233 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 234 | #[rustc_clean(cfg="bfail6")] | |
| 230 | #[cfg(not(any(bpass1,bpass4)))] | |
| 231 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 232 | #[rustc_clean(cfg="bpass3")] | |
| 233 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 234 | #[rustc_clean(cfg="bpass6")] | |
| 235 | 235 | enum EnumRemoveStructStyleVariant { |
| 236 | 236 | Variant1, |
| 237 | 237 | } |
| ... | ... | @@ -239,16 +239,16 @@ enum EnumRemoveStructStyleVariant { |
| 239 | 239 | |
| 240 | 240 | |
| 241 | 241 | // Change the type of a field in a tuple-style variant ------------------------ |
| 242 | #[cfg(any(bfail1,bfail4))] | |
| 242 | #[cfg(any(bpass1,bpass4))] | |
| 243 | 243 | enum EnumChangeFieldTypeTupleStyleVariant { |
| 244 | 244 | Variant1(u32, u32), |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | #[cfg(not(any(bfail1,bfail4)))] | |
| 248 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 249 | #[rustc_clean(cfg="bfail3")] | |
| 250 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 251 | #[rustc_clean(cfg="bfail6")] | |
| 247 | #[cfg(not(any(bpass1,bpass4)))] | |
| 248 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 249 | #[rustc_clean(cfg="bpass3")] | |
| 250 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 251 | #[rustc_clean(cfg="bpass6")] | |
| 252 | 252 | enum EnumChangeFieldTypeTupleStyleVariant { |
| 253 | 253 | Variant1(u32, |
| 254 | 254 | u64), |
| ... | ... | @@ -257,17 +257,17 @@ enum EnumChangeFieldTypeTupleStyleVariant { |
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | // Change the type of a field in a struct-style variant ----------------------- |
| 260 | #[cfg(any(bfail1,bfail4))] | |
| 260 | #[cfg(any(bpass1,bpass4))] | |
| 261 | 261 | enum EnumChangeFieldTypeStructStyleVariant { |
| 262 | 262 | Variant1, |
| 263 | 263 | Variant2 { a: u32, b: u32 }, |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | #[cfg(not(any(bfail1,bfail4)))] | |
| 267 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 268 | #[rustc_clean(cfg="bfail3")] | |
| 269 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 270 | #[rustc_clean(cfg="bfail6")] | |
| 266 | #[cfg(not(any(bpass1,bpass4)))] | |
| 267 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 268 | #[rustc_clean(cfg="bpass3")] | |
| 269 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 270 | #[rustc_clean(cfg="bpass6")] | |
| 271 | 271 | enum EnumChangeFieldTypeStructStyleVariant { |
| 272 | 272 | Variant1, |
| 273 | 273 | Variant2 { |
| ... | ... | @@ -279,16 +279,16 @@ enum EnumChangeFieldTypeStructStyleVariant { |
| 279 | 279 | |
| 280 | 280 | |
| 281 | 281 | // Change the name of a field in a struct-style variant ----------------------- |
| 282 | #[cfg(any(bfail1,bfail4))] | |
| 282 | #[cfg(any(bpass1,bpass4))] | |
| 283 | 283 | enum EnumChangeFieldNameStructStyleVariant { |
| 284 | 284 | Variant1 { a: u32, b: u32 }, |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | #[cfg(not(any(bfail1,bfail4)))] | |
| 288 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 289 | #[rustc_clean(cfg="bfail3")] | |
| 290 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 291 | #[rustc_clean(cfg="bfail6")] | |
| 287 | #[cfg(not(any(bpass1,bpass4)))] | |
| 288 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 289 | #[rustc_clean(cfg="bpass3")] | |
| 290 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 291 | #[rustc_clean(cfg="bpass6")] | |
| 292 | 292 | enum EnumChangeFieldNameStructStyleVariant { |
| 293 | 293 | Variant1 { a: u32, c: u32 }, |
| 294 | 294 | } |
| ... | ... | @@ -296,16 +296,16 @@ enum EnumChangeFieldNameStructStyleVariant { |
| 296 | 296 | |
| 297 | 297 | |
| 298 | 298 | // Change order of fields in a tuple-style variant ---------------------------- |
| 299 | #[cfg(any(bfail1,bfail4))] | |
| 299 | #[cfg(any(bpass1,bpass4))] | |
| 300 | 300 | enum EnumChangeOrderTupleStyleVariant { |
| 301 | 301 | Variant1(u32, u64), |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | #[cfg(not(any(bfail1,bfail4)))] | |
| 305 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 306 | #[rustc_clean(cfg="bfail3")] | |
| 307 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 308 | #[rustc_clean(cfg="bfail6")] | |
| 304 | #[cfg(not(any(bpass1,bpass4)))] | |
| 305 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 306 | #[rustc_clean(cfg="bpass3")] | |
| 307 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 308 | #[rustc_clean(cfg="bpass6")] | |
| 309 | 309 | enum EnumChangeOrderTupleStyleVariant { |
| 310 | 310 | Variant1( |
| 311 | 311 | u64, |
| ... | ... | @@ -315,16 +315,16 @@ enum EnumChangeOrderTupleStyleVariant { |
| 315 | 315 | |
| 316 | 316 | |
| 317 | 317 | // Change order of fields in a struct-style variant --------------------------- |
| 318 | #[cfg(any(bfail1,bfail4))] | |
| 318 | #[cfg(any(bpass1,bpass4))] | |
| 319 | 319 | enum EnumChangeFieldOrderStructStyleVariant { |
| 320 | 320 | Variant1 { a: u32, b: f32 }, |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | #[cfg(not(any(bfail1,bfail4)))] | |
| 324 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 325 | #[rustc_clean(cfg="bfail3")] | |
| 326 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 327 | #[rustc_clean(cfg="bfail6")] | |
| 323 | #[cfg(not(any(bpass1,bpass4)))] | |
| 324 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 325 | #[rustc_clean(cfg="bpass3")] | |
| 326 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 327 | #[rustc_clean(cfg="bpass6")] | |
| 328 | 328 | enum EnumChangeFieldOrderStructStyleVariant { |
| 329 | 329 | Variant1 { b: f32, a: u32 }, |
| 330 | 330 | } |
| ... | ... | @@ -332,16 +332,16 @@ enum EnumChangeFieldOrderStructStyleVariant { |
| 332 | 332 | |
| 333 | 333 | |
| 334 | 334 | // Add a field to a tuple-style variant --------------------------------------- |
| 335 | #[cfg(any(bfail1,bfail4))] | |
| 335 | #[cfg(any(bpass1,bpass4))] | |
| 336 | 336 | enum EnumAddFieldTupleStyleVariant { |
| 337 | 337 | Variant1(u32, u32), |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | #[cfg(not(any(bfail1,bfail4)))] | |
| 341 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 342 | #[rustc_clean(cfg="bfail3")] | |
| 343 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 344 | #[rustc_clean(cfg="bfail6")] | |
| 340 | #[cfg(not(any(bpass1,bpass4)))] | |
| 341 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 342 | #[rustc_clean(cfg="bpass3")] | |
| 343 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 344 | #[rustc_clean(cfg="bpass6")] | |
| 345 | 345 | enum EnumAddFieldTupleStyleVariant { |
| 346 | 346 | Variant1(u32, u32, u32), |
| 347 | 347 | } |
| ... | ... | @@ -349,16 +349,16 @@ enum EnumAddFieldTupleStyleVariant { |
| 349 | 349 | |
| 350 | 350 | |
| 351 | 351 | // Add a field to a struct-style variant -------------------------------------- |
| 352 | #[cfg(any(bfail1,bfail4))] | |
| 352 | #[cfg(any(bpass1,bpass4))] | |
| 353 | 353 | enum EnumAddFieldStructStyleVariant { |
| 354 | 354 | Variant1 { a: u32, b: u32 }, |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | #[cfg(not(any(bfail1,bfail4)))] | |
| 358 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 359 | #[rustc_clean(cfg="bfail3")] | |
| 360 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 361 | #[rustc_clean(cfg="bfail6")] | |
| 357 | #[cfg(not(any(bpass1,bpass4)))] | |
| 358 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 359 | #[rustc_clean(cfg="bpass3")] | |
| 360 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 361 | #[rustc_clean(cfg="bpass6")] | |
| 362 | 362 | enum EnumAddFieldStructStyleVariant { |
| 363 | 363 | Variant1 { a: u32, b: u32, c: u32 }, |
| 364 | 364 | } |
| ... | ... | @@ -366,17 +366,17 @@ enum EnumAddFieldStructStyleVariant { |
| 366 | 366 | |
| 367 | 367 | |
| 368 | 368 | // Add #[must_use] to the enum ------------------------------------------------ |
| 369 | #[cfg(any(bfail1,bfail4))] | |
| 369 | #[cfg(any(bpass1,bpass4))] | |
| 370 | 370 | enum EnumAddMustUse { |
| 371 | 371 | Variant1, |
| 372 | 372 | Variant2, |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | #[cfg(not(any(bfail1,bfail4)))] | |
| 376 | #[rustc_clean(cfg="bfail2")] | |
| 377 | #[rustc_clean(cfg="bfail3")] | |
| 378 | #[rustc_clean(cfg="bfail5")] | |
| 379 | #[rustc_clean(cfg="bfail6")] | |
| 375 | #[cfg(not(any(bpass1,bpass4)))] | |
| 376 | #[rustc_clean(cfg="bpass2")] | |
| 377 | #[rustc_clean(cfg="bpass3")] | |
| 378 | #[rustc_clean(cfg="bpass5")] | |
| 379 | #[rustc_clean(cfg="bpass6")] | |
| 380 | 380 | #[must_use] |
| 381 | 381 | enum EnumAddMustUse { |
| 382 | 382 | Variant1, |
| ... | ... | @@ -386,17 +386,17 @@ enum EnumAddMustUse { |
| 386 | 386 | |
| 387 | 387 | |
| 388 | 388 | // Add #[repr(C)] to the enum ------------------------------------------------- |
| 389 | #[cfg(any(bfail1,bfail4))] | |
| 389 | #[cfg(any(bpass1,bpass4))] | |
| 390 | 390 | enum EnumAddReprC { |
| 391 | 391 | Variant1, |
| 392 | 392 | Variant2, |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | #[cfg(not(any(bfail1,bfail4)))] | |
| 396 | #[rustc_clean(cfg="bfail2", except="type_of")] | |
| 397 | #[rustc_clean(cfg="bfail3")] | |
| 398 | #[rustc_clean(cfg="bfail5", except="type_of")] | |
| 399 | #[rustc_clean(cfg="bfail6")] | |
| 395 | #[cfg(not(any(bpass1,bpass4)))] | |
| 396 | #[rustc_clean(cfg="bpass2", except="type_of")] | |
| 397 | #[rustc_clean(cfg="bpass3")] | |
| 398 | #[rustc_clean(cfg="bpass5", except="type_of")] | |
| 399 | #[rustc_clean(cfg="bpass6")] | |
| 400 | 400 | #[repr(C)] |
| 401 | 401 | enum EnumAddReprC { |
| 402 | 402 | Variant1, |
| ... | ... | @@ -406,16 +406,16 @@ enum EnumAddReprC { |
| 406 | 406 | |
| 407 | 407 | |
| 408 | 408 | // Change the name of a type parameter ---------------------------------------- |
| 409 | #[cfg(any(bfail1,bfail4))] | |
| 409 | #[cfg(any(bpass1,bpass4))] | |
| 410 | 410 | enum EnumChangeNameOfTypeParameter<S> { |
| 411 | 411 | Variant1(S), |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | #[cfg(not(any(bfail1,bfail4)))] | |
| 415 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 416 | #[rustc_clean(cfg="bfail3")] | |
| 417 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 418 | #[rustc_clean(cfg="bfail6")] | |
| 414 | #[cfg(not(any(bpass1,bpass4)))] | |
| 415 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 416 | #[rustc_clean(cfg="bpass3")] | |
| 417 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 418 | #[rustc_clean(cfg="bpass6")] | |
| 419 | 419 | enum EnumChangeNameOfTypeParameter<T> { |
| 420 | 420 | Variant1(T), |
| 421 | 421 | } |
| ... | ... | @@ -423,17 +423,17 @@ enum EnumChangeNameOfTypeParameter<T> { |
| 423 | 423 | |
| 424 | 424 | |
| 425 | 425 | // Add a type parameter ------------------------------------------------------ |
| 426 | #[cfg(any(bfail1,bfail4))] | |
| 426 | #[cfg(any(bpass1,bpass4))] | |
| 427 | 427 | enum EnumAddTypeParameter<S> { |
| 428 | 428 | Variant1(S), |
| 429 | 429 | Variant2(S), |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | #[cfg(not(any(bfail1,bfail4)))] | |
| 433 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 434 | #[rustc_clean(cfg="bfail3")] | |
| 435 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 436 | #[rustc_clean(cfg="bfail6")] | |
| 432 | #[cfg(not(any(bpass1,bpass4)))] | |
| 433 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 434 | #[rustc_clean(cfg="bpass3")] | |
| 435 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 436 | #[rustc_clean(cfg="bpass6")] | |
| 437 | 437 | enum EnumAddTypeParameter<S, T> { |
| 438 | 438 | Variant1(S), |
| 439 | 439 | Variant2(T), |
| ... | ... | @@ -442,16 +442,16 @@ enum EnumAddTypeParameter<S, T> { |
| 442 | 442 | |
| 443 | 443 | |
| 444 | 444 | // Change the name of a lifetime parameter ------------------------------------ |
| 445 | #[cfg(any(bfail1,bfail4))] | |
| 445 | #[cfg(any(bpass1,bpass4))] | |
| 446 | 446 | enum EnumChangeNameOfLifetimeParameter<'a> { |
| 447 | 447 | Variant1(&'a u32), |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | #[cfg(not(any(bfail1,bfail4)))] | |
| 451 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 452 | #[rustc_clean(cfg="bfail3")] | |
| 453 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 454 | #[rustc_clean(cfg="bfail6")] | |
| 450 | #[cfg(not(any(bpass1,bpass4)))] | |
| 451 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 452 | #[rustc_clean(cfg="bpass3")] | |
| 453 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 454 | #[rustc_clean(cfg="bpass6")] | |
| 455 | 455 | enum EnumChangeNameOfLifetimeParameter<'b> { |
| 456 | 456 | Variant1(&'b u32), |
| 457 | 457 | } |
| ... | ... | @@ -459,17 +459,17 @@ enum EnumChangeNameOfLifetimeParameter<'b> { |
| 459 | 459 | |
| 460 | 460 | |
| 461 | 461 | // Add a lifetime parameter --------------------------------------------------- |
| 462 | #[cfg(any(bfail1,bfail4))] | |
| 462 | #[cfg(any(bpass1,bpass4))] | |
| 463 | 463 | enum EnumAddLifetimeParameter<'a> { |
| 464 | 464 | Variant1(&'a u32), |
| 465 | 465 | Variant2(&'a u32), |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | #[cfg(not(any(bfail1,bfail4)))] | |
| 469 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 470 | #[rustc_clean(cfg="bfail3")] | |
| 471 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 472 | #[rustc_clean(cfg="bfail6")] | |
| 468 | #[cfg(not(any(bpass1,bpass4)))] | |
| 469 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 470 | #[rustc_clean(cfg="bpass3")] | |
| 471 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,type_of")] | |
| 472 | #[rustc_clean(cfg="bpass6")] | |
| 473 | 473 | enum EnumAddLifetimeParameter<'a, 'b> { |
| 474 | 474 | Variant1(&'a u32), |
| 475 | 475 | Variant2(&'b u32), |
| ... | ... | @@ -478,34 +478,34 @@ enum EnumAddLifetimeParameter<'a, 'b> { |
| 478 | 478 | |
| 479 | 479 | |
| 480 | 480 | // Add a lifetime bound to a lifetime parameter ------------------------------- |
| 481 | #[cfg(any(bfail1,bfail4))] | |
| 481 | #[cfg(any(bpass1,bpass4))] | |
| 482 | 482 | enum EnumAddLifetimeParameterBound<'a, 'b> { |
| 483 | 483 | Variant1(&'a u32), |
| 484 | 484 | Variant2(&'b u32), |
| 485 | 485 | } |
| 486 | 486 | |
| 487 | #[cfg(not(any(bfail1,bfail4)))] | |
| 488 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 489 | #[rustc_clean(cfg="bfail3")] | |
| 490 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 491 | #[rustc_clean(cfg="bfail6")] | |
| 487 | #[cfg(not(any(bpass1,bpass4)))] | |
| 488 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 489 | #[rustc_clean(cfg="bpass3")] | |
| 490 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 491 | #[rustc_clean(cfg="bpass6")] | |
| 492 | 492 | enum EnumAddLifetimeParameterBound<'a, 'b: 'a> { |
| 493 | 493 | Variant1(&'a u32), |
| 494 | 494 | Variant2(&'b u32), |
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | // Add a lifetime bound to a type parameter ----------------------------------- |
| 498 | #[cfg(any(bfail1,bfail4))] | |
| 498 | #[cfg(any(bpass1,bpass4))] | |
| 499 | 499 | enum EnumAddLifetimeBoundToParameter<'a, T> { |
| 500 | 500 | Variant1(T), |
| 501 | 501 | Variant2(&'a u32), |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | #[cfg(not(any(bfail1,bfail4)))] | |
| 505 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 506 | #[rustc_clean(cfg="bfail3")] | |
| 507 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 508 | #[rustc_clean(cfg="bfail6")] | |
| 504 | #[cfg(not(any(bpass1,bpass4)))] | |
| 505 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 506 | #[rustc_clean(cfg="bpass3")] | |
| 507 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 508 | #[rustc_clean(cfg="bpass6")] | |
| 509 | 509 | enum EnumAddLifetimeBoundToParameter<'a, T: 'a> { |
| 510 | 510 | Variant1(T), |
| 511 | 511 | Variant2(&'a u32), |
| ... | ... | @@ -514,16 +514,16 @@ enum EnumAddLifetimeBoundToParameter<'a, T: 'a> { |
| 514 | 514 | |
| 515 | 515 | |
| 516 | 516 | // Add a trait bound to a type parameter -------------------------------------- |
| 517 | #[cfg(any(bfail1,bfail4))] | |
| 517 | #[cfg(any(bpass1,bpass4))] | |
| 518 | 518 | enum EnumAddTraitBound<S> { |
| 519 | 519 | Variant1(S), |
| 520 | 520 | } |
| 521 | 521 | |
| 522 | #[cfg(not(any(bfail1,bfail4)))] | |
| 523 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 524 | #[rustc_clean(cfg="bfail3")] | |
| 525 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 526 | #[rustc_clean(cfg="bfail6")] | |
| 522 | #[cfg(not(any(bpass1,bpass4)))] | |
| 523 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 524 | #[rustc_clean(cfg="bpass3")] | |
| 525 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 526 | #[rustc_clean(cfg="bpass6")] | |
| 527 | 527 | enum EnumAddTraitBound<T: Sync> { |
| 528 | 528 | Variant1(T), |
| 529 | 529 | } |
| ... | ... | @@ -531,17 +531,17 @@ enum EnumAddTraitBound<T: Sync> { |
| 531 | 531 | |
| 532 | 532 | |
| 533 | 533 | // Add a lifetime bound to a lifetime parameter in where clause --------------- |
| 534 | #[cfg(any(bfail1,bfail4))] | |
| 534 | #[cfg(any(bpass1,bpass4))] | |
| 535 | 535 | enum EnumAddLifetimeParameterBoundWhere<'a, 'b> { |
| 536 | 536 | Variant1(&'a u32), |
| 537 | 537 | Variant2(&'b u32), |
| 538 | 538 | } |
| 539 | 539 | |
| 540 | #[cfg(not(any(bfail1,bfail4)))] | |
| 541 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 542 | #[rustc_clean(cfg="bfail3")] | |
| 543 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 544 | #[rustc_clean(cfg="bfail6")] | |
| 540 | #[cfg(not(any(bpass1,bpass4)))] | |
| 541 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 542 | #[rustc_clean(cfg="bpass3")] | |
| 543 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 544 | #[rustc_clean(cfg="bpass6")] | |
| 545 | 545 | enum EnumAddLifetimeParameterBoundWhere<'a, 'b> where 'b: 'a { |
| 546 | 546 | Variant1(&'a u32), |
| 547 | 547 | Variant2(&'b u32), |
| ... | ... | @@ -550,17 +550,17 @@ enum EnumAddLifetimeParameterBoundWhere<'a, 'b> where 'b: 'a { |
| 550 | 550 | |
| 551 | 551 | |
| 552 | 552 | // Add a lifetime bound to a type parameter in where clause ------------------- |
| 553 | #[cfg(any(bfail1,bfail4))] | |
| 553 | #[cfg(any(bpass1,bpass4))] | |
| 554 | 554 | enum EnumAddLifetimeBoundToParameterWhere<'a, T> { |
| 555 | 555 | Variant1(T), |
| 556 | 556 | Variant2(&'a u32), |
| 557 | 557 | } |
| 558 | 558 | |
| 559 | #[cfg(not(any(bfail1,bfail4)))] | |
| 560 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 561 | #[rustc_clean(cfg="bfail3")] | |
| 562 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 563 | #[rustc_clean(cfg="bfail6")] | |
| 559 | #[cfg(not(any(bpass1,bpass4)))] | |
| 560 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 561 | #[rustc_clean(cfg="bpass3")] | |
| 562 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 563 | #[rustc_clean(cfg="bpass6")] | |
| 564 | 564 | enum EnumAddLifetimeBoundToParameterWhere<'a, T> where T: 'a { |
| 565 | 565 | Variant1(T), |
| 566 | 566 | Variant2(&'a u32), |
| ... | ... | @@ -569,16 +569,16 @@ enum EnumAddLifetimeBoundToParameterWhere<'a, T> where T: 'a { |
| 569 | 569 | |
| 570 | 570 | |
| 571 | 571 | // Add a trait bound to a type parameter in where clause ---------------------- |
| 572 | #[cfg(any(bfail1,bfail4))] | |
| 572 | #[cfg(any(bpass1,bpass4))] | |
| 573 | 573 | enum EnumAddTraitBoundWhere<S> { |
| 574 | 574 | Variant1(S), |
| 575 | 575 | } |
| 576 | 576 | |
| 577 | #[cfg(not(any(bfail1,bfail4)))] | |
| 578 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 579 | #[rustc_clean(cfg="bfail3")] | |
| 580 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 581 | #[rustc_clean(cfg="bfail6")] | |
| 577 | #[cfg(not(any(bpass1,bpass4)))] | |
| 578 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 579 | #[rustc_clean(cfg="bpass3")] | |
| 580 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of,predicates_of,type_of")] | |
| 581 | #[rustc_clean(cfg="bpass6")] | |
| 582 | 582 | enum EnumAddTraitBoundWhere<T> where T: Sync { |
| 583 | 583 | Variant1(T), |
| 584 | 584 | } |
| ... | ... | @@ -586,17 +586,17 @@ enum EnumAddTraitBoundWhere<T> where T: Sync { |
| 586 | 586 | |
| 587 | 587 | |
| 588 | 588 | // In an enum with two variants, swap usage of type parameters ---------------- |
| 589 | #[cfg(any(bfail1,bfail4))] | |
| 589 | #[cfg(any(bpass1,bpass4))] | |
| 590 | 590 | enum EnumSwapUsageTypeParameters<A, B> { |
| 591 | 591 | Variant1 { a: A }, |
| 592 | 592 | Variant2 { a: B }, |
| 593 | 593 | } |
| 594 | 594 | |
| 595 | #[cfg(not(any(bfail1,bfail4)))] | |
| 596 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 597 | #[rustc_clean(cfg="bfail3")] | |
| 598 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 599 | #[rustc_clean(cfg="bfail6")] | |
| 595 | #[cfg(not(any(bpass1,bpass4)))] | |
| 596 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 597 | #[rustc_clean(cfg="bpass3")] | |
| 598 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 599 | #[rustc_clean(cfg="bpass6")] | |
| 600 | 600 | enum EnumSwapUsageTypeParameters<A, B> { |
| 601 | 601 | Variant1 { |
| 602 | 602 | a: B |
| ... | ... | @@ -609,17 +609,17 @@ enum EnumSwapUsageTypeParameters<A, B> { |
| 609 | 609 | |
| 610 | 610 | |
| 611 | 611 | // In an enum with two variants, swap usage of lifetime parameters ------------ |
| 612 | #[cfg(any(bfail1,bfail4))] | |
| 612 | #[cfg(any(bpass1,bpass4))] | |
| 613 | 613 | enum EnumSwapUsageLifetimeParameters<'a, 'b> { |
| 614 | 614 | Variant1 { a: &'a u32 }, |
| 615 | 615 | Variant2 { b: &'b u32 }, |
| 616 | 616 | } |
| 617 | 617 | |
| 618 | #[cfg(not(any(bfail1,bfail4)))] | |
| 619 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 620 | #[rustc_clean(cfg="bfail3")] | |
| 621 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 622 | #[rustc_clean(cfg="bfail6")] | |
| 618 | #[cfg(not(any(bpass1,bpass4)))] | |
| 619 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 620 | #[rustc_clean(cfg="bpass3")] | |
| 621 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 622 | #[rustc_clean(cfg="bpass6")] | |
| 623 | 623 | enum EnumSwapUsageLifetimeParameters<'a, 'b> { |
| 624 | 624 | Variant1 { |
| 625 | 625 | a: &'b u32 |
| ... | ... | @@ -638,15 +638,15 @@ struct ReferencedType2; |
| 638 | 638 | |
| 639 | 639 | // Change field type in tuple-style variant indirectly by modifying a use statement |
| 640 | 640 | mod change_field_type_indirectly_tuple_style { |
| 641 | #[cfg(any(bfail1,bfail4))] | |
| 641 | #[cfg(any(bpass1,bpass4))] | |
| 642 | 642 | use super::ReferencedType1 as FieldType; |
| 643 | #[cfg(not(any(bfail1,bfail4)))] | |
| 643 | #[cfg(not(any(bpass1,bpass4)))] | |
| 644 | 644 | use super::ReferencedType2 as FieldType; |
| 645 | 645 | |
| 646 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 647 | #[rustc_clean(cfg="bfail3")] | |
| 648 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 649 | #[rustc_clean(cfg="bfail6")] | |
| 646 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 647 | #[rustc_clean(cfg="bpass3")] | |
| 648 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 649 | #[rustc_clean(cfg="bpass6")] | |
| 650 | 650 | enum TupleStyle { |
| 651 | 651 | Variant1( |
| 652 | 652 | FieldType |
| ... | ... | @@ -658,15 +658,15 @@ mod change_field_type_indirectly_tuple_style { |
| 658 | 658 | |
| 659 | 659 | // Change field type in record-style variant indirectly by modifying a use statement |
| 660 | 660 | mod change_field_type_indirectly_struct_style { |
| 661 | #[cfg(any(bfail1,bfail4))] | |
| 661 | #[cfg(any(bpass1,bpass4))] | |
| 662 | 662 | use super::ReferencedType1 as FieldType; |
| 663 | #[cfg(not(any(bfail1,bfail4)))] | |
| 663 | #[cfg(not(any(bpass1,bpass4)))] | |
| 664 | 664 | use super::ReferencedType2 as FieldType; |
| 665 | 665 | |
| 666 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 667 | #[rustc_clean(cfg="bfail3")] | |
| 668 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 669 | #[rustc_clean(cfg="bfail6")] | |
| 666 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 667 | #[rustc_clean(cfg="bpass3")] | |
| 668 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 669 | #[rustc_clean(cfg="bpass6")] | |
| 670 | 670 | enum StructStyle { |
| 671 | 671 | Variant1 { |
| 672 | 672 | a: FieldType |
| ... | ... | @@ -683,15 +683,15 @@ trait ReferencedTrait2 {} |
| 683 | 683 | |
| 684 | 684 | // Change trait bound of type parameter indirectly by modifying a use statement |
| 685 | 685 | mod change_trait_bound_indirectly { |
| 686 | #[cfg(any(bfail1,bfail4))] | |
| 686 | #[cfg(any(bpass1,bpass4))] | |
| 687 | 687 | use super::ReferencedTrait1 as Trait; |
| 688 | #[cfg(not(any(bfail1,bfail4)))] | |
| 688 | #[cfg(not(any(bpass1,bpass4)))] | |
| 689 | 689 | use super::ReferencedTrait2 as Trait; |
| 690 | 690 | |
| 691 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 692 | #[rustc_clean(cfg="bfail3")] | |
| 693 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 694 | #[rustc_clean(cfg="bfail6")] | |
| 691 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 692 | #[rustc_clean(cfg="bpass3")] | |
| 693 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 694 | #[rustc_clean(cfg="bpass6")] | |
| 695 | 695 | enum Enum<T: Trait> { |
| 696 | 696 | Variant1(T) |
| 697 | 697 | } |
| ... | ... | @@ -701,15 +701,15 @@ mod change_trait_bound_indirectly { |
| 701 | 701 | |
| 702 | 702 | // Change trait bound of type parameter in where clause indirectly by modifying a use statement |
| 703 | 703 | mod change_trait_bound_indirectly_where { |
| 704 | #[cfg(any(bfail1,bfail4))] | |
| 704 | #[cfg(any(bpass1,bpass4))] | |
| 705 | 705 | use super::ReferencedTrait1 as Trait; |
| 706 | #[cfg(not(any(bfail1,bfail4)))] | |
| 706 | #[cfg(not(any(bpass1,bpass4)))] | |
| 707 | 707 | use super::ReferencedTrait2 as Trait; |
| 708 | 708 | |
| 709 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 710 | #[rustc_clean(cfg="bfail3")] | |
| 711 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 712 | #[rustc_clean(cfg="bfail6")] | |
| 709 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 710 | #[rustc_clean(cfg="bpass3")] | |
| 711 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 712 | #[rustc_clean(cfg="bpass6")] | |
| 713 | 713 | enum Enum<T> where T: Trait { |
| 714 | 714 | Variant1(T) |
| 715 | 715 | } |
tests/incremental/hashes/exported_vs_not.rs+23-23| ... | ... | @@ -1,10 +1,10 @@ |
| 1 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 2 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 1 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 3 | 2 | //@ compile-flags: -Z query-dep-graph -O |
| 4 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 5 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 6 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 3 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 4 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 5 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 7 | 6 | //@ ignore-backends: gcc |
| 7 | // FIXME(#62277): could be check-pass? | |
| 8 | 8 | |
| 9 | 9 | #![allow(warnings)] |
| 10 | 10 | #![feature(rustc_attrs)] |
| ... | ... | @@ -14,16 +14,16 @@ |
| 14 | 14 | // the hash of the opt_hir_owner_nodes node should change, but not the hash of |
| 15 | 15 | // either the hir_owner or the Metadata node. |
| 16 | 16 | |
| 17 | #[cfg(any(bfail1,bfail4))] | |
| 17 | #[cfg(any(bpass1,bpass4))] | |
| 18 | 18 | pub fn body_not_exported_to_metadata() -> u32 { |
| 19 | 19 | 1 |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | #[cfg(not(any(bfail1,bfail4)))] | |
| 23 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 24 | #[rustc_clean(cfg="bfail3")] | |
| 25 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 26 | #[rustc_clean(cfg="bfail6")] | |
| 22 | #[cfg(not(any(bpass1,bpass4)))] | |
| 23 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 24 | #[rustc_clean(cfg="bpass3")] | |
| 25 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 26 | #[rustc_clean(cfg="bpass6")] | |
| 27 | 27 | pub fn body_not_exported_to_metadata() -> u32 { |
| 28 | 28 | 2 |
| 29 | 29 | } |
| ... | ... | @@ -34,17 +34,17 @@ pub fn body_not_exported_to_metadata() -> u32 { |
| 34 | 34 | // marked as #[inline]. Only the hash of the hir_owner depnode should be |
| 35 | 35 | // unaffected by a change to the body. |
| 36 | 36 | |
| 37 | #[cfg(any(bfail1,bfail4))] | |
| 37 | #[cfg(any(bpass1,bpass4))] | |
| 38 | 38 | #[inline] |
| 39 | 39 | pub fn body_exported_to_metadata_because_of_inline() -> u32 { |
| 40 | 40 | 1 |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | #[cfg(not(any(bfail1,bfail4)))] | |
| 44 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 45 | #[rustc_clean(cfg="bfail3")] | |
| 46 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 47 | #[rustc_clean(cfg="bfail6")] | |
| 43 | #[cfg(not(any(bpass1,bpass4)))] | |
| 44 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 45 | #[rustc_clean(cfg="bpass3")] | |
| 46 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 47 | #[rustc_clean(cfg="bpass6")] | |
| 48 | 48 | #[inline] |
| 49 | 49 | pub fn body_exported_to_metadata_because_of_inline() -> u32 { |
| 50 | 50 | 2 |
| ... | ... | @@ -56,17 +56,17 @@ pub fn body_exported_to_metadata_because_of_inline() -> u32 { |
| 56 | 56 | // generic. Only the hash of the hir_owner depnode should be |
| 57 | 57 | // unaffected by a change to the body. |
| 58 | 58 | |
| 59 | #[cfg(any(bfail1,bfail4))] | |
| 59 | #[cfg(any(bpass1,bpass4))] | |
| 60 | 60 | #[inline] |
| 61 | 61 | pub fn body_exported_to_metadata_because_of_generic() -> u32 { |
| 62 | 62 | 1 |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | #[cfg(not(any(bfail1,bfail4)))] | |
| 66 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 67 | #[rustc_clean(cfg="bfail3")] | |
| 68 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 69 | #[rustc_clean(cfg="bfail6")] | |
| 65 | #[cfg(not(any(bpass1,bpass4)))] | |
| 66 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 67 | #[rustc_clean(cfg="bpass3")] | |
| 68 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 69 | #[rustc_clean(cfg="bpass6")] | |
| 70 | 70 | #[inline] |
| 71 | 71 | pub fn body_exported_to_metadata_because_of_generic() -> u32 { |
| 72 | 72 | 2 |
tests/incremental/hashes/extern_mods.rs+83-83| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,168 +19,168 @@ |
| 19 | 19 | #![crate_type = "rlib"] |
| 20 | 20 | |
| 21 | 21 | // Change function name -------------------------------------------------------- |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | extern "C" { |
| 24 | 24 | pub fn change_function_name1(c: i64) -> i32; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | #[cfg(not(any(bfail1,bfail4)))] | |
| 28 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg = "bfail3")] | |
| 30 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg = "bfail6")] | |
| 27 | #[cfg(not(any(bpass1,bpass4)))] | |
| 28 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg = "bpass3")] | |
| 30 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg = "bpass6")] | |
| 32 | 32 | extern "C" { |
| 33 | 33 | pub fn change_function_name2(c: i64) -> i32; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | // Change parameter name ------------------------------------------------------- |
| 37 | #[cfg(any(bfail1,bfail4))] | |
| 37 | #[cfg(any(bpass1,bpass4))] | |
| 38 | 38 | extern "C" { |
| 39 | 39 | pub fn change_parameter_name(c: i64) -> i32; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | #[cfg(not(any(bfail1,bfail4)))] | |
| 43 | #[rustc_clean(cfg = "bfail2")] | |
| 44 | #[rustc_clean(cfg = "bfail3")] | |
| 45 | #[rustc_clean(cfg = "bfail5")] | |
| 46 | #[rustc_clean(cfg = "bfail6")] | |
| 42 | #[cfg(not(any(bpass1,bpass4)))] | |
| 43 | #[rustc_clean(cfg = "bpass2")] | |
| 44 | #[rustc_clean(cfg = "bpass3")] | |
| 45 | #[rustc_clean(cfg = "bpass5")] | |
| 46 | #[rustc_clean(cfg = "bpass6")] | |
| 47 | 47 | extern "C" { |
| 48 | 48 | pub fn change_parameter_name(d: i64) -> i32; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | // Change parameter type ------------------------------------------------------- |
| 52 | #[cfg(any(bfail1,bfail4))] | |
| 52 | #[cfg(any(bpass1,bpass4))] | |
| 53 | 53 | extern "C" { |
| 54 | 54 | pub fn change_parameter_type(c: i64) -> i32; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | #[cfg(not(any(bfail1,bfail4)))] | |
| 58 | #[rustc_clean(cfg = "bfail2")] | |
| 59 | #[rustc_clean(cfg = "bfail3")] | |
| 60 | #[rustc_clean(cfg = "bfail5")] | |
| 61 | #[rustc_clean(cfg = "bfail6")] | |
| 57 | #[cfg(not(any(bpass1,bpass4)))] | |
| 58 | #[rustc_clean(cfg = "bpass2")] | |
| 59 | #[rustc_clean(cfg = "bpass3")] | |
| 60 | #[rustc_clean(cfg = "bpass5")] | |
| 61 | #[rustc_clean(cfg = "bpass6")] | |
| 62 | 62 | extern "C" { |
| 63 | 63 | pub fn change_parameter_type(c: i32) -> i32; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | // Change return type ---------------------------------------------------------- |
| 67 | #[cfg(any(bfail1,bfail4))] | |
| 67 | #[cfg(any(bpass1,bpass4))] | |
| 68 | 68 | extern "C" { |
| 69 | 69 | pub fn change_return_type(c: i32) -> i32; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | #[cfg(not(any(bfail1,bfail4)))] | |
| 73 | #[rustc_clean(cfg = "bfail2")] | |
| 74 | #[rustc_clean(cfg = "bfail3")] | |
| 75 | #[rustc_clean(cfg = "bfail5")] | |
| 76 | #[rustc_clean(cfg = "bfail6")] | |
| 72 | #[cfg(not(any(bpass1,bpass4)))] | |
| 73 | #[rustc_clean(cfg = "bpass2")] | |
| 74 | #[rustc_clean(cfg = "bpass3")] | |
| 75 | #[rustc_clean(cfg = "bpass5")] | |
| 76 | #[rustc_clean(cfg = "bpass6")] | |
| 77 | 77 | extern "C" { |
| 78 | 78 | pub fn change_return_type(c: i32) -> i8 ; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | // Add parameter --------------------------------------------------------------- |
| 82 | #[cfg(any(bfail1,bfail4))] | |
| 82 | #[cfg(any(bpass1,bpass4))] | |
| 83 | 83 | extern "C" { |
| 84 | 84 | pub fn add_parameter(c: i32 ) -> i32; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | #[cfg(not(any(bfail1,bfail4)))] | |
| 88 | #[rustc_clean(cfg = "bfail2")] | |
| 89 | #[rustc_clean(cfg = "bfail3")] | |
| 90 | #[rustc_clean(cfg = "bfail5")] | |
| 91 | #[rustc_clean(cfg = "bfail6")] | |
| 87 | #[cfg(not(any(bpass1,bpass4)))] | |
| 88 | #[rustc_clean(cfg = "bpass2")] | |
| 89 | #[rustc_clean(cfg = "bpass3")] | |
| 90 | #[rustc_clean(cfg = "bpass5")] | |
| 91 | #[rustc_clean(cfg = "bpass6")] | |
| 92 | 92 | extern "C" { |
| 93 | 93 | pub fn add_parameter(c: i32, d: i32) -> i32; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | // Add return type ------------------------------------------------------------- |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | extern "C" { |
| 99 | 99 | pub fn add_return_type(c: i32) ; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | #[cfg(not(any(bfail1,bfail4)))] | |
| 103 | #[rustc_clean(cfg = "bfail2")] | |
| 104 | #[rustc_clean(cfg = "bfail3")] | |
| 105 | #[rustc_clean(cfg = "bfail5")] | |
| 106 | #[rustc_clean(cfg = "bfail6")] | |
| 102 | #[cfg(not(any(bpass1,bpass4)))] | |
| 103 | #[rustc_clean(cfg = "bpass2")] | |
| 104 | #[rustc_clean(cfg = "bpass3")] | |
| 105 | #[rustc_clean(cfg = "bpass5")] | |
| 106 | #[rustc_clean(cfg = "bpass6")] | |
| 107 | 107 | extern "C" { |
| 108 | 108 | pub fn add_return_type(c: i32) -> i32; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | // Make function variadic ------------------------------------------------------ |
| 112 | #[cfg(any(bfail1,bfail4))] | |
| 112 | #[cfg(any(bpass1,bpass4))] | |
| 113 | 113 | extern "C" { |
| 114 | 114 | pub fn make_function_variadic(c: i32 ); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | #[cfg(not(any(bfail1,bfail4)))] | |
| 118 | #[rustc_clean(cfg = "bfail2")] | |
| 119 | #[rustc_clean(cfg = "bfail3")] | |
| 120 | #[rustc_clean(cfg = "bfail5")] | |
| 121 | #[rustc_clean(cfg = "bfail6")] | |
| 117 | #[cfg(not(any(bpass1,bpass4)))] | |
| 118 | #[rustc_clean(cfg = "bpass2")] | |
| 119 | #[rustc_clean(cfg = "bpass3")] | |
| 120 | #[rustc_clean(cfg = "bpass5")] | |
| 121 | #[rustc_clean(cfg = "bpass6")] | |
| 122 | 122 | extern "C" { |
| 123 | 123 | pub fn make_function_variadic(c: i32, ...); |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | // Change calling convention --------------------------------------------------- |
| 127 | #[cfg(any(bfail1,bfail4))] | |
| 127 | #[cfg(any(bpass1,bpass4))] | |
| 128 | 128 | extern "C" { |
| 129 | 129 | pub fn change_calling_convention(c: (i32,)); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | #[cfg(not(any(bfail1,bfail4)))] | |
| 133 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 134 | #[rustc_clean(cfg = "bfail3")] | |
| 135 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes")] | |
| 136 | #[rustc_clean(cfg = "bfail6")] | |
| 132 | #[cfg(not(any(bpass1,bpass4)))] | |
| 133 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 134 | #[rustc_clean(cfg = "bpass3")] | |
| 135 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes")] | |
| 136 | #[rustc_clean(cfg = "bpass6")] | |
| 137 | 137 | extern "rust-call" { |
| 138 | 138 | pub fn change_calling_convention(c: (i32,)); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | // Make function public -------------------------------------------------------- |
| 142 | #[cfg(any(bfail1,bfail4))] | |
| 142 | #[cfg(any(bpass1,bpass4))] | |
| 143 | 143 | extern "C" { |
| 144 | 144 | fn make_function_public(c: i32); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | #[cfg(not(any(bfail1,bfail4)))] | |
| 148 | #[rustc_clean(cfg = "bfail2")] | |
| 149 | #[rustc_clean(cfg = "bfail3")] | |
| 150 | #[rustc_clean(cfg = "bfail5")] | |
| 151 | #[rustc_clean(cfg = "bfail6")] | |
| 147 | #[cfg(not(any(bpass1,bpass4)))] | |
| 148 | #[rustc_clean(cfg = "bpass2")] | |
| 149 | #[rustc_clean(cfg = "bpass3")] | |
| 150 | #[rustc_clean(cfg = "bpass5")] | |
| 151 | #[rustc_clean(cfg = "bpass6")] | |
| 152 | 152 | extern "C" { |
| 153 | 153 | pub fn make_function_public(c: i32); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | // Add function ---------------------------------------------------------------- |
| 157 | #[cfg(any(bfail1,bfail4))] | |
| 157 | #[cfg(any(bpass1,bpass4))] | |
| 158 | 158 | extern "C" { |
| 159 | 159 | pub fn add_function1(c: i32); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | #[cfg(not(any(bfail1,bfail4)))] | |
| 163 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 164 | #[rustc_clean(cfg = "bfail3")] | |
| 165 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes")] | |
| 166 | #[rustc_clean(cfg = "bfail6")] | |
| 162 | #[cfg(not(any(bpass1,bpass4)))] | |
| 163 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 164 | #[rustc_clean(cfg = "bpass3")] | |
| 165 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes")] | |
| 166 | #[rustc_clean(cfg = "bpass6")] | |
| 167 | 167 | extern "C" { |
| 168 | 168 | pub fn add_function1(c: i32); |
| 169 | 169 | pub fn add_function2(); |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | // Change link-name ------------------------------------------------------------ |
| 173 | #[cfg(any(bfail1,bfail4))] | |
| 173 | #[cfg(any(bpass1,bpass4))] | |
| 174 | 174 | #[link(name = "foo")] |
| 175 | 175 | extern "C" { |
| 176 | 176 | pub fn change_link_name(c: i32); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | #[cfg(not(any(bfail1,bfail4)))] | |
| 180 | #[rustc_clean(cfg = "bfail2")] | |
| 181 | #[rustc_clean(cfg = "bfail3")] | |
| 182 | #[rustc_clean(cfg = "bfail5")] | |
| 183 | #[rustc_clean(cfg = "bfail6")] | |
| 179 | #[cfg(not(any(bpass1,bpass4)))] | |
| 180 | #[rustc_clean(cfg = "bpass2")] | |
| 181 | #[rustc_clean(cfg = "bpass3")] | |
| 182 | #[rustc_clean(cfg = "bpass5")] | |
| 183 | #[rustc_clean(cfg = "bpass6")] | |
| 184 | 184 | #[link(name = "bar")] |
| 185 | 185 | extern "C" { |
| 186 | 186 | pub fn change_link_name(c: i32); |
| ... | ... | @@ -191,15 +191,15 @@ type c_i64 = i64; |
| 191 | 191 | |
| 192 | 192 | // Indirectly change parameter type -------------------------------------------- |
| 193 | 193 | mod indirectly_change_parameter_type { |
| 194 | #[cfg(any(bfail1,bfail4))] | |
| 194 | #[cfg(any(bpass1,bpass4))] | |
| 195 | 195 | use super::c_i32 as c_int; |
| 196 | #[cfg(not(any(bfail1,bfail4)))] | |
| 196 | #[cfg(not(any(bpass1,bpass4)))] | |
| 197 | 197 | use super::c_i64 as c_int; |
| 198 | 198 | |
| 199 | #[rustc_clean(cfg = "bfail2")] | |
| 200 | #[rustc_clean(cfg = "bfail3")] | |
| 201 | #[rustc_clean(cfg = "bfail5")] | |
| 202 | #[rustc_clean(cfg = "bfail6")] | |
| 199 | #[rustc_clean(cfg = "bpass2")] | |
| 200 | #[rustc_clean(cfg = "bpass3")] | |
| 201 | #[rustc_clean(cfg = "bpass5")] | |
| 202 | #[rustc_clean(cfg = "bpass6")] | |
| 203 | 203 | extern "C" { |
| 204 | 204 | pub fn indirectly_change_parameter_type(c: c_int); |
| 205 | 205 | } |
| ... | ... | @@ -207,15 +207,15 @@ mod indirectly_change_parameter_type { |
| 207 | 207 | |
| 208 | 208 | // Indirectly change return type -------------------------------------------- |
| 209 | 209 | mod indirectly_change_return_type { |
| 210 | #[cfg(any(bfail1,bfail4))] | |
| 210 | #[cfg(any(bpass1,bpass4))] | |
| 211 | 211 | use super::c_i32 as c_int; |
| 212 | #[cfg(not(any(bfail1,bfail4)))] | |
| 212 | #[cfg(not(any(bpass1,bpass4)))] | |
| 213 | 213 | use super::c_i64 as c_int; |
| 214 | 214 | |
| 215 | #[rustc_clean(cfg = "bfail2")] | |
| 216 | #[rustc_clean(cfg = "bfail3")] | |
| 217 | #[rustc_clean(cfg = "bfail5")] | |
| 218 | #[rustc_clean(cfg = "bfail6")] | |
| 215 | #[rustc_clean(cfg = "bpass2")] | |
| 216 | #[rustc_clean(cfg = "bpass3")] | |
| 217 | #[rustc_clean(cfg = "bpass5")] | |
| 218 | #[rustc_clean(cfg = "bpass6")] | |
| 219 | 219 | extern "C" { |
| 220 | 220 | pub fn indirectly_change_return_type() -> c_int; |
| 221 | 221 | } |
tests/incremental/hashes/for_loops.rs+71-71| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change loop body ------------------------------------------------------------ |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn change_loop_body() { |
| 24 | 24 | let mut _x = 0; |
| 25 | 25 | for _ in 0..1 { |
| ... | ... | @@ -28,11 +28,11 @@ pub fn change_loop_body() { |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub fn change_loop_body() { |
| 37 | 37 | let mut _x = 0; |
| 38 | 38 | for _ in 0..1 { |
| ... | ... | @@ -44,7 +44,7 @@ pub fn change_loop_body() { |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | // Change iteration variable name ---------------------------------------------- |
| 47 | #[cfg(any(bfail1,bfail4))] | |
| 47 | #[cfg(any(bpass1,bpass4))] | |
| 48 | 48 | pub fn change_iteration_variable_name() { |
| 49 | 49 | let mut _x = 0; |
| 50 | 50 | for _i in 0..1 { |
| ... | ... | @@ -53,11 +53,11 @@ pub fn change_iteration_variable_name() { |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | #[cfg(not(any(bfail1,bfail4)))] | |
| 57 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 58 | #[rustc_clean(cfg="bfail3")] | |
| 59 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 60 | #[rustc_clean(cfg="bfail6")] | |
| 56 | #[cfg(not(any(bpass1,bpass4)))] | |
| 57 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 58 | #[rustc_clean(cfg="bpass3")] | |
| 59 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 60 | #[rustc_clean(cfg="bpass6")] | |
| 61 | 61 | pub fn change_iteration_variable_name() { |
| 62 | 62 | let mut _x = 0; |
| 63 | 63 | for _a in 0..1 { |
| ... | ... | @@ -69,7 +69,7 @@ pub fn change_iteration_variable_name() { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Change iteration variable pattern ------------------------------------------- |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | pub fn change_iteration_variable_pattern() { |
| 74 | 74 | let mut _x = 0; |
| 75 | 75 | for _i in &[0, 1, 2] { |
| ... | ... | @@ -78,11 +78,11 @@ pub fn change_iteration_variable_pattern() { |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | #[cfg(not(any(bfail1,bfail4)))] | |
| 82 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 84 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bfail6")] | |
| 81 | #[cfg(not(any(bpass1,bpass4)))] | |
| 82 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bpass6")] | |
| 86 | 86 | pub fn change_iteration_variable_pattern() { |
| 87 | 87 | let mut _x = 0; |
| 88 | 88 | for &_i in &[0, 1, 2] { |
| ... | ... | @@ -94,7 +94,7 @@ pub fn change_iteration_variable_pattern() { |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | // Change iterable ------------------------------------------------------------- |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | pub fn change_iterable() { |
| 99 | 99 | let mut _x = 0; |
| 100 | 100 | for _ in &[0, 1, 2] { |
| ... | ... | @@ -103,11 +103,11 @@ pub fn change_iterable() { |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, promoted_mir")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, promoted_mir")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, promoted_mir")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, promoted_mir")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn change_iterable() { |
| 112 | 112 | let mut _x = 0; |
| 113 | 113 | for _ in &[0, 1, 3] { |
| ... | ... | @@ -119,7 +119,7 @@ pub fn change_iterable() { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | // Add break ------------------------------------------------------------------- |
| 122 | #[cfg(any(bfail1,bfail4))] | |
| 122 | #[cfg(any(bpass1,bpass4))] | |
| 123 | 123 | pub fn add_break() { |
| 124 | 124 | let mut _x = 0; |
| 125 | 125 | for _ in 0..1 { |
| ... | ... | @@ -128,11 +128,11 @@ pub fn add_break() { |
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | #[cfg(not(any(bfail1,bfail4)))] | |
| 132 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 133 | #[rustc_clean(cfg="bfail3")] | |
| 134 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 135 | #[rustc_clean(cfg="bfail6")] | |
| 131 | #[cfg(not(any(bpass1,bpass4)))] | |
| 132 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 133 | #[rustc_clean(cfg="bpass3")] | |
| 134 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 135 | #[rustc_clean(cfg="bpass6")] | |
| 136 | 136 | pub fn add_break() { |
| 137 | 137 | let mut _x = 0; |
| 138 | 138 | for _ in 0..1 { |
| ... | ... | @@ -144,7 +144,7 @@ pub fn add_break() { |
| 144 | 144 | |
| 145 | 145 | |
| 146 | 146 | // Add loop label -------------------------------------------------------------- |
| 147 | #[cfg(any(bfail1,bfail4))] | |
| 147 | #[cfg(any(bpass1,bpass4))] | |
| 148 | 148 | pub fn add_loop_label() { |
| 149 | 149 | let mut _x = 0; |
| 150 | 150 | for _ in 0..1 { |
| ... | ... | @@ -153,11 +153,11 @@ pub fn add_loop_label() { |
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | #[cfg(not(any(bfail1,bfail4)))] | |
| 157 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 158 | #[rustc_clean(cfg="bfail3")] | |
| 159 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 160 | #[rustc_clean(cfg="bfail6")] | |
| 156 | #[cfg(not(any(bpass1,bpass4)))] | |
| 157 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 158 | #[rustc_clean(cfg="bpass3")] | |
| 159 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 160 | #[rustc_clean(cfg="bpass6")] | |
| 161 | 161 | pub fn add_loop_label() { |
| 162 | 162 | let mut _x = 0; |
| 163 | 163 | 'label: for _ in 0..1 { |
| ... | ... | @@ -169,7 +169,7 @@ pub fn add_loop_label() { |
| 169 | 169 | |
| 170 | 170 | |
| 171 | 171 | // Add loop label to break ----------------------------------------------------- |
| 172 | #[cfg(any(bfail1,bfail4))] | |
| 172 | #[cfg(any(bpass1,bpass4))] | |
| 173 | 173 | pub fn add_loop_label_to_break() { |
| 174 | 174 | let mut _x = 0; |
| 175 | 175 | 'label: for _ in 0..1 { |
| ... | ... | @@ -178,11 +178,11 @@ pub fn add_loop_label_to_break() { |
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | #[cfg(not(any(bfail1,bfail4)))] | |
| 182 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 183 | #[rustc_clean(cfg="bfail3")] | |
| 184 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 185 | #[rustc_clean(cfg="bfail6")] | |
| 181 | #[cfg(not(any(bpass1,bpass4)))] | |
| 182 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 183 | #[rustc_clean(cfg="bpass3")] | |
| 184 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 185 | #[rustc_clean(cfg="bpass6")] | |
| 186 | 186 | pub fn add_loop_label_to_break() { |
| 187 | 187 | let mut _x = 0; |
| 188 | 188 | 'label: for _ in 0..1 { |
| ... | ... | @@ -194,7 +194,7 @@ pub fn add_loop_label_to_break() { |
| 194 | 194 | |
| 195 | 195 | |
| 196 | 196 | // Change break label ---------------------------------------------------------- |
| 197 | #[cfg(any(bfail1,bfail4))] | |
| 197 | #[cfg(any(bpass1,bpass4))] | |
| 198 | 198 | pub fn change_break_label() { |
| 199 | 199 | let mut _x = 0; |
| 200 | 200 | 'outer: for _ in 0..1 { |
| ... | ... | @@ -205,11 +205,11 @@ pub fn change_break_label() { |
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | #[cfg(not(any(bfail1,bfail4)))] | |
| 209 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 210 | #[rustc_clean(cfg="bfail3")] | |
| 211 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 212 | #[rustc_clean(cfg="bfail6")] | |
| 208 | #[cfg(not(any(bpass1,bpass4)))] | |
| 209 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 210 | #[rustc_clean(cfg="bpass3")] | |
| 211 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 212 | #[rustc_clean(cfg="bpass6")] | |
| 213 | 213 | pub fn change_break_label() { |
| 214 | 214 | let mut _x = 0; |
| 215 | 215 | 'outer: for _ in 0..1 { |
| ... | ... | @@ -223,7 +223,7 @@ pub fn change_break_label() { |
| 223 | 223 | |
| 224 | 224 | |
| 225 | 225 | // Add loop label to continue -------------------------------------------------- |
| 226 | #[cfg(any(bfail1,bfail4))] | |
| 226 | #[cfg(any(bpass1,bpass4))] | |
| 227 | 227 | pub fn add_loop_label_to_continue() { |
| 228 | 228 | let mut _x = 0; |
| 229 | 229 | 'label: for _ in 0..1 { |
| ... | ... | @@ -232,11 +232,11 @@ pub fn add_loop_label_to_continue() { |
| 232 | 232 | } |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | #[cfg(not(any(bfail1,bfail4)))] | |
| 236 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 237 | #[rustc_clean(cfg="bfail3")] | |
| 238 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 239 | #[rustc_clean(cfg="bfail6")] | |
| 235 | #[cfg(not(any(bpass1,bpass4)))] | |
| 236 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 237 | #[rustc_clean(cfg="bpass3")] | |
| 238 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 239 | #[rustc_clean(cfg="bpass6")] | |
| 240 | 240 | pub fn add_loop_label_to_continue() { |
| 241 | 241 | let mut _x = 0; |
| 242 | 242 | 'label: for _ in 0..1 { |
| ... | ... | @@ -248,7 +248,7 @@ pub fn add_loop_label_to_continue() { |
| 248 | 248 | |
| 249 | 249 | |
| 250 | 250 | // Change continue label ---------------------------------------------------------- |
| 251 | #[cfg(any(bfail1,bfail4))] | |
| 251 | #[cfg(any(bpass1,bpass4))] | |
| 252 | 252 | pub fn change_continue_label() { |
| 253 | 253 | let mut _x = 0; |
| 254 | 254 | 'outer: for _ in 0..1 { |
| ... | ... | @@ -259,11 +259,11 @@ pub fn change_continue_label() { |
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | #[cfg(not(any(bfail1,bfail4)))] | |
| 263 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 264 | #[rustc_clean(cfg="bfail3")] | |
| 265 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 266 | #[rustc_clean(cfg="bfail6")] | |
| 262 | #[cfg(not(any(bpass1,bpass4)))] | |
| 263 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 264 | #[rustc_clean(cfg="bpass3")] | |
| 265 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 266 | #[rustc_clean(cfg="bpass6")] | |
| 267 | 267 | pub fn change_continue_label() { |
| 268 | 268 | let mut _x = 0; |
| 269 | 269 | 'outer: for _ in 0..1 { |
| ... | ... | @@ -277,7 +277,7 @@ pub fn change_continue_label() { |
| 277 | 277 | |
| 278 | 278 | |
| 279 | 279 | // Change continue to break ---------------------------------------------------- |
| 280 | #[cfg(any(bfail1,bfail4))] | |
| 280 | #[cfg(any(bpass1,bpass4))] | |
| 281 | 281 | pub fn change_continue_to_break() { |
| 282 | 282 | let mut _x = 0; |
| 283 | 283 | for _ in 0..1 { |
| ... | ... | @@ -286,11 +286,11 @@ pub fn change_continue_to_break() { |
| 286 | 286 | } |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | #[cfg(not(any(bfail1,bfail4)))] | |
| 290 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 291 | #[rustc_clean(cfg="bfail3")] | |
| 292 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 293 | #[rustc_clean(cfg="bfail6")] | |
| 289 | #[cfg(not(any(bpass1,bpass4)))] | |
| 290 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 291 | #[rustc_clean(cfg="bpass3")] | |
| 292 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 293 | #[rustc_clean(cfg="bpass6")] | |
| 294 | 294 | pub fn change_continue_to_break() { |
| 295 | 295 | let mut _x = 0; |
| 296 | 296 | for _ in 0..1 { |
tests/incremental/hashes/function_interfaces.rs+151-151| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(linkage)] |
| ... | ... | @@ -20,309 +20,309 @@ |
| 20 | 20 | |
| 21 | 21 | // Add Parameter --------------------------------------------------------------- |
| 22 | 22 | |
| 23 | #[cfg(any(bfail1,bfail4))] | |
| 23 | #[cfg(any(bpass1,bpass4))] | |
| 24 | 24 | pub fn add_parameter() {} |
| 25 | 25 | |
| 26 | #[cfg(not(any(bfail1,bfail4)))] | |
| 26 | #[cfg(not(any(bpass1,bpass4)))] | |
| 27 | 27 | #[rustc_clean( |
| 28 | cfg = "bfail2", | |
| 28 | cfg = "bpass2", | |
| 29 | 29 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 30 | 30 | )] |
| 31 | #[rustc_clean(cfg = "bfail3")] | |
| 31 | #[rustc_clean(cfg = "bpass3")] | |
| 32 | 32 | #[rustc_clean( |
| 33 | cfg = "bfail5", | |
| 33 | cfg = "bpass5", | |
| 34 | 34 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 35 | 35 | )] |
| 36 | #[rustc_clean(cfg = "bfail6")] | |
| 36 | #[rustc_clean(cfg = "bpass6")] | |
| 37 | 37 | pub fn add_parameter(p: i32) {} |
| 38 | 38 | |
| 39 | 39 | // Add Return Type ------------------------------------------------------------- |
| 40 | 40 | |
| 41 | #[cfg(any(bfail1,bfail4))] | |
| 41 | #[cfg(any(bpass1,bpass4))] | |
| 42 | 42 | pub fn add_return_type() {} |
| 43 | 43 | |
| 44 | #[cfg(not(any(bfail1,bfail4)))] | |
| 45 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 46 | #[rustc_clean(cfg = "bfail3")] | |
| 47 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, optimized_mir")] | |
| 48 | #[rustc_clean(cfg = "bfail6")] | |
| 44 | #[cfg(not(any(bpass1,bpass4)))] | |
| 45 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 46 | #[rustc_clean(cfg = "bpass3")] | |
| 47 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, optimized_mir")] | |
| 48 | #[rustc_clean(cfg = "bpass6")] | |
| 49 | 49 | pub fn add_return_type() -> () {} |
| 50 | 50 | |
| 51 | 51 | // Change Parameter Type ------------------------------------------------------- |
| 52 | 52 | |
| 53 | #[cfg(any(bfail1,bfail4))] | |
| 53 | #[cfg(any(bpass1,bpass4))] | |
| 54 | 54 | pub fn type_of_parameter(p: i32) {} |
| 55 | 55 | |
| 56 | #[cfg(not(any(bfail1,bfail4)))] | |
| 56 | #[cfg(not(any(bpass1,bpass4)))] | |
| 57 | 57 | #[rustc_clean( |
| 58 | cfg = "bfail2", | |
| 58 | cfg = "bpass2", | |
| 59 | 59 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 60 | 60 | )] |
| 61 | #[rustc_clean(cfg = "bfail3")] | |
| 61 | #[rustc_clean(cfg = "bpass3")] | |
| 62 | 62 | #[rustc_clean( |
| 63 | cfg = "bfail5", | |
| 63 | cfg = "bpass5", | |
| 64 | 64 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 65 | 65 | )] |
| 66 | #[rustc_clean(cfg = "bfail6")] | |
| 66 | #[rustc_clean(cfg = "bpass6")] | |
| 67 | 67 | pub fn type_of_parameter(p: i64) {} |
| 68 | 68 | |
| 69 | 69 | // Change Parameter Type Reference --------------------------------------------- |
| 70 | 70 | |
| 71 | #[cfg(any(bfail1,bfail4))] | |
| 71 | #[cfg(any(bpass1,bpass4))] | |
| 72 | 72 | pub fn type_of_parameter_ref(p: &i32) {} |
| 73 | 73 | |
| 74 | #[cfg(not(any(bfail1,bfail4)))] | |
| 74 | #[cfg(not(any(bpass1,bpass4)))] | |
| 75 | 75 | #[rustc_clean( |
| 76 | cfg = "bfail2", | |
| 76 | cfg = "bpass2", | |
| 77 | 77 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 78 | 78 | )] |
| 79 | #[rustc_clean(cfg = "bfail3")] | |
| 79 | #[rustc_clean(cfg = "bpass3")] | |
| 80 | 80 | #[rustc_clean( |
| 81 | cfg = "bfail5", | |
| 81 | cfg = "bpass5", | |
| 82 | 82 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 83 | 83 | )] |
| 84 | #[rustc_clean(cfg = "bfail6")] | |
| 84 | #[rustc_clean(cfg = "bpass6")] | |
| 85 | 85 | pub fn type_of_parameter_ref(p: &mut i32) {} |
| 86 | 86 | |
| 87 | 87 | // Change Parameter Order ------------------------------------------------------ |
| 88 | 88 | |
| 89 | #[cfg(any(bfail1,bfail4))] | |
| 89 | #[cfg(any(bpass1,bpass4))] | |
| 90 | 90 | pub fn order_of_parameters(p1: i32, p2: i64) {} |
| 91 | 91 | |
| 92 | #[cfg(not(any(bfail1,bfail4)))] | |
| 92 | #[cfg(not(any(bpass1,bpass4)))] | |
| 93 | 93 | #[rustc_clean( |
| 94 | cfg = "bfail2", | |
| 94 | cfg = "bpass2", | |
| 95 | 95 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 96 | 96 | )] |
| 97 | #[rustc_clean(cfg = "bfail3")] | |
| 97 | #[rustc_clean(cfg = "bpass3")] | |
| 98 | 98 | #[rustc_clean( |
| 99 | cfg = "bfail5", | |
| 99 | cfg = "bpass5", | |
| 100 | 100 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 101 | 101 | )] |
| 102 | #[rustc_clean(cfg = "bfail6")] | |
| 102 | #[rustc_clean(cfg = "bpass6")] | |
| 103 | 103 | pub fn order_of_parameters(p2: i64, p1: i32) {} |
| 104 | 104 | |
| 105 | 105 | // Unsafe ---------------------------------------------------------------------- |
| 106 | 106 | |
| 107 | #[cfg(any(bfail1,bfail4))] | |
| 107 | #[cfg(any(bpass1,bpass4))] | |
| 108 | 108 | pub fn make_unsafe() {} |
| 109 | 109 | |
| 110 | #[cfg(not(any(bfail1,bfail4)))] | |
| 110 | #[cfg(not(any(bpass1,bpass4)))] | |
| 111 | 111 | #[rustc_clean( |
| 112 | cfg = "bfail2", | |
| 112 | cfg = "bpass2", | |
| 113 | 113 | except = "opt_hir_owner_nodes, typeck_root, fn_sig" |
| 114 | 114 | )] |
| 115 | #[rustc_clean(cfg = "bfail3")] | |
| 115 | #[rustc_clean(cfg = "bpass3")] | |
| 116 | 116 | #[rustc_clean( |
| 117 | cfg = "bfail5", | |
| 117 | cfg = "bpass5", | |
| 118 | 118 | except = "opt_hir_owner_nodes, typeck_root, fn_sig" |
| 119 | 119 | )] |
| 120 | #[rustc_clean(cfg = "bfail6")] | |
| 120 | #[rustc_clean(cfg = "bpass6")] | |
| 121 | 121 | pub unsafe fn make_unsafe() {} |
| 122 | 122 | |
| 123 | 123 | // Extern ---------------------------------------------------------------------- |
| 124 | 124 | |
| 125 | #[cfg(any(bfail1,bfail4))] | |
| 125 | #[cfg(any(bpass1,bpass4))] | |
| 126 | 126 | pub fn make_extern() {} |
| 127 | 127 | |
| 128 | #[cfg(not(any(bfail1,bfail4)))] | |
| 129 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 130 | #[rustc_clean(cfg = "bfail3")] | |
| 131 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 132 | #[rustc_clean(cfg = "bfail6")] | |
| 128 | #[cfg(not(any(bpass1,bpass4)))] | |
| 129 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 130 | #[rustc_clean(cfg = "bpass3")] | |
| 131 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 132 | #[rustc_clean(cfg = "bpass6")] | |
| 133 | 133 | pub extern "C" fn make_extern() {} |
| 134 | 134 | |
| 135 | 135 | // Type Parameter -------------------------------------------------------------- |
| 136 | 136 | |
| 137 | #[cfg(any(bfail1,bfail4))] | |
| 137 | #[cfg(any(bpass1,bpass4))] | |
| 138 | 138 | pub fn type_parameter () {} |
| 139 | 139 | |
| 140 | #[cfg(not(any(bfail1,bfail4)))] | |
| 140 | #[cfg(not(any(bpass1,bpass4)))] | |
| 141 | 141 | #[rustc_clean( |
| 142 | cfg = "bfail2", | |
| 142 | cfg = "bpass2", | |
| 143 | 143 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of" |
| 144 | 144 | )] |
| 145 | #[rustc_clean(cfg = "bfail3")] | |
| 145 | #[rustc_clean(cfg = "bpass3")] | |
| 146 | 146 | #[rustc_clean( |
| 147 | cfg = "bfail5", | |
| 147 | cfg = "bpass5", | |
| 148 | 148 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of" |
| 149 | 149 | )] |
| 150 | #[rustc_clean(cfg = "bfail6")] | |
| 150 | #[rustc_clean(cfg = "bpass6")] | |
| 151 | 151 | pub fn type_parameter<T>() {} |
| 152 | 152 | |
| 153 | 153 | // Lifetime Parameter ---------------------------------------------------------- |
| 154 | 154 | |
| 155 | #[cfg(any(bfail1,bfail4))] | |
| 155 | #[cfg(any(bpass1,bpass4))] | |
| 156 | 156 | pub fn lifetime_parameter () {} |
| 157 | 157 | |
| 158 | #[cfg(not(any(bfail1,bfail4)))] | |
| 159 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, generics_of,fn_sig")] | |
| 160 | #[rustc_clean(cfg = "bfail3")] | |
| 161 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, generics_of,fn_sig")] | |
| 162 | #[rustc_clean(cfg = "bfail6")] | |
| 158 | #[cfg(not(any(bpass1,bpass4)))] | |
| 159 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, generics_of,fn_sig")] | |
| 160 | #[rustc_clean(cfg = "bpass3")] | |
| 161 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, generics_of,fn_sig")] | |
| 162 | #[rustc_clean(cfg = "bpass6")] | |
| 163 | 163 | pub fn lifetime_parameter<'a>() {} |
| 164 | 164 | |
| 165 | 165 | // Trait Bound ----------------------------------------------------------------- |
| 166 | 166 | |
| 167 | #[cfg(any(bfail1,bfail4))] | |
| 167 | #[cfg(any(bpass1,bpass4))] | |
| 168 | 168 | pub fn trait_bound<T >() {} |
| 169 | 169 | |
| 170 | #[cfg(not(any(bfail1,bfail4)))] | |
| 171 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 172 | #[rustc_clean(cfg = "bfail3")] | |
| 170 | #[cfg(not(any(bpass1,bpass4)))] | |
| 171 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 172 | #[rustc_clean(cfg = "bpass3")] | |
| 173 | 173 | pub fn trait_bound<T: Eq>() {} |
| 174 | 174 | |
| 175 | 175 | // Builtin Bound --------------------------------------------------------------- |
| 176 | 176 | |
| 177 | #[cfg(any(bfail1,bfail4))] | |
| 177 | #[cfg(any(bpass1,bpass4))] | |
| 178 | 178 | pub fn builtin_bound<T >() {} |
| 179 | 179 | |
| 180 | #[cfg(not(any(bfail1,bfail4)))] | |
| 181 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 182 | #[rustc_clean(cfg = "bfail3")] | |
| 183 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 184 | #[rustc_clean(cfg = "bfail6")] | |
| 180 | #[cfg(not(any(bpass1,bpass4)))] | |
| 181 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 182 | #[rustc_clean(cfg = "bpass3")] | |
| 183 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 184 | #[rustc_clean(cfg = "bpass6")] | |
| 185 | 185 | pub fn builtin_bound<T: Send>() {} |
| 186 | 186 | |
| 187 | 187 | // Lifetime Bound -------------------------------------------------------------- |
| 188 | 188 | |
| 189 | #[cfg(any(bfail1,bfail4))] | |
| 189 | #[cfg(any(bpass1,bpass4))] | |
| 190 | 190 | pub fn lifetime_bound<'a, T>() {} |
| 191 | 191 | |
| 192 | #[cfg(not(any(bfail1,bfail4)))] | |
| 192 | #[cfg(not(any(bpass1,bpass4)))] | |
| 193 | 193 | #[rustc_clean( |
| 194 | cfg = "bfail2", | |
| 194 | cfg = "bpass2", | |
| 195 | 195 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig" |
| 196 | 196 | )] |
| 197 | #[rustc_clean(cfg = "bfail3")] | |
| 197 | #[rustc_clean(cfg = "bpass3")] | |
| 198 | 198 | #[rustc_clean( |
| 199 | cfg = "bfail5", | |
| 199 | cfg = "bpass5", | |
| 200 | 200 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig,optimized_mir" |
| 201 | 201 | )] |
| 202 | #[rustc_clean(cfg = "bfail6")] | |
| 202 | #[rustc_clean(cfg = "bpass6")] | |
| 203 | 203 | pub fn lifetime_bound<'a, T: 'a>() {} |
| 204 | 204 | |
| 205 | 205 | // Second Trait Bound ---------------------------------------------------------- |
| 206 | 206 | |
| 207 | #[cfg(any(bfail1,bfail4))] | |
| 207 | #[cfg(any(bpass1,bpass4))] | |
| 208 | 208 | pub fn second_trait_bound<T: Eq >() {} |
| 209 | 209 | |
| 210 | #[cfg(not(any(bfail1,bfail4)))] | |
| 211 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 212 | #[rustc_clean(cfg = "bfail3")] | |
| 210 | #[cfg(not(any(bpass1,bpass4)))] | |
| 211 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 212 | #[rustc_clean(cfg = "bpass3")] | |
| 213 | 213 | pub fn second_trait_bound<T: Eq + Clone>() {} |
| 214 | 214 | |
| 215 | 215 | // Second Builtin Bound -------------------------------------------------------- |
| 216 | 216 | |
| 217 | #[cfg(any(bfail1,bfail4))] | |
| 217 | #[cfg(any(bpass1,bpass4))] | |
| 218 | 218 | pub fn second_builtin_bound<T: Send >() {} |
| 219 | 219 | |
| 220 | #[cfg(not(any(bfail1,bfail4)))] | |
| 221 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 222 | #[rustc_clean(cfg = "bfail3")] | |
| 223 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 224 | #[rustc_clean(cfg = "bfail6")] | |
| 220 | #[cfg(not(any(bpass1,bpass4)))] | |
| 221 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 222 | #[rustc_clean(cfg = "bpass3")] | |
| 223 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 224 | #[rustc_clean(cfg = "bpass6")] | |
| 225 | 225 | pub fn second_builtin_bound<T: Send + Sized>() {} |
| 226 | 226 | |
| 227 | 227 | // Second Lifetime Bound ------------------------------------------------------- |
| 228 | 228 | |
| 229 | #[cfg(any(bfail1,bfail4))] | |
| 229 | #[cfg(any(bpass1,bpass4))] | |
| 230 | 230 | pub fn second_lifetime_bound<'a, 'b, T: 'a >() {} |
| 231 | 231 | |
| 232 | #[cfg(not(any(bfail1,bfail4)))] | |
| 232 | #[cfg(not(any(bpass1,bpass4)))] | |
| 233 | 233 | #[rustc_clean( |
| 234 | cfg = "bfail2", | |
| 234 | cfg = "bpass2", | |
| 235 | 235 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig" |
| 236 | 236 | )] |
| 237 | #[rustc_clean(cfg = "bfail3")] | |
| 237 | #[rustc_clean(cfg = "bpass3")] | |
| 238 | 238 | #[rustc_clean( |
| 239 | cfg = "bfail5", | |
| 239 | cfg = "bpass5", | |
| 240 | 240 | except = "opt_hir_owner_nodes, generics_of, type_of, predicates_of,fn_sig" |
| 241 | 241 | )] |
| 242 | #[rustc_clean(cfg = "bfail6")] | |
| 242 | #[rustc_clean(cfg = "bpass6")] | |
| 243 | 243 | pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {} |
| 244 | 244 | |
| 245 | 245 | // Inline ---------------------------------------------------------------------- |
| 246 | 246 | |
| 247 | #[cfg(any(bfail1,bfail4))] | |
| 247 | #[cfg(any(bpass1,bpass4))] | |
| 248 | 248 | pub fn inline() {} |
| 249 | 249 | |
| 250 | #[cfg(not(any(bfail1,bfail4)))] | |
| 251 | #[rustc_clean(cfg = "bfail2")] | |
| 252 | #[rustc_clean(cfg = "bfail3")] | |
| 253 | #[rustc_clean(cfg = "bfail5")] | |
| 254 | #[rustc_clean(cfg = "bfail6")] | |
| 250 | #[cfg(not(any(bpass1,bpass4)))] | |
| 251 | #[rustc_clean(cfg = "bpass2")] | |
| 252 | #[rustc_clean(cfg = "bpass3")] | |
| 253 | #[rustc_clean(cfg = "bpass5")] | |
| 254 | #[rustc_clean(cfg = "bpass6")] | |
| 255 | 255 | #[inline] |
| 256 | 256 | pub fn inline() {} |
| 257 | 257 | |
| 258 | 258 | // Inline Never ---------------------------------------------------------------- |
| 259 | 259 | |
| 260 | #[cfg(any(bfail1,bfail4))] | |
| 260 | #[cfg(any(bpass1,bpass4))] | |
| 261 | 261 | #[inline(always)] |
| 262 | 262 | pub fn inline_never() {} |
| 263 | 263 | |
| 264 | #[cfg(not(any(bfail1,bfail4)))] | |
| 265 | #[rustc_clean(cfg = "bfail2")] | |
| 266 | #[rustc_clean(cfg = "bfail3")] | |
| 267 | #[rustc_clean(cfg = "bfail5")] | |
| 268 | #[rustc_clean(cfg = "bfail6")] | |
| 264 | #[cfg(not(any(bpass1,bpass4)))] | |
| 265 | #[rustc_clean(cfg = "bpass2")] | |
| 266 | #[rustc_clean(cfg = "bpass3")] | |
| 267 | #[rustc_clean(cfg = "bpass5")] | |
| 268 | #[rustc_clean(cfg = "bpass6")] | |
| 269 | 269 | #[inline(never)] |
| 270 | 270 | pub fn inline_never() {} |
| 271 | 271 | |
| 272 | 272 | // No Mangle ------------------------------------------------------------------- |
| 273 | 273 | |
| 274 | #[cfg(any(bfail1,bfail4))] | |
| 274 | #[cfg(any(bpass1,bpass4))] | |
| 275 | 275 | pub fn no_mangle() {} |
| 276 | 276 | |
| 277 | #[cfg(not(any(bfail1,bfail4)))] | |
| 278 | #[rustc_clean(cfg = "bfail2")] | |
| 279 | #[rustc_clean(cfg = "bfail3")] | |
| 280 | #[rustc_clean(cfg = "bfail5")] | |
| 281 | #[rustc_clean(cfg = "bfail6")] | |
| 277 | #[cfg(not(any(bpass1,bpass4)))] | |
| 278 | #[rustc_clean(cfg = "bpass2")] | |
| 279 | #[rustc_clean(cfg = "bpass3")] | |
| 280 | #[rustc_clean(cfg = "bpass5")] | |
| 281 | #[rustc_clean(cfg = "bpass6")] | |
| 282 | 282 | #[unsafe(no_mangle)] |
| 283 | 283 | pub fn no_mangle() {} |
| 284 | 284 | |
| 285 | 285 | // Linkage --------------------------------------------------------------------- |
| 286 | 286 | |
| 287 | #[cfg(any(bfail1,bfail4))] | |
| 287 | #[cfg(any(bpass1,bpass4))] | |
| 288 | 288 | pub fn linkage() {} |
| 289 | 289 | |
| 290 | #[cfg(not(any(bfail1,bfail4)))] | |
| 291 | #[rustc_clean(cfg = "bfail2")] | |
| 292 | #[rustc_clean(cfg = "bfail3")] | |
| 293 | #[rustc_clean(cfg = "bfail5")] | |
| 294 | #[rustc_clean(cfg = "bfail6")] | |
| 290 | #[cfg(not(any(bpass1,bpass4)))] | |
| 291 | #[rustc_clean(cfg = "bpass2")] | |
| 292 | #[rustc_clean(cfg = "bpass3")] | |
| 293 | #[rustc_clean(cfg = "bpass5")] | |
| 294 | #[rustc_clean(cfg = "bpass6")] | |
| 295 | 295 | #[linkage = "weak_odr"] |
| 296 | 296 | pub fn linkage() {} |
| 297 | 297 | |
| 298 | 298 | // Return Impl Trait ----------------------------------------------------------- |
| 299 | 299 | |
| 300 | #[cfg(any(bfail1,bfail4))] | |
| 300 | #[cfg(any(bpass1,bpass4))] | |
| 301 | 301 | pub fn return_impl_trait() -> i32 { |
| 302 | 302 | 0 |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | #[cfg(not(any(bfail1,bfail4)))] | |
| 306 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 307 | #[rustc_clean(cfg = "bfail3")] | |
| 308 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, typeck_root, fn_sig, optimized_mir")] | |
| 309 | #[rustc_clean(cfg = "bfail6")] | |
| 305 | #[cfg(not(any(bpass1,bpass4)))] | |
| 306 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, typeck_root, fn_sig")] | |
| 307 | #[rustc_clean(cfg = "bpass3")] | |
| 308 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, typeck_root, fn_sig, optimized_mir")] | |
| 309 | #[rustc_clean(cfg = "bpass6")] | |
| 310 | 310 | pub fn return_impl_trait() -> impl Clone { |
| 311 | 311 | 0 |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | // Change Return Impl Trait ---------------------------------------------------- |
| 315 | 315 | |
| 316 | #[cfg(any(bfail1,bfail4))] | |
| 316 | #[cfg(any(bpass1,bpass4))] | |
| 317 | 317 | pub fn change_return_impl_trait() -> impl Clone { |
| 318 | 318 | 0u32 |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | #[cfg(not(any(bfail1,bfail4)))] | |
| 322 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes")] | |
| 323 | #[rustc_clean(cfg = "bfail3")] | |
| 324 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, typeck_root")] | |
| 325 | #[rustc_clean(cfg = "bfail6")] | |
| 321 | #[cfg(not(any(bpass1,bpass4)))] | |
| 322 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes")] | |
| 323 | #[rustc_clean(cfg = "bpass3")] | |
| 324 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, typeck_root")] | |
| 325 | #[rustc_clean(cfg = "bpass6")] | |
| 326 | 326 | pub fn change_return_impl_trait() -> impl Copy { |
| 327 | 327 | 0u32 |
| 328 | 328 | } |
| ... | ... | @@ -333,21 +333,21 @@ pub struct ReferencedType1; |
| 333 | 333 | pub struct ReferencedType2; |
| 334 | 334 | |
| 335 | 335 | pub mod change_return_type_indirectly { |
| 336 | #[cfg(any(bfail1,bfail4))] | |
| 336 | #[cfg(any(bpass1,bpass4))] | |
| 337 | 337 | use super::ReferencedType1 as ReturnType; |
| 338 | #[cfg(not(any(bfail1,bfail4)))] | |
| 338 | #[cfg(not(any(bpass1,bpass4)))] | |
| 339 | 339 | use super::ReferencedType2 as ReturnType; |
| 340 | 340 | |
| 341 | 341 | #[rustc_clean( |
| 342 | cfg = "bfail2", | |
| 342 | cfg = "bpass2", | |
| 343 | 343 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 344 | 344 | )] |
| 345 | #[rustc_clean(cfg = "bfail3")] | |
| 345 | #[rustc_clean(cfg = "bpass3")] | |
| 346 | 346 | #[rustc_clean( |
| 347 | cfg = "bfail5", | |
| 347 | cfg = "bpass5", | |
| 348 | 348 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 349 | 349 | )] |
| 350 | #[rustc_clean(cfg = "bfail6")] | |
| 350 | #[rustc_clean(cfg = "bpass6")] | |
| 351 | 351 | pub fn indirect_return_type() -> ReturnType { |
| 352 | 352 | ReturnType {} |
| 353 | 353 | } |
| ... | ... | @@ -356,21 +356,21 @@ pub mod change_return_type_indirectly { |
| 356 | 356 | // Change Parameter Type Indirectly -------------------------------------------- |
| 357 | 357 | |
| 358 | 358 | pub mod change_parameter_type_indirectly { |
| 359 | #[cfg(any(bfail1,bfail4))] | |
| 359 | #[cfg(any(bpass1,bpass4))] | |
| 360 | 360 | use super::ReferencedType1 as ParameterType; |
| 361 | #[cfg(not(any(bfail1,bfail4)))] | |
| 361 | #[cfg(not(any(bpass1,bpass4)))] | |
| 362 | 362 | use super::ReferencedType2 as ParameterType; |
| 363 | 363 | |
| 364 | 364 | #[rustc_clean( |
| 365 | cfg = "bfail2", | |
| 365 | cfg = "bpass2", | |
| 366 | 366 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 367 | 367 | )] |
| 368 | #[rustc_clean(cfg = "bfail3")] | |
| 368 | #[rustc_clean(cfg = "bpass3")] | |
| 369 | 369 | #[rustc_clean( |
| 370 | cfg = "bfail5", | |
| 370 | cfg = "bpass5", | |
| 371 | 371 | except = "opt_hir_owner_nodes, optimized_mir, typeck_root, fn_sig" |
| 372 | 372 | )] |
| 373 | #[rustc_clean(cfg = "bfail6")] | |
| 373 | #[rustc_clean(cfg = "bpass6")] | |
| 374 | 374 | pub fn indirect_parameter_type(p: ParameterType) {} |
| 375 | 375 | } |
| 376 | 376 | |
| ... | ... | @@ -380,30 +380,30 @@ pub trait ReferencedTrait1 {} |
| 380 | 380 | pub trait ReferencedTrait2 {} |
| 381 | 381 | |
| 382 | 382 | pub mod change_trait_bound_indirectly { |
| 383 | #[cfg(any(bfail1,bfail4))] | |
| 383 | #[cfg(any(bpass1,bpass4))] | |
| 384 | 384 | use super::ReferencedTrait1 as Trait; |
| 385 | #[cfg(not(any(bfail1,bfail4)))] | |
| 385 | #[cfg(not(any(bpass1,bpass4)))] | |
| 386 | 386 | use super::ReferencedTrait2 as Trait; |
| 387 | 387 | |
| 388 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 389 | #[rustc_clean(cfg = "bfail3")] | |
| 390 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 391 | #[rustc_clean(cfg = "bfail6")] | |
| 388 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 389 | #[rustc_clean(cfg = "bpass3")] | |
| 390 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 391 | #[rustc_clean(cfg = "bpass6")] | |
| 392 | 392 | pub fn indirect_trait_bound<T: Trait>(p: T) {} |
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | // Change Trait Bound Indirectly In Where Clause ------------------------------- |
| 396 | 396 | |
| 397 | 397 | pub mod change_trait_bound_indirectly_in_where_clause { |
| 398 | #[cfg(any(bfail1,bfail4))] | |
| 398 | #[cfg(any(bpass1,bpass4))] | |
| 399 | 399 | use super::ReferencedTrait1 as Trait; |
| 400 | #[cfg(not(any(bfail1,bfail4)))] | |
| 400 | #[cfg(not(any(bpass1,bpass4)))] | |
| 401 | 401 | use super::ReferencedTrait2 as Trait; |
| 402 | 402 | |
| 403 | #[rustc_clean(cfg = "bfail2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 404 | #[rustc_clean(cfg = "bfail3")] | |
| 405 | #[rustc_clean(cfg = "bfail5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 406 | #[rustc_clean(cfg = "bfail6")] | |
| 403 | #[rustc_clean(cfg = "bpass2", except = "opt_hir_owner_nodes, predicates_of")] | |
| 404 | #[rustc_clean(cfg = "bpass3")] | |
| 405 | #[rustc_clean(cfg = "bpass5", except = "opt_hir_owner_nodes, predicates_of")] | |
| 406 | #[rustc_clean(cfg = "bpass6")] | |
| 407 | 407 | pub fn indirect_trait_bound_where<T>(p: T) |
| 408 | 408 | where |
| 409 | 409 | T: Trait, |
tests/incremental/hashes/if_expressions.rs+53-53| ... | ... | @@ -5,20 +5,20 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| 18 | 18 | #![crate_type="rlib"] |
| 19 | 19 | |
| 20 | 20 | // Change condition (if) |
| 21 | #[cfg(any(bfail1,bfail4))] | |
| 21 | #[cfg(any(bpass1,bpass4))] | |
| 22 | 22 | pub fn change_condition(x: bool) -> u32 { |
| 23 | 23 | if x { |
| 24 | 24 | return 1 |
| ... | ... | @@ -27,11 +27,11 @@ pub fn change_condition(x: bool) -> u32 { |
| 27 | 27 | return 0 |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | #[cfg(not(any(bfail1,bfail4)))] | |
| 31 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 32 | #[rustc_clean(cfg="bfail3")] | |
| 33 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 34 | #[rustc_clean(cfg="bfail6")] | |
| 30 | #[cfg(not(any(bpass1,bpass4)))] | |
| 31 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 32 | #[rustc_clean(cfg="bpass3")] | |
| 33 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 34 | #[rustc_clean(cfg="bpass6")] | |
| 35 | 35 | pub fn change_condition(x: bool) -> u32 { |
| 36 | 36 | if !x { |
| 37 | 37 | return 1 |
| ... | ... | @@ -41,7 +41,7 @@ pub fn change_condition(x: bool) -> u32 { |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | // Change then branch (if) |
| 44 | #[cfg(any(bfail1,bfail4))] | |
| 44 | #[cfg(any(bpass1,bpass4))] | |
| 45 | 45 | pub fn change_then_branch(x: bool) -> u32 { |
| 46 | 46 | if x { |
| 47 | 47 | return 1 |
| ... | ... | @@ -50,11 +50,11 @@ pub fn change_then_branch(x: bool) -> u32 { |
| 50 | 50 | return 0 |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | #[cfg(not(any(bfail1,bfail4)))] | |
| 54 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 55 | #[rustc_clean(cfg="bfail3")] | |
| 56 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 57 | #[rustc_clean(cfg="bfail6")] | |
| 53 | #[cfg(not(any(bpass1,bpass4)))] | |
| 54 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 55 | #[rustc_clean(cfg="bpass3")] | |
| 56 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 57 | #[rustc_clean(cfg="bpass6")] | |
| 58 | 58 | pub fn change_then_branch(x: bool) -> u32 { |
| 59 | 59 | if x { |
| 60 | 60 | return 2 |
| ... | ... | @@ -66,7 +66,7 @@ pub fn change_then_branch(x: bool) -> u32 { |
| 66 | 66 | |
| 67 | 67 | |
| 68 | 68 | // Change else branch (if) |
| 69 | #[cfg(any(bfail1,bfail4))] | |
| 69 | #[cfg(any(bpass1,bpass4))] | |
| 70 | 70 | pub fn change_else_branch(x: bool) -> u32 { |
| 71 | 71 | if x { |
| 72 | 72 | 1 |
| ... | ... | @@ -75,11 +75,11 @@ pub fn change_else_branch(x: bool) -> u32 { |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | #[cfg(not(any(bfail1,bfail4)))] | |
| 79 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 80 | #[rustc_clean(cfg="bfail3")] | |
| 81 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 82 | #[rustc_clean(cfg="bfail6")] | |
| 78 | #[cfg(not(any(bpass1,bpass4)))] | |
| 79 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 80 | #[rustc_clean(cfg="bpass3")] | |
| 81 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 82 | #[rustc_clean(cfg="bpass6")] | |
| 83 | 83 | pub fn change_else_branch(x: bool) -> u32 { |
| 84 | 84 | if x { |
| 85 | 85 | 1 |
| ... | ... | @@ -91,7 +91,7 @@ pub fn change_else_branch(x: bool) -> u32 { |
| 91 | 91 | |
| 92 | 92 | |
| 93 | 93 | // Add else branch (if) |
| 94 | #[cfg(any(bfail1,bfail4))] | |
| 94 | #[cfg(any(bpass1,bpass4))] | |
| 95 | 95 | pub fn add_else_branch(x: bool) -> u32 { |
| 96 | 96 | let mut ret = 1; |
| 97 | 97 | |
| ... | ... | @@ -103,11 +103,11 @@ pub fn add_else_branch(x: bool) -> u32 { |
| 103 | 103 | ret |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn add_else_branch(x: bool) -> u32 { |
| 112 | 112 | let mut ret = 1; |
| 113 | 113 | |
| ... | ... | @@ -122,7 +122,7 @@ pub fn add_else_branch(x: bool) -> u32 { |
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | // Change condition (if let) |
| 125 | #[cfg(any(bfail1,bfail4))] | |
| 125 | #[cfg(any(bpass1,bpass4))] | |
| 126 | 126 | pub fn change_condition_if_let(x: Option<u32>) -> u32 { |
| 127 | 127 | if let Some(_x) = x { |
| 128 | 128 | return 1 |
| ... | ... | @@ -131,11 +131,11 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 { |
| 131 | 131 | 0 |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | #[cfg(not(any(bfail1,bfail4)))] | |
| 135 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 136 | #[rustc_clean(cfg="bfail3")] | |
| 137 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 138 | #[rustc_clean(cfg="bfail6")] | |
| 134 | #[cfg(not(any(bpass1,bpass4)))] | |
| 135 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 136 | #[rustc_clean(cfg="bpass3")] | |
| 137 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 138 | #[rustc_clean(cfg="bpass6")] | |
| 139 | 139 | pub fn change_condition_if_let(x: Option<u32>) -> u32 { |
| 140 | 140 | if let Some(_ ) = x { |
| 141 | 141 | return 1 |
| ... | ... | @@ -147,7 +147,7 @@ pub fn change_condition_if_let(x: Option<u32>) -> u32 { |
| 147 | 147 | |
| 148 | 148 | |
| 149 | 149 | // Change then branch (if let) |
| 150 | #[cfg(any(bfail1,bfail4))] | |
| 150 | #[cfg(any(bpass1,bpass4))] | |
| 151 | 151 | pub fn change_then_branch_if_let(x: Option<u32>) -> u32 { |
| 152 | 152 | if let Some(x) = x { |
| 153 | 153 | return x //- |
| ... | ... | @@ -156,11 +156,11 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 { |
| 156 | 156 | 0 |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | #[cfg(not(any(bfail1,bfail4)))] | |
| 160 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 161 | #[rustc_clean(cfg="bfail3")] | |
| 162 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 163 | #[rustc_clean(cfg="bfail6")] | |
| 159 | #[cfg(not(any(bpass1,bpass4)))] | |
| 160 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 161 | #[rustc_clean(cfg="bpass3")] | |
| 162 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 163 | #[rustc_clean(cfg="bpass6")] | |
| 164 | 164 | pub fn change_then_branch_if_let(x: Option<u32>) -> u32 { |
| 165 | 165 | if let Some(x) = x { |
| 166 | 166 | return x + 1 |
| ... | ... | @@ -172,7 +172,7 @@ pub fn change_then_branch_if_let(x: Option<u32>) -> u32 { |
| 172 | 172 | |
| 173 | 173 | |
| 174 | 174 | // Change else branch (if let) |
| 175 | #[cfg(any(bfail1,bfail4))] | |
| 175 | #[cfg(any(bpass1,bpass4))] | |
| 176 | 176 | pub fn change_else_branch_if_let(x: Option<u32>) -> u32 { |
| 177 | 177 | if let Some(x) = x { |
| 178 | 178 | x |
| ... | ... | @@ -181,11 +181,11 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 { |
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | #[cfg(not(any(bfail1,bfail4)))] | |
| 185 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 186 | #[rustc_clean(cfg="bfail3")] | |
| 187 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 188 | #[rustc_clean(cfg="bfail6")] | |
| 184 | #[cfg(not(any(bpass1,bpass4)))] | |
| 185 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 186 | #[rustc_clean(cfg="bpass3")] | |
| 187 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 188 | #[rustc_clean(cfg="bpass6")] | |
| 189 | 189 | pub fn change_else_branch_if_let(x: Option<u32>) -> u32 { |
| 190 | 190 | if let Some(x) = x { |
| 191 | 191 | x |
| ... | ... | @@ -197,7 +197,7 @@ pub fn change_else_branch_if_let(x: Option<u32>) -> u32 { |
| 197 | 197 | |
| 198 | 198 | |
| 199 | 199 | // Add else branch (if let) |
| 200 | #[cfg(any(bfail1,bfail4))] | |
| 200 | #[cfg(any(bpass1,bpass4))] | |
| 201 | 201 | pub fn add_else_branch_if_let(x: Option<u32>) -> u32 { |
| 202 | 202 | let mut ret = 1; |
| 203 | 203 | |
| ... | ... | @@ -209,11 +209,11 @@ pub fn add_else_branch_if_let(x: Option<u32>) -> u32 { |
| 209 | 209 | ret |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | #[cfg(not(any(bfail1,bfail4)))] | |
| 213 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 214 | #[rustc_clean(cfg="bfail3")] | |
| 215 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bfail6")] | |
| 212 | #[cfg(not(any(bpass1,bpass4)))] | |
| 213 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 214 | #[rustc_clean(cfg="bpass3")] | |
| 215 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bpass6")] | |
| 217 | 217 | pub fn add_else_branch_if_let(x: Option<u32>) -> u32 { |
| 218 | 218 | let mut ret = 1; |
| 219 | 219 |
tests/incremental/hashes/indexing_expressions.rs+47-47| ... | ... | @@ -5,29 +5,29 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| 18 | 18 | #![crate_type="rlib"] |
| 19 | 19 | |
| 20 | 20 | // Change simple index |
| 21 | #[cfg(any(bfail1,bfail4))] | |
| 21 | #[cfg(any(bpass1,bpass4))] | |
| 22 | 22 | fn change_simple_index(slice: &[u32]) -> u32 { |
| 23 | 23 | slice[3] |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | #[cfg(not(any(bfail1,bfail4)))] | |
| 27 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 28 | #[rustc_clean(cfg="bfail3")] | |
| 29 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 30 | #[rustc_clean(cfg="bfail6")] | |
| 26 | #[cfg(not(any(bpass1,bpass4)))] | |
| 27 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 28 | #[rustc_clean(cfg="bpass3")] | |
| 29 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 30 | #[rustc_clean(cfg="bpass6")] | |
| 31 | 31 | fn change_simple_index(slice: &[u32]) -> u32 { |
| 32 | 32 | slice[4] |
| 33 | 33 | } |
| ... | ... | @@ -35,16 +35,16 @@ fn change_simple_index(slice: &[u32]) -> u32 { |
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | // Change lower bound |
| 38 | #[cfg(any(bfail1,bfail4))] | |
| 38 | #[cfg(any(bpass1,bpass4))] | |
| 39 | 39 | fn change_lower_bound(slice: &[u32]) -> &[u32] { |
| 40 | 40 | &slice[3..5] |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | #[cfg(not(any(bfail1,bfail4)))] | |
| 44 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 45 | #[rustc_clean(cfg="bfail3")] | |
| 46 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 47 | #[rustc_clean(cfg="bfail6")] | |
| 43 | #[cfg(not(any(bpass1,bpass4)))] | |
| 44 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 45 | #[rustc_clean(cfg="bpass3")] | |
| 46 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 47 | #[rustc_clean(cfg="bpass6")] | |
| 48 | 48 | fn change_lower_bound(slice: &[u32]) -> &[u32] { |
| 49 | 49 | &slice[2..5] |
| 50 | 50 | } |
| ... | ... | @@ -52,16 +52,16 @@ fn change_lower_bound(slice: &[u32]) -> &[u32] { |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | // Change upper bound |
| 55 | #[cfg(any(bfail1,bfail4))] | |
| 55 | #[cfg(any(bpass1,bpass4))] | |
| 56 | 56 | fn change_upper_bound(slice: &[u32]) -> &[u32] { |
| 57 | 57 | &slice[3..5] |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | #[cfg(not(any(bfail1,bfail4)))] | |
| 61 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 62 | #[rustc_clean(cfg="bfail3")] | |
| 63 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 64 | #[rustc_clean(cfg="bfail6")] | |
| 60 | #[cfg(not(any(bpass1,bpass4)))] | |
| 61 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 62 | #[rustc_clean(cfg="bpass3")] | |
| 63 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 64 | #[rustc_clean(cfg="bpass6")] | |
| 65 | 65 | fn change_upper_bound(slice: &[u32]) -> &[u32] { |
| 66 | 66 | &slice[3..7] |
| 67 | 67 | } |
| ... | ... | @@ -69,16 +69,16 @@ fn change_upper_bound(slice: &[u32]) -> &[u32] { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Add lower bound |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | fn add_lower_bound(slice: &[u32]) -> &[u32] { |
| 74 | 74 | &slice[ ..4] |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | #[cfg(not(any(bfail1,bfail4)))] | |
| 78 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 79 | #[rustc_clean(cfg="bfail3")] | |
| 80 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 81 | #[rustc_clean(cfg="bfail6")] | |
| 77 | #[cfg(not(any(bpass1,bpass4)))] | |
| 78 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 79 | #[rustc_clean(cfg="bpass3")] | |
| 80 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 81 | #[rustc_clean(cfg="bpass6")] | |
| 82 | 82 | fn add_lower_bound(slice: &[u32]) -> &[u32] { |
| 83 | 83 | &slice[3..4] |
| 84 | 84 | } |
| ... | ... | @@ -86,16 +86,16 @@ fn add_lower_bound(slice: &[u32]) -> &[u32] { |
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | // Add upper bound |
| 89 | #[cfg(any(bfail1,bfail4))] | |
| 89 | #[cfg(any(bpass1,bpass4))] | |
| 90 | 90 | fn add_upper_bound(slice: &[u32]) -> &[u32] { |
| 91 | 91 | &slice[3.. ] |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | #[cfg(not(any(bfail1,bfail4)))] | |
| 95 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 96 | #[rustc_clean(cfg="bfail3")] | |
| 97 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 98 | #[rustc_clean(cfg="bfail6")] | |
| 94 | #[cfg(not(any(bpass1,bpass4)))] | |
| 95 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 96 | #[rustc_clean(cfg="bpass3")] | |
| 97 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 98 | #[rustc_clean(cfg="bpass6")] | |
| 99 | 99 | fn add_upper_bound(slice: &[u32]) -> &[u32] { |
| 100 | 100 | &slice[3..7] |
| 101 | 101 | } |
| ... | ... | @@ -103,16 +103,16 @@ fn add_upper_bound(slice: &[u32]) -> &[u32] { |
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | // Change mutability |
| 106 | #[cfg(any(bfail1,bfail4))] | |
| 106 | #[cfg(any(bpass1,bpass4))] | |
| 107 | 107 | fn change_mutability(slice: &mut [u32]) -> u32 { |
| 108 | 108 | (&mut slice[3..5])[0] |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | #[cfg(not(any(bfail1,bfail4)))] | |
| 112 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 113 | #[rustc_clean(cfg="bfail3")] | |
| 114 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 115 | #[rustc_clean(cfg="bfail6")] | |
| 111 | #[cfg(not(any(bpass1,bpass4)))] | |
| 112 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 113 | #[rustc_clean(cfg="bpass3")] | |
| 114 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 115 | #[rustc_clean(cfg="bpass6")] | |
| 116 | 116 | fn change_mutability(slice: &mut [u32]) -> u32 { |
| 117 | 117 | (& slice[3..5])[0] |
| 118 | 118 | } |
| ... | ... | @@ -120,16 +120,16 @@ fn change_mutability(slice: &mut [u32]) -> u32 { |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | // Exclusive to inclusive range |
| 123 | #[cfg(any(bfail1,bfail4))] | |
| 123 | #[cfg(any(bpass1,bpass4))] | |
| 124 | 124 | fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] { |
| 125 | 125 | &slice[3.. 7] |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | #[cfg(not(any(bfail1,bfail4)))] | |
| 129 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 130 | #[rustc_clean(cfg="bfail3")] | |
| 131 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 132 | #[rustc_clean(cfg="bfail6")] | |
| 128 | #[cfg(not(any(bpass1,bpass4)))] | |
| 129 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 130 | #[rustc_clean(cfg="bpass3")] | |
| 131 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 132 | #[rustc_clean(cfg="bpass6")] | |
| 133 | 133 | fn exclusive_to_inclusive_range(slice: &[u32]) -> &[u32] { |
| 134 | 134 | &slice[3..=7] |
| 135 | 135 | } |
tests/incremental/hashes/inherent_impls.rs+257-258| ... | ... | @@ -6,14 +6,13 @@ |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | 8 | //@ edition: 2024 |
| 9 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 10 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 9 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 11 | 10 | //@ compile-flags: -Z query-dep-graph -O |
| 12 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 14 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 15 | 14 | //@ ignore-backends: gcc |
| 16 | ||
| 15 | // FIXME(#62277): could be check-pass? | |
| 17 | 16 | |
| 18 | 17 | #![allow(warnings)] |
| 19 | 18 | #![feature(rustc_attrs)] |
| ... | ... | @@ -22,26 +21,26 @@ |
| 22 | 21 | pub struct Foo; |
| 23 | 22 | |
| 24 | 23 | // Change Method Name ----------------------------------------------------------- |
| 25 | #[cfg(any(bfail1,bfail4))] | |
| 24 | #[cfg(any(bpass1,bpass4))] | |
| 26 | 25 | impl Foo { |
| 27 | 26 | pub fn method_name() { } |
| 28 | 27 | } |
| 29 | 28 | |
| 30 | #[cfg(not(any(bfail1,bfail4)))] | |
| 31 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 32 | #[rustc_clean(cfg="bfail3")] | |
| 33 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 34 | #[rustc_clean(cfg="bfail6")] | |
| 29 | #[cfg(not(any(bpass1,bpass4)))] | |
| 30 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 31 | #[rustc_clean(cfg="bpass3")] | |
| 32 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 33 | #[rustc_clean(cfg="bpass6")] | |
| 35 | 34 | impl Foo { |
| 36 | #[rustc_clean(cfg="bfail3")] | |
| 37 | #[rustc_clean(cfg="bfail6")] | |
| 35 | #[rustc_clean(cfg="bpass3")] | |
| 36 | #[rustc_clean(cfg="bpass6")] | |
| 38 | 37 | pub fn method_name2() { } |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | // Change Method Body ----------------------------------------------------------- |
| 42 | 41 | // |
| 43 | 42 | // This should affect the method itself, but not the impl. |
| 44 | #[cfg(any(bfail1,bfail4))] | |
| 43 | #[cfg(any(bpass1,bpass4))] | |
| 45 | 44 | impl Foo { |
| 46 | 45 | //------------------------------------------------------------------------------------------ |
| 47 | 46 | //-------------------------- |
| ... | ... | @@ -52,16 +51,16 @@ impl Foo { |
| 52 | 51 | } |
| 53 | 52 | } |
| 54 | 53 | |
| 55 | #[cfg(not(any(bfail1,bfail4)))] | |
| 56 | #[rustc_clean(cfg="bfail2")] | |
| 57 | #[rustc_clean(cfg="bfail3")] | |
| 58 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 59 | #[rustc_clean(cfg="bfail6")] | |
| 54 | #[cfg(not(any(bpass1,bpass4)))] | |
| 55 | #[rustc_clean(cfg="bpass2")] | |
| 56 | #[rustc_clean(cfg="bpass3")] | |
| 57 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 58 | #[rustc_clean(cfg="bpass6")] | |
| 60 | 59 | impl Foo { |
| 61 | #[rustc_clean(cfg="bfail2",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")] | |
| 62 | #[rustc_clean(cfg="bfail3")] | |
| 63 | #[rustc_clean(cfg="bfail5",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")] | |
| 64 | #[rustc_clean(cfg="bfail6")] | |
| 60 | #[rustc_clean(cfg="bpass2",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")] | |
| 61 | #[rustc_clean(cfg="bpass3")] | |
| 62 | #[rustc_clean(cfg="bpass5",except="opt_hir_owner_nodes,optimized_mir,promoted_mir,typeck_root")] | |
| 63 | #[rustc_clean(cfg="bpass6")] | |
| 65 | 64 | pub fn method_body() { |
| 66 | 65 | println!("Hello, world!"); |
| 67 | 66 | } |
| ... | ... | @@ -71,7 +70,7 @@ impl Foo { |
| 71 | 70 | // Change Method Body (inlined) ------------------------------------------------ |
| 72 | 71 | // |
| 73 | 72 | // This should affect the method itself, but not the impl. |
| 74 | #[cfg(any(bfail1,bfail4))] | |
| 73 | #[cfg(any(bpass1,bpass4))] | |
| 75 | 74 | impl Foo { |
| 76 | 75 | //----------------------------------------------------------------------------- |
| 77 | 76 | //-------------------------- |
| ... | ... | @@ -83,16 +82,16 @@ impl Foo { |
| 83 | 82 | } |
| 84 | 83 | } |
| 85 | 84 | |
| 86 | #[cfg(not(any(bfail1,bfail4)))] | |
| 87 | #[rustc_clean(cfg="bfail2")] | |
| 88 | #[rustc_clean(cfg="bfail3")] | |
| 89 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 90 | #[rustc_clean(cfg="bfail6")] | |
| 85 | #[cfg(not(any(bpass1,bpass4)))] | |
| 86 | #[rustc_clean(cfg="bpass2")] | |
| 87 | #[rustc_clean(cfg="bpass3")] | |
| 88 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 89 | #[rustc_clean(cfg="bpass6")] | |
| 91 | 90 | impl Foo { |
| 92 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 93 | #[rustc_clean(cfg="bfail3")] | |
| 94 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 95 | #[rustc_clean(cfg="bfail6")] | |
| 91 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 92 | #[rustc_clean(cfg="bpass3")] | |
| 93 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 94 | #[rustc_clean(cfg="bpass6")] | |
| 96 | 95 | #[inline] |
| 97 | 96 | pub fn method_body_inlined() { |
| 98 | 97 | println!("Hello, world!"); |
| ... | ... | @@ -101,7 +100,7 @@ impl Foo { |
| 101 | 100 | |
| 102 | 101 | |
| 103 | 102 | // Change Method Privacy ------------------------------------------------------- |
| 104 | #[cfg(any(bfail1,bfail4))] | |
| 103 | #[cfg(any(bpass1,bpass4))] | |
| 105 | 104 | impl Foo { |
| 106 | 105 | //-------------------------- |
| 107 | 106 | //-------------------------- |
| ... | ... | @@ -110,21 +109,21 @@ impl Foo { |
| 110 | 109 | pub fn method_privacy() { } |
| 111 | 110 | } |
| 112 | 111 | |
| 113 | #[cfg(not(any(bfail1,bfail4)))] | |
| 114 | #[rustc_clean(cfg="bfail2")] | |
| 115 | #[rustc_clean(cfg="bfail3")] | |
| 116 | #[rustc_clean(cfg="bfail5")] | |
| 117 | #[rustc_clean(cfg="bfail6")] | |
| 112 | #[cfg(not(any(bpass1,bpass4)))] | |
| 113 | #[rustc_clean(cfg="bpass2")] | |
| 114 | #[rustc_clean(cfg="bpass3")] | |
| 115 | #[rustc_clean(cfg="bpass5")] | |
| 116 | #[rustc_clean(cfg="bpass6")] | |
| 118 | 117 | impl Foo { |
| 119 | #[rustc_clean(cfg="bfail2")] | |
| 120 | #[rustc_clean(cfg="bfail3")] | |
| 121 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 122 | #[rustc_clean(cfg="bfail6")] | |
| 118 | #[rustc_clean(cfg="bpass2")] | |
| 119 | #[rustc_clean(cfg="bpass3")] | |
| 120 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 121 | #[rustc_clean(cfg="bpass6")] | |
| 123 | 122 | fn method_privacy() { } |
| 124 | 123 | } |
| 125 | 124 | |
| 126 | 125 | // Change Method Selfness ----------------------------------------------------------- |
| 127 | #[cfg(any(bfail1,bfail4))] | |
| 126 | #[cfg(any(bpass1,bpass4))] | |
| 128 | 127 | impl Foo { |
| 129 | 128 | //------------ |
| 130 | 129 | //--------------- |
| ... | ... | @@ -139,27 +138,27 @@ impl Foo { |
| 139 | 138 | pub fn method_selfness() { } |
| 140 | 139 | } |
| 141 | 140 | |
| 142 | #[cfg(not(any(bfail1,bfail4)))] | |
| 143 | #[rustc_clean(cfg="bfail2")] | |
| 144 | #[rustc_clean(cfg="bfail3")] | |
| 145 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 146 | #[rustc_clean(cfg="bfail6")] | |
| 141 | #[cfg(not(any(bpass1,bpass4)))] | |
| 142 | #[rustc_clean(cfg="bpass2")] | |
| 143 | #[rustc_clean(cfg="bpass3")] | |
| 144 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 145 | #[rustc_clean(cfg="bpass6")] | |
| 147 | 146 | impl Foo { |
| 148 | 147 | #[rustc_clean( |
| 149 | cfg="bfail2", | |
| 148 | cfg="bpass2", | |
| 150 | 149 | except="opt_hir_owner_nodes,fn_sig,generics_of,typeck_root,associated_item,optimized_mir", |
| 151 | 150 | )] |
| 152 | #[rustc_clean(cfg="bfail3")] | |
| 151 | #[rustc_clean(cfg="bpass3")] | |
| 153 | 152 | #[rustc_clean( |
| 154 | cfg="bfail5", | |
| 153 | cfg="bpass5", | |
| 155 | 154 | except="opt_hir_owner_nodes,fn_sig,generics_of,typeck_root,associated_item,optimized_mir", |
| 156 | 155 | )] |
| 157 | #[rustc_clean(cfg="bfail6")] | |
| 156 | #[rustc_clean(cfg="bpass6")] | |
| 158 | 157 | pub fn method_selfness(&self) { } |
| 159 | 158 | } |
| 160 | 159 | |
| 161 | 160 | // Change Method Selfmutness --------------------------------------------------- |
| 162 | #[cfg(any(bfail1,bfail4))] | |
| 161 | #[cfg(any(bpass1,bpass4))] | |
| 163 | 162 | impl Foo { |
| 164 | 163 | //------------------------------------------------------------------------------------ |
| 165 | 164 | //-------------------------- |
| ... | ... | @@ -168,48 +167,48 @@ impl Foo { |
| 168 | 167 | pub fn method_selfmutness(& self) { } |
| 169 | 168 | } |
| 170 | 169 | |
| 171 | #[cfg(not(any(bfail1,bfail4)))] | |
| 172 | #[rustc_clean(cfg="bfail2")] | |
| 173 | #[rustc_clean(cfg="bfail3")] | |
| 174 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 175 | #[rustc_clean(cfg="bfail6")] | |
| 170 | #[cfg(not(any(bpass1,bpass4)))] | |
| 171 | #[rustc_clean(cfg="bpass2")] | |
| 172 | #[rustc_clean(cfg="bpass3")] | |
| 173 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 174 | #[rustc_clean(cfg="bpass6")] | |
| 176 | 175 | impl Foo { |
| 177 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 178 | #[rustc_clean(cfg="bfail3")] | |
| 179 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 180 | #[rustc_clean(cfg="bfail6")] | |
| 176 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 177 | #[rustc_clean(cfg="bpass3")] | |
| 178 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 179 | #[rustc_clean(cfg="bpass6")] | |
| 181 | 180 | pub fn method_selfmutness(&mut self) { } |
| 182 | 181 | } |
| 183 | 182 | |
| 184 | 183 | |
| 185 | 184 | |
| 186 | 185 | // Add Method To Impl ---------------------------------------------------------- |
| 187 | #[cfg(any(bfail1,bfail4))] | |
| 186 | #[cfg(any(bpass1,bpass4))] | |
| 188 | 187 | impl Foo { |
| 189 | 188 | pub fn add_method_to_impl1(&self) { } |
| 190 | 189 | } |
| 191 | 190 | |
| 192 | #[cfg(not(any(bfail1,bfail4)))] | |
| 193 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 194 | #[rustc_clean(cfg="bfail3")] | |
| 195 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 196 | #[rustc_clean(cfg="bfail6")] | |
| 191 | #[cfg(not(any(bpass1,bpass4)))] | |
| 192 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 193 | #[rustc_clean(cfg="bpass3")] | |
| 194 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,associated_item_def_ids")] | |
| 195 | #[rustc_clean(cfg="bpass6")] | |
| 197 | 196 | impl Foo { |
| 198 | #[rustc_clean(cfg="bfail2")] | |
| 199 | #[rustc_clean(cfg="bfail3")] | |
| 200 | #[rustc_clean(cfg="bfail5")] | |
| 201 | #[rustc_clean(cfg="bfail6")] | |
| 197 | #[rustc_clean(cfg="bpass2")] | |
| 198 | #[rustc_clean(cfg="bpass3")] | |
| 199 | #[rustc_clean(cfg="bpass5")] | |
| 200 | #[rustc_clean(cfg="bpass6")] | |
| 202 | 201 | pub fn add_method_to_impl1(&self) { } |
| 203 | 202 | |
| 204 | #[rustc_clean(cfg="bfail3")] | |
| 205 | #[rustc_clean(cfg="bfail6")] | |
| 203 | #[rustc_clean(cfg="bpass3")] | |
| 204 | #[rustc_clean(cfg="bpass6")] | |
| 206 | 205 | pub fn add_method_to_impl2(&self) { } |
| 207 | 206 | } |
| 208 | 207 | |
| 209 | 208 | |
| 210 | 209 | |
| 211 | 210 | // Add Method Parameter -------------------------------------------------------- |
| 212 | #[cfg(any(bfail1,bfail4))] | |
| 211 | #[cfg(any(bpass1,bpass4))] | |
| 213 | 212 | impl Foo { |
| 214 | 213 | //------------------------------------------------------------------------------------ |
| 215 | 214 | //-------------------------- |
| ... | ... | @@ -218,23 +217,23 @@ impl Foo { |
| 218 | 217 | pub fn add_method_parameter(&self ) { } |
| 219 | 218 | } |
| 220 | 219 | |
| 221 | #[cfg(not(any(bfail1,bfail4)))] | |
| 222 | #[rustc_clean(cfg="bfail2")] | |
| 223 | #[rustc_clean(cfg="bfail3")] | |
| 224 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 225 | #[rustc_clean(cfg="bfail6")] | |
| 220 | #[cfg(not(any(bpass1,bpass4)))] | |
| 221 | #[rustc_clean(cfg="bpass2")] | |
| 222 | #[rustc_clean(cfg="bpass3")] | |
| 223 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 224 | #[rustc_clean(cfg="bpass6")] | |
| 226 | 225 | impl Foo { |
| 227 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 228 | #[rustc_clean(cfg="bfail3")] | |
| 229 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 230 | #[rustc_clean(cfg="bfail6")] | |
| 226 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 227 | #[rustc_clean(cfg="bpass3")] | |
| 228 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir")] | |
| 229 | #[rustc_clean(cfg="bpass6")] | |
| 231 | 230 | pub fn add_method_parameter(&self, _: i32) { } |
| 232 | 231 | } |
| 233 | 232 | |
| 234 | 233 | |
| 235 | 234 | |
| 236 | 235 | // Change Method Parameter Name ------------------------------------------------ |
| 237 | #[cfg(any(bfail1,bfail4))] | |
| 236 | #[cfg(any(bpass1,bpass4))] | |
| 238 | 237 | impl Foo { |
| 239 | 238 | //---------------------------------------------------------------------- |
| 240 | 239 | //-------------------------- |
| ... | ... | @@ -243,23 +242,23 @@ impl Foo { |
| 243 | 242 | pub fn change_method_parameter_name(&self, a: i64) { } |
| 244 | 243 | } |
| 245 | 244 | |
| 246 | #[cfg(not(any(bfail1,bfail4)))] | |
| 247 | #[rustc_clean(cfg="bfail2")] | |
| 248 | #[rustc_clean(cfg="bfail3")] | |
| 249 | #[rustc_clean(cfg="bfail5")] | |
| 250 | #[rustc_clean(cfg="bfail6")] | |
| 245 | #[cfg(not(any(bpass1,bpass4)))] | |
| 246 | #[rustc_clean(cfg="bpass2")] | |
| 247 | #[rustc_clean(cfg="bpass3")] | |
| 248 | #[rustc_clean(cfg="bpass5")] | |
| 249 | #[rustc_clean(cfg="bpass6")] | |
| 251 | 250 | impl Foo { |
| 252 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 253 | #[rustc_clean(cfg="bfail3")] | |
| 254 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 255 | #[rustc_clean(cfg="bfail6")] | |
| 251 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 252 | #[rustc_clean(cfg="bpass3")] | |
| 253 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 254 | #[rustc_clean(cfg="bpass6")] | |
| 256 | 255 | pub fn change_method_parameter_name(&self, b: i64) { } |
| 257 | 256 | } |
| 258 | 257 | |
| 259 | 258 | |
| 260 | 259 | |
| 261 | 260 | // Change Method Return Type --------------------------------------------------- |
| 262 | #[cfg(any(bfail1,bfail4))] | |
| 261 | #[cfg(any(bpass1,bpass4))] | |
| 263 | 262 | impl Foo { |
| 264 | 263 | //------------------------------------------------------------------------------------ |
| 265 | 264 | //-------------------------- |
| ... | ... | @@ -268,23 +267,23 @@ impl Foo { |
| 268 | 267 | pub fn change_method_return_type(&self) -> u16 { 0 } |
| 269 | 268 | } |
| 270 | 269 | |
| 271 | #[cfg(not(any(bfail1,bfail4)))] | |
| 272 | #[rustc_clean(cfg="bfail2")] | |
| 273 | #[rustc_clean(cfg="bfail3")] | |
| 274 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 275 | #[rustc_clean(cfg="bfail6")] | |
| 270 | #[cfg(not(any(bpass1,bpass4)))] | |
| 271 | #[rustc_clean(cfg="bpass2")] | |
| 272 | #[rustc_clean(cfg="bpass3")] | |
| 273 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 274 | #[rustc_clean(cfg="bpass6")] | |
| 276 | 275 | impl Foo { |
| 277 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")] | |
| 278 | #[rustc_clean(cfg="bfail3")] | |
| 279 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")] | |
| 280 | #[rustc_clean(cfg="bfail6")] | |
| 276 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")] | |
| 277 | #[rustc_clean(cfg="bpass3")] | |
| 278 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,optimized_mir,typeck_root")] | |
| 279 | #[rustc_clean(cfg="bpass6")] | |
| 281 | 280 | pub fn change_method_return_type(&self) -> u32 { 0 } |
| 282 | 281 | } |
| 283 | 282 | |
| 284 | 283 | |
| 285 | 284 | |
| 286 | 285 | // Make Method #[inline] ------------------------------------------------------- |
| 287 | #[cfg(any(bfail1,bfail4))] | |
| 286 | #[cfg(any(bpass1,bpass4))] | |
| 288 | 287 | impl Foo { |
| 289 | 288 | //-------------------------- |
| 290 | 289 | //-------------------------- |
| ... | ... | @@ -294,16 +293,16 @@ impl Foo { |
| 294 | 293 | pub fn make_method_inline(&self) -> u8 { 0 } |
| 295 | 294 | } |
| 296 | 295 | |
| 297 | #[cfg(not(any(bfail1,bfail4)))] | |
| 298 | #[rustc_clean(cfg="bfail2")] | |
| 299 | #[rustc_clean(cfg="bfail3")] | |
| 300 | #[rustc_clean(cfg="bfail5")] | |
| 301 | #[rustc_clean(cfg="bfail6")] | |
| 296 | #[cfg(not(any(bpass1,bpass4)))] | |
| 297 | #[rustc_clean(cfg="bpass2")] | |
| 298 | #[rustc_clean(cfg="bpass3")] | |
| 299 | #[rustc_clean(cfg="bpass5")] | |
| 300 | #[rustc_clean(cfg="bpass6")] | |
| 302 | 301 | impl Foo { |
| 303 | #[rustc_clean(cfg="bfail2")] | |
| 304 | #[rustc_clean(cfg="bfail3")] | |
| 305 | #[rustc_clean(cfg="bfail5")] | |
| 306 | #[rustc_clean(cfg="bfail6")] | |
| 302 | #[rustc_clean(cfg="bpass2")] | |
| 303 | #[rustc_clean(cfg="bpass3")] | |
| 304 | #[rustc_clean(cfg="bpass5")] | |
| 305 | #[rustc_clean(cfg="bpass6")] | |
| 307 | 306 | #[inline] |
| 308 | 307 | pub fn make_method_inline(&self) -> u8 { 0 } |
| 309 | 308 | } |
| ... | ... | @@ -311,7 +310,7 @@ impl Foo { |
| 311 | 310 | |
| 312 | 311 | |
| 313 | 312 | // Change order of parameters ------------------------------------------------- |
| 314 | #[cfg(any(bfail1,bfail4))] | |
| 313 | #[cfg(any(bpass1,bpass4))] | |
| 315 | 314 | impl Foo { |
| 316 | 315 | //---------------------------------------------------------------------- |
| 317 | 316 | //-------------------------- |
| ... | ... | @@ -320,23 +319,23 @@ impl Foo { |
| 320 | 319 | pub fn change_method_parameter_order(&self, a: i64, b: i64) { } |
| 321 | 320 | } |
| 322 | 321 | |
| 323 | #[cfg(not(any(bfail1,bfail4)))] | |
| 324 | #[rustc_clean(cfg="bfail2")] | |
| 325 | #[rustc_clean(cfg="bfail3")] | |
| 326 | #[rustc_clean(cfg="bfail5")] | |
| 327 | #[rustc_clean(cfg="bfail6")] | |
| 322 | #[cfg(not(any(bpass1,bpass4)))] | |
| 323 | #[rustc_clean(cfg="bpass2")] | |
| 324 | #[rustc_clean(cfg="bpass3")] | |
| 325 | #[rustc_clean(cfg="bpass5")] | |
| 326 | #[rustc_clean(cfg="bpass6")] | |
| 328 | 327 | impl Foo { |
| 329 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 330 | #[rustc_clean(cfg="bfail3")] | |
| 331 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 332 | #[rustc_clean(cfg="bfail6")] | |
| 328 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 329 | #[rustc_clean(cfg="bpass3")] | |
| 330 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 331 | #[rustc_clean(cfg="bpass6")] | |
| 333 | 332 | pub fn change_method_parameter_order(&self, b: i64, a: i64) { } |
| 334 | 333 | } |
| 335 | 334 | |
| 336 | 335 | |
| 337 | 336 | |
| 338 | 337 | // Make method unsafe ---------------------------------------------------------- |
| 339 | #[cfg(any(bfail1,bfail4))] | |
| 338 | #[cfg(any(bpass1,bpass4))] | |
| 340 | 339 | impl Foo { |
| 341 | 340 | //---------------------------------------------------------------------- |
| 342 | 341 | //-------------------------- |
| ... | ... | @@ -345,23 +344,23 @@ impl Foo { |
| 345 | 344 | pub fn make_method_unsafe(&self) { } |
| 346 | 345 | } |
| 347 | 346 | |
| 348 | #[cfg(not(any(bfail1,bfail4)))] | |
| 349 | #[rustc_clean(cfg="bfail2")] | |
| 350 | #[rustc_clean(cfg="bfail3")] | |
| 351 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 352 | #[rustc_clean(cfg="bfail6")] | |
| 347 | #[cfg(not(any(bpass1,bpass4)))] | |
| 348 | #[rustc_clean(cfg="bpass2")] | |
| 349 | #[rustc_clean(cfg="bpass3")] | |
| 350 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 351 | #[rustc_clean(cfg="bpass6")] | |
| 353 | 352 | impl Foo { |
| 354 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 355 | #[rustc_clean(cfg="bfail3")] | |
| 356 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 357 | #[rustc_clean(cfg="bfail6")] | |
| 353 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 354 | #[rustc_clean(cfg="bpass3")] | |
| 355 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 356 | #[rustc_clean(cfg="bpass6")] | |
| 358 | 357 | pub unsafe fn make_method_unsafe(&self) { } |
| 359 | 358 | } |
| 360 | 359 | |
| 361 | 360 | |
| 362 | 361 | |
| 363 | 362 | // Make method extern ---------------------------------------------------------- |
| 364 | #[cfg(any(bfail1,bfail4))] | |
| 363 | #[cfg(any(bpass1,bpass4))] | |
| 365 | 364 | impl Foo { |
| 366 | 365 | //---------------------------------------------------------------------- |
| 367 | 366 | //-------------------------- |
| ... | ... | @@ -370,23 +369,23 @@ impl Foo { |
| 370 | 369 | pub fn make_method_extern(&self) { } |
| 371 | 370 | } |
| 372 | 371 | |
| 373 | #[cfg(not(any(bfail1,bfail4)))] | |
| 374 | #[rustc_clean(cfg="bfail2")] | |
| 375 | #[rustc_clean(cfg="bfail3")] | |
| 376 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 377 | #[rustc_clean(cfg="bfail6")] | |
| 372 | #[cfg(not(any(bpass1,bpass4)))] | |
| 373 | #[rustc_clean(cfg="bpass2")] | |
| 374 | #[rustc_clean(cfg="bpass3")] | |
| 375 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 376 | #[rustc_clean(cfg="bpass6")] | |
| 378 | 377 | impl Foo { |
| 379 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 380 | #[rustc_clean(cfg="bfail3")] | |
| 381 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 382 | #[rustc_clean(cfg="bfail6")] | |
| 378 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 379 | #[rustc_clean(cfg="bpass3")] | |
| 380 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 381 | #[rustc_clean(cfg="bpass6")] | |
| 383 | 382 | pub extern "C" fn make_method_extern(&self) { } |
| 384 | 383 | } |
| 385 | 384 | |
| 386 | 385 | |
| 387 | 386 | |
| 388 | 387 | // Change method calling convention -------------------------------------------- |
| 389 | #[cfg(any(bfail1,bfail4))] | |
| 388 | #[cfg(any(bpass1,bpass4))] | |
| 390 | 389 | impl Foo { |
| 391 | 390 | //---------------------------------------------------------------------- |
| 392 | 391 | //-------------------------- |
| ... | ... | @@ -395,23 +394,23 @@ impl Foo { |
| 395 | 394 | pub extern "C" fn change_method_calling_convention(&self) { } |
| 396 | 395 | } |
| 397 | 396 | |
| 398 | #[cfg(not(any(bfail1,bfail4)))] | |
| 399 | #[rustc_clean(cfg="bfail2")] | |
| 400 | #[rustc_clean(cfg="bfail3")] | |
| 401 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 402 | #[rustc_clean(cfg="bfail6")] | |
| 397 | #[cfg(not(any(bpass1,bpass4)))] | |
| 398 | #[rustc_clean(cfg="bpass2")] | |
| 399 | #[rustc_clean(cfg="bpass3")] | |
| 400 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 401 | #[rustc_clean(cfg="bpass6")] | |
| 403 | 402 | impl Foo { |
| 404 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 405 | #[rustc_clean(cfg="bfail3")] | |
| 406 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 407 | #[rustc_clean(cfg="bfail6")] | |
| 403 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 404 | #[rustc_clean(cfg="bpass3")] | |
| 405 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,typeck_root")] | |
| 406 | #[rustc_clean(cfg="bpass6")] | |
| 408 | 407 | pub extern "system" fn change_method_calling_convention(&self) { } |
| 409 | 408 | } |
| 410 | 409 | |
| 411 | 410 | |
| 412 | 411 | |
| 413 | 412 | // Add Lifetime Parameter to Method -------------------------------------------- |
| 414 | #[cfg(any(bfail1,bfail4))] | |
| 413 | #[cfg(any(bpass1,bpass4))] | |
| 415 | 414 | impl Foo { |
| 416 | 415 | // ----------------------------------------------------- |
| 417 | 416 | // --------------------------------------------------------- |
| ... | ... | @@ -429,11 +428,11 @@ impl Foo { |
| 429 | 428 | pub fn add_lifetime_parameter_to_method (&self) { } |
| 430 | 429 | } |
| 431 | 430 | |
| 432 | #[cfg(not(any(bfail1,bfail4)))] | |
| 433 | #[rustc_clean(cfg="bfail2")] | |
| 434 | #[rustc_clean(cfg="bfail3")] | |
| 435 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 436 | #[rustc_clean(cfg="bfail6")] | |
| 431 | #[cfg(not(any(bpass1,bpass4)))] | |
| 432 | #[rustc_clean(cfg="bpass2")] | |
| 433 | #[rustc_clean(cfg="bpass3")] | |
| 434 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 435 | #[rustc_clean(cfg="bpass6")] | |
| 437 | 436 | impl Foo { |
| 438 | 437 | // Warning: Note that `typeck_root` are coming up clean here. |
| 439 | 438 | // The addition or removal of lifetime parameters that don't |
| ... | ... | @@ -444,17 +443,17 @@ impl Foo { |
| 444 | 443 | // if we lower generics before the body, then the `HirId` for |
| 445 | 444 | // things in the body will be affected. So if you start to see |
| 446 | 445 | // `typeck_root` appear dirty, that might be the cause. -nmatsakis |
| 447 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,fn_sig")] | |
| 448 | #[rustc_clean(cfg="bfail3")] | |
| 449 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,fn_sig,generics_of")] | |
| 450 | #[rustc_clean(cfg="bfail6")] | |
| 446 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,fn_sig")] | |
| 447 | #[rustc_clean(cfg="bpass3")] | |
| 448 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,fn_sig,generics_of")] | |
| 449 | #[rustc_clean(cfg="bpass6")] | |
| 451 | 450 | pub fn add_lifetime_parameter_to_method<'a>(&self) { } |
| 452 | 451 | } |
| 453 | 452 | |
| 454 | 453 | |
| 455 | 454 | |
| 456 | 455 | // Add Type Parameter To Method ------------------------------------------------ |
| 457 | #[cfg(any(bfail1,bfail4))] | |
| 456 | #[cfg(any(bpass1,bpass4))] | |
| 458 | 457 | impl Foo { |
| 459 | 458 | // ----------------------------------------------------- |
| 460 | 459 | // --------------------------------------------------------------- |
| ... | ... | @@ -478,11 +477,11 @@ impl Foo { |
| 478 | 477 | pub fn add_type_parameter_to_method (&self) { } |
| 479 | 478 | } |
| 480 | 479 | |
| 481 | #[cfg(not(any(bfail1,bfail4)))] | |
| 482 | #[rustc_clean(cfg="bfail2")] | |
| 483 | #[rustc_clean(cfg="bfail3")] | |
| 484 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 485 | #[rustc_clean(cfg="bfail6")] | |
| 480 | #[cfg(not(any(bpass1,bpass4)))] | |
| 481 | #[rustc_clean(cfg="bpass2")] | |
| 482 | #[rustc_clean(cfg="bpass3")] | |
| 483 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 484 | #[rustc_clean(cfg="bpass6")] | |
| 486 | 485 | impl Foo { |
| 487 | 486 | // Warning: Note that `typeck_root` are coming up clean here. |
| 488 | 487 | // The addition or removal of type parameters that don't appear in |
| ... | ... | @@ -494,22 +493,22 @@ impl Foo { |
| 494 | 493 | // body will be affected. So if you start to see `typeck_root` |
| 495 | 494 | // appear dirty, that might be the cause. -nmatsakis |
| 496 | 495 | #[rustc_clean( |
| 497 | cfg="bfail2", | |
| 496 | cfg="bpass2", | |
| 498 | 497 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of", |
| 499 | 498 | )] |
| 500 | #[rustc_clean(cfg="bfail3")] | |
| 499 | #[rustc_clean(cfg="bpass3")] | |
| 501 | 500 | #[rustc_clean( |
| 502 | cfg="bfail5", | |
| 501 | cfg="bpass5", | |
| 503 | 502 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of", |
| 504 | 503 | )] |
| 505 | #[rustc_clean(cfg="bfail6")] | |
| 504 | #[rustc_clean(cfg="bpass6")] | |
| 506 | 505 | pub fn add_type_parameter_to_method<T>(&self) { } |
| 507 | 506 | } |
| 508 | 507 | |
| 509 | 508 | |
| 510 | 509 | |
| 511 | 510 | // Add Lifetime Bound to Lifetime Parameter of Method -------------------------- |
| 512 | #[cfg(any(bfail1,bfail4))] | |
| 511 | #[cfg(any(bpass1,bpass4))] | |
| 513 | 512 | impl Foo { |
| 514 | 513 | //------------ |
| 515 | 514 | //--------------- |
| ... | ... | @@ -524,29 +523,29 @@ impl Foo { |
| 524 | 523 | pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b >(&self) { } |
| 525 | 524 | } |
| 526 | 525 | |
| 527 | #[cfg(not(any(bfail1,bfail4)))] | |
| 528 | #[rustc_clean(cfg="bfail2")] | |
| 529 | #[rustc_clean(cfg="bfail3")] | |
| 530 | #[rustc_clean(cfg="bfail5")] | |
| 531 | #[rustc_clean(cfg="bfail6")] | |
| 526 | #[cfg(not(any(bpass1,bpass4)))] | |
| 527 | #[rustc_clean(cfg="bpass2")] | |
| 528 | #[rustc_clean(cfg="bpass3")] | |
| 529 | #[rustc_clean(cfg="bpass5")] | |
| 530 | #[rustc_clean(cfg="bpass6")] | |
| 532 | 531 | impl Foo { |
| 533 | 532 | #[rustc_clean( |
| 534 | cfg="bfail2", | |
| 533 | cfg="bpass2", | |
| 535 | 534 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig" |
| 536 | 535 | )] |
| 537 | #[rustc_clean(cfg="bfail3")] | |
| 536 | #[rustc_clean(cfg="bpass3")] | |
| 538 | 537 | #[rustc_clean( |
| 539 | cfg="bfail5", | |
| 538 | cfg="bpass5", | |
| 540 | 539 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig" |
| 541 | 540 | )] |
| 542 | #[rustc_clean(cfg="bfail6")] | |
| 541 | #[rustc_clean(cfg="bpass6")] | |
| 543 | 542 | pub fn add_lifetime_bound_to_lifetime_param_of_method<'a, 'b: 'a>(&self) { } |
| 544 | 543 | } |
| 545 | 544 | |
| 546 | 545 | |
| 547 | 546 | |
| 548 | 547 | // Add Lifetime Bound to Type Parameter of Method ------------------------------ |
| 549 | #[cfg(any(bfail1,bfail4))] | |
| 548 | #[cfg(any(bpass1,bpass4))] | |
| 550 | 549 | impl Foo { |
| 551 | 550 | // ----------------------------------------------------- |
| 552 | 551 | // ---------------------------------------------------------- |
| ... | ... | @@ -570,11 +569,11 @@ impl Foo { |
| 570 | 569 | pub fn add_lifetime_bound_to_type_param_of_method<'a, T >(&self) { } |
| 571 | 570 | } |
| 572 | 571 | |
| 573 | #[cfg(not(any(bfail1,bfail4)))] | |
| 574 | #[rustc_clean(cfg="bfail2")] | |
| 575 | #[rustc_clean(cfg="bfail3")] | |
| 576 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 577 | #[rustc_clean(cfg="bfail6")] | |
| 572 | #[cfg(not(any(bpass1,bpass4)))] | |
| 573 | #[rustc_clean(cfg="bpass2")] | |
| 574 | #[rustc_clean(cfg="bpass3")] | |
| 575 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 576 | #[rustc_clean(cfg="bpass6")] | |
| 578 | 577 | impl Foo { |
| 579 | 578 | // Warning: Note that `typeck_root` are coming up clean here. |
| 580 | 579 | // The addition or removal of bounds that don't appear in the |
| ... | ... | @@ -586,22 +585,22 @@ impl Foo { |
| 586 | 585 | // body will be affected. So if you start to see `typeck_root` |
| 587 | 586 | // appear dirty, that might be the cause. -nmatsakis |
| 588 | 587 | #[rustc_clean( |
| 589 | cfg="bfail2", | |
| 588 | cfg="bpass2", | |
| 590 | 589 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig" |
| 591 | 590 | )] |
| 592 | #[rustc_clean(cfg="bfail3")] | |
| 591 | #[rustc_clean(cfg="bpass3")] | |
| 593 | 592 | #[rustc_clean( |
| 594 | cfg="bfail5", | |
| 593 | cfg="bpass5", | |
| 595 | 594 | except="opt_hir_owner_nodes,generics_of,predicates_of,type_of,fn_sig" |
| 596 | 595 | )] |
| 597 | #[rustc_clean(cfg="bfail6")] | |
| 596 | #[rustc_clean(cfg="bpass6")] | |
| 598 | 597 | pub fn add_lifetime_bound_to_type_param_of_method<'a, T: 'a>(&self) { } |
| 599 | 598 | } |
| 600 | 599 | |
| 601 | 600 | |
| 602 | 601 | |
| 603 | 602 | // Add Trait Bound to Type Parameter of Method ------------------------------ |
| 604 | #[cfg(any(bfail1,bfail4))] | |
| 603 | #[cfg(any(bpass1,bpass4))] | |
| 605 | 604 | impl Foo { |
| 606 | 605 | // ----------------------------------------------------- |
| 607 | 606 | // ---------------------------------------------------------- |
| ... | ... | @@ -619,11 +618,11 @@ impl Foo { |
| 619 | 618 | pub fn add_trait_bound_to_type_param_of_method<T >(&self) { } |
| 620 | 619 | } |
| 621 | 620 | |
| 622 | #[cfg(not(any(bfail1,bfail4)))] | |
| 623 | #[rustc_clean(cfg="bfail2")] | |
| 624 | #[rustc_clean(cfg="bfail3")] | |
| 625 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 626 | #[rustc_clean(cfg="bfail6")] | |
| 621 | #[cfg(not(any(bpass1,bpass4)))] | |
| 622 | #[rustc_clean(cfg="bpass2")] | |
| 623 | #[rustc_clean(cfg="bpass3")] | |
| 624 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 625 | #[rustc_clean(cfg="bpass6")] | |
| 627 | 626 | impl Foo { |
| 628 | 627 | // Warning: Note that `typeck_root` are coming up clean here. |
| 629 | 628 | // The addition or removal of bounds that don't appear in the |
| ... | ... | @@ -634,17 +633,17 @@ impl Foo { |
| 634 | 633 | // generics before the body, then the `HirId` for things in the |
| 635 | 634 | // body will be affected. So if you start to see `typeck_root` |
| 636 | 635 | // appear dirty, that might be the cause. -nmatsakis |
| 637 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,predicates_of")] | |
| 638 | #[rustc_clean(cfg="bfail3")] | |
| 639 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 640 | #[rustc_clean(cfg="bfail6")] | |
| 636 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,predicates_of")] | |
| 637 | #[rustc_clean(cfg="bpass3")] | |
| 638 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 639 | #[rustc_clean(cfg="bpass6")] | |
| 641 | 640 | pub fn add_trait_bound_to_type_param_of_method<T: Clone>(&self) { } |
| 642 | 641 | } |
| 643 | 642 | |
| 644 | 643 | |
| 645 | 644 | |
| 646 | 645 | // Add #[no_mangle] to Method -------------------------------------------------- |
| 647 | #[cfg(any(bfail1,bfail4))] | |
| 646 | #[cfg(any(bpass1,bpass4))] | |
| 648 | 647 | impl Foo { |
| 649 | 648 | //-------------------------- |
| 650 | 649 | //-------------------------- |
| ... | ... | @@ -654,16 +653,16 @@ impl Foo { |
| 654 | 653 | pub fn add_no_mangle_to_method(&self) { } |
| 655 | 654 | } |
| 656 | 655 | |
| 657 | #[cfg(not(any(bfail1,bfail4)))] | |
| 658 | #[rustc_clean(cfg="bfail2")] | |
| 659 | #[rustc_clean(cfg="bfail3")] | |
| 660 | #[rustc_clean(cfg="bfail5")] | |
| 661 | #[rustc_clean(cfg="bfail6")] | |
| 656 | #[cfg(not(any(bpass1,bpass4)))] | |
| 657 | #[rustc_clean(cfg="bpass2")] | |
| 658 | #[rustc_clean(cfg="bpass3")] | |
| 659 | #[rustc_clean(cfg="bpass5")] | |
| 660 | #[rustc_clean(cfg="bpass6")] | |
| 662 | 661 | impl Foo { |
| 663 | #[rustc_clean(cfg="bfail2")] | |
| 664 | #[rustc_clean(cfg="bfail3")] | |
| 665 | #[rustc_clean(cfg="bfail5")] | |
| 666 | #[rustc_clean(cfg="bfail6")] | |
| 662 | #[rustc_clean(cfg="bpass2")] | |
| 663 | #[rustc_clean(cfg="bpass3")] | |
| 664 | #[rustc_clean(cfg="bpass5")] | |
| 665 | #[rustc_clean(cfg="bpass6")] | |
| 667 | 666 | #[unsafe(no_mangle)] |
| 668 | 667 | pub fn add_no_mangle_to_method(&self) { } |
| 669 | 668 | } |
| ... | ... | @@ -673,90 +672,90 @@ impl Foo { |
| 673 | 672 | struct Bar<T>(T); |
| 674 | 673 | |
| 675 | 674 | // Add Type Parameter To Impl -------------------------------------------------- |
| 676 | #[cfg(any(bfail1,bfail4))] | |
| 675 | #[cfg(any(bpass1,bpass4))] | |
| 677 | 676 | impl Bar<u32> { |
| 678 | 677 | pub fn add_type_parameter_to_impl(&self) { } |
| 679 | 678 | } |
| 680 | 679 | |
| 681 | #[cfg(not(any(bfail1,bfail4)))] | |
| 682 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,generics_of")] | |
| 683 | #[rustc_clean(cfg="bfail3")] | |
| 684 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,generics_of")] | |
| 685 | #[rustc_clean(cfg="bfail6")] | |
| 680 | #[cfg(not(any(bpass1,bpass4)))] | |
| 681 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,generics_of")] | |
| 682 | #[rustc_clean(cfg="bpass3")] | |
| 683 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,generics_of")] | |
| 684 | #[rustc_clean(cfg="bpass6")] | |
| 686 | 685 | impl<T> Bar<T> { |
| 687 | 686 | #[rustc_clean( |
| 688 | cfg="bfail2", | |
| 687 | cfg="bpass2", | |
| 689 | 688 | except="generics_of,fn_sig,typeck_root,type_of,optimized_mir" |
| 690 | 689 | )] |
| 691 | #[rustc_clean(cfg="bfail3")] | |
| 690 | #[rustc_clean(cfg="bpass3")] | |
| 692 | 691 | #[rustc_clean( |
| 693 | cfg="bfail5", | |
| 692 | cfg="bpass5", | |
| 694 | 693 | except="generics_of,fn_sig,typeck_root,type_of,optimized_mir" |
| 695 | 694 | )] |
| 696 | #[rustc_clean(cfg="bfail6")] | |
| 695 | #[rustc_clean(cfg="bpass6")] | |
| 697 | 696 | pub fn add_type_parameter_to_impl(&self) { } |
| 698 | 697 | } |
| 699 | 698 | |
| 700 | 699 | |
| 701 | 700 | |
| 702 | 701 | // Change Self Type of Impl ---------------------------------------------------- |
| 703 | #[cfg(any(bfail1,bfail4))] | |
| 702 | #[cfg(any(bpass1,bpass4))] | |
| 704 | 703 | impl Bar<u32> { |
| 705 | 704 | pub fn change_impl_self_type(&self) { } |
| 706 | 705 | } |
| 707 | 706 | |
| 708 | #[cfg(not(any(bfail1,bfail4)))] | |
| 709 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 710 | #[rustc_clean(cfg="bfail3")] | |
| 711 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 712 | #[rustc_clean(cfg="bfail6")] | |
| 707 | #[cfg(not(any(bpass1,bpass4)))] | |
| 708 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 709 | #[rustc_clean(cfg="bpass3")] | |
| 710 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 711 | #[rustc_clean(cfg="bpass6")] | |
| 713 | 712 | impl Bar<u64> { |
| 714 | #[rustc_clean(cfg="bfail2", except="fn_sig,optimized_mir,typeck_root")] | |
| 715 | #[rustc_clean(cfg="bfail3")] | |
| 716 | #[rustc_clean(cfg="bfail5", except="fn_sig,optimized_mir,typeck_root")] | |
| 717 | #[rustc_clean(cfg="bfail6")] | |
| 713 | #[rustc_clean(cfg="bpass2", except="fn_sig,optimized_mir,typeck_root")] | |
| 714 | #[rustc_clean(cfg="bpass3")] | |
| 715 | #[rustc_clean(cfg="bpass5", except="fn_sig,optimized_mir,typeck_root")] | |
| 716 | #[rustc_clean(cfg="bpass6")] | |
| 718 | 717 | pub fn change_impl_self_type(&self) { } |
| 719 | 718 | } |
| 720 | 719 | |
| 721 | 720 | |
| 722 | 721 | |
| 723 | 722 | // Add Lifetime Bound to Impl -------------------------------------------------- |
| 724 | #[cfg(any(bfail1,bfail4))] | |
| 723 | #[cfg(any(bpass1,bpass4))] | |
| 725 | 724 | impl<T> Bar<T> { |
| 726 | 725 | pub fn add_lifetime_bound_to_impl_parameter(&self) { } |
| 727 | 726 | } |
| 728 | 727 | |
| 729 | #[cfg(not(any(bfail1,bfail4)))] | |
| 730 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 731 | #[rustc_clean(cfg="bfail3")] | |
| 732 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 733 | #[rustc_clean(cfg="bfail6")] | |
| 728 | #[cfg(not(any(bpass1,bpass4)))] | |
| 729 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 730 | #[rustc_clean(cfg="bpass3")] | |
| 731 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 732 | #[rustc_clean(cfg="bpass6")] | |
| 734 | 733 | impl<T: 'static> Bar<T> { |
| 735 | #[rustc_clean(cfg="bfail2")] | |
| 736 | #[rustc_clean(cfg="bfail3")] | |
| 737 | #[rustc_clean(cfg="bfail5")] | |
| 738 | #[rustc_clean(cfg="bfail6")] | |
| 734 | #[rustc_clean(cfg="bpass2")] | |
| 735 | #[rustc_clean(cfg="bpass3")] | |
| 736 | #[rustc_clean(cfg="bpass5")] | |
| 737 | #[rustc_clean(cfg="bpass6")] | |
| 739 | 738 | pub fn add_lifetime_bound_to_impl_parameter(&self) { } |
| 740 | 739 | } |
| 741 | 740 | |
| 742 | 741 | |
| 743 | 742 | |
| 744 | 743 | // Add Trait Bound to Impl Parameter ------------------------------------------- |
| 745 | #[cfg(any(bfail1,bfail4))] | |
| 744 | #[cfg(any(bpass1,bpass4))] | |
| 746 | 745 | impl<T> Bar<T> { |
| 747 | 746 | pub fn add_trait_bound_to_impl_parameter(&self) { } |
| 748 | 747 | } |
| 749 | 748 | |
| 750 | #[cfg(not(any(bfail1,bfail4)))] | |
| 751 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 752 | #[rustc_clean(cfg="bfail3")] | |
| 753 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 754 | #[rustc_clean(cfg="bfail6")] | |
| 749 | #[cfg(not(any(bpass1,bpass4)))] | |
| 750 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 751 | #[rustc_clean(cfg="bpass3")] | |
| 752 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 753 | #[rustc_clean(cfg="bpass6")] | |
| 755 | 754 | impl<T: Clone> Bar<T> { |
| 756 | #[rustc_clean(cfg="bfail2")] | |
| 757 | #[rustc_clean(cfg="bfail3")] | |
| 758 | #[rustc_clean(cfg="bfail5")] | |
| 759 | #[rustc_clean(cfg="bfail6")] | |
| 755 | #[rustc_clean(cfg="bpass2")] | |
| 756 | #[rustc_clean(cfg="bpass3")] | |
| 757 | #[rustc_clean(cfg="bpass5")] | |
| 758 | #[rustc_clean(cfg="bpass6")] | |
| 760 | 759 | pub fn add_trait_bound_to_impl_parameter(&self) { } |
| 761 | 760 | } |
| 762 | 761 | |
| ... | ... | @@ -765,12 +764,12 @@ impl<T: Clone> Bar<T> { |
| 765 | 764 | pub fn instantiation_root() { |
| 766 | 765 | Foo::method_privacy(); |
| 767 | 766 | |
| 768 | #[cfg(any(bfail1,bfail4))] | |
| 767 | #[cfg(any(bpass1,bpass4))] | |
| 769 | 768 | { |
| 770 | 769 | Bar(0u32).change_impl_self_type(); |
| 771 | 770 | } |
| 772 | 771 | |
| 773 | #[cfg(not(any(bfail1,bfail4)))] | |
| 772 | #[cfg(not(any(bpass1,bpass4)))] | |
| 774 | 773 | { |
| 775 | 774 | Bar(0u64).change_impl_self_type(); |
| 776 | 775 | } |
tests/incremental/hashes/inline_asm.rs+41-41| ... | ... | @@ -5,14 +5,14 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | 10 | //@ needs-asm-support |
| 12 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 14 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 15 | 14 | //@ ignore-backends: gcc |
| 15 | // FIXME(#62277): could be check-pass? | |
| 16 | 16 | |
| 17 | 17 | #![allow(warnings)] |
| 18 | 18 | #![feature(rustc_attrs)] |
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | use std::arch::asm; |
| 22 | 22 | |
| 23 | 23 | // Change template |
| 24 | #[cfg(any(bfail1,bfail4))] | |
| 24 | #[cfg(any(bpass1,bpass4))] | |
| 25 | 25 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 26 | 26 | pub fn change_template(_a: i32) -> i32 { |
| 27 | 27 | let c: i32; |
| ... | ... | @@ -33,11 +33,11 @@ pub fn change_template(_a: i32) -> i32 { |
| 33 | 33 | c |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | #[cfg(not(any(bfail1,bfail4)))] | |
| 37 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 38 | #[rustc_clean(cfg="bfail3")] | |
| 39 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 40 | #[rustc_clean(cfg="bfail6")] | |
| 36 | #[cfg(not(any(bpass1,bpass4)))] | |
| 37 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 38 | #[rustc_clean(cfg="bpass3")] | |
| 39 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 40 | #[rustc_clean(cfg="bpass6")] | |
| 41 | 41 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 42 | 42 | pub fn change_template(_a: i32) -> i32 { |
| 43 | 43 | let c: i32; |
| ... | ... | @@ -52,7 +52,7 @@ pub fn change_template(_a: i32) -> i32 { |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | // Change output |
| 55 | #[cfg(any(bfail1,bfail4))] | |
| 55 | #[cfg(any(bpass1,bpass4))] | |
| 56 | 56 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 57 | 57 | pub fn change_output(a: i32) -> i32 { |
| 58 | 58 | let mut _out1: i32 = 0; |
| ... | ... | @@ -66,11 +66,11 @@ pub fn change_output(a: i32) -> i32 { |
| 66 | 66 | _out1 |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | #[cfg(not(any(bfail1,bfail4)))] | |
| 70 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 71 | #[rustc_clean(cfg="bfail3")] | |
| 72 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 73 | #[rustc_clean(cfg="bfail6")] | |
| 69 | #[cfg(not(any(bpass1,bpass4)))] | |
| 70 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 71 | #[rustc_clean(cfg="bpass3")] | |
| 72 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 73 | #[rustc_clean(cfg="bpass6")] | |
| 74 | 74 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 75 | 75 | pub fn change_output(a: i32) -> i32 { |
| 76 | 76 | let mut _out1: i32 = 0; |
| ... | ... | @@ -87,7 +87,7 @@ pub fn change_output(a: i32) -> i32 { |
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | // Change input |
| 90 | #[cfg(any(bfail1,bfail4))] | |
| 90 | #[cfg(any(bpass1,bpass4))] | |
| 91 | 91 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 92 | 92 | pub fn change_input(_a: i32, _b: i32) -> i32 { |
| 93 | 93 | let _out; |
| ... | ... | @@ -100,11 +100,11 @@ pub fn change_input(_a: i32, _b: i32) -> i32 { |
| 100 | 100 | _out |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | #[cfg(not(any(bfail1,bfail4)))] | |
| 104 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 105 | #[rustc_clean(cfg="bfail3")] | |
| 106 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 107 | #[rustc_clean(cfg="bfail6")] | |
| 103 | #[cfg(not(any(bpass1,bpass4)))] | |
| 104 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 105 | #[rustc_clean(cfg="bpass3")] | |
| 106 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 107 | #[rustc_clean(cfg="bpass6")] | |
| 108 | 108 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 109 | 109 | pub fn change_input(_a: i32, _b: i32) -> i32 { |
| 110 | 110 | let _out; |
| ... | ... | @@ -120,7 +120,7 @@ pub fn change_input(_a: i32, _b: i32) -> i32 { |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | // Change input constraint |
| 123 | #[cfg(any(bfail1,bfail4))] | |
| 123 | #[cfg(any(bpass1,bpass4))] | |
| 124 | 124 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 125 | 125 | pub fn change_input_constraint(_a: i32, _b: i32) -> i32 { |
| 126 | 126 | let _out; |
| ... | ... | @@ -133,11 +133,11 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 { |
| 133 | 133 | _out |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | #[cfg(not(any(bfail1,bfail4)))] | |
| 137 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 138 | #[rustc_clean(cfg="bfail3")] | |
| 139 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 140 | #[rustc_clean(cfg="bfail6")] | |
| 136 | #[cfg(not(any(bpass1,bpass4)))] | |
| 137 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 138 | #[rustc_clean(cfg="bpass3")] | |
| 139 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 140 | #[rustc_clean(cfg="bpass6")] | |
| 141 | 141 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 142 | 142 | pub fn change_input_constraint(_a: i32, _b: i32) -> i32 { |
| 143 | 143 | let _out; |
| ... | ... | @@ -152,7 +152,7 @@ pub fn change_input_constraint(_a: i32, _b: i32) -> i32 { |
| 152 | 152 | |
| 153 | 153 | |
| 154 | 154 | // Change clobber |
| 155 | #[cfg(any(bfail1,bfail4))] | |
| 155 | #[cfg(any(bpass1,bpass4))] | |
| 156 | 156 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 157 | 157 | pub fn change_clobber(_a: i32) -> i32 { |
| 158 | 158 | let _out; |
| ... | ... | @@ -166,11 +166,11 @@ pub fn change_clobber(_a: i32) -> i32 { |
| 166 | 166 | _out |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | #[cfg(not(any(bfail1,bfail4)))] | |
| 170 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 171 | #[rustc_clean(cfg="bfail3")] | |
| 172 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 173 | #[rustc_clean(cfg="bfail6")] | |
| 169 | #[cfg(not(any(bpass1,bpass4)))] | |
| 170 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 171 | #[rustc_clean(cfg="bpass3")] | |
| 172 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 173 | #[rustc_clean(cfg="bpass6")] | |
| 174 | 174 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 175 | 175 | pub fn change_clobber(_a: i32) -> i32 { |
| 176 | 176 | let _out; |
| ... | ... | @@ -187,7 +187,7 @@ pub fn change_clobber(_a: i32) -> i32 { |
| 187 | 187 | |
| 188 | 188 | |
| 189 | 189 | // Change options |
| 190 | #[cfg(any(bfail1,bfail4))] | |
| 190 | #[cfg(any(bpass1,bpass4))] | |
| 191 | 191 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 192 | 192 | pub fn change_options(_a: i32) -> i32 { |
| 193 | 193 | let _out; |
| ... | ... | @@ -201,11 +201,11 @@ pub fn change_options(_a: i32) -> i32 { |
| 201 | 201 | _out |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | #[cfg(not(any(bfail1,bfail4)))] | |
| 205 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 206 | #[rustc_clean(cfg="bfail3")] | |
| 207 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 208 | #[rustc_clean(cfg="bfail6")] | |
| 204 | #[cfg(not(any(bpass1,bpass4)))] | |
| 205 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 206 | #[rustc_clean(cfg="bpass3")] | |
| 207 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 208 | #[rustc_clean(cfg="bpass6")] | |
| 209 | 209 | #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] |
| 210 | 210 | pub fn change_options(_a: i32) -> i32 { |
| 211 | 211 | let _out; |
tests/incremental/hashes/let_expressions.rs+77-77| ... | ... | @@ -5,29 +5,29 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| 18 | 18 | #![crate_type="rlib"] |
| 19 | 19 | |
| 20 | 20 | // Change Name ----------------------------------------------------------------- |
| 21 | #[cfg(any(bfail1,bfail4))] | |
| 21 | #[cfg(any(bpass1,bpass4))] | |
| 22 | 22 | pub fn change_name() { |
| 23 | 23 | let _x = 2u64; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | #[cfg(not(any(bfail1,bfail4)))] | |
| 27 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 28 | #[rustc_clean(cfg="bfail3")] | |
| 29 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 30 | #[rustc_clean(cfg="bfail6")] | |
| 26 | #[cfg(not(any(bpass1,bpass4)))] | |
| 27 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 28 | #[rustc_clean(cfg="bpass3")] | |
| 29 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 30 | #[rustc_clean(cfg="bpass6")] | |
| 31 | 31 | pub fn change_name() { |
| 32 | 32 | let _y = 2u64; |
| 33 | 33 | } |
| ... | ... | @@ -35,16 +35,16 @@ pub fn change_name() { |
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | // Add Type -------------------------------------------------------------------- |
| 38 | #[cfg(any(bfail1,bfail4))] | |
| 38 | #[cfg(any(bpass1,bpass4))] | |
| 39 | 39 | pub fn add_type() { |
| 40 | 40 | let _x = 2u32; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | #[cfg(not(any(bfail1,bfail4)))] | |
| 44 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 45 | #[rustc_clean(cfg="bfail3")] | |
| 46 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 47 | #[rustc_clean(cfg="bfail6")] | |
| 43 | #[cfg(not(any(bpass1,bpass4)))] | |
| 44 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 45 | #[rustc_clean(cfg="bpass3")] | |
| 46 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 47 | #[rustc_clean(cfg="bpass6")] | |
| 48 | 48 | pub fn add_type() { |
| 49 | 49 | let _x: u32 = 2u32; |
| 50 | 50 | } |
| ... | ... | @@ -52,16 +52,16 @@ pub fn add_type() { |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | // Change Type ----------------------------------------------------------------- |
| 55 | #[cfg(any(bfail1,bfail4))] | |
| 55 | #[cfg(any(bpass1,bpass4))] | |
| 56 | 56 | pub fn change_type() { |
| 57 | 57 | let _x: u64 = 2; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | #[cfg(not(any(bfail1,bfail4)))] | |
| 61 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 62 | #[rustc_clean(cfg="bfail3")] | |
| 63 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 64 | #[rustc_clean(cfg="bfail6")] | |
| 60 | #[cfg(not(any(bpass1,bpass4)))] | |
| 61 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 62 | #[rustc_clean(cfg="bpass3")] | |
| 63 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 64 | #[rustc_clean(cfg="bpass6")] | |
| 65 | 65 | pub fn change_type() { |
| 66 | 66 | let _x: u8 = 2; |
| 67 | 67 | } |
| ... | ... | @@ -69,16 +69,16 @@ pub fn change_type() { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Change Mutability of Reference Type ----------------------------------------- |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | pub fn change_mutability_of_reference_type() { |
| 74 | 74 | let _x: & u64; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | #[cfg(not(any(bfail1,bfail4)))] | |
| 78 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 79 | #[rustc_clean(cfg="bfail3")] | |
| 80 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 81 | #[rustc_clean(cfg="bfail6")] | |
| 77 | #[cfg(not(any(bpass1,bpass4)))] | |
| 78 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 79 | #[rustc_clean(cfg="bpass3")] | |
| 80 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 81 | #[rustc_clean(cfg="bpass6")] | |
| 82 | 82 | pub fn change_mutability_of_reference_type() { |
| 83 | 83 | let _x: &mut u64; |
| 84 | 84 | } |
| ... | ... | @@ -86,16 +86,16 @@ pub fn change_mutability_of_reference_type() { |
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | // Change Mutability of Slot --------------------------------------------------- |
| 89 | #[cfg(any(bfail1,bfail4))] | |
| 89 | #[cfg(any(bpass1,bpass4))] | |
| 90 | 90 | pub fn change_mutability_of_slot() { |
| 91 | 91 | let mut _x: u64 = 0; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | #[cfg(not(any(bfail1,bfail4)))] | |
| 95 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 96 | #[rustc_clean(cfg="bfail3")] | |
| 97 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 98 | #[rustc_clean(cfg="bfail6")] | |
| 94 | #[cfg(not(any(bpass1,bpass4)))] | |
| 95 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 96 | #[rustc_clean(cfg="bpass3")] | |
| 97 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 98 | #[rustc_clean(cfg="bpass6")] | |
| 99 | 99 | pub fn change_mutability_of_slot() { |
| 100 | 100 | let _x: u64 = 0; |
| 101 | 101 | } |
| ... | ... | @@ -103,16 +103,16 @@ pub fn change_mutability_of_slot() { |
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | // Change Simple Binding to Pattern -------------------------------------------- |
| 106 | #[cfg(any(bfail1,bfail4))] | |
| 106 | #[cfg(any(bpass1,bpass4))] | |
| 107 | 107 | pub fn change_simple_binding_to_pattern() { |
| 108 | 108 | let _x = (0u8, 'x'); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | #[cfg(not(any(bfail1,bfail4)))] | |
| 112 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 113 | #[rustc_clean(cfg="bfail3")] | |
| 114 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 115 | #[rustc_clean(cfg="bfail6")] | |
| 111 | #[cfg(not(any(bpass1,bpass4)))] | |
| 112 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 113 | #[rustc_clean(cfg="bpass3")] | |
| 114 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 115 | #[rustc_clean(cfg="bpass6")] | |
| 116 | 116 | pub fn change_simple_binding_to_pattern() { |
| 117 | 117 | let (_a, _b) = (0u8, 'x'); |
| 118 | 118 | } |
| ... | ... | @@ -120,16 +120,16 @@ pub fn change_simple_binding_to_pattern() { |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | // Change Name in Pattern ------------------------------------------------------ |
| 123 | #[cfg(any(bfail1,bfail4))] | |
| 123 | #[cfg(any(bpass1,bpass4))] | |
| 124 | 124 | pub fn change_name_in_pattern() { |
| 125 | 125 | let (_a, _b) = (1u8, 'y'); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | #[cfg(not(any(bfail1,bfail4)))] | |
| 129 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 130 | #[rustc_clean(cfg="bfail3")] | |
| 131 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 132 | #[rustc_clean(cfg="bfail6")] | |
| 128 | #[cfg(not(any(bpass1,bpass4)))] | |
| 129 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 130 | #[rustc_clean(cfg="bpass3")] | |
| 131 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 132 | #[rustc_clean(cfg="bpass6")] | |
| 133 | 133 | pub fn change_name_in_pattern() { |
| 134 | 134 | let (_a, _c) = (1u8, 'y'); |
| 135 | 135 | } |
| ... | ... | @@ -137,16 +137,16 @@ pub fn change_name_in_pattern() { |
| 137 | 137 | |
| 138 | 138 | |
| 139 | 139 | // Add `ref` in Pattern -------------------------------------------------------- |
| 140 | #[cfg(any(bfail1,bfail4))] | |
| 140 | #[cfg(any(bpass1,bpass4))] | |
| 141 | 141 | pub fn add_ref_in_pattern() { |
| 142 | 142 | let ( _a, _b) = (1u8, 'y'); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | #[cfg(not(any(bfail1,bfail4)))] | |
| 146 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 147 | #[rustc_clean(cfg="bfail3")] | |
| 148 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 149 | #[rustc_clean(cfg="bfail6")] | |
| 145 | #[cfg(not(any(bpass1,bpass4)))] | |
| 146 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 147 | #[rustc_clean(cfg="bpass3")] | |
| 148 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 149 | #[rustc_clean(cfg="bpass6")] | |
| 150 | 150 | pub fn add_ref_in_pattern() { |
| 151 | 151 | let (ref _a, _b) = (1u8, 'y'); |
| 152 | 152 | } |
| ... | ... | @@ -154,16 +154,16 @@ pub fn add_ref_in_pattern() { |
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | // Add `&` in Pattern ---------------------------------------------------------- |
| 157 | #[cfg(any(bfail1,bfail4))] | |
| 157 | #[cfg(any(bpass1,bpass4))] | |
| 158 | 158 | pub fn add_amp_in_pattern() { |
| 159 | 159 | let ( _a, _b) = (&1u8, 'y'); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | #[cfg(not(any(bfail1,bfail4)))] | |
| 163 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 164 | #[rustc_clean(cfg="bfail3")] | |
| 165 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 166 | #[rustc_clean(cfg="bfail6")] | |
| 162 | #[cfg(not(any(bpass1,bpass4)))] | |
| 163 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 164 | #[rustc_clean(cfg="bpass3")] | |
| 165 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 166 | #[rustc_clean(cfg="bpass6")] | |
| 167 | 167 | pub fn add_amp_in_pattern() { |
| 168 | 168 | let (&_a, _b) = (&1u8, 'y'); |
| 169 | 169 | } |
| ... | ... | @@ -171,16 +171,16 @@ pub fn add_amp_in_pattern() { |
| 171 | 171 | |
| 172 | 172 | |
| 173 | 173 | // Change Mutability of Binding in Pattern ------------------------------------- |
| 174 | #[cfg(any(bfail1,bfail4))] | |
| 174 | #[cfg(any(bpass1,bpass4))] | |
| 175 | 175 | pub fn change_mutability_of_binding_in_pattern() { |
| 176 | 176 | let ( _a, _b) = (99u8, 'q'); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | #[cfg(not(any(bfail1,bfail4)))] | |
| 180 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 181 | #[rustc_clean(cfg="bfail3")] | |
| 182 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 183 | #[rustc_clean(cfg="bfail6")] | |
| 179 | #[cfg(not(any(bpass1,bpass4)))] | |
| 180 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 181 | #[rustc_clean(cfg="bpass3")] | |
| 182 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 183 | #[rustc_clean(cfg="bpass6")] | |
| 184 | 184 | pub fn change_mutability_of_binding_in_pattern() { |
| 185 | 185 | let (mut _a, _b) = (99u8, 'q'); |
| 186 | 186 | } |
| ... | ... | @@ -188,16 +188,16 @@ pub fn change_mutability_of_binding_in_pattern() { |
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | // Add Initializer ------------------------------------------------------------- |
| 191 | #[cfg(any(bfail1,bfail4))] | |
| 191 | #[cfg(any(bpass1,bpass4))] | |
| 192 | 192 | pub fn add_initializer() { |
| 193 | 193 | let _x: i16 ; |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | #[cfg(not(any(bfail1,bfail4)))] | |
| 197 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 198 | #[rustc_clean(cfg="bfail3")] | |
| 199 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 200 | #[rustc_clean(cfg="bfail6")] | |
| 196 | #[cfg(not(any(bpass1,bpass4)))] | |
| 197 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 198 | #[rustc_clean(cfg="bpass3")] | |
| 199 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root,optimized_mir")] | |
| 200 | #[rustc_clean(cfg="bpass6")] | |
| 201 | 201 | pub fn add_initializer() { |
| 202 | 202 | let _x: i16 = 3i16; |
| 203 | 203 | } |
| ... | ... | @@ -205,16 +205,16 @@ pub fn add_initializer() { |
| 205 | 205 | |
| 206 | 206 | |
| 207 | 207 | // Change Initializer ---------------------------------------------------------- |
| 208 | #[cfg(any(bfail1,bfail4))] | |
| 208 | #[cfg(any(bpass1,bpass4))] | |
| 209 | 209 | pub fn change_initializer() { |
| 210 | 210 | let _x = 4u16; |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | #[cfg(not(any(bfail1,bfail4)))] | |
| 214 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 215 | #[rustc_clean(cfg="bfail3")] | |
| 216 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 217 | #[rustc_clean(cfg="bfail6")] | |
| 213 | #[cfg(not(any(bpass1,bpass4)))] | |
| 214 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 215 | #[rustc_clean(cfg="bpass3")] | |
| 216 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 217 | #[rustc_clean(cfg="bpass6")] | |
| 218 | 218 | pub fn change_initializer() { |
| 219 | 219 | let _x = 5u16; |
| 220 | 220 | } |
tests/incremental/hashes/loop_expressions.rs+53-53| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change loop body |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn change_loop_body() { |
| 24 | 24 | let mut _x = 0; |
| 25 | 25 | loop { |
| ... | ... | @@ -28,11 +28,11 @@ pub fn change_loop_body() { |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub fn change_loop_body() { |
| 37 | 37 | let mut _x = 0; |
| 38 | 38 | loop { |
| ... | ... | @@ -44,7 +44,7 @@ pub fn change_loop_body() { |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | // Add break |
| 47 | #[cfg(any(bfail1,bfail4))] | |
| 47 | #[cfg(any(bpass1,bpass4))] | |
| 48 | 48 | pub fn add_break() { |
| 49 | 49 | let mut _x = 0; |
| 50 | 50 | loop { |
| ... | ... | @@ -53,11 +53,11 @@ pub fn add_break() { |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | #[cfg(not(any(bfail1,bfail4)))] | |
| 57 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 58 | #[rustc_clean(cfg="bfail3")] | |
| 59 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 60 | #[rustc_clean(cfg="bfail6")] | |
| 56 | #[cfg(not(any(bpass1,bpass4)))] | |
| 57 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 58 | #[rustc_clean(cfg="bpass3")] | |
| 59 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 60 | #[rustc_clean(cfg="bpass6")] | |
| 61 | 61 | pub fn add_break() { |
| 62 | 62 | let mut _x = 0; |
| 63 | 63 | loop { |
| ... | ... | @@ -69,7 +69,7 @@ pub fn add_break() { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Add loop label |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | pub fn add_loop_label() { |
| 74 | 74 | let mut _x = 0; |
| 75 | 75 | /*---*/ loop { |
| ... | ... | @@ -78,11 +78,11 @@ pub fn add_loop_label() { |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | #[cfg(not(any(bfail1,bfail4)))] | |
| 82 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 84 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 85 | #[rustc_clean(cfg="bfail6")] | |
| 81 | #[cfg(not(any(bpass1,bpass4)))] | |
| 82 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 85 | #[rustc_clean(cfg="bpass6")] | |
| 86 | 86 | pub fn add_loop_label() { |
| 87 | 87 | let mut _x = 0; |
| 88 | 88 | 'label: loop { |
| ... | ... | @@ -94,7 +94,7 @@ pub fn add_loop_label() { |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | // Add loop label to break |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | pub fn add_loop_label_to_break() { |
| 99 | 99 | let mut _x = 0; |
| 100 | 100 | 'label: loop { |
| ... | ... | @@ -103,11 +103,11 @@ pub fn add_loop_label_to_break() { |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn add_loop_label_to_break() { |
| 112 | 112 | let mut _x = 0; |
| 113 | 113 | 'label: loop { |
| ... | ... | @@ -119,7 +119,7 @@ pub fn add_loop_label_to_break() { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | // Change break label |
| 122 | #[cfg(any(bfail1,bfail4))] | |
| 122 | #[cfg(any(bpass1,bpass4))] | |
| 123 | 123 | pub fn change_break_label() { |
| 124 | 124 | let mut _x = 0; |
| 125 | 125 | 'outer: loop { |
| ... | ... | @@ -130,11 +130,11 @@ pub fn change_break_label() { |
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | #[cfg(not(any(bfail1,bfail4)))] | |
| 134 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 135 | #[rustc_clean(cfg="bfail3")] | |
| 136 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 137 | #[rustc_clean(cfg="bfail6")] | |
| 133 | #[cfg(not(any(bpass1,bpass4)))] | |
| 134 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 135 | #[rustc_clean(cfg="bpass3")] | |
| 136 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 137 | #[rustc_clean(cfg="bpass6")] | |
| 138 | 138 | pub fn change_break_label() { |
| 139 | 139 | let mut _x = 0; |
| 140 | 140 | 'outer: loop { |
| ... | ... | @@ -148,7 +148,7 @@ pub fn change_break_label() { |
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | // Add loop label to continue |
| 151 | #[cfg(any(bfail1,bfail4))] | |
| 151 | #[cfg(any(bpass1,bpass4))] | |
| 152 | 152 | pub fn add_loop_label_to_continue() { |
| 153 | 153 | let mut _x = 0; |
| 154 | 154 | 'label: loop { |
| ... | ... | @@ -157,11 +157,11 @@ pub fn add_loop_label_to_continue() { |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | #[cfg(not(any(bfail1,bfail4)))] | |
| 161 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bfail3")] | |
| 163 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 164 | #[rustc_clean(cfg="bfail6")] | |
| 160 | #[cfg(not(any(bpass1,bpass4)))] | |
| 161 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bpass3")] | |
| 163 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 164 | #[rustc_clean(cfg="bpass6")] | |
| 165 | 165 | pub fn add_loop_label_to_continue() { |
| 166 | 166 | let mut _x = 0; |
| 167 | 167 | 'label: loop { |
| ... | ... | @@ -173,7 +173,7 @@ pub fn add_loop_label_to_continue() { |
| 173 | 173 | |
| 174 | 174 | |
| 175 | 175 | // Change continue label |
| 176 | #[cfg(any(bfail1,bfail4))] | |
| 176 | #[cfg(any(bpass1,bpass4))] | |
| 177 | 177 | pub fn change_continue_label() { |
| 178 | 178 | let mut _x = 0; |
| 179 | 179 | 'outer: loop { |
| ... | ... | @@ -184,11 +184,11 @@ pub fn change_continue_label() { |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | #[cfg(not(any(bfail1,bfail4)))] | |
| 188 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 189 | #[rustc_clean(cfg="bfail3")] | |
| 190 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 191 | #[rustc_clean(cfg="bfail6")] | |
| 187 | #[cfg(not(any(bpass1,bpass4)))] | |
| 188 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 189 | #[rustc_clean(cfg="bpass3")] | |
| 190 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 191 | #[rustc_clean(cfg="bpass6")] | |
| 192 | 192 | pub fn change_continue_label() { |
| 193 | 193 | let mut _x = 0; |
| 194 | 194 | 'outer: loop { |
| ... | ... | @@ -202,7 +202,7 @@ pub fn change_continue_label() { |
| 202 | 202 | |
| 203 | 203 | |
| 204 | 204 | // Change continue to break |
| 205 | #[cfg(any(bfail1,bfail4))] | |
| 205 | #[cfg(any(bpass1,bpass4))] | |
| 206 | 206 | pub fn change_continue_to_break() { |
| 207 | 207 | let mut _x = 0; |
| 208 | 208 | loop { |
| ... | ... | @@ -211,11 +211,11 @@ pub fn change_continue_to_break() { |
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | #[cfg(not(any(bfail1,bfail4)))] | |
| 215 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, typeck_root, optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bfail3")] | |
| 217 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, typeck_root, optimized_mir")] | |
| 218 | #[rustc_clean(cfg="bfail6")] | |
| 214 | #[cfg(not(any(bpass1,bpass4)))] | |
| 215 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, typeck_root, optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bpass3")] | |
| 217 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, typeck_root, optimized_mir")] | |
| 218 | #[rustc_clean(cfg="bpass6")] | |
| 219 | 219 | pub fn change_continue_to_break() { |
| 220 | 220 | let mut _x = 0; |
| 221 | 221 | loop { |
tests/incremental/hashes/match_expressions.rs+84-84| ... | ... | @@ -5,20 +5,20 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| 18 | 18 | #![crate_type="rlib"] |
| 19 | 19 | |
| 20 | 20 | // Add Arm --------------------------------------------------------------------- |
| 21 | #[cfg(any(bfail1,bfail4))] | |
| 21 | #[cfg(any(bpass1,bpass4))] | |
| 22 | 22 | pub fn add_arm(x: u32) -> u32 { |
| 23 | 23 | match x { |
| 24 | 24 | 0 => 0, |
| ... | ... | @@ -28,11 +28,11 @@ pub fn add_arm(x: u32) -> u32 { |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub fn add_arm(x: u32) -> u32 { |
| 37 | 37 | match x { |
| 38 | 38 | 0 => 0, |
| ... | ... | @@ -45,7 +45,7 @@ pub fn add_arm(x: u32) -> u32 { |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | // Change Order Of Arms -------------------------------------------------------- |
| 48 | #[cfg(any(bfail1,bfail4))] | |
| 48 | #[cfg(any(bpass1,bpass4))] | |
| 49 | 49 | pub fn change_order_of_arms(x: u32) -> u32 { |
| 50 | 50 | match x { |
| 51 | 51 | 0 => 0, |
| ... | ... | @@ -54,11 +54,11 @@ pub fn change_order_of_arms(x: u32) -> u32 { |
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | #[cfg(not(any(bfail1,bfail4)))] | |
| 58 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 59 | #[rustc_clean(cfg="bfail3")] | |
| 60 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 61 | #[rustc_clean(cfg="bfail6")] | |
| 57 | #[cfg(not(any(bpass1,bpass4)))] | |
| 58 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 59 | #[rustc_clean(cfg="bpass3")] | |
| 60 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 61 | #[rustc_clean(cfg="bpass6")] | |
| 62 | 62 | pub fn change_order_of_arms(x: u32) -> u32 { |
| 63 | 63 | match x { |
| 64 | 64 | 1 => 1, |
| ... | ... | @@ -70,7 +70,7 @@ pub fn change_order_of_arms(x: u32) -> u32 { |
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | // Add Guard Clause ------------------------------------------------------------ |
| 73 | #[cfg(any(bfail1,bfail4))] | |
| 73 | #[cfg(any(bpass1,bpass4))] | |
| 74 | 74 | pub fn add_guard_clause(x: u32, y: bool) -> u32 { |
| 75 | 75 | match x { |
| 76 | 76 | 0 => 0, |
| ... | ... | @@ -79,11 +79,11 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 { |
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | #[cfg(not(any(bfail1,bfail4)))] | |
| 83 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 84 | #[rustc_clean(cfg="bfail3")] | |
| 85 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 86 | #[rustc_clean(cfg="bfail6")] | |
| 82 | #[cfg(not(any(bpass1,bpass4)))] | |
| 83 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 84 | #[rustc_clean(cfg="bpass3")] | |
| 85 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 86 | #[rustc_clean(cfg="bpass6")] | |
| 87 | 87 | pub fn add_guard_clause(x: u32, y: bool) -> u32 { |
| 88 | 88 | match x { |
| 89 | 89 | 0 => 0, |
| ... | ... | @@ -95,7 +95,7 @@ pub fn add_guard_clause(x: u32, y: bool) -> u32 { |
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | // Change Guard Clause ------------------------------------------------------------ |
| 98 | #[cfg(any(bfail1,bfail4))] | |
| 98 | #[cfg(any(bpass1,bpass4))] | |
| 99 | 99 | pub fn change_guard_clause(x: u32, y: bool) -> u32 { |
| 100 | 100 | match x { |
| 101 | 101 | 0 => 0, |
| ... | ... | @@ -104,11 +104,11 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 { |
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | #[cfg(not(any(bfail1,bfail4)))] | |
| 108 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 109 | #[rustc_clean(cfg="bfail3")] | |
| 110 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 111 | #[rustc_clean(cfg="bfail6")] | |
| 107 | #[cfg(not(any(bpass1,bpass4)))] | |
| 108 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 109 | #[rustc_clean(cfg="bpass3")] | |
| 110 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 111 | #[rustc_clean(cfg="bpass6")] | |
| 112 | 112 | pub fn change_guard_clause(x: u32, y: bool) -> u32 { |
| 113 | 113 | match x { |
| 114 | 114 | 0 => 0, |
| ... | ... | @@ -120,7 +120,7 @@ pub fn change_guard_clause(x: u32, y: bool) -> u32 { |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | // Add @-Binding --------------------------------------------------------------- |
| 123 | #[cfg(any(bfail1,bfail4))] | |
| 123 | #[cfg(any(bpass1,bpass4))] | |
| 124 | 124 | pub fn add_at_binding(x: u32) -> u32 { |
| 125 | 125 | match x { |
| 126 | 126 | 0 => 0, |
| ... | ... | @@ -129,11 +129,11 @@ pub fn add_at_binding(x: u32) -> u32 { |
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | #[cfg(not(any(bfail1,bfail4)))] | |
| 133 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 134 | #[rustc_clean(cfg="bfail3")] | |
| 135 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 136 | #[rustc_clean(cfg="bfail6")] | |
| 132 | #[cfg(not(any(bpass1,bpass4)))] | |
| 133 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 134 | #[rustc_clean(cfg="bpass3")] | |
| 135 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 136 | #[rustc_clean(cfg="bpass6")] | |
| 137 | 137 | pub fn add_at_binding(x: u32) -> u32 { |
| 138 | 138 | match x { |
| 139 | 139 | 0 => 0, |
| ... | ... | @@ -145,7 +145,7 @@ pub fn add_at_binding(x: u32) -> u32 { |
| 145 | 145 | |
| 146 | 146 | |
| 147 | 147 | // Change Name of @-Binding ---------------------------------------------------- |
| 148 | #[cfg(any(bfail1,bfail4))] | |
| 148 | #[cfg(any(bpass1,bpass4))] | |
| 149 | 149 | pub fn change_name_of_at_binding(x: u32) -> u32 { |
| 150 | 150 | match x { |
| 151 | 151 | 0 => 0, |
| ... | ... | @@ -154,11 +154,11 @@ pub fn change_name_of_at_binding(x: u32) -> u32 { |
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | #[cfg(not(any(bfail1,bfail4)))] | |
| 158 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 159 | #[rustc_clean(cfg="bfail3")] | |
| 160 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 161 | #[rustc_clean(cfg="bfail6")] | |
| 157 | #[cfg(not(any(bpass1,bpass4)))] | |
| 158 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 159 | #[rustc_clean(cfg="bpass3")] | |
| 160 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 161 | #[rustc_clean(cfg="bpass6")] | |
| 162 | 162 | pub fn change_name_of_at_binding(x: u32) -> u32 { |
| 163 | 163 | match x { |
| 164 | 164 | 0 => 0, |
| ... | ... | @@ -170,7 +170,7 @@ pub fn change_name_of_at_binding(x: u32) -> u32 { |
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | // Change Simple Binding To Pattern -------------------------------------------- |
| 173 | #[cfg(any(bfail1,bfail4))] | |
| 173 | #[cfg(any(bpass1,bpass4))] | |
| 174 | 174 | pub fn change_simple_name_to_pattern(x: u32) -> u32 { |
| 175 | 175 | match (x, x & 1) { |
| 176 | 176 | (0, 0) => 0, |
| ... | ... | @@ -178,11 +178,11 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 { |
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | #[cfg(not(any(bfail1,bfail4)))] | |
| 182 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 183 | #[rustc_clean(cfg="bfail3")] | |
| 184 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 185 | #[rustc_clean(cfg="bfail6")] | |
| 181 | #[cfg(not(any(bpass1,bpass4)))] | |
| 182 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 183 | #[rustc_clean(cfg="bpass3")] | |
| 184 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 185 | #[rustc_clean(cfg="bpass6")] | |
| 186 | 186 | pub fn change_simple_name_to_pattern(x: u32) -> u32 { |
| 187 | 187 | match (x, x & 1) { |
| 188 | 188 | (0, 0) => 0, |
| ... | ... | @@ -193,7 +193,7 @@ pub fn change_simple_name_to_pattern(x: u32) -> u32 { |
| 193 | 193 | |
| 194 | 194 | |
| 195 | 195 | // Change Name In Pattern ------------------------------------------------------ |
| 196 | #[cfg(any(bfail1,bfail4))] | |
| 196 | #[cfg(any(bpass1,bpass4))] | |
| 197 | 197 | pub fn change_name_in_pattern(x: u32) -> u32 { |
| 198 | 198 | match (x, x & 1) { |
| 199 | 199 | (a, 0) => 0, |
| ... | ... | @@ -202,11 +202,11 @@ pub fn change_name_in_pattern(x: u32) -> u32 { |
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | #[cfg(not(any(bfail1,bfail4)))] | |
| 206 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 207 | #[rustc_clean(cfg="bfail3")] | |
| 208 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 209 | #[rustc_clean(cfg="bfail6")] | |
| 205 | #[cfg(not(any(bpass1,bpass4)))] | |
| 206 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 207 | #[rustc_clean(cfg="bpass3")] | |
| 208 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 209 | #[rustc_clean(cfg="bpass6")] | |
| 210 | 210 | pub fn change_name_in_pattern(x: u32) -> u32 { |
| 211 | 211 | match (x, x & 1) { |
| 212 | 212 | (b, 0) => 0, |
| ... | ... | @@ -218,7 +218,7 @@ pub fn change_name_in_pattern(x: u32) -> u32 { |
| 218 | 218 | |
| 219 | 219 | |
| 220 | 220 | // Change Mutability Of Binding In Pattern ------------------------------------- |
| 221 | #[cfg(any(bfail1,bfail4))] | |
| 221 | #[cfg(any(bpass1,bpass4))] | |
| 222 | 222 | pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 { |
| 223 | 223 | match (x, x & 1) { |
| 224 | 224 | ( a, 0) => 0, |
| ... | ... | @@ -226,12 +226,12 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 { |
| 226 | 226 | } |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | // Ignore optimized_mir in bfail2, the only change to optimized MIR is a span. | |
| 230 | #[cfg(not(any(bfail1,bfail4)))] | |
| 231 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 232 | #[rustc_clean(cfg="bfail3")] | |
| 233 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 234 | #[rustc_clean(cfg="bfail6")] | |
| 229 | // Ignore optimized_mir in bpass2, the only change to optimized MIR is a span. | |
| 230 | #[cfg(not(any(bpass1,bpass4)))] | |
| 231 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 232 | #[rustc_clean(cfg="bpass3")] | |
| 233 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 234 | #[rustc_clean(cfg="bpass6")] | |
| 235 | 235 | pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 { |
| 236 | 236 | match (x, x & 1) { |
| 237 | 237 | (mut a, 0) => 0, |
| ... | ... | @@ -242,7 +242,7 @@ pub fn change_mutability_of_binding_in_pattern(x: u32) -> u32 { |
| 242 | 242 | |
| 243 | 243 | |
| 244 | 244 | // Add `ref` To Binding In Pattern ------------------------------------- |
| 245 | #[cfg(any(bfail1,bfail4))] | |
| 245 | #[cfg(any(bpass1,bpass4))] | |
| 246 | 246 | pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 { |
| 247 | 247 | match (x, x & 1) { |
| 248 | 248 | ( a, 0) => 0, |
| ... | ... | @@ -250,11 +250,11 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 { |
| 250 | 250 | } |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | #[cfg(not(any(bfail1,bfail4)))] | |
| 254 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 255 | #[rustc_clean(cfg="bfail3")] | |
| 256 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 257 | #[rustc_clean(cfg="bfail6")] | |
| 253 | #[cfg(not(any(bpass1,bpass4)))] | |
| 254 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 255 | #[rustc_clean(cfg="bpass3")] | |
| 256 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 257 | #[rustc_clean(cfg="bpass6")] | |
| 258 | 258 | pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 { |
| 259 | 259 | match (x, x & 1) { |
| 260 | 260 | (ref a, 0) => 0, |
| ... | ... | @@ -265,7 +265,7 @@ pub fn add_ref_to_binding_in_pattern(x: u32) -> u32 { |
| 265 | 265 | |
| 266 | 266 | |
| 267 | 267 | // Add `&` To Binding In Pattern ------------------------------------- |
| 268 | #[cfg(any(bfail1,bfail4))] | |
| 268 | #[cfg(any(bpass1,bpass4))] | |
| 269 | 269 | pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 { |
| 270 | 270 | match (&x, x & 1) { |
| 271 | 271 | ( a, 0) => 0, |
| ... | ... | @@ -273,11 +273,11 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 { |
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | #[cfg(not(any(bfail1,bfail4)))] | |
| 277 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 278 | #[rustc_clean(cfg="bfail3")] | |
| 279 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 280 | #[rustc_clean(cfg="bfail6")] | |
| 276 | #[cfg(not(any(bpass1,bpass4)))] | |
| 277 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 278 | #[rustc_clean(cfg="bpass3")] | |
| 279 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 280 | #[rustc_clean(cfg="bpass6")] | |
| 281 | 281 | pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 { |
| 282 | 282 | match (&x, x & 1) { |
| 283 | 283 | (&a, 0) => 0, |
| ... | ... | @@ -288,7 +288,7 @@ pub fn add_amp_to_binding_in_pattern(x: u32) -> u32 { |
| 288 | 288 | |
| 289 | 289 | |
| 290 | 290 | // Change RHS Of Arm ----------------------------------------------------------- |
| 291 | #[cfg(any(bfail1,bfail4))] | |
| 291 | #[cfg(any(bpass1,bpass4))] | |
| 292 | 292 | pub fn change_rhs_of_arm(x: u32) -> u32 { |
| 293 | 293 | match x { |
| 294 | 294 | 0 => 0, |
| ... | ... | @@ -297,11 +297,11 @@ pub fn change_rhs_of_arm(x: u32) -> u32 { |
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | #[cfg(not(any(bfail1,bfail4)))] | |
| 301 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 302 | #[rustc_clean(cfg="bfail3")] | |
| 303 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 304 | #[rustc_clean(cfg="bfail6")] | |
| 300 | #[cfg(not(any(bpass1,bpass4)))] | |
| 301 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 302 | #[rustc_clean(cfg="bpass3")] | |
| 303 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 304 | #[rustc_clean(cfg="bpass6")] | |
| 305 | 305 | pub fn change_rhs_of_arm(x: u32) -> u32 { |
| 306 | 306 | match x { |
| 307 | 307 | 0 => 0, |
| ... | ... | @@ -313,7 +313,7 @@ pub fn change_rhs_of_arm(x: u32) -> u32 { |
| 313 | 313 | |
| 314 | 314 | |
| 315 | 315 | // Add Alternative To Arm ------------------------------------------------------ |
| 316 | #[cfg(any(bfail1,bfail4))] | |
| 316 | #[cfg(any(bpass1,bpass4))] | |
| 317 | 317 | pub fn add_alternative_to_arm(x: u32) -> u32 { |
| 318 | 318 | match x { |
| 319 | 319 | 0 => 0, |
| ... | ... | @@ -322,11 +322,11 @@ pub fn add_alternative_to_arm(x: u32) -> u32 { |
| 322 | 322 | } |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | #[cfg(not(any(bfail1,bfail4)))] | |
| 326 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 327 | #[rustc_clean(cfg="bfail3")] | |
| 328 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 329 | #[rustc_clean(cfg="bfail6")] | |
| 325 | #[cfg(not(any(bpass1,bpass4)))] | |
| 326 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 327 | #[rustc_clean(cfg="bpass3")] | |
| 328 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 329 | #[rustc_clean(cfg="bpass6")] | |
| 330 | 330 | pub fn add_alternative_to_arm(x: u32) -> u32 { |
| 331 | 331 | match x { |
| 332 | 332 | 0 | 7 => 0, |
tests/incremental/hashes/panic_exprs.rs+38-38| ... | ... | @@ -8,10 +8,10 @@ |
| 8 | 8 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 9 | 9 | // rev3 and make sure that the hash has not changed. |
| 10 | 10 | |
| 11 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 12 | //@ revisions: bfail1 bfail2 bfail3 | |
| 11 | //@ revisions: bpass1 bpass2 bpass3 | |
| 13 | 12 | //@ compile-flags: -Z query-dep-graph -C debug-assertions -O |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,14 +19,14 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Indexing expression |
| 22 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 23 | #[rustc_clean(cfg="bfail3")] | |
| 22 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 23 | #[rustc_clean(cfg="bpass3")] | |
| 24 | 24 | pub fn indexing(slice: &[u8]) -> u8 { |
| 25 | #[cfg(bfail1)] | |
| 25 | #[cfg(bpass1)] | |
| 26 | 26 | { |
| 27 | 27 | slice[100] |
| 28 | 28 | } |
| 29 | #[cfg(not(bfail1))] | |
| 29 | #[cfg(not(bpass1))] | |
| 30 | 30 | { |
| 31 | 31 | slice[100] |
| 32 | 32 | } |
| ... | ... | @@ -34,14 +34,14 @@ pub fn indexing(slice: &[u8]) -> u8 { |
| 34 | 34 | |
| 35 | 35 | |
| 36 | 36 | // Arithmetic overflow plus |
| 37 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 38 | #[rustc_clean(cfg="bfail3")] | |
| 37 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 38 | #[rustc_clean(cfg="bpass3")] | |
| 39 | 39 | pub fn arithmetic_overflow_plus(val: i32) -> i32 { |
| 40 | #[cfg(bfail1)] | |
| 40 | #[cfg(bpass1)] | |
| 41 | 41 | { |
| 42 | 42 | val + 1 |
| 43 | 43 | } |
| 44 | #[cfg(not(bfail1))] | |
| 44 | #[cfg(not(bpass1))] | |
| 45 | 45 | { |
| 46 | 46 | val + 1 |
| 47 | 47 | } |
| ... | ... | @@ -49,14 +49,14 @@ pub fn arithmetic_overflow_plus(val: i32) -> i32 { |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | // Arithmetic overflow minus |
| 52 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 53 | #[rustc_clean(cfg="bfail3")] | |
| 52 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 53 | #[rustc_clean(cfg="bpass3")] | |
| 54 | 54 | pub fn arithmetic_overflow_minus(val: i32) -> i32 { |
| 55 | #[cfg(bfail1)] | |
| 55 | #[cfg(bpass1)] | |
| 56 | 56 | { |
| 57 | 57 | val - 1 |
| 58 | 58 | } |
| 59 | #[cfg(not(bfail1))] | |
| 59 | #[cfg(not(bpass1))] | |
| 60 | 60 | { |
| 61 | 61 | val - 1 |
| 62 | 62 | } |
| ... | ... | @@ -64,14 +64,14 @@ pub fn arithmetic_overflow_minus(val: i32) -> i32 { |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | // Arithmetic overflow mult |
| 67 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 68 | #[rustc_clean(cfg="bfail3")] | |
| 67 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 68 | #[rustc_clean(cfg="bpass3")] | |
| 69 | 69 | pub fn arithmetic_overflow_mult(val: i32) -> i32 { |
| 70 | #[cfg(bfail1)] | |
| 70 | #[cfg(bpass1)] | |
| 71 | 71 | { |
| 72 | 72 | val * 2 |
| 73 | 73 | } |
| 74 | #[cfg(not(bfail1))] | |
| 74 | #[cfg(not(bpass1))] | |
| 75 | 75 | { |
| 76 | 76 | val * 2 |
| 77 | 77 | } |
| ... | ... | @@ -79,14 +79,14 @@ pub fn arithmetic_overflow_mult(val: i32) -> i32 { |
| 79 | 79 | |
| 80 | 80 | |
| 81 | 81 | // Arithmetic overflow negation |
| 82 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 82 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | 84 | pub fn arithmetic_overflow_negation(val: i32) -> i32 { |
| 85 | #[cfg(bfail1)] | |
| 85 | #[cfg(bpass1)] | |
| 86 | 86 | { |
| 87 | 87 | -val |
| 88 | 88 | } |
| 89 | #[cfg(not(bfail1))] | |
| 89 | #[cfg(not(bpass1))] | |
| 90 | 90 | { |
| 91 | 91 | -val |
| 92 | 92 | } |
| ... | ... | @@ -94,28 +94,28 @@ pub fn arithmetic_overflow_negation(val: i32) -> i32 { |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | // Division by zero |
| 97 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 98 | #[rustc_clean(cfg="bfail3")] | |
| 97 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 98 | #[rustc_clean(cfg="bpass3")] | |
| 99 | 99 | pub fn division_by_zero(val: i32) -> i32 { |
| 100 | #[cfg(bfail1)] | |
| 100 | #[cfg(bpass1)] | |
| 101 | 101 | { |
| 102 | 102 | 2 / val |
| 103 | 103 | } |
| 104 | #[cfg(not(bfail1))] | |
| 104 | #[cfg(not(bpass1))] | |
| 105 | 105 | { |
| 106 | 106 | 2 / val |
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | // Division by zero |
| 111 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 112 | #[rustc_clean(cfg="bfail3")] | |
| 111 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 112 | #[rustc_clean(cfg="bpass3")] | |
| 113 | 113 | pub fn mod_by_zero(val: i32) -> i32 { |
| 114 | #[cfg(bfail1)] | |
| 114 | #[cfg(bpass1)] | |
| 115 | 115 | { |
| 116 | 116 | 2 % val |
| 117 | 117 | } |
| 118 | #[cfg(not(bfail1))] | |
| 118 | #[cfg(not(bpass1))] | |
| 119 | 119 | { |
| 120 | 120 | 2 % val |
| 121 | 121 | } |
| ... | ... | @@ -123,14 +123,14 @@ pub fn mod_by_zero(val: i32) -> i32 { |
| 123 | 123 | |
| 124 | 124 | |
| 125 | 125 | // shift left |
| 126 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 127 | #[rustc_clean(cfg="bfail3")] | |
| 126 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 127 | #[rustc_clean(cfg="bpass3")] | |
| 128 | 128 | pub fn shift_left(val: i32, shift: usize) -> i32 { |
| 129 | #[cfg(bfail1)] | |
| 129 | #[cfg(bpass1)] | |
| 130 | 130 | { |
| 131 | 131 | val << shift |
| 132 | 132 | } |
| 133 | #[cfg(not(bfail1))] | |
| 133 | #[cfg(not(bpass1))] | |
| 134 | 134 | { |
| 135 | 135 | val << shift |
| 136 | 136 | } |
| ... | ... | @@ -138,14 +138,14 @@ pub fn shift_left(val: i32, shift: usize) -> i32 { |
| 138 | 138 | |
| 139 | 139 | |
| 140 | 140 | // shift right |
| 141 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 142 | #[rustc_clean(cfg="bfail3")] | |
| 141 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 142 | #[rustc_clean(cfg="bpass3")] | |
| 143 | 143 | pub fn shift_right(val: i32, shift: usize) -> i32 { |
| 144 | #[cfg(bfail1)] | |
| 144 | #[cfg(bpass1)] | |
| 145 | 145 | { |
| 146 | 146 | val >> shift |
| 147 | 147 | } |
| 148 | #[cfg(not(bfail1))] | |
| 148 | #[cfg(not(bpass1))] | |
| 149 | 149 | { |
| 150 | 150 | val >> shift |
| 151 | 151 | } |
tests/incremental/hashes/statics.rs+81-81| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -21,140 +21,140 @@ |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | // Change static visibility |
| 24 | #[cfg(any(bfail1,bfail4))] | |
| 24 | #[cfg(any(bpass1,bpass4))] | |
| 25 | 25 | static STATIC_VISIBILITY: u8 = 0; |
| 26 | 26 | |
| 27 | #[cfg(not(any(bfail1,bfail4)))] | |
| 28 | #[rustc_clean(cfg="bfail2")] | |
| 29 | #[rustc_clean(cfg="bfail3")] | |
| 30 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg="bfail6")] | |
| 27 | #[cfg(not(any(bpass1,bpass4)))] | |
| 28 | #[rustc_clean(cfg="bpass2")] | |
| 29 | #[rustc_clean(cfg="bpass3")] | |
| 30 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 31 | #[rustc_clean(cfg="bpass6")] | |
| 32 | 32 | pub static STATIC_VISIBILITY: u8 = 0; |
| 33 | 33 | |
| 34 | 34 | |
| 35 | 35 | // Change static mutability |
| 36 | #[cfg(any(bfail1,bfail4))] | |
| 36 | #[cfg(any(bpass1,bpass4))] | |
| 37 | 37 | static STATIC_MUTABILITY: u8 = 0; |
| 38 | 38 | |
| 39 | #[cfg(not(any(bfail1,bfail4)))] | |
| 40 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 41 | #[rustc_clean(cfg="bfail3")] | |
| 42 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 43 | #[rustc_clean(cfg="bfail6")] | |
| 39 | #[cfg(not(any(bpass1,bpass4)))] | |
| 40 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 41 | #[rustc_clean(cfg="bpass3")] | |
| 42 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 43 | #[rustc_clean(cfg="bpass6")] | |
| 44 | 44 | static mut STATIC_MUTABILITY: u8 = 0; |
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | // Add linkage attribute |
| 48 | #[cfg(any(bfail1,bfail4))] | |
| 48 | #[cfg(any(bpass1,bpass4))] | |
| 49 | 49 | static STATIC_LINKAGE: u8 = 0; |
| 50 | 50 | |
| 51 | #[cfg(not(any(bfail1,bfail4)))] | |
| 52 | #[rustc_clean(cfg="bfail2")] | |
| 53 | #[rustc_clean(cfg="bfail3")] | |
| 54 | #[rustc_clean(cfg="bfail5")] | |
| 55 | #[rustc_clean(cfg="bfail6")] | |
| 51 | #[cfg(not(any(bpass1,bpass4)))] | |
| 52 | #[rustc_clean(cfg="bpass2")] | |
| 53 | #[rustc_clean(cfg="bpass3")] | |
| 54 | #[rustc_clean(cfg="bpass5")] | |
| 55 | #[rustc_clean(cfg="bpass6")] | |
| 56 | 56 | #[linkage="weak_odr"] |
| 57 | 57 | static STATIC_LINKAGE: u8 = 0; |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 60 | // Add no_mangle attribute |
| 61 | #[cfg(any(bfail1,bfail4))] | |
| 61 | #[cfg(any(bpass1,bpass4))] | |
| 62 | 62 | static STATIC_NO_MANGLE: u8 = 0; |
| 63 | 63 | |
| 64 | #[cfg(not(any(bfail1,bfail4)))] | |
| 65 | #[rustc_clean(cfg="bfail2")] | |
| 66 | #[rustc_clean(cfg="bfail3")] | |
| 67 | #[rustc_clean(cfg="bfail5")] | |
| 68 | #[rustc_clean(cfg="bfail6")] | |
| 64 | #[cfg(not(any(bpass1,bpass4)))] | |
| 65 | #[rustc_clean(cfg="bpass2")] | |
| 66 | #[rustc_clean(cfg="bpass3")] | |
| 67 | #[rustc_clean(cfg="bpass5")] | |
| 68 | #[rustc_clean(cfg="bpass6")] | |
| 69 | 69 | #[unsafe(no_mangle)] |
| 70 | 70 | static STATIC_NO_MANGLE: u8 = 0; |
| 71 | 71 | |
| 72 | 72 | |
| 73 | 73 | // Add thread_local attribute |
| 74 | #[cfg(any(bfail1,bfail4))] | |
| 74 | #[cfg(any(bpass1,bpass4))] | |
| 75 | 75 | static STATIC_THREAD_LOCAL: u8 = 0; |
| 76 | 76 | |
| 77 | #[cfg(not(any(bfail1,bfail4)))] | |
| 78 | #[rustc_clean(cfg="bfail2")] | |
| 79 | #[rustc_clean(cfg="bfail3")] | |
| 80 | #[rustc_clean(cfg="bfail5")] | |
| 81 | #[rustc_clean(cfg="bfail6")] | |
| 77 | #[cfg(not(any(bpass1,bpass4)))] | |
| 78 | #[rustc_clean(cfg="bpass2")] | |
| 79 | #[rustc_clean(cfg="bpass3")] | |
| 80 | #[rustc_clean(cfg="bpass5")] | |
| 81 | #[rustc_clean(cfg="bpass6")] | |
| 82 | 82 | #[thread_local] |
| 83 | 83 | static STATIC_THREAD_LOCAL: u8 = 0; |
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | // Change type from i16 to u64 |
| 87 | #[cfg(any(bfail1,bfail4))] | |
| 87 | #[cfg(any(bpass1,bpass4))] | |
| 88 | 88 | static STATIC_CHANGE_TYPE_1: i16 = 0; |
| 89 | 89 | |
| 90 | #[cfg(not(any(bfail1,bfail4)))] | |
| 91 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 92 | #[rustc_clean(cfg="bfail3")] | |
| 93 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 94 | #[rustc_clean(cfg="bfail6")] | |
| 90 | #[cfg(not(any(bpass1,bpass4)))] | |
| 91 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 92 | #[rustc_clean(cfg="bpass3")] | |
| 93 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 94 | #[rustc_clean(cfg="bpass6")] | |
| 95 | 95 | static STATIC_CHANGE_TYPE_1: u64 = 0; |
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | // Change type from Option<i8> to Option<u16> |
| 99 | #[cfg(any(bfail1,bfail4))] | |
| 99 | #[cfg(any(bpass1,bpass4))] | |
| 100 | 100 | static STATIC_CHANGE_TYPE_2: Option<i8> = None; |
| 101 | 101 | |
| 102 | #[cfg(not(any(bfail1,bfail4)))] | |
| 103 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 104 | #[rustc_clean(cfg="bfail3")] | |
| 105 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 106 | #[rustc_clean(cfg="bfail6")] | |
| 102 | #[cfg(not(any(bpass1,bpass4)))] | |
| 103 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 104 | #[rustc_clean(cfg="bpass3")] | |
| 105 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 106 | #[rustc_clean(cfg="bpass6")] | |
| 107 | 107 | static STATIC_CHANGE_TYPE_2: Option<u16> = None; |
| 108 | 108 | |
| 109 | 109 | |
| 110 | 110 | // Change value between simple literals |
| 111 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 112 | #[rustc_clean(cfg="bfail3")] | |
| 113 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 114 | #[rustc_clean(cfg="bfail6")] | |
| 111 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 112 | #[rustc_clean(cfg="bpass3")] | |
| 113 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 114 | #[rustc_clean(cfg="bpass6")] | |
| 115 | 115 | static STATIC_CHANGE_VALUE_1: i16 = { |
| 116 | #[cfg(any(bfail1,bfail4))] | |
| 116 | #[cfg(any(bpass1,bpass4))] | |
| 117 | 117 | { 1 } |
| 118 | 118 | |
| 119 | #[cfg(not(any(bfail1,bfail4)))] | |
| 119 | #[cfg(not(any(bpass1,bpass4)))] | |
| 120 | 120 | { 2 } |
| 121 | 121 | }; |
| 122 | 122 | |
| 123 | 123 | |
| 124 | 124 | // Change value between expressions |
| 125 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 126 | #[rustc_clean(cfg="bfail3")] | |
| 127 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 128 | #[rustc_clean(cfg="bfail6")] | |
| 125 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 126 | #[rustc_clean(cfg="bpass3")] | |
| 127 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 128 | #[rustc_clean(cfg="bpass6")] | |
| 129 | 129 | static STATIC_CHANGE_VALUE_2: i16 = { |
| 130 | #[cfg(any(bfail1,bfail4))] | |
| 130 | #[cfg(any(bpass1,bpass4))] | |
| 131 | 131 | { 1 + 1 } |
| 132 | 132 | |
| 133 | #[cfg(not(any(bfail1,bfail4)))] | |
| 133 | #[cfg(not(any(bpass1,bpass4)))] | |
| 134 | 134 | { 1 + 2 } |
| 135 | 135 | }; |
| 136 | 136 | |
| 137 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 138 | #[rustc_clean(cfg="bfail3")] | |
| 139 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 140 | #[rustc_clean(cfg="bfail6")] | |
| 137 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 138 | #[rustc_clean(cfg="bpass3")] | |
| 139 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 140 | #[rustc_clean(cfg="bpass6")] | |
| 141 | 141 | static STATIC_CHANGE_VALUE_3: i16 = { |
| 142 | #[cfg(any(bfail1,bfail4))] | |
| 142 | #[cfg(any(bpass1,bpass4))] | |
| 143 | 143 | { 2 + 3 } |
| 144 | 144 | |
| 145 | #[cfg(not(any(bfail1,bfail4)))] | |
| 145 | #[cfg(not(any(bpass1,bpass4)))] | |
| 146 | 146 | { 2 * 3 } |
| 147 | 147 | }; |
| 148 | 148 | |
| 149 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 150 | #[rustc_clean(cfg="bfail3")] | |
| 151 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 152 | #[rustc_clean(cfg="bfail6")] | |
| 149 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 150 | #[rustc_clean(cfg="bpass3")] | |
| 151 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 152 | #[rustc_clean(cfg="bpass6")] | |
| 153 | 153 | static STATIC_CHANGE_VALUE_4: i16 = { |
| 154 | #[cfg(any(bfail1,bfail4))] | |
| 154 | #[cfg(any(bpass1,bpass4))] | |
| 155 | 155 | { 1 + 2 * 3 } |
| 156 | 156 | |
| 157 | #[cfg(not(any(bfail1,bfail4)))] | |
| 157 | #[cfg(not(any(bpass1,bpass4)))] | |
| 158 | 158 | { 1 + 2 * 4 } |
| 159 | 159 | }; |
| 160 | 160 | |
| ... | ... | @@ -164,21 +164,21 @@ struct ReferencedType1; |
| 164 | 164 | struct ReferencedType2; |
| 165 | 165 | |
| 166 | 166 | mod static_change_type_indirectly { |
| 167 | #[cfg(any(bfail1,bfail4))] | |
| 167 | #[cfg(any(bpass1,bpass4))] | |
| 168 | 168 | use super::ReferencedType1 as Type; |
| 169 | 169 | |
| 170 | #[cfg(not(any(bfail1,bfail4)))] | |
| 170 | #[cfg(not(any(bpass1,bpass4)))] | |
| 171 | 171 | use super::ReferencedType2 as Type; |
| 172 | 172 | |
| 173 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 174 | #[rustc_clean(cfg="bfail3")] | |
| 175 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 176 | #[rustc_clean(cfg="bfail6")] | |
| 173 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 174 | #[rustc_clean(cfg="bpass3")] | |
| 175 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 176 | #[rustc_clean(cfg="bpass6")] | |
| 177 | 177 | static STATIC_CHANGE_TYPE_INDIRECTLY_1: Type = Type; |
| 178 | 178 | |
| 179 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,type_of")] | |
| 180 | #[rustc_clean(cfg="bfail3")] | |
| 181 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 182 | #[rustc_clean(cfg="bfail6")] | |
| 179 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,type_of")] | |
| 180 | #[rustc_clean(cfg="bpass3")] | |
| 181 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 182 | #[rustc_clean(cfg="bpass6")] | |
| 183 | 183 | static STATIC_CHANGE_TYPE_INDIRECTLY_2: Option<Type> = None; |
| 184 | 184 | } |
tests/incremental/hashes/struct_constructors.rs+59-59| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -25,7 +25,7 @@ pub struct RegularStruct { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | // Change field value (regular struct) |
| 28 | #[cfg(any(bfail1,bfail4))] | |
| 28 | #[cfg(any(bpass1,bpass4))] | |
| 29 | 29 | pub fn change_field_value_regular_struct() -> RegularStruct { |
| 30 | 30 | RegularStruct { |
| 31 | 31 | x: 0, |
| ... | ... | @@ -34,11 +34,11 @@ pub fn change_field_value_regular_struct() -> RegularStruct { |
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | #[cfg(not(any(bfail1,bfail4)))] | |
| 38 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 39 | #[rustc_clean(cfg="bfail3")] | |
| 40 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 41 | #[rustc_clean(cfg="bfail6")] | |
| 37 | #[cfg(not(any(bpass1,bpass4)))] | |
| 38 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 39 | #[rustc_clean(cfg="bpass3")] | |
| 40 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 41 | #[rustc_clean(cfg="bpass6")] | |
| 42 | 42 | pub fn change_field_value_regular_struct() -> RegularStruct { |
| 43 | 43 | RegularStruct { |
| 44 | 44 | x: 0, |
| ... | ... | @@ -50,7 +50,7 @@ pub fn change_field_value_regular_struct() -> RegularStruct { |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | // Change field order (regular struct) |
| 53 | #[cfg(any(bfail1,bfail4))] | |
| 53 | #[cfg(any(bpass1,bpass4))] | |
| 54 | 54 | pub fn change_field_order_regular_struct() -> RegularStruct { |
| 55 | 55 | RegularStruct { |
| 56 | 56 | x: 3, |
| ... | ... | @@ -59,11 +59,11 @@ pub fn change_field_order_regular_struct() -> RegularStruct { |
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | #[cfg(not(any(bfail1,bfail4)))] | |
| 63 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 64 | #[rustc_clean(cfg="bfail3")] | |
| 65 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 66 | #[rustc_clean(cfg="bfail6")] | |
| 62 | #[cfg(not(any(bpass1,bpass4)))] | |
| 63 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 64 | #[rustc_clean(cfg="bpass3")] | |
| 65 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 66 | #[rustc_clean(cfg="bpass6")] | |
| 67 | 67 | pub fn change_field_order_regular_struct() -> RegularStruct { |
| 68 | 68 | RegularStruct { |
| 69 | 69 | y: 4, |
| ... | ... | @@ -75,7 +75,7 @@ pub fn change_field_order_regular_struct() -> RegularStruct { |
| 75 | 75 | |
| 76 | 76 | |
| 77 | 77 | // Add field (regular struct) |
| 78 | #[cfg(any(bfail1,bfail4))] | |
| 78 | #[cfg(any(bpass1,bpass4))] | |
| 79 | 79 | pub fn add_field_regular_struct() -> RegularStruct { |
| 80 | 80 | let struct1 = RegularStruct { |
| 81 | 81 | x: 3, |
| ... | ... | @@ -90,11 +90,11 @@ pub fn add_field_regular_struct() -> RegularStruct { |
| 90 | 90 | } |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | #[cfg(not(any(bfail1,bfail4)))] | |
| 94 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 95 | #[rustc_clean(cfg="bfail3")] | |
| 96 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 97 | #[rustc_clean(cfg="bfail6")] | |
| 93 | #[cfg(not(any(bpass1,bpass4)))] | |
| 94 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 95 | #[rustc_clean(cfg="bpass3")] | |
| 96 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 97 | #[rustc_clean(cfg="bpass6")] | |
| 98 | 98 | pub fn add_field_regular_struct() -> RegularStruct { |
| 99 | 99 | let struct1 = RegularStruct { |
| 100 | 100 | x: 3, |
| ... | ... | @@ -112,7 +112,7 @@ pub fn add_field_regular_struct() -> RegularStruct { |
| 112 | 112 | |
| 113 | 113 | |
| 114 | 114 | // Change field label (regular struct) |
| 115 | #[cfg(any(bfail1,bfail4))] | |
| 115 | #[cfg(any(bpass1,bpass4))] | |
| 116 | 116 | pub fn change_field_label_regular_struct() -> RegularStruct { |
| 117 | 117 | let struct1 = RegularStruct { |
| 118 | 118 | x: 3, |
| ... | ... | @@ -127,11 +127,11 @@ pub fn change_field_label_regular_struct() -> RegularStruct { |
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | #[cfg(not(any(bfail1,bfail4)))] | |
| 131 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 132 | #[rustc_clean(cfg="bfail3")] | |
| 133 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 134 | #[rustc_clean(cfg="bfail6")] | |
| 130 | #[cfg(not(any(bpass1,bpass4)))] | |
| 131 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 132 | #[rustc_clean(cfg="bpass3")] | |
| 133 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 134 | #[rustc_clean(cfg="bpass6")] | |
| 135 | 135 | pub fn change_field_label_regular_struct() -> RegularStruct { |
| 136 | 136 | let struct1 = RegularStruct { |
| 137 | 137 | x: 3, |
| ... | ... | @@ -155,7 +155,7 @@ pub struct RegularStruct2 { |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | // Change constructor path (regular struct) |
| 158 | #[cfg(any(bfail1,bfail4))] | |
| 158 | #[cfg(any(bpass1,bpass4))] | |
| 159 | 159 | pub fn change_constructor_path_regular_struct() { |
| 160 | 160 | let _ = RegularStruct { |
| 161 | 161 | x: 0, |
| ... | ... | @@ -164,11 +164,11 @@ pub fn change_constructor_path_regular_struct() { |
| 164 | 164 | }; |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | #[cfg(not(any(bfail1,bfail4)))] | |
| 168 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 169 | #[rustc_clean(cfg="bfail3")] | |
| 170 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 171 | #[rustc_clean(cfg="bfail6")] | |
| 167 | #[cfg(not(any(bpass1,bpass4)))] | |
| 168 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 169 | #[rustc_clean(cfg="bpass3")] | |
| 170 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 171 | #[rustc_clean(cfg="bpass6")] | |
| 172 | 172 | pub fn change_constructor_path_regular_struct() { |
| 173 | 173 | let _ = RegularStruct2 { |
| 174 | 174 | x: 0, |
| ... | ... | @@ -181,15 +181,15 @@ pub fn change_constructor_path_regular_struct() { |
| 181 | 181 | |
| 182 | 182 | // Change constructor path indirectly (regular struct) |
| 183 | 183 | pub mod change_constructor_path_indirectly_regular_struct { |
| 184 | #[cfg(any(bfail1,bfail4))] | |
| 184 | #[cfg(any(bpass1,bpass4))] | |
| 185 | 185 | use super::RegularStruct as Struct; |
| 186 | #[cfg(not(any(bfail1,bfail4)))] | |
| 186 | #[cfg(not(any(bpass1,bpass4)))] | |
| 187 | 187 | use super::RegularStruct2 as Struct; |
| 188 | 188 | |
| 189 | #[rustc_clean(cfg="bfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 190 | #[rustc_clean(cfg="bfail3")] | |
| 191 | #[rustc_clean(cfg="bfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 192 | #[rustc_clean(cfg="bfail6")] | |
| 189 | #[rustc_clean(cfg="bpass2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 190 | #[rustc_clean(cfg="bpass3")] | |
| 191 | #[rustc_clean(cfg="bpass5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 192 | #[rustc_clean(cfg="bpass6")] | |
| 193 | 193 | pub fn function() -> Struct { |
| 194 | 194 | Struct { |
| 195 | 195 | x: 0, |
| ... | ... | @@ -204,16 +204,16 @@ pub mod change_constructor_path_indirectly_regular_struct { |
| 204 | 204 | pub struct TupleStruct(i32, i64, i16); |
| 205 | 205 | |
| 206 | 206 | // Change field value (tuple struct) |
| 207 | #[cfg(any(bfail1,bfail4))] | |
| 207 | #[cfg(any(bpass1,bpass4))] | |
| 208 | 208 | pub fn change_field_value_tuple_struct() -> TupleStruct { |
| 209 | 209 | TupleStruct(0, 1, 2) |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | #[cfg(not(any(bfail1,bfail4)))] | |
| 213 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 214 | #[rustc_clean(cfg="bfail3")] | |
| 215 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bfail6")] | |
| 212 | #[cfg(not(any(bpass1,bpass4)))] | |
| 213 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 214 | #[rustc_clean(cfg="bpass3")] | |
| 215 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 216 | #[rustc_clean(cfg="bpass6")] | |
| 217 | 217 | pub fn change_field_value_tuple_struct() -> TupleStruct { |
| 218 | 218 | TupleStruct(0, 1, 3) |
| 219 | 219 | } |
| ... | ... | @@ -223,16 +223,16 @@ pub fn change_field_value_tuple_struct() -> TupleStruct { |
| 223 | 223 | pub struct TupleStruct2(u16, u16, u16); |
| 224 | 224 | |
| 225 | 225 | // Change constructor path (tuple struct) |
| 226 | #[cfg(any(bfail1,bfail4))] | |
| 226 | #[cfg(any(bpass1,bpass4))] | |
| 227 | 227 | pub fn change_constructor_path_tuple_struct() { |
| 228 | 228 | let _ = TupleStruct (0, 1, 2); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | #[cfg(not(any(bfail1,bfail4)))] | |
| 232 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,typeck_root")] | |
| 233 | #[rustc_clean(cfg="bfail3")] | |
| 234 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,typeck_root")] | |
| 235 | #[rustc_clean(cfg="bfail6")] | |
| 231 | #[cfg(not(any(bpass1,bpass4)))] | |
| 232 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,typeck_root")] | |
| 233 | #[rustc_clean(cfg="bpass3")] | |
| 234 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,typeck_root")] | |
| 235 | #[rustc_clean(cfg="bpass6")] | |
| 236 | 236 | pub fn change_constructor_path_tuple_struct() { |
| 237 | 237 | let _ = TupleStruct2(0, 1, 2); |
| 238 | 238 | } |
| ... | ... | @@ -241,15 +241,15 @@ pub fn change_constructor_path_tuple_struct() { |
| 241 | 241 | |
| 242 | 242 | // Change constructor path indirectly (tuple struct) |
| 243 | 243 | pub mod change_constructor_path_indirectly_tuple_struct { |
| 244 | #[cfg(any(bfail1,bfail4))] | |
| 244 | #[cfg(any(bpass1,bpass4))] | |
| 245 | 245 | use super::TupleStruct as Struct; |
| 246 | #[cfg(not(any(bfail1,bfail4)))] | |
| 246 | #[cfg(not(any(bpass1,bpass4)))] | |
| 247 | 247 | use super::TupleStruct2 as Struct; |
| 248 | 248 | |
| 249 | #[rustc_clean(cfg="bfail5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 250 | #[rustc_clean(cfg="bfail6")] | |
| 251 | #[rustc_clean(cfg="bfail2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 252 | #[rustc_clean(cfg="bfail3")] | |
| 249 | #[rustc_clean(cfg="bpass5", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 250 | #[rustc_clean(cfg="bpass6")] | |
| 251 | #[rustc_clean(cfg="bpass2", except="fn_sig,opt_hir_owner_nodes,optimized_mir,typeck_root")] | |
| 252 | #[rustc_clean(cfg="bpass3")] | |
| 253 | 253 | pub fn function() -> Struct { |
| 254 | 254 | Struct(0, 1, 2) |
| 255 | 255 | } |
tests/incremental/hashes/struct_defs.rs+129-129| ... | ... | @@ -10,52 +10,52 @@ |
| 10 | 10 | // results in a change of the ICH for the struct's metadata, and that it stays |
| 11 | 11 | // the same between rev2 and rev3. |
| 12 | 12 | |
| 13 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 14 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 13 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 15 | 14 | //@ compile-flags: -Z query-dep-graph -O |
| 16 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 18 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 15 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 16 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 19 | 18 | //@ ignore-backends: gcc |
| 19 | // FIXME(#62277): could be check-pass? | |
| 20 | 20 | |
| 21 | 21 | #![allow(warnings)] |
| 22 | 22 | #![feature(rustc_attrs)] |
| 23 | 23 | #![crate_type="rlib"] |
| 24 | 24 | |
| 25 | 25 | // Layout ---------------------------------------------------------------------- |
| 26 | #[cfg(any(bfail1,bfail4))] | |
| 26 | #[cfg(any(bpass1,bpass4))] | |
| 27 | 27 | pub struct LayoutPacked; |
| 28 | 28 | |
| 29 | #[cfg(not(any(bfail1,bfail4)))] | |
| 30 | #[rustc_clean(except="type_of", cfg="bfail2")] | |
| 31 | #[rustc_clean(cfg="bfail3")] | |
| 32 | #[rustc_clean(except="type_of", cfg="bfail5")] | |
| 33 | #[rustc_clean(cfg="bfail6")] | |
| 29 | #[cfg(not(any(bpass1,bpass4)))] | |
| 30 | #[rustc_clean(except="type_of", cfg="bpass2")] | |
| 31 | #[rustc_clean(cfg="bpass3")] | |
| 32 | #[rustc_clean(except="type_of", cfg="bpass5")] | |
| 33 | #[rustc_clean(cfg="bpass6")] | |
| 34 | 34 | #[repr(packed)] |
| 35 | 35 | pub struct LayoutPacked; |
| 36 | 36 | |
| 37 | #[cfg(any(bfail1,bfail4))] | |
| 37 | #[cfg(any(bpass1,bpass4))] | |
| 38 | 38 | struct LayoutC; |
| 39 | 39 | |
| 40 | #[cfg(not(any(bfail1,bfail4)))] | |
| 41 | #[rustc_clean(except="type_of", cfg="bfail2")] | |
| 42 | #[rustc_clean(cfg="bfail3")] | |
| 43 | #[rustc_clean(except="type_of", cfg="bfail5")] | |
| 44 | #[rustc_clean(cfg="bfail6")] | |
| 40 | #[cfg(not(any(bpass1,bpass4)))] | |
| 41 | #[rustc_clean(except="type_of", cfg="bpass2")] | |
| 42 | #[rustc_clean(cfg="bpass3")] | |
| 43 | #[rustc_clean(except="type_of", cfg="bpass5")] | |
| 44 | #[rustc_clean(cfg="bpass6")] | |
| 45 | 45 | #[repr(C)] |
| 46 | 46 | struct LayoutC; |
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | // Tuple Struct Change Field Type ---------------------------------------------- |
| 50 | 50 | |
| 51 | #[cfg(any(bfail1,bfail4))] | |
| 51 | #[cfg(any(bpass1,bpass4))] | |
| 52 | 52 | struct TupleStructFieldType(i32); |
| 53 | 53 | |
| 54 | #[cfg(not(any(bfail1,bfail4)))] | |
| 55 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 56 | #[rustc_clean(cfg="bfail3")] | |
| 57 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 58 | #[rustc_clean(cfg="bfail6")] | |
| 54 | #[cfg(not(any(bpass1,bpass4)))] | |
| 55 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 56 | #[rustc_clean(cfg="bpass3")] | |
| 57 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 58 | #[rustc_clean(cfg="bpass6")] | |
| 59 | 59 | // Note that changing the type of a field does not change the type of the struct or enum, but |
| 60 | 60 | // adding/removing fields or changing a fields name or visibility does. |
| 61 | 61 | struct TupleStructFieldType( |
| ... | ... | @@ -65,14 +65,14 @@ struct TupleStructFieldType( |
| 65 | 65 | |
| 66 | 66 | // Tuple Struct Add Field ------------------------------------------------------ |
| 67 | 67 | |
| 68 | #[cfg(any(bfail1,bfail4))] | |
| 68 | #[cfg(any(bpass1,bpass4))] | |
| 69 | 69 | struct TupleStructAddField(i32); |
| 70 | 70 | |
| 71 | #[cfg(not(any(bfail1,bfail4)))] | |
| 72 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail2")] | |
| 73 | #[rustc_clean(cfg="bfail3")] | |
| 74 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail5")] | |
| 75 | #[rustc_clean(cfg="bfail6")] | |
| 71 | #[cfg(not(any(bpass1,bpass4)))] | |
| 72 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass2")] | |
| 73 | #[rustc_clean(cfg="bpass3")] | |
| 74 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass5")] | |
| 75 | #[rustc_clean(cfg="bpass6")] | |
| 76 | 76 | struct TupleStructAddField( |
| 77 | 77 | i32, |
| 78 | 78 | u32 |
| ... | ... | @@ -81,27 +81,27 @@ struct TupleStructAddField( |
| 81 | 81 | |
| 82 | 82 | // Tuple Struct Field Visibility ----------------------------------------------- |
| 83 | 83 | |
| 84 | #[cfg(any(bfail1,bfail4))] | |
| 84 | #[cfg(any(bpass1,bpass4))] | |
| 85 | 85 | struct TupleStructFieldVisibility( char); |
| 86 | 86 | |
| 87 | #[cfg(not(any(bfail1,bfail4)))] | |
| 88 | #[rustc_clean(cfg="bfail2", except="type_of")] | |
| 89 | #[rustc_clean(cfg="bfail3")] | |
| 90 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 91 | #[rustc_clean(cfg="bfail6")] | |
| 87 | #[cfg(not(any(bpass1,bpass4)))] | |
| 88 | #[rustc_clean(cfg="bpass2", except="type_of")] | |
| 89 | #[rustc_clean(cfg="bpass3")] | |
| 90 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 91 | #[rustc_clean(cfg="bpass6")] | |
| 92 | 92 | struct TupleStructFieldVisibility(pub char); |
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | // Record Struct Field Type ---------------------------------------------------- |
| 96 | 96 | |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | struct RecordStructFieldType { x: f32 } |
| 99 | 99 | |
| 100 | #[cfg(not(any(bfail1,bfail4)))] | |
| 101 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 102 | #[rustc_clean(cfg="bfail3")] | |
| 103 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 104 | #[rustc_clean(cfg="bfail6")] | |
| 100 | #[cfg(not(any(bpass1,bpass4)))] | |
| 101 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 102 | #[rustc_clean(cfg="bpass3")] | |
| 103 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 104 | #[rustc_clean(cfg="bpass6")] | |
| 105 | 105 | // Note that changing the type of a field does not change the type of the struct or enum, but |
| 106 | 106 | // adding/removing fields or changing a fields name or visibility does. |
| 107 | 107 | struct RecordStructFieldType { |
| ... | ... | @@ -111,27 +111,27 @@ struct RecordStructFieldType { |
| 111 | 111 | |
| 112 | 112 | // Record Struct Field Name ---------------------------------------------------- |
| 113 | 113 | |
| 114 | #[cfg(any(bfail1,bfail4))] | |
| 114 | #[cfg(any(bpass1,bpass4))] | |
| 115 | 115 | struct RecordStructFieldName { x: f32 } |
| 116 | 116 | |
| 117 | #[cfg(not(any(bfail1,bfail4)))] | |
| 118 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail2")] | |
| 119 | #[rustc_clean(cfg="bfail3")] | |
| 120 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail5")] | |
| 121 | #[rustc_clean(cfg="bfail6")] | |
| 117 | #[cfg(not(any(bpass1,bpass4)))] | |
| 118 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass2")] | |
| 119 | #[rustc_clean(cfg="bpass3")] | |
| 120 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass5")] | |
| 121 | #[rustc_clean(cfg="bpass6")] | |
| 122 | 122 | struct RecordStructFieldName { y: f32 } |
| 123 | 123 | |
| 124 | 124 | |
| 125 | 125 | // Record Struct Add Field ----------------------------------------------------- |
| 126 | 126 | |
| 127 | #[cfg(any(bfail1,bfail4))] | |
| 127 | #[cfg(any(bpass1,bpass4))] | |
| 128 | 128 | struct RecordStructAddField { x: f32 } |
| 129 | 129 | |
| 130 | #[cfg(not(any(bfail1,bfail4)))] | |
| 131 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail2")] | |
| 132 | #[rustc_clean(cfg="bfail3")] | |
| 133 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail5")] | |
| 134 | #[rustc_clean(cfg="bfail6")] | |
| 130 | #[cfg(not(any(bpass1,bpass4)))] | |
| 131 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass2")] | |
| 132 | #[rustc_clean(cfg="bpass3")] | |
| 133 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass5")] | |
| 134 | #[rustc_clean(cfg="bpass6")] | |
| 135 | 135 | struct RecordStructAddField { |
| 136 | 136 | x: f32, |
| 137 | 137 | y: () } |
| ... | ... | @@ -139,53 +139,53 @@ struct RecordStructAddField { |
| 139 | 139 | |
| 140 | 140 | // Record Struct Field Visibility ---------------------------------------------- |
| 141 | 141 | |
| 142 | #[cfg(any(bfail1,bfail4))] | |
| 142 | #[cfg(any(bpass1,bpass4))] | |
| 143 | 143 | struct RecordStructFieldVisibility { x: f32 } |
| 144 | 144 | |
| 145 | #[cfg(not(any(bfail1,bfail4)))] | |
| 146 | #[rustc_clean(cfg="bfail2", except="type_of")] | |
| 147 | #[rustc_clean(cfg="bfail3")] | |
| 148 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,type_of")] | |
| 149 | #[rustc_clean(cfg="bfail6")] | |
| 145 | #[cfg(not(any(bpass1,bpass4)))] | |
| 146 | #[rustc_clean(cfg="bpass2", except="type_of")] | |
| 147 | #[rustc_clean(cfg="bpass3")] | |
| 148 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,type_of")] | |
| 149 | #[rustc_clean(cfg="bpass6")] | |
| 150 | 150 | struct RecordStructFieldVisibility { pub x: f32 } |
| 151 | 151 | |
| 152 | 152 | |
| 153 | 153 | // Add Lifetime Parameter ------------------------------------------------------ |
| 154 | 154 | |
| 155 | #[cfg(any(bfail1,bfail4))] | |
| 155 | #[cfg(any(bpass1,bpass4))] | |
| 156 | 156 | struct AddLifetimeParameter<'a>(&'a f32, &'a f64); |
| 157 | 157 | |
| 158 | #[cfg(not(any(bfail1,bfail4)))] | |
| 159 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="bfail2")] | |
| 160 | #[rustc_clean(cfg="bfail3")] | |
| 161 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="bfail5")] | |
| 162 | #[rustc_clean(cfg="bfail6")] | |
| 158 | #[cfg(not(any(bpass1,bpass4)))] | |
| 159 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="bpass2")] | |
| 160 | #[rustc_clean(cfg="bpass3")] | |
| 161 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of", cfg="bpass5")] | |
| 162 | #[rustc_clean(cfg="bpass6")] | |
| 163 | 163 | struct AddLifetimeParameter<'a, 'b>(&'a f32, &'b f64); |
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | // Add Lifetime Parameter Bound ------------------------------------------------ |
| 167 | 167 | |
| 168 | #[cfg(any(bfail1,bfail4))] | |
| 168 | #[cfg(any(bpass1,bpass4))] | |
| 169 | 169 | struct AddLifetimeParameterBound<'a, 'b>(&'a f32, &'b f64); |
| 170 | 170 | |
| 171 | #[cfg(not(any(bfail1,bfail4)))] | |
| 172 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 173 | #[rustc_clean(cfg="bfail3")] | |
| 174 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 175 | #[rustc_clean(cfg="bfail6")] | |
| 171 | #[cfg(not(any(bpass1,bpass4)))] | |
| 172 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 173 | #[rustc_clean(cfg="bpass3")] | |
| 174 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 175 | #[rustc_clean(cfg="bpass6")] | |
| 176 | 176 | struct AddLifetimeParameterBound<'a, 'b: 'a>( |
| 177 | 177 | &'a f32, |
| 178 | 178 | &'b f64 |
| 179 | 179 | ); |
| 180 | 180 | |
| 181 | #[cfg(any(bfail1,bfail4))] | |
| 181 | #[cfg(any(bpass1,bpass4))] | |
| 182 | 182 | struct AddLifetimeParameterBoundWhereClause<'a, 'b>(&'a f32, &'b f64); |
| 183 | 183 | |
| 184 | #[cfg(not(any(bfail1,bfail4)))] | |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 186 | #[rustc_clean(cfg="bfail3")] | |
| 187 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 188 | #[rustc_clean(cfg="bfail6")] | |
| 184 | #[cfg(not(any(bpass1,bpass4)))] | |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 186 | #[rustc_clean(cfg="bpass3")] | |
| 187 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 188 | #[rustc_clean(cfg="bpass6")] | |
| 189 | 189 | struct AddLifetimeParameterBoundWhereClause<'a, 'b>( |
| 190 | 190 | &'a f32, |
| 191 | 191 | &'b f64) |
| ... | ... | @@ -194,14 +194,14 @@ struct AddLifetimeParameterBoundWhereClause<'a, 'b>( |
| 194 | 194 | |
| 195 | 195 | // Add Type Parameter ---------------------------------------------------------- |
| 196 | 196 | |
| 197 | #[cfg(any(bfail1,bfail4))] | |
| 197 | #[cfg(any(bpass1,bpass4))] | |
| 198 | 198 | struct AddTypeParameter<T1>(T1, T1); |
| 199 | 199 | |
| 200 | #[cfg(not(any(bfail1,bfail4)))] | |
| 201 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="bfail2")] | |
| 202 | #[rustc_clean(cfg="bfail3")] | |
| 203 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="bfail5")] | |
| 204 | #[rustc_clean(cfg="bfail6")] | |
| 200 | #[cfg(not(any(bpass1,bpass4)))] | |
| 201 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="bpass2")] | |
| 202 | #[rustc_clean(cfg="bpass3")] | |
| 203 | #[rustc_clean(except="opt_hir_owner_nodes,type_of,generics_of,predicates_of", cfg="bpass5")] | |
| 204 | #[rustc_clean(cfg="bpass6")] | |
| 205 | 205 | struct AddTypeParameter<T1, T2>( |
| 206 | 206 | // The field contains the parent's Generics, so it's dirty even though its |
| 207 | 207 | // type hasn't changed. |
| ... | ... | @@ -212,27 +212,27 @@ struct AddTypeParameter<T1, T2>( |
| 212 | 212 | |
| 213 | 213 | // Add Type Parameter Bound ---------------------------------------------------- |
| 214 | 214 | |
| 215 | #[cfg(any(bfail1,bfail4))] | |
| 215 | #[cfg(any(bpass1,bpass4))] | |
| 216 | 216 | struct AddTypeParameterBound<T>(T); |
| 217 | 217 | |
| 218 | #[cfg(not(any(bfail1,bfail4)))] | |
| 219 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 220 | #[rustc_clean(cfg="bfail3")] | |
| 221 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 222 | #[rustc_clean(cfg="bfail6")] | |
| 218 | #[cfg(not(any(bpass1,bpass4)))] | |
| 219 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 220 | #[rustc_clean(cfg="bpass3")] | |
| 221 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 222 | #[rustc_clean(cfg="bpass6")] | |
| 223 | 223 | struct AddTypeParameterBound<T: Send>( |
| 224 | 224 | T |
| 225 | 225 | ); |
| 226 | 226 | |
| 227 | 227 | |
| 228 | #[cfg(any(bfail1,bfail4))] | |
| 228 | #[cfg(any(bpass1,bpass4))] | |
| 229 | 229 | struct AddTypeParameterBoundWhereClause<T>(T); |
| 230 | 230 | |
| 231 | #[cfg(not(any(bfail1,bfail4)))] | |
| 232 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 233 | #[rustc_clean(cfg="bfail3")] | |
| 234 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 235 | #[rustc_clean(cfg="bfail6")] | |
| 231 | #[cfg(not(any(bpass1,bpass4)))] | |
| 232 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 233 | #[rustc_clean(cfg="bpass3")] | |
| 234 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 235 | #[rustc_clean(cfg="bpass6")] | |
| 236 | 236 | struct AddTypeParameterBoundWhereClause<T>( |
| 237 | 237 | T |
| 238 | 238 | ) where T: Sync; |
| ... | ... | @@ -243,23 +243,23 @@ struct AddTypeParameterBoundWhereClause<T>( |
| 243 | 243 | // fingerprint is stable (i.e., that there are no random influences like memory |
| 244 | 244 | // addresses taken into account by the hashing algorithm). |
| 245 | 245 | // Note: there is no #[cfg(...)], so this is ALWAYS compiled |
| 246 | #[rustc_clean(cfg="bfail2")] | |
| 247 | #[rustc_clean(cfg="bfail3")] | |
| 248 | #[rustc_clean(cfg="bfail5")] | |
| 249 | #[rustc_clean(cfg="bfail6")] | |
| 246 | #[rustc_clean(cfg="bpass2")] | |
| 247 | #[rustc_clean(cfg="bpass3")] | |
| 248 | #[rustc_clean(cfg="bpass5")] | |
| 249 | #[rustc_clean(cfg="bpass6")] | |
| 250 | 250 | pub struct EmptyStruct; |
| 251 | 251 | |
| 252 | 252 | |
| 253 | 253 | // Visibility ------------------------------------------------------------------ |
| 254 | 254 | |
| 255 | #[cfg(any(bfail1,bfail4))] | |
| 255 | #[cfg(any(bpass1,bpass4))] | |
| 256 | 256 | struct Visibility; |
| 257 | 257 | |
| 258 | #[cfg(not(any(bfail1,bfail4)))] | |
| 259 | #[rustc_clean(cfg="bfail2")] | |
| 260 | #[rustc_clean(cfg="bfail3")] | |
| 261 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 262 | #[rustc_clean(cfg="bfail6")] | |
| 258 | #[cfg(not(any(bpass1,bpass4)))] | |
| 259 | #[rustc_clean(cfg="bpass2")] | |
| 260 | #[rustc_clean(cfg="bpass3")] | |
| 261 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 262 | #[rustc_clean(cfg="bpass6")] | |
| 263 | 263 | pub struct Visibility; |
| 264 | 264 | |
| 265 | 265 | struct ReferencedType1; |
| ... | ... | @@ -267,15 +267,15 @@ struct ReferencedType2; |
| 267 | 267 | |
| 268 | 268 | // Tuple Struct Change Field Type Indirectly ----------------------------------- |
| 269 | 269 | mod tuple_struct_change_field_type_indirectly { |
| 270 | #[cfg(any(bfail1,bfail4))] | |
| 270 | #[cfg(any(bpass1,bpass4))] | |
| 271 | 271 | use super::ReferencedType1 as FieldType; |
| 272 | #[cfg(not(any(bfail1,bfail4)))] | |
| 272 | #[cfg(not(any(bpass1,bpass4)))] | |
| 273 | 273 | use super::ReferencedType2 as FieldType; |
| 274 | 274 | |
| 275 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 276 | #[rustc_clean(cfg="bfail3")] | |
| 277 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 278 | #[rustc_clean(cfg="bfail6")] | |
| 275 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 276 | #[rustc_clean(cfg="bpass3")] | |
| 277 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 278 | #[rustc_clean(cfg="bpass6")] | |
| 279 | 279 | struct TupleStruct( |
| 280 | 280 | FieldType |
| 281 | 281 | ); |
| ... | ... | @@ -284,15 +284,15 @@ mod tuple_struct_change_field_type_indirectly { |
| 284 | 284 | |
| 285 | 285 | // Record Struct Change Field Type Indirectly ----------------------------------- |
| 286 | 286 | mod record_struct_change_field_type_indirectly { |
| 287 | #[cfg(any(bfail1,bfail4))] | |
| 287 | #[cfg(any(bpass1,bpass4))] | |
| 288 | 288 | use super::ReferencedType1 as FieldType; |
| 289 | #[cfg(not(any(bfail1,bfail4)))] | |
| 289 | #[cfg(not(any(bpass1,bpass4)))] | |
| 290 | 290 | use super::ReferencedType2 as FieldType; |
| 291 | 291 | |
| 292 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 293 | #[rustc_clean(cfg="bfail3")] | |
| 294 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 295 | #[rustc_clean(cfg="bfail6")] | |
| 292 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 293 | #[rustc_clean(cfg="bpass3")] | |
| 294 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 295 | #[rustc_clean(cfg="bpass6")] | |
| 296 | 296 | struct RecordStruct { |
| 297 | 297 | _x: FieldType |
| 298 | 298 | } |
| ... | ... | @@ -306,28 +306,28 @@ trait ReferencedTrait2 {} |
| 306 | 306 | |
| 307 | 307 | // Change Trait Bound Indirectly ----------------------------------------------- |
| 308 | 308 | mod change_trait_bound_indirectly { |
| 309 | #[cfg(any(bfail1,bfail4))] | |
| 309 | #[cfg(any(bpass1,bpass4))] | |
| 310 | 310 | use super::ReferencedTrait1 as Trait; |
| 311 | #[cfg(not(any(bfail1,bfail4)))] | |
| 311 | #[cfg(not(any(bpass1,bpass4)))] | |
| 312 | 312 | use super::ReferencedTrait2 as Trait; |
| 313 | 313 | |
| 314 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 315 | #[rustc_clean(cfg="bfail3")] | |
| 316 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 317 | #[rustc_clean(cfg="bfail6")] | |
| 314 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 315 | #[rustc_clean(cfg="bpass3")] | |
| 316 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 317 | #[rustc_clean(cfg="bpass6")] | |
| 318 | 318 | struct Struct<T: Trait>(T); |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | // Change Trait Bound Indirectly In Where Clause ------------------------------- |
| 322 | 322 | mod change_trait_bound_indirectly_in_where_clause { |
| 323 | #[cfg(any(bfail1,bfail4))] | |
| 323 | #[cfg(any(bpass1,bpass4))] | |
| 324 | 324 | use super::ReferencedTrait1 as Trait; |
| 325 | #[cfg(not(any(bfail1,bfail4)))] | |
| 325 | #[cfg(not(any(bpass1,bpass4)))] | |
| 326 | 326 | use super::ReferencedTrait2 as Trait; |
| 327 | 327 | |
| 328 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 329 | #[rustc_clean(cfg="bfail3")] | |
| 330 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 331 | #[rustc_clean(cfg="bfail6")] | |
| 328 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 329 | #[rustc_clean(cfg="bpass3")] | |
| 330 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 331 | #[rustc_clean(cfg="bpass6")] | |
| 332 | 332 | struct Struct<T>(T) where T : Trait; |
| 333 | 333 | } |
tests/incremental/hashes/trait_defs.rs+561-561| ... | ... | @@ -10,13 +10,13 @@ |
| 10 | 10 | // results in a change of the ICH for the trait's metadata, and that it stays |
| 11 | 11 | // the same between rev2 and rev3. |
| 12 | 12 | |
| 13 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 14 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 13 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 15 | 14 | //@ compile-flags: -Z query-dep-graph -O |
| 16 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 18 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 15 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 16 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 17 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 19 | 18 | //@ ignore-backends: gcc |
| 19 | // FIXME(#62277): could be check-pass? | |
| 20 | 20 | |
| 21 | 21 | #![allow(warnings)] |
| 22 | 22 | #![feature(rustc_attrs)] |
| ... | ... | @@ -25,41 +25,41 @@ |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | // Change trait visibility |
| 28 | #[cfg(any(bfail1,bfail4))] | |
| 28 | #[cfg(any(bpass1,bpass4))] | |
| 29 | 29 | trait TraitVisibility { } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,predicates_of")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,predicates_of")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub trait TraitVisibility { } |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | |
| 40 | 40 | // Change trait unsafety |
| 41 | #[cfg(any(bfail1,bfail4))] | |
| 41 | #[cfg(any(bpass1,bpass4))] | |
| 42 | 42 | trait TraitUnsafety { } |
| 43 | 43 | |
| 44 | #[cfg(not(any(bfail1,bfail4)))] | |
| 45 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 46 | #[rustc_clean(cfg="bfail3")] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 48 | #[rustc_clean(cfg="bfail6")] | |
| 44 | #[cfg(not(any(bpass1,bpass4)))] | |
| 45 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 46 | #[rustc_clean(cfg="bpass3")] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 48 | #[rustc_clean(cfg="bpass6")] | |
| 49 | 49 | unsafe trait TraitUnsafety { } |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | // Add method |
| 54 | #[cfg(any(bfail1,bfail4))] | |
| 54 | #[cfg(any(bpass1,bpass4))] | |
| 55 | 55 | trait TraitAddMethod { |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | #[cfg(not(any(bfail1,bfail4)))] | |
| 59 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 60 | #[rustc_clean(cfg="bfail3")] | |
| 61 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bfail5")] | |
| 62 | #[rustc_clean(cfg="bfail6")] | |
| 58 | #[cfg(not(any(bpass1,bpass4)))] | |
| 59 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 60 | #[rustc_clean(cfg="bpass3")] | |
| 61 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bpass5")] | |
| 62 | #[rustc_clean(cfg="bpass6")] | |
| 63 | 63 | pub trait TraitAddMethod { |
| 64 | 64 | fn method(); |
| 65 | 65 | } |
| ... | ... | @@ -67,16 +67,16 @@ pub trait TraitAddMethod { |
| 67 | 67 | |
| 68 | 68 | |
| 69 | 69 | // Change name of method |
| 70 | #[cfg(any(bfail1,bfail4))] | |
| 70 | #[cfg(any(bpass1,bpass4))] | |
| 71 | 71 | trait TraitChangeMethodName { |
| 72 | 72 | fn method(); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | #[cfg(not(any(bfail1,bfail4)))] | |
| 76 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 77 | #[rustc_clean(cfg="bfail3")] | |
| 78 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bfail5")] | |
| 79 | #[rustc_clean(cfg="bfail6")] | |
| 75 | #[cfg(not(any(bpass1,bpass4)))] | |
| 76 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 77 | #[rustc_clean(cfg="bpass3")] | |
| 78 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bpass5")] | |
| 79 | #[rustc_clean(cfg="bpass6")] | |
| 80 | 80 | trait TraitChangeMethodName { |
| 81 | 81 | fn methodChanged(); |
| 82 | 82 | } |
| ... | ... | @@ -84,7 +84,7 @@ trait TraitChangeMethodName { |
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | // Add return type to method |
| 87 | #[cfg(any(bfail1,bfail4))] | |
| 87 | #[cfg(any(bpass1,bpass4))] | |
| 88 | 88 | trait TraitAddReturnType { |
| 89 | 89 | //--------------------------------------------------------------- |
| 90 | 90 | //-------------------------- |
| ... | ... | @@ -93,23 +93,23 @@ trait TraitAddReturnType { |
| 93 | 93 | fn method() ; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | #[cfg(not(any(bfail1,bfail4)))] | |
| 97 | #[rustc_clean(cfg="bfail2")] | |
| 98 | #[rustc_clean(cfg="bfail3")] | |
| 99 | #[rustc_clean(cfg="bfail5")] | |
| 100 | #[rustc_clean(cfg="bfail6")] | |
| 96 | #[cfg(not(any(bpass1,bpass4)))] | |
| 97 | #[rustc_clean(cfg="bpass2")] | |
| 98 | #[rustc_clean(cfg="bpass3")] | |
| 99 | #[rustc_clean(cfg="bpass5")] | |
| 100 | #[rustc_clean(cfg="bpass6")] | |
| 101 | 101 | trait TraitAddReturnType { |
| 102 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 103 | #[rustc_clean(cfg="bfail3")] | |
| 104 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 105 | #[rustc_clean(cfg="bfail6")] | |
| 102 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 103 | #[rustc_clean(cfg="bpass3")] | |
| 104 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 105 | #[rustc_clean(cfg="bpass6")] | |
| 106 | 106 | fn method() -> u32; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | // Change return type of method |
| 112 | #[cfg(any(bfail1,bfail4))] | |
| 112 | #[cfg(any(bpass1,bpass4))] | |
| 113 | 113 | trait TraitChangeReturnType { |
| 114 | 114 | // -------------------------------------------------------------- |
| 115 | 115 | // ------------------------- |
| ... | ... | @@ -118,23 +118,23 @@ trait TraitChangeReturnType { |
| 118 | 118 | fn method() -> u32; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | #[cfg(not(any(bfail1,bfail4)))] | |
| 122 | #[rustc_clean(cfg="bfail2")] | |
| 123 | #[rustc_clean(cfg="bfail3")] | |
| 124 | #[rustc_clean(cfg="bfail5")] | |
| 125 | #[rustc_clean(cfg="bfail6")] | |
| 121 | #[cfg(not(any(bpass1,bpass4)))] | |
| 122 | #[rustc_clean(cfg="bpass2")] | |
| 123 | #[rustc_clean(cfg="bpass3")] | |
| 124 | #[rustc_clean(cfg="bpass5")] | |
| 125 | #[rustc_clean(cfg="bpass6")] | |
| 126 | 126 | trait TraitChangeReturnType { |
| 127 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 128 | #[rustc_clean(cfg="bfail3")] | |
| 129 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 130 | #[rustc_clean(cfg="bfail6")] | |
| 127 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 128 | #[rustc_clean(cfg="bpass3")] | |
| 129 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 130 | #[rustc_clean(cfg="bpass6")] | |
| 131 | 131 | fn method() -> u64; |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | |
| 135 | 135 | |
| 136 | 136 | // Add parameter to method |
| 137 | #[cfg(any(bfail1,bfail4))] | |
| 137 | #[cfg(any(bpass1,bpass4))] | |
| 138 | 138 | trait TraitAddParameterToMethod { |
| 139 | 139 | // -------------------------------------------------------------- |
| 140 | 140 | // ------------------------- |
| ... | ... | @@ -143,23 +143,23 @@ trait TraitAddParameterToMethod { |
| 143 | 143 | fn method( ); |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | #[cfg(not(any(bfail1,bfail4)))] | |
| 147 | #[rustc_clean(cfg="bfail2")] | |
| 148 | #[rustc_clean(cfg="bfail3")] | |
| 149 | #[rustc_clean(cfg="bfail5")] | |
| 150 | #[rustc_clean(cfg="bfail6")] | |
| 146 | #[cfg(not(any(bpass1,bpass4)))] | |
| 147 | #[rustc_clean(cfg="bpass2")] | |
| 148 | #[rustc_clean(cfg="bpass3")] | |
| 149 | #[rustc_clean(cfg="bpass5")] | |
| 150 | #[rustc_clean(cfg="bpass6")] | |
| 151 | 151 | trait TraitAddParameterToMethod { |
| 152 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 153 | #[rustc_clean(cfg="bfail3")] | |
| 154 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 155 | #[rustc_clean(cfg="bfail6")] | |
| 152 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 153 | #[rustc_clean(cfg="bpass3")] | |
| 154 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 155 | #[rustc_clean(cfg="bpass6")] | |
| 156 | 156 | fn method(a: u32); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | |
| 160 | 160 | |
| 161 | 161 | // Change name of method parameter |
| 162 | #[cfg(any(bfail1,bfail4))] | |
| 162 | #[cfg(any(bpass1,bpass4))] | |
| 163 | 163 | trait TraitChangeMethodParameterName { |
| 164 | 164 | //------------------------------------------------------ |
| 165 | 165 | //-------------------------------------------------------- |
| ... | ... | @@ -175,30 +175,30 @@ trait TraitChangeMethodParameterName { |
| 175 | 175 | fn with_default(x: i32) {} |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | #[cfg(not(any(bfail1,bfail4)))] | |
| 179 | #[rustc_clean(cfg="bfail2")] | |
| 180 | #[rustc_clean(cfg="bfail3")] | |
| 181 | #[rustc_clean(cfg="bfail5")] | |
| 182 | #[rustc_clean(cfg="bfail6")] | |
| 178 | #[cfg(not(any(bpass1,bpass4)))] | |
| 179 | #[rustc_clean(cfg="bpass2")] | |
| 180 | #[rustc_clean(cfg="bpass3")] | |
| 181 | #[rustc_clean(cfg="bpass5")] | |
| 182 | #[rustc_clean(cfg="bpass6")] | |
| 183 | 183 | trait TraitChangeMethodParameterName { |
| 184 | 184 | // FIXME(#38501) This should preferably always be clean. |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 186 | #[rustc_clean(cfg="bfail3")] | |
| 187 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 188 | #[rustc_clean(cfg="bfail6")] | |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 186 | #[rustc_clean(cfg="bpass3")] | |
| 187 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 188 | #[rustc_clean(cfg="bpass6")] | |
| 189 | 189 | fn method(b: u32); |
| 190 | 190 | |
| 191 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 192 | #[rustc_clean(cfg="bfail3")] | |
| 193 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 194 | #[rustc_clean(cfg="bfail6")] | |
| 191 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 192 | #[rustc_clean(cfg="bpass3")] | |
| 193 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 194 | #[rustc_clean(cfg="bpass6")] | |
| 195 | 195 | fn with_default(y: i32) {} |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | |
| 199 | 199 | |
| 200 | 200 | // Change type of method parameter (i32 => i64) |
| 201 | #[cfg(any(bfail1,bfail4))] | |
| 201 | #[cfg(any(bpass1,bpass4))] | |
| 202 | 202 | trait TraitChangeMethodParameterType { |
| 203 | 203 | // -------------------------------------------------------------- |
| 204 | 204 | // ------------------------- |
| ... | ... | @@ -207,23 +207,23 @@ trait TraitChangeMethodParameterType { |
| 207 | 207 | fn method(a: i32); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | #[cfg(not(any(bfail1,bfail4)))] | |
| 211 | #[rustc_clean(cfg="bfail2")] | |
| 212 | #[rustc_clean(cfg="bfail3")] | |
| 213 | #[rustc_clean(cfg="bfail5")] | |
| 214 | #[rustc_clean(cfg="bfail6")] | |
| 210 | #[cfg(not(any(bpass1,bpass4)))] | |
| 211 | #[rustc_clean(cfg="bpass2")] | |
| 212 | #[rustc_clean(cfg="bpass3")] | |
| 213 | #[rustc_clean(cfg="bpass5")] | |
| 214 | #[rustc_clean(cfg="bpass6")] | |
| 215 | 215 | trait TraitChangeMethodParameterType { |
| 216 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 217 | #[rustc_clean(cfg="bfail3")] | |
| 218 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 219 | #[rustc_clean(cfg="bfail6")] | |
| 216 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 217 | #[rustc_clean(cfg="bpass3")] | |
| 218 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 219 | #[rustc_clean(cfg="bpass6")] | |
| 220 | 220 | fn method(a: i64); |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | |
| 224 | 224 | |
| 225 | 225 | // Change type of method parameter (&i32 => &mut i32) |
| 226 | #[cfg(any(bfail1,bfail4))] | |
| 226 | #[cfg(any(bpass1,bpass4))] | |
| 227 | 227 | trait TraitChangeMethodParameterTypeRef { |
| 228 | 228 | // -------------------------------------------------------------- |
| 229 | 229 | // ------------------------- |
| ... | ... | @@ -232,23 +232,23 @@ trait TraitChangeMethodParameterTypeRef { |
| 232 | 232 | fn method(a: & i32); |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | #[cfg(not(any(bfail1,bfail4)))] | |
| 236 | #[rustc_clean(cfg="bfail2")] | |
| 237 | #[rustc_clean(cfg="bfail3")] | |
| 238 | #[rustc_clean(cfg="bfail5")] | |
| 239 | #[rustc_clean(cfg="bfail6")] | |
| 235 | #[cfg(not(any(bpass1,bpass4)))] | |
| 236 | #[rustc_clean(cfg="bpass2")] | |
| 237 | #[rustc_clean(cfg="bpass3")] | |
| 238 | #[rustc_clean(cfg="bpass5")] | |
| 239 | #[rustc_clean(cfg="bpass6")] | |
| 240 | 240 | trait TraitChangeMethodParameterTypeRef { |
| 241 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 242 | #[rustc_clean(cfg="bfail3")] | |
| 243 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 244 | #[rustc_clean(cfg="bfail6")] | |
| 241 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 242 | #[rustc_clean(cfg="bpass3")] | |
| 243 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 244 | #[rustc_clean(cfg="bpass6")] | |
| 245 | 245 | fn method(a: &mut i32); |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | |
| 249 | 249 | |
| 250 | 250 | // Change order of method parameters |
| 251 | #[cfg(any(bfail1,bfail4))] | |
| 251 | #[cfg(any(bpass1,bpass4))] | |
| 252 | 252 | trait TraitChangeMethodParametersOrder { |
| 253 | 253 | // -------------------------------------------------------------- |
| 254 | 254 | // ------------------------- |
| ... | ... | @@ -257,23 +257,23 @@ trait TraitChangeMethodParametersOrder { |
| 257 | 257 | fn method(a: i32, b: i64); |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | #[cfg(not(any(bfail1,bfail4)))] | |
| 261 | #[rustc_clean(cfg="bfail2")] | |
| 262 | #[rustc_clean(cfg="bfail3")] | |
| 263 | #[rustc_clean(cfg="bfail5")] | |
| 264 | #[rustc_clean(cfg="bfail6")] | |
| 260 | #[cfg(not(any(bpass1,bpass4)))] | |
| 261 | #[rustc_clean(cfg="bpass2")] | |
| 262 | #[rustc_clean(cfg="bpass3")] | |
| 263 | #[rustc_clean(cfg="bpass5")] | |
| 264 | #[rustc_clean(cfg="bpass6")] | |
| 265 | 265 | trait TraitChangeMethodParametersOrder { |
| 266 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 267 | #[rustc_clean(cfg="bfail3")] | |
| 268 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 269 | #[rustc_clean(cfg="bfail6")] | |
| 266 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 267 | #[rustc_clean(cfg="bpass3")] | |
| 268 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 269 | #[rustc_clean(cfg="bpass6")] | |
| 270 | 270 | fn method(b: i64, a: i32); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | |
| 274 | 274 | |
| 275 | 275 | // Add default implementation to method |
| 276 | #[cfg(any(bfail1,bfail4))] | |
| 276 | #[cfg(any(bpass1,bpass4))] | |
| 277 | 277 | trait TraitAddMethodAutoImplementation { |
| 278 | 278 | // ------------------------------------------------------- |
| 279 | 279 | // ------------------------- |
| ... | ... | @@ -282,33 +282,33 @@ trait TraitAddMethodAutoImplementation { |
| 282 | 282 | fn method() ; |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | #[cfg(not(any(bfail1,bfail4)))] | |
| 286 | #[rustc_clean(cfg="bfail2")] | |
| 287 | #[rustc_clean(cfg="bfail3")] | |
| 288 | #[rustc_clean(cfg="bfail5")] | |
| 289 | #[rustc_clean(cfg="bfail6")] | |
| 285 | #[cfg(not(any(bpass1,bpass4)))] | |
| 286 | #[rustc_clean(cfg="bpass2")] | |
| 287 | #[rustc_clean(cfg="bpass3")] | |
| 288 | #[rustc_clean(cfg="bpass5")] | |
| 289 | #[rustc_clean(cfg="bpass6")] | |
| 290 | 290 | trait TraitAddMethodAutoImplementation { |
| 291 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 292 | #[rustc_clean(cfg="bfail3")] | |
| 293 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 294 | #[rustc_clean(cfg="bfail6")] | |
| 291 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 292 | #[rustc_clean(cfg="bpass3")] | |
| 293 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 294 | #[rustc_clean(cfg="bpass6")] | |
| 295 | 295 | fn method() {} |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | |
| 299 | 299 | |
| 300 | 300 | // Change order of methods |
| 301 | #[cfg(any(bfail1,bfail4))] | |
| 301 | #[cfg(any(bpass1,bpass4))] | |
| 302 | 302 | trait TraitChangeOrderOfMethods { |
| 303 | 303 | fn method0(); |
| 304 | 304 | fn method1(); |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | #[cfg(not(any(bfail1,bfail4)))] | |
| 308 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 309 | #[rustc_clean(cfg="bfail3")] | |
| 310 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 311 | #[rustc_clean(cfg="bfail6")] | |
| 307 | #[cfg(not(any(bpass1,bpass4)))] | |
| 308 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 309 | #[rustc_clean(cfg="bpass3")] | |
| 310 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 311 | #[rustc_clean(cfg="bpass6")] | |
| 312 | 312 | trait TraitChangeOrderOfMethods { |
| 313 | 313 | fn method1(); |
| 314 | 314 | fn method0(); |
| ... | ... | @@ -317,7 +317,7 @@ trait TraitChangeOrderOfMethods { |
| 317 | 317 | |
| 318 | 318 | |
| 319 | 319 | // Change mode of self parameter |
| 320 | #[cfg(any(bfail1,bfail4))] | |
| 320 | #[cfg(any(bpass1,bpass4))] | |
| 321 | 321 | trait TraitChangeModeSelfRefToMut { |
| 322 | 322 | // -------------------------------------------------------------- |
| 323 | 323 | // ------------------------- |
| ... | ... | @@ -326,22 +326,22 @@ trait TraitChangeModeSelfRefToMut { |
| 326 | 326 | fn method(& self); |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | #[cfg(not(any(bfail1,bfail4)))] | |
| 330 | #[rustc_clean(cfg="bfail2")] | |
| 331 | #[rustc_clean(cfg="bfail3")] | |
| 332 | #[rustc_clean(cfg="bfail5")] | |
| 333 | #[rustc_clean(cfg="bfail6")] | |
| 329 | #[cfg(not(any(bpass1,bpass4)))] | |
| 330 | #[rustc_clean(cfg="bpass2")] | |
| 331 | #[rustc_clean(cfg="bpass3")] | |
| 332 | #[rustc_clean(cfg="bpass5")] | |
| 333 | #[rustc_clean(cfg="bpass6")] | |
| 334 | 334 | trait TraitChangeModeSelfRefToMut { |
| 335 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 336 | #[rustc_clean(cfg="bfail3")] | |
| 337 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 338 | #[rustc_clean(cfg="bfail6")] | |
| 335 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 336 | #[rustc_clean(cfg="bpass3")] | |
| 337 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 338 | #[rustc_clean(cfg="bpass6")] | |
| 339 | 339 | fn method(&mut self); |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | |
| 343 | 343 | |
| 344 | #[cfg(any(bfail1,bfail4))] | |
| 344 | #[cfg(any(bpass1,bpass4))] | |
| 345 | 345 | trait TraitChangeModeSelfOwnToMut: Sized { |
| 346 | 346 | // ---------------------------------------------------------------------------- |
| 347 | 347 | // ------------------------- |
| ... | ... | @@ -350,22 +350,22 @@ trait TraitChangeModeSelfOwnToMut: Sized { |
| 350 | 350 | fn method( self) {} |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | #[cfg(not(any(bfail1,bfail4)))] | |
| 354 | #[rustc_clean(cfg="bfail2")] | |
| 355 | #[rustc_clean(cfg="bfail3")] | |
| 356 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 357 | #[rustc_clean(cfg="bfail6")] | |
| 353 | #[cfg(not(any(bpass1,bpass4)))] | |
| 354 | #[rustc_clean(cfg="bpass2")] | |
| 355 | #[rustc_clean(cfg="bpass3")] | |
| 356 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 357 | #[rustc_clean(cfg="bpass6")] | |
| 358 | 358 | trait TraitChangeModeSelfOwnToMut: Sized { |
| 359 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bfail2")] | |
| 360 | #[rustc_clean(cfg="bfail3")] | |
| 361 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bfail5")] | |
| 362 | #[rustc_clean(cfg="bfail6")] | |
| 359 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bpass2")] | |
| 360 | #[rustc_clean(cfg="bpass3")] | |
| 361 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bpass5")] | |
| 362 | #[rustc_clean(cfg="bpass6")] | |
| 363 | 363 | fn method(mut self) {} |
| 364 | 364 | } |
| 365 | 365 | |
| 366 | 366 | |
| 367 | 367 | |
| 368 | #[cfg(any(bfail1,bfail4))] | |
| 368 | #[cfg(any(bpass1,bpass4))] | |
| 369 | 369 | trait TraitChangeModeSelfOwnToRef { |
| 370 | 370 | // -------------------------------------------------------------------------- |
| 371 | 371 | // ------------------------- |
| ... | ... | @@ -374,23 +374,23 @@ trait TraitChangeModeSelfOwnToRef { |
| 374 | 374 | fn method( self); |
| 375 | 375 | } |
| 376 | 376 | |
| 377 | #[cfg(not(any(bfail1,bfail4)))] | |
| 378 | #[rustc_clean(cfg="bfail2")] | |
| 379 | #[rustc_clean(cfg="bfail3")] | |
| 380 | #[rustc_clean(cfg="bfail5")] | |
| 381 | #[rustc_clean(cfg="bfail6")] | |
| 377 | #[cfg(not(any(bpass1,bpass4)))] | |
| 378 | #[rustc_clean(cfg="bpass2")] | |
| 379 | #[rustc_clean(cfg="bpass3")] | |
| 380 | #[rustc_clean(cfg="bpass5")] | |
| 381 | #[rustc_clean(cfg="bpass6")] | |
| 382 | 382 | trait TraitChangeModeSelfOwnToRef { |
| 383 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bfail2")] | |
| 384 | #[rustc_clean(cfg="bfail3")] | |
| 385 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bfail5")] | |
| 386 | #[rustc_clean(cfg="bfail6")] | |
| 383 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bpass2")] | |
| 384 | #[rustc_clean(cfg="bpass3")] | |
| 385 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bpass5")] | |
| 386 | #[rustc_clean(cfg="bpass6")] | |
| 387 | 387 | fn method(&self); |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | |
| 391 | 391 | |
| 392 | 392 | // Add unsafe modifier to method |
| 393 | #[cfg(any(bfail1,bfail4))] | |
| 393 | #[cfg(any(bpass1,bpass4))] | |
| 394 | 394 | trait TraitAddUnsafeModifier { |
| 395 | 395 | // -------------------------------------------------------------- |
| 396 | 396 | // ------------------------- |
| ... | ... | @@ -399,23 +399,23 @@ trait TraitAddUnsafeModifier { |
| 399 | 399 | fn method(); |
| 400 | 400 | } |
| 401 | 401 | |
| 402 | #[cfg(not(any(bfail1,bfail4)))] | |
| 403 | #[rustc_clean(cfg="bfail2")] | |
| 404 | #[rustc_clean(cfg="bfail3")] | |
| 405 | #[rustc_clean(cfg="bfail5")] | |
| 406 | #[rustc_clean(cfg="bfail6")] | |
| 402 | #[cfg(not(any(bpass1,bpass4)))] | |
| 403 | #[rustc_clean(cfg="bpass2")] | |
| 404 | #[rustc_clean(cfg="bpass3")] | |
| 405 | #[rustc_clean(cfg="bpass5")] | |
| 406 | #[rustc_clean(cfg="bpass6")] | |
| 407 | 407 | trait TraitAddUnsafeModifier { |
| 408 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 409 | #[rustc_clean(cfg="bfail3")] | |
| 410 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 411 | #[rustc_clean(cfg="bfail6")] | |
| 408 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 409 | #[rustc_clean(cfg="bpass3")] | |
| 410 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 411 | #[rustc_clean(cfg="bpass6")] | |
| 412 | 412 | unsafe fn method(); |
| 413 | 413 | } |
| 414 | 414 | |
| 415 | 415 | |
| 416 | 416 | |
| 417 | 417 | // Add extern modifier to method |
| 418 | #[cfg(any(bfail1,bfail4))] | |
| 418 | #[cfg(any(bpass1,bpass4))] | |
| 419 | 419 | trait TraitAddExternModifier { |
| 420 | 420 | // -------------------------------------------------------------- |
| 421 | 421 | // ------------------------- |
| ... | ... | @@ -424,23 +424,23 @@ trait TraitAddExternModifier { |
| 424 | 424 | fn method(); |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | #[cfg(not(any(bfail1,bfail4)))] | |
| 428 | #[rustc_clean(cfg="bfail2")] | |
| 429 | #[rustc_clean(cfg="bfail3")] | |
| 430 | #[rustc_clean(cfg="bfail5")] | |
| 431 | #[rustc_clean(cfg="bfail6")] | |
| 427 | #[cfg(not(any(bpass1,bpass4)))] | |
| 428 | #[rustc_clean(cfg="bpass2")] | |
| 429 | #[rustc_clean(cfg="bpass3")] | |
| 430 | #[rustc_clean(cfg="bpass5")] | |
| 431 | #[rustc_clean(cfg="bpass6")] | |
| 432 | 432 | trait TraitAddExternModifier { |
| 433 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 434 | #[rustc_clean(cfg="bfail3")] | |
| 435 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 436 | #[rustc_clean(cfg="bfail6")] | |
| 433 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 434 | #[rustc_clean(cfg="bpass3")] | |
| 435 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 436 | #[rustc_clean(cfg="bpass6")] | |
| 437 | 437 | extern "C" fn method(); |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | 440 | |
| 441 | 441 | |
| 442 | 442 | // Change extern "C" to extern "stdcall" |
| 443 | #[cfg(any(bfail1,bfail4))] | |
| 443 | #[cfg(any(bpass1,bpass4))] | |
| 444 | 444 | trait TraitChangeExternCToExternSystem { |
| 445 | 445 | // -------------------------------------------------------------- |
| 446 | 446 | // ------------------------- |
| ... | ... | @@ -449,23 +449,23 @@ trait TraitChangeExternCToExternSystem { |
| 449 | 449 | extern "C" fn method(); |
| 450 | 450 | } |
| 451 | 451 | |
| 452 | #[cfg(not(any(bfail1,bfail4)))] | |
| 453 | #[rustc_clean(cfg="bfail2")] | |
| 454 | #[rustc_clean(cfg="bfail3")] | |
| 455 | #[rustc_clean(cfg="bfail5")] | |
| 456 | #[rustc_clean(cfg="bfail6")] | |
| 452 | #[cfg(not(any(bpass1,bpass4)))] | |
| 453 | #[rustc_clean(cfg="bpass2")] | |
| 454 | #[rustc_clean(cfg="bpass3")] | |
| 455 | #[rustc_clean(cfg="bpass5")] | |
| 456 | #[rustc_clean(cfg="bpass6")] | |
| 457 | 457 | trait TraitChangeExternCToRustIntrinsic { |
| 458 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 459 | #[rustc_clean(cfg="bfail3")] | |
| 460 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 461 | #[rustc_clean(cfg="bfail6")] | |
| 458 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 459 | #[rustc_clean(cfg="bpass3")] | |
| 460 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 461 | #[rustc_clean(cfg="bpass6")] | |
| 462 | 462 | extern "system" fn method(); |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | |
| 466 | 466 | |
| 467 | 467 | // Add type parameter to method |
| 468 | #[cfg(any(bfail1,bfail4))] | |
| 468 | #[cfg(any(bpass1,bpass4))] | |
| 469 | 469 | trait TraitAddTypeParameterToMethod { |
| 470 | 470 | // -------------------------------------------------------------------------- |
| 471 | 471 | // --------------- |
| ... | ... | @@ -476,25 +476,25 @@ trait TraitAddTypeParameterToMethod { |
| 476 | 476 | fn method (); |
| 477 | 477 | } |
| 478 | 478 | |
| 479 | #[cfg(not(any(bfail1,bfail4)))] | |
| 480 | #[rustc_clean(cfg="bfail2")] | |
| 481 | #[rustc_clean(cfg="bfail3")] | |
| 482 | #[rustc_clean(cfg="bfail5")] | |
| 483 | #[rustc_clean(cfg="bfail6")] | |
| 479 | #[cfg(not(any(bpass1,bpass4)))] | |
| 480 | #[rustc_clean(cfg="bpass2")] | |
| 481 | #[rustc_clean(cfg="bpass3")] | |
| 482 | #[rustc_clean(cfg="bpass5")] | |
| 483 | #[rustc_clean(cfg="bpass6")] | |
| 484 | 484 | trait TraitAddTypeParameterToMethod { |
| 485 | 485 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of,type_of", |
| 486 | cfg="bfail2")] | |
| 487 | #[rustc_clean(cfg="bfail3")] | |
| 486 | cfg="bpass2")] | |
| 487 | #[rustc_clean(cfg="bpass3")] | |
| 488 | 488 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of,type_of", |
| 489 | cfg="bfail5")] | |
| 490 | #[rustc_clean(cfg="bfail6")] | |
| 489 | cfg="bpass5")] | |
| 490 | #[rustc_clean(cfg="bpass6")] | |
| 491 | 491 | fn method<T>(); |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | |
| 495 | 495 | |
| 496 | 496 | // Add lifetime parameter to method |
| 497 | #[cfg(any(bfail1,bfail4))] | |
| 497 | #[cfg(any(bpass1,bpass4))] | |
| 498 | 498 | trait TraitAddLifetimeParameterToMethod { |
| 499 | 499 | // -------------------------------------------------------------------------- |
| 500 | 500 | // ------------------------- |
| ... | ... | @@ -503,16 +503,16 @@ trait TraitAddLifetimeParameterToMethod { |
| 503 | 503 | fn method (); |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | #[cfg(not(any(bfail1,bfail4)))] | |
| 507 | #[rustc_clean(cfg="bfail2")] | |
| 508 | #[rustc_clean(cfg="bfail3")] | |
| 509 | #[rustc_clean(cfg="bfail5")] | |
| 510 | #[rustc_clean(cfg="bfail6")] | |
| 506 | #[cfg(not(any(bpass1,bpass4)))] | |
| 507 | #[rustc_clean(cfg="bpass2")] | |
| 508 | #[rustc_clean(cfg="bpass3")] | |
| 509 | #[rustc_clean(cfg="bpass5")] | |
| 510 | #[rustc_clean(cfg="bpass6")] | |
| 511 | 511 | trait TraitAddLifetimeParameterToMethod { |
| 512 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bfail2")] | |
| 513 | #[rustc_clean(cfg="bfail3")] | |
| 514 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bfail5")] | |
| 515 | #[rustc_clean(cfg="bfail6")] | |
| 512 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bpass2")] | |
| 513 | #[rustc_clean(cfg="bpass3")] | |
| 514 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,generics_of", cfg="bpass5")] | |
| 515 | #[rustc_clean(cfg="bpass6")] | |
| 516 | 516 | fn method<'a>(); |
| 517 | 517 | } |
| 518 | 518 | |
| ... | ... | @@ -523,7 +523,7 @@ trait ReferencedTrait0 { } |
| 523 | 523 | trait ReferencedTrait1 { } |
| 524 | 524 | |
| 525 | 525 | // Add trait bound to method type parameter |
| 526 | #[cfg(any(bfail1,bfail4))] | |
| 526 | #[cfg(any(bpass1,bpass4))] | |
| 527 | 527 | trait TraitAddTraitBoundToMethodTypeParameter { |
| 528 | 528 | // --------------------------------------------------------------------- |
| 529 | 529 | // ------------------------- |
| ... | ... | @@ -532,23 +532,23 @@ trait TraitAddTraitBoundToMethodTypeParameter { |
| 532 | 532 | fn method<T >(); |
| 533 | 533 | } |
| 534 | 534 | |
| 535 | #[cfg(not(any(bfail1,bfail4)))] | |
| 536 | #[rustc_clean(cfg="bfail2")] | |
| 537 | #[rustc_clean(cfg="bfail3")] | |
| 538 | #[rustc_clean(cfg="bfail5")] | |
| 539 | #[rustc_clean(cfg="bfail6")] | |
| 535 | #[cfg(not(any(bpass1,bpass4)))] | |
| 536 | #[rustc_clean(cfg="bpass2")] | |
| 537 | #[rustc_clean(cfg="bpass3")] | |
| 538 | #[rustc_clean(cfg="bpass5")] | |
| 539 | #[rustc_clean(cfg="bpass6")] | |
| 540 | 540 | trait TraitAddTraitBoundToMethodTypeParameter { |
| 541 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 542 | #[rustc_clean(cfg="bfail3")] | |
| 543 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 544 | #[rustc_clean(cfg="bfail6")] | |
| 541 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 542 | #[rustc_clean(cfg="bpass3")] | |
| 543 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 544 | #[rustc_clean(cfg="bpass6")] | |
| 545 | 545 | fn method<T: ReferencedTrait0>(); |
| 546 | 546 | } |
| 547 | 547 | |
| 548 | 548 | |
| 549 | 549 | |
| 550 | 550 | // Add builtin bound to method type parameter |
| 551 | #[cfg(any(bfail1,bfail4))] | |
| 551 | #[cfg(any(bpass1,bpass4))] | |
| 552 | 552 | trait TraitAddBuiltinBoundToMethodTypeParameter { |
| 553 | 553 | // --------------------------------------------------------------------- |
| 554 | 554 | // ------------------------- |
| ... | ... | @@ -557,23 +557,23 @@ trait TraitAddBuiltinBoundToMethodTypeParameter { |
| 557 | 557 | fn method<T >(); |
| 558 | 558 | } |
| 559 | 559 | |
| 560 | #[cfg(not(any(bfail1,bfail4)))] | |
| 561 | #[rustc_clean(cfg="bfail2")] | |
| 562 | #[rustc_clean(cfg="bfail3")] | |
| 563 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 564 | #[rustc_clean(cfg="bfail6")] | |
| 560 | #[cfg(not(any(bpass1,bpass4)))] | |
| 561 | #[rustc_clean(cfg="bpass2")] | |
| 562 | #[rustc_clean(cfg="bpass3")] | |
| 563 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 564 | #[rustc_clean(cfg="bpass6")] | |
| 565 | 565 | trait TraitAddBuiltinBoundToMethodTypeParameter { |
| 566 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 567 | #[rustc_clean(cfg="bfail3")] | |
| 568 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 569 | #[rustc_clean(cfg="bfail6")] | |
| 566 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 567 | #[rustc_clean(cfg="bpass3")] | |
| 568 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 569 | #[rustc_clean(cfg="bpass6")] | |
| 570 | 570 | fn method<T: Sized>(); |
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | |
| 574 | 574 | |
| 575 | 575 | // Add lifetime bound to method lifetime parameter |
| 576 | #[cfg(any(bfail1,bfail4))] | |
| 576 | #[cfg(any(bpass1,bpass4))] | |
| 577 | 577 | trait TraitAddLifetimeBoundToMethodLifetimeParameter { |
| 578 | 578 | // ----------- |
| 579 | 579 | // ----------------------------------------------------------------------- |
| ... | ... | @@ -588,29 +588,29 @@ trait TraitAddLifetimeBoundToMethodLifetimeParameter { |
| 588 | 588 | fn method<'a, 'b >(a: &'a u32, b: &'b u32); |
| 589 | 589 | } |
| 590 | 590 | |
| 591 | #[cfg(not(any(bfail1,bfail4)))] | |
| 592 | #[rustc_clean(cfg="bfail2")] | |
| 593 | #[rustc_clean(cfg="bfail3")] | |
| 594 | #[rustc_clean(cfg="bfail5")] | |
| 595 | #[rustc_clean(cfg="bfail6")] | |
| 591 | #[cfg(not(any(bpass1,bpass4)))] | |
| 592 | #[rustc_clean(cfg="bpass2")] | |
| 593 | #[rustc_clean(cfg="bpass3")] | |
| 594 | #[rustc_clean(cfg="bpass5")] | |
| 595 | #[rustc_clean(cfg="bpass6")] | |
| 596 | 596 | trait TraitAddLifetimeBoundToMethodLifetimeParameter { |
| 597 | 597 | #[rustc_clean( |
| 598 | 598 | except="opt_hir_owner_nodes,generics_of,predicates_of,fn_sig,type_of", |
| 599 | cfg="bfail2", | |
| 599 | cfg="bpass2", | |
| 600 | 600 | )] |
| 601 | #[rustc_clean(cfg="bfail3")] | |
| 601 | #[rustc_clean(cfg="bpass3")] | |
| 602 | 602 | #[rustc_clean( |
| 603 | 603 | except="opt_hir_owner_nodes,generics_of,predicates_of,fn_sig,type_of", |
| 604 | cfg="bfail5", | |
| 604 | cfg="bpass5", | |
| 605 | 605 | )] |
| 606 | #[rustc_clean(cfg="bfail6")] | |
| 606 | #[rustc_clean(cfg="bpass6")] | |
| 607 | 607 | fn method<'a, 'b: 'a>(a: &'a u32, b: &'b u32); |
| 608 | 608 | } |
| 609 | 609 | |
| 610 | 610 | |
| 611 | 611 | |
| 612 | 612 | // Add second trait bound to method type parameter |
| 613 | #[cfg(any(bfail1,bfail4))] | |
| 613 | #[cfg(any(bpass1,bpass4))] | |
| 614 | 614 | trait TraitAddSecondTraitBoundToMethodTypeParameter { |
| 615 | 615 | // --------------------------------------------------------------------- |
| 616 | 616 | // ------------------------- |
| ... | ... | @@ -619,23 +619,23 @@ trait TraitAddSecondTraitBoundToMethodTypeParameter { |
| 619 | 619 | fn method<T: ReferencedTrait0 >(); |
| 620 | 620 | } |
| 621 | 621 | |
| 622 | #[cfg(not(any(bfail1,bfail4)))] | |
| 623 | #[rustc_clean(cfg="bfail2")] | |
| 624 | #[rustc_clean(cfg="bfail3")] | |
| 625 | #[rustc_clean(cfg="bfail5")] | |
| 626 | #[rustc_clean(cfg="bfail6")] | |
| 622 | #[cfg(not(any(bpass1,bpass4)))] | |
| 623 | #[rustc_clean(cfg="bpass2")] | |
| 624 | #[rustc_clean(cfg="bpass3")] | |
| 625 | #[rustc_clean(cfg="bpass5")] | |
| 626 | #[rustc_clean(cfg="bpass6")] | |
| 627 | 627 | trait TraitAddSecondTraitBoundToMethodTypeParameter { |
| 628 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 629 | #[rustc_clean(cfg="bfail3")] | |
| 630 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 631 | #[rustc_clean(cfg="bfail6")] | |
| 628 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 629 | #[rustc_clean(cfg="bpass3")] | |
| 630 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 631 | #[rustc_clean(cfg="bpass6")] | |
| 632 | 632 | fn method<T: ReferencedTrait0 + ReferencedTrait1>(); |
| 633 | 633 | } |
| 634 | 634 | |
| 635 | 635 | |
| 636 | 636 | |
| 637 | 637 | // Add second builtin bound to method type parameter |
| 638 | #[cfg(any(bfail1,bfail4))] | |
| 638 | #[cfg(any(bpass1,bpass4))] | |
| 639 | 639 | trait TraitAddSecondBuiltinBoundToMethodTypeParameter { |
| 640 | 640 | // --------------------------------------------------------------------- |
| 641 | 641 | // ------------------------- |
| ... | ... | @@ -644,23 +644,23 @@ trait TraitAddSecondBuiltinBoundToMethodTypeParameter { |
| 644 | 644 | fn method<T: Sized >(); |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | #[cfg(not(any(bfail1,bfail4)))] | |
| 648 | #[rustc_clean(cfg="bfail2")] | |
| 649 | #[rustc_clean(cfg="bfail3")] | |
| 650 | #[rustc_clean(cfg="bfail5")] | |
| 651 | #[rustc_clean(cfg="bfail6")] | |
| 647 | #[cfg(not(any(bpass1,bpass4)))] | |
| 648 | #[rustc_clean(cfg="bpass2")] | |
| 649 | #[rustc_clean(cfg="bpass3")] | |
| 650 | #[rustc_clean(cfg="bpass5")] | |
| 651 | #[rustc_clean(cfg="bpass6")] | |
| 652 | 652 | trait TraitAddSecondBuiltinBoundToMethodTypeParameter { |
| 653 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 654 | #[rustc_clean(cfg="bfail3")] | |
| 655 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 656 | #[rustc_clean(cfg="bfail6")] | |
| 653 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 654 | #[rustc_clean(cfg="bpass3")] | |
| 655 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 656 | #[rustc_clean(cfg="bpass6")] | |
| 657 | 657 | fn method<T: Sized + Sync>(); |
| 658 | 658 | } |
| 659 | 659 | |
| 660 | 660 | |
| 661 | 661 | |
| 662 | 662 | // Add second lifetime bound to method lifetime parameter |
| 663 | #[cfg(any(bfail1,bfail4))] | |
| 663 | #[cfg(any(bpass1,bpass4))] | |
| 664 | 664 | trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter { |
| 665 | 665 | // ----------- |
| 666 | 666 | // ----------------------------------------------------------------------- |
| ... | ... | @@ -675,29 +675,29 @@ trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter { |
| 675 | 675 | fn method<'a, 'b, 'c: 'a >(a: &'a u32, b: &'b u32, c: &'c u32); |
| 676 | 676 | } |
| 677 | 677 | |
| 678 | #[cfg(not(any(bfail1,bfail4)))] | |
| 679 | #[rustc_clean(cfg="bfail2")] | |
| 680 | #[rustc_clean(cfg="bfail3")] | |
| 681 | #[rustc_clean(cfg="bfail5")] | |
| 682 | #[rustc_clean(cfg="bfail6")] | |
| 678 | #[cfg(not(any(bpass1,bpass4)))] | |
| 679 | #[rustc_clean(cfg="bpass2")] | |
| 680 | #[rustc_clean(cfg="bpass3")] | |
| 681 | #[rustc_clean(cfg="bpass5")] | |
| 682 | #[rustc_clean(cfg="bpass6")] | |
| 683 | 683 | trait TraitAddSecondLifetimeBoundToMethodLifetimeParameter { |
| 684 | 684 | #[rustc_clean( |
| 685 | 685 | except="opt_hir_owner_nodes,generics_of,predicates_of,fn_sig,type_of", |
| 686 | cfg="bfail2", | |
| 686 | cfg="bpass2", | |
| 687 | 687 | )] |
| 688 | #[rustc_clean(cfg="bfail3")] | |
| 688 | #[rustc_clean(cfg="bpass3")] | |
| 689 | 689 | #[rustc_clean( |
| 690 | 690 | except="opt_hir_owner_nodes,generics_of,predicates_of,fn_sig,type_of", |
| 691 | cfg="bfail5", | |
| 691 | cfg="bpass5", | |
| 692 | 692 | )] |
| 693 | #[rustc_clean(cfg="bfail6")] | |
| 693 | #[rustc_clean(cfg="bpass6")] | |
| 694 | 694 | fn method<'a, 'b, 'c: 'a + 'b>(a: &'a u32, b: &'b u32, c: &'c u32); |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | |
| 698 | 698 | |
| 699 | 699 | // Add associated type |
| 700 | #[cfg(any(bfail1,bfail4))] | |
| 700 | #[cfg(any(bpass1,bpass4))] | |
| 701 | 701 | trait TraitAddAssociatedType { |
| 702 | 702 | //-------------------------- |
| 703 | 703 | //-------------------------- |
| ... | ... | @@ -710,27 +710,27 @@ trait TraitAddAssociatedType { |
| 710 | 710 | fn method(); |
| 711 | 711 | } |
| 712 | 712 | |
| 713 | #[cfg(not(any(bfail1,bfail4)))] | |
| 714 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 715 | #[rustc_clean(cfg="bfail3")] | |
| 716 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 717 | #[rustc_clean(cfg="bfail6")] | |
| 713 | #[cfg(not(any(bpass1,bpass4)))] | |
| 714 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 715 | #[rustc_clean(cfg="bpass3")] | |
| 716 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 717 | #[rustc_clean(cfg="bpass6")] | |
| 718 | 718 | trait TraitAddAssociatedType { |
| 719 | #[rustc_clean(cfg="bfail3")] | |
| 720 | #[rustc_clean(cfg="bfail6")] | |
| 719 | #[rustc_clean(cfg="bpass3")] | |
| 720 | #[rustc_clean(cfg="bpass6")] | |
| 721 | 721 | type Associated; |
| 722 | 722 | |
| 723 | #[rustc_clean(cfg="bfail2")] | |
| 724 | #[rustc_clean(cfg="bfail3")] | |
| 725 | #[rustc_clean(cfg="bfail5")] | |
| 726 | #[rustc_clean(cfg="bfail6")] | |
| 723 | #[rustc_clean(cfg="bpass2")] | |
| 724 | #[rustc_clean(cfg="bpass3")] | |
| 725 | #[rustc_clean(cfg="bpass5")] | |
| 726 | #[rustc_clean(cfg="bpass6")] | |
| 727 | 727 | fn method(); |
| 728 | 728 | } |
| 729 | 729 | |
| 730 | 730 | |
| 731 | 731 | |
| 732 | 732 | // Add trait bound to associated type |
| 733 | #[cfg(any(bfail1,bfail4))] | |
| 733 | #[cfg(any(bpass1,bpass4))] | |
| 734 | 734 | trait TraitAddTraitBoundToAssociatedType { |
| 735 | 735 | // ------------------------------------------------------- |
| 736 | 736 | // ------------------------- |
| ... | ... | @@ -744,16 +744,16 @@ trait TraitAddTraitBoundToAssociatedType { |
| 744 | 744 | |
| 745 | 745 | // Apparently the type bound contributes to the predicates of the trait, but |
| 746 | 746 | // does not change the associated item itself. |
| 747 | #[cfg(not(any(bfail1,bfail4)))] | |
| 748 | #[rustc_clean(cfg="bfail2")] | |
| 749 | #[rustc_clean(cfg="bfail3")] | |
| 750 | #[rustc_clean(cfg="bfail5")] | |
| 751 | #[rustc_clean(cfg="bfail6")] | |
| 747 | #[cfg(not(any(bpass1,bpass4)))] | |
| 748 | #[rustc_clean(cfg="bpass2")] | |
| 749 | #[rustc_clean(cfg="bpass3")] | |
| 750 | #[rustc_clean(cfg="bpass5")] | |
| 751 | #[rustc_clean(cfg="bpass6")] | |
| 752 | 752 | trait TraitAddTraitBoundToAssociatedType { |
| 753 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 754 | #[rustc_clean(cfg="bfail3")] | |
| 755 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 756 | #[rustc_clean(cfg="bfail6")] | |
| 753 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 754 | #[rustc_clean(cfg="bpass3")] | |
| 755 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 756 | #[rustc_clean(cfg="bpass6")] | |
| 757 | 757 | type Associated: ReferencedTrait0; |
| 758 | 758 | |
| 759 | 759 | fn method(); |
| ... | ... | @@ -762,7 +762,7 @@ trait TraitAddTraitBoundToAssociatedType { |
| 762 | 762 | |
| 763 | 763 | |
| 764 | 764 | // Add lifetime bound to associated type |
| 765 | #[cfg(any(bfail1,bfail4))] | |
| 765 | #[cfg(any(bpass1,bpass4))] | |
| 766 | 766 | trait TraitAddLifetimeBoundToAssociatedType<'a> { |
| 767 | 767 | // ------------------------------------------------------- |
| 768 | 768 | // ------------------------- |
| ... | ... | @@ -773,16 +773,16 @@ trait TraitAddLifetimeBoundToAssociatedType<'a> { |
| 773 | 773 | fn method(); |
| 774 | 774 | } |
| 775 | 775 | |
| 776 | #[cfg(not(any(bfail1,bfail4)))] | |
| 777 | #[rustc_clean(cfg="bfail2")] | |
| 778 | #[rustc_clean(cfg="bfail3")] | |
| 779 | #[rustc_clean(cfg="bfail5")] | |
| 780 | #[rustc_clean(cfg="bfail6")] | |
| 776 | #[cfg(not(any(bpass1,bpass4)))] | |
| 777 | #[rustc_clean(cfg="bpass2")] | |
| 778 | #[rustc_clean(cfg="bpass3")] | |
| 779 | #[rustc_clean(cfg="bpass5")] | |
| 780 | #[rustc_clean(cfg="bpass6")] | |
| 781 | 781 | trait TraitAddLifetimeBoundToAssociatedType<'a> { |
| 782 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 783 | #[rustc_clean(cfg="bfail3")] | |
| 784 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 785 | #[rustc_clean(cfg="bfail6")] | |
| 782 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 783 | #[rustc_clean(cfg="bpass3")] | |
| 784 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 785 | #[rustc_clean(cfg="bpass6")] | |
| 786 | 786 | type Associated: 'a; |
| 787 | 787 | |
| 788 | 788 | fn method(); |
| ... | ... | @@ -791,7 +791,7 @@ trait TraitAddLifetimeBoundToAssociatedType<'a> { |
| 791 | 791 | |
| 792 | 792 | |
| 793 | 793 | // Add default to associated type |
| 794 | #[cfg(any(bfail1,bfail4))] | |
| 794 | #[cfg(any(bpass1,bpass4))] | |
| 795 | 795 | trait TraitAddDefaultToAssociatedType { |
| 796 | 796 | //-------------------------------------------------------- |
| 797 | 797 | //-------------------------- |
| ... | ... | @@ -802,16 +802,16 @@ trait TraitAddDefaultToAssociatedType { |
| 802 | 802 | fn method(); |
| 803 | 803 | } |
| 804 | 804 | |
| 805 | #[cfg(not(any(bfail1,bfail4)))] | |
| 806 | #[rustc_clean(cfg="bfail2")] | |
| 807 | #[rustc_clean(cfg="bfail3")] | |
| 808 | #[rustc_clean(cfg="bfail5")] | |
| 809 | #[rustc_clean(cfg="bfail6")] | |
| 805 | #[cfg(not(any(bpass1,bpass4)))] | |
| 806 | #[rustc_clean(cfg="bpass2")] | |
| 807 | #[rustc_clean(cfg="bpass3")] | |
| 808 | #[rustc_clean(cfg="bpass5")] | |
| 809 | #[rustc_clean(cfg="bpass6")] | |
| 810 | 810 | trait TraitAddDefaultToAssociatedType { |
| 811 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 812 | #[rustc_clean(cfg="bfail3")] | |
| 813 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 814 | #[rustc_clean(cfg="bfail6")] | |
| 811 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 812 | #[rustc_clean(cfg="bpass3")] | |
| 813 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 814 | #[rustc_clean(cfg="bpass6")] | |
| 815 | 815 | type Associated = ReferenceType0; |
| 816 | 816 | |
| 817 | 817 | fn method(); |
| ... | ... | @@ -820,16 +820,16 @@ trait TraitAddDefaultToAssociatedType { |
| 820 | 820 | |
| 821 | 821 | |
| 822 | 822 | // Add associated constant |
| 823 | #[cfg(any(bfail1,bfail4))] | |
| 823 | #[cfg(any(bpass1,bpass4))] | |
| 824 | 824 | trait TraitAddAssociatedConstant { |
| 825 | 825 | fn method(); |
| 826 | 826 | } |
| 827 | 827 | |
| 828 | #[cfg(not(any(bfail1,bfail4)))] | |
| 829 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 830 | #[rustc_clean(cfg="bfail3")] | |
| 831 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bfail5")] | |
| 832 | #[rustc_clean(cfg="bfail6")] | |
| 828 | #[cfg(not(any(bpass1,bpass4)))] | |
| 829 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 830 | #[rustc_clean(cfg="bpass3")] | |
| 831 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bpass5")] | |
| 832 | #[rustc_clean(cfg="bpass6")] | |
| 833 | 833 | trait TraitAddAssociatedConstant { |
| 834 | 834 | const Value: u32; |
| 835 | 835 | |
| ... | ... | @@ -839,7 +839,7 @@ trait TraitAddAssociatedConstant { |
| 839 | 839 | |
| 840 | 840 | |
| 841 | 841 | // Add initializer to associated constant |
| 842 | #[cfg(any(bfail1,bfail4))] | |
| 842 | #[cfg(any(bpass1,bpass4))] | |
| 843 | 843 | trait TraitAddInitializerToAssociatedConstant { |
| 844 | 844 | //-------------------------------------------------------- |
| 845 | 845 | //-------------------------- |
| ... | ... | @@ -854,29 +854,29 @@ trait TraitAddInitializerToAssociatedConstant { |
| 854 | 854 | fn method(); |
| 855 | 855 | } |
| 856 | 856 | |
| 857 | #[cfg(not(any(bfail1,bfail4)))] | |
| 858 | #[rustc_clean(cfg="bfail2")] | |
| 859 | #[rustc_clean(cfg="bfail3")] | |
| 860 | #[rustc_clean(cfg="bfail5")] | |
| 861 | #[rustc_clean(cfg="bfail6")] | |
| 857 | #[cfg(not(any(bpass1,bpass4)))] | |
| 858 | #[rustc_clean(cfg="bpass2")] | |
| 859 | #[rustc_clean(cfg="bpass3")] | |
| 860 | #[rustc_clean(cfg="bpass5")] | |
| 861 | #[rustc_clean(cfg="bpass6")] | |
| 862 | 862 | trait TraitAddInitializerToAssociatedConstant { |
| 863 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 864 | #[rustc_clean(cfg="bfail3")] | |
| 865 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 866 | #[rustc_clean(cfg="bfail6")] | |
| 863 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 864 | #[rustc_clean(cfg="bpass3")] | |
| 865 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 866 | #[rustc_clean(cfg="bpass6")] | |
| 867 | 867 | const Value: u32 = 1; |
| 868 | 868 | |
| 869 | #[rustc_clean(cfg="bfail2")] | |
| 870 | #[rustc_clean(cfg="bfail3")] | |
| 871 | #[rustc_clean(cfg="bfail5")] | |
| 872 | #[rustc_clean(cfg="bfail6")] | |
| 869 | #[rustc_clean(cfg="bpass2")] | |
| 870 | #[rustc_clean(cfg="bpass3")] | |
| 871 | #[rustc_clean(cfg="bpass5")] | |
| 872 | #[rustc_clean(cfg="bpass6")] | |
| 873 | 873 | fn method(); |
| 874 | 874 | } |
| 875 | 875 | |
| 876 | 876 | |
| 877 | 877 | |
| 878 | 878 | // Change type of associated constant |
| 879 | #[cfg(any(bfail1,bfail4))] | |
| 879 | #[cfg(any(bpass1,bpass4))] | |
| 880 | 880 | trait TraitChangeTypeOfAssociatedConstant { |
| 881 | 881 | // --------------------------------------------------------------- |
| 882 | 882 | // ------------------------- |
| ... | ... | @@ -891,287 +891,287 @@ trait TraitChangeTypeOfAssociatedConstant { |
| 891 | 891 | fn method(); |
| 892 | 892 | } |
| 893 | 893 | |
| 894 | #[cfg(not(any(bfail1,bfail4)))] | |
| 895 | #[rustc_clean(cfg="bfail2")] | |
| 896 | #[rustc_clean(cfg="bfail3")] | |
| 897 | #[rustc_clean(cfg="bfail5")] | |
| 898 | #[rustc_clean(cfg="bfail6")] | |
| 894 | #[cfg(not(any(bpass1,bpass4)))] | |
| 895 | #[rustc_clean(cfg="bpass2")] | |
| 896 | #[rustc_clean(cfg="bpass3")] | |
| 897 | #[rustc_clean(cfg="bpass5")] | |
| 898 | #[rustc_clean(cfg="bpass6")] | |
| 899 | 899 | trait TraitChangeTypeOfAssociatedConstant { |
| 900 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail2")] | |
| 901 | #[rustc_clean(cfg="bfail3")] | |
| 902 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bfail5")] | |
| 903 | #[rustc_clean(cfg="bfail6")] | |
| 900 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass2")] | |
| 901 | #[rustc_clean(cfg="bpass3")] | |
| 902 | #[rustc_clean(except="opt_hir_owner_nodes,type_of", cfg="bpass5")] | |
| 903 | #[rustc_clean(cfg="bpass6")] | |
| 904 | 904 | const Value: f64; |
| 905 | 905 | |
| 906 | #[rustc_clean(cfg="bfail2")] | |
| 907 | #[rustc_clean(cfg="bfail3")] | |
| 908 | #[rustc_clean(cfg="bfail5")] | |
| 909 | #[rustc_clean(cfg="bfail6")] | |
| 906 | #[rustc_clean(cfg="bpass2")] | |
| 907 | #[rustc_clean(cfg="bpass3")] | |
| 908 | #[rustc_clean(cfg="bpass5")] | |
| 909 | #[rustc_clean(cfg="bpass6")] | |
| 910 | 910 | fn method(); |
| 911 | 911 | } |
| 912 | 912 | |
| 913 | 913 | |
| 914 | 914 | |
| 915 | 915 | // Add super trait |
| 916 | #[cfg(any(bfail1,bfail4))] | |
| 916 | #[cfg(any(bpass1,bpass4))] | |
| 917 | 917 | trait TraitAddSuperTrait { } |
| 918 | 918 | |
| 919 | #[cfg(not(any(bfail1,bfail4)))] | |
| 920 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 921 | #[rustc_clean(cfg="bfail3")] | |
| 922 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 923 | #[rustc_clean(cfg="bfail6")] | |
| 919 | #[cfg(not(any(bpass1,bpass4)))] | |
| 920 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 921 | #[rustc_clean(cfg="bpass3")] | |
| 922 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 923 | #[rustc_clean(cfg="bpass6")] | |
| 924 | 924 | trait TraitAddSuperTrait : ReferencedTrait0 { } |
| 925 | 925 | |
| 926 | 926 | |
| 927 | 927 | |
| 928 | 928 | // Add builtin bound (Send or Copy) |
| 929 | #[cfg(any(bfail1,bfail4))] | |
| 929 | #[cfg(any(bpass1,bpass4))] | |
| 930 | 930 | trait TraitAddBuiltiBound { } |
| 931 | 931 | |
| 932 | #[cfg(not(any(bfail1,bfail4)))] | |
| 933 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 934 | #[rustc_clean(cfg="bfail3")] | |
| 935 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 936 | #[rustc_clean(cfg="bfail6")] | |
| 932 | #[cfg(not(any(bpass1,bpass4)))] | |
| 933 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 934 | #[rustc_clean(cfg="bpass3")] | |
| 935 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 936 | #[rustc_clean(cfg="bpass6")] | |
| 937 | 937 | trait TraitAddBuiltiBound : Send { } |
| 938 | 938 | |
| 939 | 939 | |
| 940 | 940 | |
| 941 | 941 | // Add 'static lifetime bound to trait |
| 942 | #[cfg(any(bfail1,bfail4))] | |
| 942 | #[cfg(any(bpass1,bpass4))] | |
| 943 | 943 | trait TraitAddStaticLifetimeBound { } |
| 944 | 944 | |
| 945 | #[cfg(not(any(bfail1,bfail4)))] | |
| 946 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 947 | #[rustc_clean(cfg="bfail3")] | |
| 948 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 949 | #[rustc_clean(cfg="bfail6")] | |
| 945 | #[cfg(not(any(bpass1,bpass4)))] | |
| 946 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 947 | #[rustc_clean(cfg="bpass3")] | |
| 948 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 949 | #[rustc_clean(cfg="bpass6")] | |
| 950 | 950 | trait TraitAddStaticLifetimeBound : 'static { } |
| 951 | 951 | |
| 952 | 952 | |
| 953 | 953 | |
| 954 | 954 | // Add super trait as second bound |
| 955 | #[cfg(any(bfail1,bfail4))] | |
| 955 | #[cfg(any(bpass1,bpass4))] | |
| 956 | 956 | trait TraitAddTraitAsSecondBound : ReferencedTrait0 { } |
| 957 | 957 | |
| 958 | #[cfg(not(any(bfail1,bfail4)))] | |
| 959 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 960 | #[rustc_clean(cfg="bfail3")] | |
| 961 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 962 | #[rustc_clean(cfg="bfail6")] | |
| 958 | #[cfg(not(any(bpass1,bpass4)))] | |
| 959 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 960 | #[rustc_clean(cfg="bpass3")] | |
| 961 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 962 | #[rustc_clean(cfg="bpass6")] | |
| 963 | 963 | trait TraitAddTraitAsSecondBound : ReferencedTrait0 + ReferencedTrait1 { } |
| 964 | 964 | |
| 965 | #[cfg(any(bfail1,bfail4))] | |
| 965 | #[cfg(any(bpass1,bpass4))] | |
| 966 | 966 | trait TraitAddTraitAsSecondBoundFromBuiltin : Send { } |
| 967 | 967 | |
| 968 | #[cfg(not(any(bfail1,bfail4)))] | |
| 969 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 970 | #[rustc_clean(cfg="bfail3")] | |
| 971 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 972 | #[rustc_clean(cfg="bfail6")] | |
| 968 | #[cfg(not(any(bpass1,bpass4)))] | |
| 969 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 970 | #[rustc_clean(cfg="bpass3")] | |
| 971 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 972 | #[rustc_clean(cfg="bpass6")] | |
| 973 | 973 | trait TraitAddTraitAsSecondBoundFromBuiltin : Send + ReferencedTrait0 { } |
| 974 | 974 | |
| 975 | 975 | |
| 976 | 976 | |
| 977 | 977 | // Add builtin bound as second bound |
| 978 | #[cfg(any(bfail1,bfail4))] | |
| 978 | #[cfg(any(bpass1,bpass4))] | |
| 979 | 979 | trait TraitAddBuiltinBoundAsSecondBound : ReferencedTrait0 { } |
| 980 | 980 | |
| 981 | #[cfg(not(any(bfail1,bfail4)))] | |
| 982 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 983 | #[rustc_clean(cfg="bfail3")] | |
| 984 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 985 | #[rustc_clean(cfg="bfail6")] | |
| 981 | #[cfg(not(any(bpass1,bpass4)))] | |
| 982 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 983 | #[rustc_clean(cfg="bpass3")] | |
| 984 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 985 | #[rustc_clean(cfg="bpass6")] | |
| 986 | 986 | trait TraitAddBuiltinBoundAsSecondBound : ReferencedTrait0 + Send { } |
| 987 | 987 | |
| 988 | #[cfg(any(bfail1,bfail4))] | |
| 988 | #[cfg(any(bpass1,bpass4))] | |
| 989 | 989 | trait TraitAddBuiltinBoundAsSecondBoundFromBuiltin : Send { } |
| 990 | 990 | |
| 991 | #[cfg(not(any(bfail1,bfail4)))] | |
| 992 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 993 | #[rustc_clean(cfg="bfail3")] | |
| 994 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 995 | #[rustc_clean(cfg="bfail6")] | |
| 991 | #[cfg(not(any(bpass1,bpass4)))] | |
| 992 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 993 | #[rustc_clean(cfg="bpass3")] | |
| 994 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 995 | #[rustc_clean(cfg="bpass6")] | |
| 996 | 996 | trait TraitAddBuiltinBoundAsSecondBoundFromBuiltin: Send + Copy { } |
| 997 | 997 | |
| 998 | 998 | |
| 999 | 999 | |
| 1000 | 1000 | // Add 'static bounds as second bound |
| 1001 | #[cfg(any(bfail1,bfail4))] | |
| 1001 | #[cfg(any(bpass1,bpass4))] | |
| 1002 | 1002 | trait TraitAddStaticBoundAsSecondBound : ReferencedTrait0 { } |
| 1003 | 1003 | |
| 1004 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1005 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1006 | #[rustc_clean(cfg="bfail3")] | |
| 1007 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1008 | #[rustc_clean(cfg="bfail6")] | |
| 1004 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1005 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1006 | #[rustc_clean(cfg="bpass3")] | |
| 1007 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1008 | #[rustc_clean(cfg="bpass6")] | |
| 1009 | 1009 | trait TraitAddStaticBoundAsSecondBound : ReferencedTrait0 + 'static { } |
| 1010 | 1010 | |
| 1011 | #[cfg(any(bfail1,bfail4))] | |
| 1011 | #[cfg(any(bpass1,bpass4))] | |
| 1012 | 1012 | trait TraitAddStaticBoundAsSecondBoundFromBuiltin : Send { } |
| 1013 | 1013 | |
| 1014 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1015 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1016 | #[rustc_clean(cfg="bfail3")] | |
| 1017 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1018 | #[rustc_clean(cfg="bfail6")] | |
| 1014 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1015 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1016 | #[rustc_clean(cfg="bpass3")] | |
| 1017 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1018 | #[rustc_clean(cfg="bpass6")] | |
| 1019 | 1019 | trait TraitAddStaticBoundAsSecondBoundFromBuiltin : Send + 'static { } |
| 1020 | 1020 | |
| 1021 | 1021 | |
| 1022 | 1022 | |
| 1023 | 1023 | // Add type parameter to trait |
| 1024 | #[cfg(any(bfail1,bfail4))] | |
| 1024 | #[cfg(any(bpass1,bpass4))] | |
| 1025 | 1025 | trait TraitAddTypeParameterToTrait { } |
| 1026 | 1026 | |
| 1027 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1028 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail2")] | |
| 1029 | #[rustc_clean(cfg="bfail3")] | |
| 1030 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail5")] | |
| 1031 | #[rustc_clean(cfg="bfail6")] | |
| 1027 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1028 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass2")] | |
| 1029 | #[rustc_clean(cfg="bpass3")] | |
| 1030 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass5")] | |
| 1031 | #[rustc_clean(cfg="bpass6")] | |
| 1032 | 1032 | trait TraitAddTypeParameterToTrait<T> { } |
| 1033 | 1033 | |
| 1034 | 1034 | |
| 1035 | 1035 | |
| 1036 | 1036 | // Add lifetime parameter to trait |
| 1037 | #[cfg(any(bfail1,bfail4))] | |
| 1037 | #[cfg(any(bpass1,bpass4))] | |
| 1038 | 1038 | trait TraitAddLifetimeParameterToTrait { } |
| 1039 | 1039 | |
| 1040 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1041 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail2")] | |
| 1042 | #[rustc_clean(cfg="bfail3")] | |
| 1043 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail5")] | |
| 1044 | #[rustc_clean(cfg="bfail6")] | |
| 1040 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1041 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass2")] | |
| 1042 | #[rustc_clean(cfg="bpass3")] | |
| 1043 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass5")] | |
| 1044 | #[rustc_clean(cfg="bpass6")] | |
| 1045 | 1045 | trait TraitAddLifetimeParameterToTrait<'a> { } |
| 1046 | 1046 | |
| 1047 | 1047 | |
| 1048 | 1048 | |
| 1049 | 1049 | // Add trait bound to type parameter of trait |
| 1050 | #[cfg(any(bfail1,bfail4))] | |
| 1050 | #[cfg(any(bpass1,bpass4))] | |
| 1051 | 1051 | trait TraitAddTraitBoundToTypeParameterOfTrait<T> { } |
| 1052 | 1052 | |
| 1053 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1054 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1055 | #[rustc_clean(cfg="bfail3")] | |
| 1056 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1057 | #[rustc_clean(cfg="bfail6")] | |
| 1053 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1054 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1055 | #[rustc_clean(cfg="bpass3")] | |
| 1056 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1057 | #[rustc_clean(cfg="bpass6")] | |
| 1058 | 1058 | trait TraitAddTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0> { } |
| 1059 | 1059 | |
| 1060 | 1060 | |
| 1061 | 1061 | |
| 1062 | 1062 | // Add lifetime bound to type parameter of trait |
| 1063 | #[cfg(any(bfail1,bfail4))] | |
| 1063 | #[cfg(any(bpass1,bpass4))] | |
| 1064 | 1064 | trait TraitAddLifetimeBoundToTypeParameterOfTrait<'a, T> { } |
| 1065 | 1065 | |
| 1066 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1067 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1068 | #[rustc_clean(cfg="bfail3")] | |
| 1069 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1070 | #[rustc_clean(cfg="bfail6")] | |
| 1066 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1067 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1068 | #[rustc_clean(cfg="bpass3")] | |
| 1069 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1070 | #[rustc_clean(cfg="bpass6")] | |
| 1071 | 1071 | trait TraitAddLifetimeBoundToTypeParameterOfTrait<'a, T: 'a> { } |
| 1072 | 1072 | |
| 1073 | 1073 | |
| 1074 | 1074 | |
| 1075 | 1075 | // Add lifetime bound to lifetime parameter of trait |
| 1076 | #[cfg(any(bfail1,bfail4))] | |
| 1076 | #[cfg(any(bpass1,bpass4))] | |
| 1077 | 1077 | trait TraitAddLifetimeBoundToLifetimeParameterOfTrait<'a, 'b> { } |
| 1078 | 1078 | |
| 1079 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1080 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1081 | #[rustc_clean(cfg="bfail3")] | |
| 1082 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1083 | #[rustc_clean(cfg="bfail6")] | |
| 1079 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1080 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1081 | #[rustc_clean(cfg="bpass3")] | |
| 1082 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1083 | #[rustc_clean(cfg="bpass6")] | |
| 1084 | 1084 | trait TraitAddLifetimeBoundToLifetimeParameterOfTrait<'a: 'b, 'b> { } |
| 1085 | 1085 | |
| 1086 | 1086 | |
| 1087 | 1087 | |
| 1088 | 1088 | // Add builtin bound to type parameter of trait |
| 1089 | #[cfg(any(bfail1,bfail4))] | |
| 1089 | #[cfg(any(bpass1,bpass4))] | |
| 1090 | 1090 | trait TraitAddBuiltinBoundToTypeParameterOfTrait<T> { } |
| 1091 | 1091 | |
| 1092 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1093 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1094 | #[rustc_clean(cfg="bfail3")] | |
| 1095 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1096 | #[rustc_clean(cfg="bfail6")] | |
| 1092 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1093 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1094 | #[rustc_clean(cfg="bpass3")] | |
| 1095 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1096 | #[rustc_clean(cfg="bpass6")] | |
| 1097 | 1097 | trait TraitAddBuiltinBoundToTypeParameterOfTrait<T: Send> { } |
| 1098 | 1098 | |
| 1099 | 1099 | |
| 1100 | 1100 | |
| 1101 | 1101 | // Add second type parameter to trait |
| 1102 | #[cfg(any(bfail1,bfail4))] | |
| 1102 | #[cfg(any(bpass1,bpass4))] | |
| 1103 | 1103 | trait TraitAddSecondTypeParameterToTrait<T> { } |
| 1104 | 1104 | |
| 1105 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1106 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail2")] | |
| 1107 | #[rustc_clean(cfg="bfail3")] | |
| 1108 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail5")] | |
| 1109 | #[rustc_clean(cfg="bfail6")] | |
| 1105 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1106 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass2")] | |
| 1107 | #[rustc_clean(cfg="bpass3")] | |
| 1108 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass5")] | |
| 1109 | #[rustc_clean(cfg="bpass6")] | |
| 1110 | 1110 | trait TraitAddSecondTypeParameterToTrait<T, S> { } |
| 1111 | 1111 | |
| 1112 | 1112 | |
| 1113 | 1113 | |
| 1114 | 1114 | // Add second lifetime parameter to trait |
| 1115 | #[cfg(any(bfail1,bfail4))] | |
| 1115 | #[cfg(any(bpass1,bpass4))] | |
| 1116 | 1116 | trait TraitAddSecondLifetimeParameterToTrait<'a> { } |
| 1117 | 1117 | |
| 1118 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1119 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail2")] | |
| 1120 | #[rustc_clean(cfg="bfail3")] | |
| 1121 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bfail5")] | |
| 1122 | #[rustc_clean(cfg="bfail6")] | |
| 1118 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1119 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass2")] | |
| 1120 | #[rustc_clean(cfg="bpass3")] | |
| 1121 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,predicates_of", cfg="bpass5")] | |
| 1122 | #[rustc_clean(cfg="bpass6")] | |
| 1123 | 1123 | trait TraitAddSecondLifetimeParameterToTrait<'a, 'b> { } |
| 1124 | 1124 | |
| 1125 | 1125 | |
| 1126 | 1126 | |
| 1127 | 1127 | // Add second trait bound to type parameter of trait |
| 1128 | #[cfg(any(bfail1,bfail4))] | |
| 1128 | #[cfg(any(bpass1,bpass4))] | |
| 1129 | 1129 | trait TraitAddSecondTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0> { } |
| 1130 | 1130 | |
| 1131 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1132 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1133 | #[rustc_clean(cfg="bfail3")] | |
| 1134 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1135 | #[rustc_clean(cfg="bfail6")] | |
| 1131 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1132 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1133 | #[rustc_clean(cfg="bpass3")] | |
| 1134 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1135 | #[rustc_clean(cfg="bpass6")] | |
| 1136 | 1136 | trait TraitAddSecondTraitBoundToTypeParameterOfTrait<T: ReferencedTrait0 + ReferencedTrait1> { } |
| 1137 | 1137 | |
| 1138 | 1138 | |
| 1139 | 1139 | |
| 1140 | 1140 | // Add second lifetime bound to type parameter of trait |
| 1141 | #[cfg(any(bfail1,bfail4))] | |
| 1141 | #[cfg(any(bpass1,bpass4))] | |
| 1142 | 1142 | trait TraitAddSecondLifetimeBoundToTypeParameterOfTrait<'a, 'b, T: 'a> { } |
| 1143 | 1143 | |
| 1144 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1145 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1146 | #[rustc_clean(cfg="bfail3")] | |
| 1147 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1148 | #[rustc_clean(cfg="bfail6")] | |
| 1144 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1145 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1146 | #[rustc_clean(cfg="bpass3")] | |
| 1147 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1148 | #[rustc_clean(cfg="bpass6")] | |
| 1149 | 1149 | trait TraitAddSecondLifetimeBoundToTypeParameterOfTrait<'a, 'b, T: 'a + 'b> { } |
| 1150 | 1150 | |
| 1151 | 1151 | |
| 1152 | 1152 | |
| 1153 | 1153 | // Add second lifetime bound to lifetime parameter of trait |
| 1154 | #[cfg(any(bfail1,bfail4))] | |
| 1154 | #[cfg(any(bpass1,bpass4))] | |
| 1155 | 1155 | trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTrait<'a: 'b, 'b, 'c> { } |
| 1156 | 1156 | |
| 1157 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1158 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1159 | #[rustc_clean(cfg="bfail3")] | |
| 1160 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1161 | #[rustc_clean(cfg="bfail6")] | |
| 1157 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1158 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1159 | #[rustc_clean(cfg="bpass3")] | |
| 1160 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1161 | #[rustc_clean(cfg="bpass6")] | |
| 1162 | 1162 | trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTrait<'a: 'b + 'c, 'b, 'c> { } |
| 1163 | 1163 | |
| 1164 | 1164 | |
| 1165 | 1165 | |
| 1166 | 1166 | // Add second builtin bound to type parameter of trait |
| 1167 | #[cfg(any(bfail1,bfail4))] | |
| 1167 | #[cfg(any(bpass1,bpass4))] | |
| 1168 | 1168 | trait TraitAddSecondBuiltinBoundToTypeParameterOfTrait<T: Send> { } |
| 1169 | 1169 | |
| 1170 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1171 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1172 | #[rustc_clean(cfg="bfail3")] | |
| 1173 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1174 | #[rustc_clean(cfg="bfail6")] | |
| 1170 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1171 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1172 | #[rustc_clean(cfg="bpass3")] | |
| 1173 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1174 | #[rustc_clean(cfg="bpass6")] | |
| 1175 | 1175 | trait TraitAddSecondBuiltinBoundToTypeParameterOfTrait<T: Send + Sync> { } |
| 1176 | 1176 | |
| 1177 | 1177 | |
| ... | ... | @@ -1182,125 +1182,125 @@ struct ReferenceType1 {} |
| 1182 | 1182 | |
| 1183 | 1183 | |
| 1184 | 1184 | // Add trait bound to type parameter of trait in where clause |
| 1185 | #[cfg(any(bfail1,bfail4))] | |
| 1185 | #[cfg(any(bpass1,bpass4))] | |
| 1186 | 1186 | trait TraitAddTraitBoundToTypeParameterOfTraitWhere<T> { } |
| 1187 | 1187 | |
| 1188 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1189 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1190 | #[rustc_clean(cfg="bfail3")] | |
| 1191 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1192 | #[rustc_clean(cfg="bfail6")] | |
| 1188 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1189 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1190 | #[rustc_clean(cfg="bpass3")] | |
| 1191 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1192 | #[rustc_clean(cfg="bpass6")] | |
| 1193 | 1193 | trait TraitAddTraitBoundToTypeParameterOfTraitWhere<T> where T: ReferencedTrait0 { } |
| 1194 | 1194 | |
| 1195 | 1195 | |
| 1196 | 1196 | |
| 1197 | 1197 | // Add lifetime bound to type parameter of trait in where clause |
| 1198 | #[cfg(any(bfail1,bfail4))] | |
| 1198 | #[cfg(any(bpass1,bpass4))] | |
| 1199 | 1199 | trait TraitAddLifetimeBoundToTypeParameterOfTraitWhere<'a, T> { } |
| 1200 | 1200 | |
| 1201 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1202 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1203 | #[rustc_clean(cfg="bfail3")] | |
| 1204 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1205 | #[rustc_clean(cfg="bfail6")] | |
| 1201 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1202 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1203 | #[rustc_clean(cfg="bpass3")] | |
| 1204 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1205 | #[rustc_clean(cfg="bpass6")] | |
| 1206 | 1206 | trait TraitAddLifetimeBoundToTypeParameterOfTraitWhere<'a, T> where T: 'a { } |
| 1207 | 1207 | |
| 1208 | 1208 | |
| 1209 | 1209 | |
| 1210 | 1210 | // Add lifetime bound to lifetime parameter of trait in where clause |
| 1211 | #[cfg(any(bfail1,bfail4))] | |
| 1211 | #[cfg(any(bpass1,bpass4))] | |
| 1212 | 1212 | trait TraitAddLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b> { } |
| 1213 | 1213 | |
| 1214 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1215 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1216 | #[rustc_clean(cfg="bfail3")] | |
| 1217 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1218 | #[rustc_clean(cfg="bfail6")] | |
| 1214 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1215 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1216 | #[rustc_clean(cfg="bpass3")] | |
| 1217 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1218 | #[rustc_clean(cfg="bpass6")] | |
| 1219 | 1219 | trait TraitAddLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b> where 'a: 'b { } |
| 1220 | 1220 | |
| 1221 | 1221 | |
| 1222 | 1222 | |
| 1223 | 1223 | // Add builtin bound to type parameter of trait in where clause |
| 1224 | #[cfg(any(bfail1,bfail4))] | |
| 1224 | #[cfg(any(bpass1,bpass4))] | |
| 1225 | 1225 | trait TraitAddBuiltinBoundToTypeParameterOfTraitWhere<T> { } |
| 1226 | 1226 | |
| 1227 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1228 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1229 | #[rustc_clean(cfg="bfail3")] | |
| 1230 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1231 | #[rustc_clean(cfg="bfail6")] | |
| 1227 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1228 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1229 | #[rustc_clean(cfg="bpass3")] | |
| 1230 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1231 | #[rustc_clean(cfg="bpass6")] | |
| 1232 | 1232 | trait TraitAddBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send { } |
| 1233 | 1233 | |
| 1234 | 1234 | |
| 1235 | 1235 | |
| 1236 | 1236 | // Add second trait bound to type parameter of trait in where clause |
| 1237 | #[cfg(any(bfail1,bfail4))] | |
| 1237 | #[cfg(any(bpass1,bpass4))] | |
| 1238 | 1238 | trait TraitAddSecondTraitBoundToTypeParameterOfTraitWhere<T> where T: ReferencedTrait0 { } |
| 1239 | 1239 | |
| 1240 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1241 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1242 | #[rustc_clean(cfg="bfail3")] | |
| 1243 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1244 | #[rustc_clean(cfg="bfail6")] | |
| 1240 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1241 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1242 | #[rustc_clean(cfg="bpass3")] | |
| 1243 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1244 | #[rustc_clean(cfg="bpass6")] | |
| 1245 | 1245 | trait TraitAddSecondTraitBoundToTypeParameterOfTraitWhere<T> |
| 1246 | 1246 | where T: ReferencedTrait0 + ReferencedTrait1 { } |
| 1247 | 1247 | |
| 1248 | 1248 | |
| 1249 | 1249 | |
| 1250 | 1250 | // Add second lifetime bound to type parameter of trait in where clause |
| 1251 | #[cfg(any(bfail1,bfail4))] | |
| 1251 | #[cfg(any(bpass1,bpass4))] | |
| 1252 | 1252 | trait TraitAddSecondLifetimeBoundToTypeParameterOfTraitWhere<'a, 'b, T> where T: 'a { } |
| 1253 | 1253 | |
| 1254 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1255 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1256 | #[rustc_clean(cfg="bfail3")] | |
| 1257 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1258 | #[rustc_clean(cfg="bfail6")] | |
| 1254 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1255 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1256 | #[rustc_clean(cfg="bpass3")] | |
| 1257 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1258 | #[rustc_clean(cfg="bpass6")] | |
| 1259 | 1259 | trait TraitAddSecondLifetimeBoundToTypeParameterOfTraitWhere<'a, 'b, T> where T: 'a + 'b { } |
| 1260 | 1260 | |
| 1261 | 1261 | |
| 1262 | 1262 | |
| 1263 | 1263 | // Add second lifetime bound to lifetime parameter of trait in where clause |
| 1264 | #[cfg(any(bfail1,bfail4))] | |
| 1264 | #[cfg(any(bpass1,bpass4))] | |
| 1265 | 1265 | trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b, 'c> where 'a: 'b { } |
| 1266 | 1266 | |
| 1267 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1268 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1269 | #[rustc_clean(cfg="bfail3")] | |
| 1270 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1271 | #[rustc_clean(cfg="bfail6")] | |
| 1267 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1268 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1269 | #[rustc_clean(cfg="bpass3")] | |
| 1270 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1271 | #[rustc_clean(cfg="bpass6")] | |
| 1272 | 1272 | trait TraitAddSecondLifetimeBoundToLifetimeParameterOfTraitWhere<'a, 'b, 'c> where 'a: 'b + 'c { } |
| 1273 | 1273 | |
| 1274 | 1274 | |
| 1275 | 1275 | |
| 1276 | 1276 | // Add second builtin bound to type parameter of trait in where clause |
| 1277 | #[cfg(any(bfail1,bfail4))] | |
| 1277 | #[cfg(any(bpass1,bpass4))] | |
| 1278 | 1278 | trait TraitAddSecondBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send { } |
| 1279 | 1279 | |
| 1280 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1281 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1282 | #[rustc_clean(cfg="bfail3")] | |
| 1283 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1284 | #[rustc_clean(cfg="bfail6")] | |
| 1280 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1281 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1282 | #[rustc_clean(cfg="bpass3")] | |
| 1283 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1284 | #[rustc_clean(cfg="bpass6")] | |
| 1285 | 1285 | trait TraitAddSecondBuiltinBoundToTypeParameterOfTraitWhere<T> where T: Send + Sync { } |
| 1286 | 1286 | |
| 1287 | 1287 | |
| 1288 | 1288 | // Change return type of method indirectly by modifying a use statement |
| 1289 | 1289 | mod change_return_type_of_method_indirectly_use { |
| 1290 | #[cfg(any(bfail1,bfail4))] | |
| 1290 | #[cfg(any(bpass1,bpass4))] | |
| 1291 | 1291 | use super::ReferenceType0 as ReturnType; |
| 1292 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1292 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1293 | 1293 | use super::ReferenceType1 as ReturnType; |
| 1294 | 1294 | |
| 1295 | #[rustc_clean(cfg="bfail2")] | |
| 1296 | #[rustc_clean(cfg="bfail3")] | |
| 1297 | #[rustc_clean(cfg="bfail5")] | |
| 1298 | #[rustc_clean(cfg="bfail6")] | |
| 1295 | #[rustc_clean(cfg="bpass2")] | |
| 1296 | #[rustc_clean(cfg="bpass3")] | |
| 1297 | #[rustc_clean(cfg="bpass5")] | |
| 1298 | #[rustc_clean(cfg="bpass6")] | |
| 1299 | 1299 | trait TraitChangeReturnType { |
| 1300 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 1301 | #[rustc_clean(cfg="bfail3")] | |
| 1302 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 1303 | #[rustc_clean(cfg="bfail6")] | |
| 1300 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 1301 | #[rustc_clean(cfg="bpass3")] | |
| 1302 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 1303 | #[rustc_clean(cfg="bpass6")] | |
| 1304 | 1304 | fn method() -> ReturnType; |
| 1305 | 1305 | } |
| 1306 | 1306 | } |
| ... | ... | @@ -1309,20 +1309,20 @@ mod change_return_type_of_method_indirectly_use { |
| 1309 | 1309 | |
| 1310 | 1310 | // Change type of method parameter indirectly by modifying a use statement |
| 1311 | 1311 | mod change_method_parameter_type_indirectly_by_use { |
| 1312 | #[cfg(any(bfail1,bfail4))] | |
| 1312 | #[cfg(any(bpass1,bpass4))] | |
| 1313 | 1313 | use super::ReferenceType0 as ArgType; |
| 1314 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1314 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1315 | 1315 | use super::ReferenceType1 as ArgType; |
| 1316 | 1316 | |
| 1317 | #[rustc_clean(cfg="bfail2")] | |
| 1318 | #[rustc_clean(cfg="bfail3")] | |
| 1319 | #[rustc_clean(cfg="bfail5")] | |
| 1320 | #[rustc_clean(cfg="bfail6")] | |
| 1317 | #[rustc_clean(cfg="bpass2")] | |
| 1318 | #[rustc_clean(cfg="bpass3")] | |
| 1319 | #[rustc_clean(cfg="bpass5")] | |
| 1320 | #[rustc_clean(cfg="bpass6")] | |
| 1321 | 1321 | trait TraitChangeArgType { |
| 1322 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail2")] | |
| 1323 | #[rustc_clean(cfg="bfail3")] | |
| 1324 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bfail5")] | |
| 1325 | #[rustc_clean(cfg="bfail6")] | |
| 1322 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass2")] | |
| 1323 | #[rustc_clean(cfg="bpass3")] | |
| 1324 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="bpass5")] | |
| 1325 | #[rustc_clean(cfg="bpass6")] | |
| 1326 | 1326 | fn method(a: ArgType); |
| 1327 | 1327 | } |
| 1328 | 1328 | } |
| ... | ... | @@ -1331,20 +1331,20 @@ mod change_method_parameter_type_indirectly_by_use { |
| 1331 | 1331 | |
| 1332 | 1332 | // Change trait bound of method type parameter indirectly by modifying a use statement |
| 1333 | 1333 | mod change_method_parameter_type_bound_indirectly_by_use { |
| 1334 | #[cfg(any(bfail1,bfail4))] | |
| 1334 | #[cfg(any(bpass1,bpass4))] | |
| 1335 | 1335 | use super::ReferencedTrait0 as Bound; |
| 1336 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1336 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1337 | 1337 | use super::ReferencedTrait1 as Bound; |
| 1338 | 1338 | |
| 1339 | #[rustc_clean(cfg="bfail2")] | |
| 1340 | #[rustc_clean(cfg="bfail3")] | |
| 1341 | #[rustc_clean(cfg="bfail5")] | |
| 1342 | #[rustc_clean(cfg="bfail6")] | |
| 1339 | #[rustc_clean(cfg="bpass2")] | |
| 1340 | #[rustc_clean(cfg="bpass3")] | |
| 1341 | #[rustc_clean(cfg="bpass5")] | |
| 1342 | #[rustc_clean(cfg="bpass6")] | |
| 1343 | 1343 | trait TraitChangeBoundOfMethodTypeParameter { |
| 1344 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1345 | #[rustc_clean(cfg="bfail3")] | |
| 1346 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1347 | #[rustc_clean(cfg="bfail6")] | |
| 1344 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1345 | #[rustc_clean(cfg="bpass3")] | |
| 1346 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1347 | #[rustc_clean(cfg="bpass6")] | |
| 1348 | 1348 | fn method<T: Bound>(a: T); |
| 1349 | 1349 | } |
| 1350 | 1350 | } |
| ... | ... | @@ -1354,20 +1354,20 @@ mod change_method_parameter_type_bound_indirectly_by_use { |
| 1354 | 1354 | // Change trait bound of method type parameter in where clause indirectly |
| 1355 | 1355 | // by modifying a use statement |
| 1356 | 1356 | mod change_method_parameter_type_bound_indirectly_by_use_where { |
| 1357 | #[cfg(any(bfail1,bfail4))] | |
| 1357 | #[cfg(any(bpass1,bpass4))] | |
| 1358 | 1358 | use super::ReferencedTrait0 as Bound; |
| 1359 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1359 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1360 | 1360 | use super::ReferencedTrait1 as Bound; |
| 1361 | 1361 | |
| 1362 | #[rustc_clean(cfg="bfail2")] | |
| 1363 | #[rustc_clean(cfg="bfail3")] | |
| 1364 | #[rustc_clean(cfg="bfail5")] | |
| 1365 | #[rustc_clean(cfg="bfail6")] | |
| 1362 | #[rustc_clean(cfg="bpass2")] | |
| 1363 | #[rustc_clean(cfg="bpass3")] | |
| 1364 | #[rustc_clean(cfg="bpass5")] | |
| 1365 | #[rustc_clean(cfg="bpass6")] | |
| 1366 | 1366 | trait TraitChangeBoundOfMethodTypeParameterWhere { |
| 1367 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1368 | #[rustc_clean(cfg="bfail3")] | |
| 1369 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1370 | #[rustc_clean(cfg="bfail6")] | |
| 1367 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1368 | #[rustc_clean(cfg="bpass3")] | |
| 1369 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1370 | #[rustc_clean(cfg="bpass6")] | |
| 1371 | 1371 | fn method<T>(a: T) where T: Bound; |
| 1372 | 1372 | } |
| 1373 | 1373 | } |
| ... | ... | @@ -1376,15 +1376,15 @@ mod change_method_parameter_type_bound_indirectly_by_use_where { |
| 1376 | 1376 | |
| 1377 | 1377 | // Change trait bound of trait type parameter indirectly by modifying a use statement |
| 1378 | 1378 | mod change_method_type_parameter_bound_indirectly { |
| 1379 | #[cfg(any(bfail1,bfail4))] | |
| 1379 | #[cfg(any(bpass1,bpass4))] | |
| 1380 | 1380 | use super::ReferencedTrait0 as Bound; |
| 1381 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1381 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1382 | 1382 | use super::ReferencedTrait1 as Bound; |
| 1383 | 1383 | |
| 1384 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1385 | #[rustc_clean(cfg="bfail3")] | |
| 1386 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1387 | #[rustc_clean(cfg="bfail6")] | |
| 1384 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1385 | #[rustc_clean(cfg="bpass3")] | |
| 1386 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1387 | #[rustc_clean(cfg="bpass6")] | |
| 1388 | 1388 | trait TraitChangeTraitBound<T: Bound> { |
| 1389 | 1389 | fn method(a: T); |
| 1390 | 1390 | } |
| ... | ... | @@ -1395,15 +1395,15 @@ mod change_method_type_parameter_bound_indirectly { |
| 1395 | 1395 | // Change trait bound of trait type parameter in where clause indirectly |
| 1396 | 1396 | // by modifying a use statement |
| 1397 | 1397 | mod change_method_type_parameter_bound_indirectly_where { |
| 1398 | #[cfg(any(bfail1,bfail4))] | |
| 1398 | #[cfg(any(bpass1,bpass4))] | |
| 1399 | 1399 | use super::ReferencedTrait0 as Bound; |
| 1400 | #[cfg(not(any(bfail1,bfail4)))] | |
| 1400 | #[cfg(not(any(bpass1,bpass4)))] | |
| 1401 | 1401 | use super::ReferencedTrait1 as Bound; |
| 1402 | 1402 | |
| 1403 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail2")] | |
| 1404 | #[rustc_clean(cfg="bfail3")] | |
| 1405 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bfail5")] | |
| 1406 | #[rustc_clean(cfg="bfail6")] | |
| 1403 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass2")] | |
| 1404 | #[rustc_clean(cfg="bpass3")] | |
| 1405 | #[rustc_clean(except="opt_hir_owner_nodes,predicates_of", cfg="bpass5")] | |
| 1406 | #[rustc_clean(cfg="bpass6")] | |
| 1407 | 1407 | trait TraitChangeTraitBoundWhere<T> where T: Bound { |
| 1408 | 1408 | fn method(a: T); |
| 1409 | 1409 | } |
tests/incremental/hashes/trait_impls.rs+211-211| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -22,35 +22,35 @@ struct Foo; |
| 22 | 22 | |
| 23 | 23 | // Change Method Name ----------------------------------------------------------- |
| 24 | 24 | |
| 25 | #[cfg(any(bfail1,bfail4))] | |
| 25 | #[cfg(any(bpass1,bpass4))] | |
| 26 | 26 | pub trait ChangeMethodNameTrait { |
| 27 | 27 | fn method_name(); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | #[cfg(any(bfail1,bfail4))] | |
| 30 | #[cfg(any(bpass1,bpass4))] | |
| 31 | 31 | impl ChangeMethodNameTrait for Foo { |
| 32 | 32 | fn method_name() { } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | #[cfg(not(any(bfail1,bfail4)))] | |
| 36 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 37 | #[rustc_clean(cfg="bfail3")] | |
| 38 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bfail5")] | |
| 39 | #[rustc_clean(cfg="bfail6")] | |
| 35 | #[cfg(not(any(bpass1,bpass4)))] | |
| 36 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 37 | #[rustc_clean(cfg="bpass3")] | |
| 38 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids,predicates_of", cfg="bpass5")] | |
| 39 | #[rustc_clean(cfg="bpass6")] | |
| 40 | 40 | pub trait ChangeMethodNameTrait { |
| 41 | #[rustc_clean(cfg="bfail3")] | |
| 42 | #[rustc_clean(cfg="bfail6")] | |
| 41 | #[rustc_clean(cfg="bpass3")] | |
| 42 | #[rustc_clean(cfg="bpass6")] | |
| 43 | 43 | fn method_name2(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | #[cfg(not(any(bfail1,bfail4)))] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 48 | #[rustc_clean(cfg="bfail3")] | |
| 49 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 50 | #[rustc_clean(cfg="bfail6")] | |
| 46 | #[cfg(not(any(bpass1,bpass4)))] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 48 | #[rustc_clean(cfg="bpass3")] | |
| 49 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 50 | #[rustc_clean(cfg="bpass6")] | |
| 51 | 51 | impl ChangeMethodNameTrait for Foo { |
| 52 | #[rustc_clean(cfg="bfail3")] | |
| 53 | #[rustc_clean(cfg="bfail6")] | |
| 52 | #[rustc_clean(cfg="bpass3")] | |
| 53 | #[rustc_clean(cfg="bpass6")] | |
| 54 | 54 | fn method_name2() { } |
| 55 | 55 | } |
| 56 | 56 | |
| ... | ... | @@ -62,7 +62,7 @@ pub trait ChangeMethodBodyTrait { |
| 62 | 62 | fn method_name(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | #[cfg(any(bfail1,bfail4))] | |
| 65 | #[cfg(any(bpass1,bpass4))] | |
| 66 | 66 | impl ChangeMethodBodyTrait for Foo { |
| 67 | 67 | // -------------------------------------------------------------- |
| 68 | 68 | // ------------------------- |
| ... | ... | @@ -73,16 +73,16 @@ impl ChangeMethodBodyTrait for Foo { |
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | #[cfg(not(any(bfail1,bfail4)))] | |
| 77 | #[rustc_clean(cfg="bfail2")] | |
| 78 | #[rustc_clean(cfg="bfail3")] | |
| 79 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 80 | #[rustc_clean(cfg="bfail6")] | |
| 76 | #[cfg(not(any(bpass1,bpass4)))] | |
| 77 | #[rustc_clean(cfg="bpass2")] | |
| 78 | #[rustc_clean(cfg="bpass3")] | |
| 79 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 80 | #[rustc_clean(cfg="bpass6")] | |
| 81 | 81 | impl ChangeMethodBodyTrait for Foo { |
| 82 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail2")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 84 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bfail5")] | |
| 85 | #[rustc_clean(cfg="bfail6")] | |
| 82 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass2")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root", cfg="bpass5")] | |
| 85 | #[rustc_clean(cfg="bpass6")] | |
| 86 | 86 | fn method_name() { |
| 87 | 87 | () |
| 88 | 88 | } |
| ... | ... | @@ -96,7 +96,7 @@ pub trait ChangeMethodBodyTraitInlined { |
| 96 | 96 | fn method_name(); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | #[cfg(any(bfail1,bfail4))] | |
| 99 | #[cfg(any(bpass1,bpass4))] | |
| 100 | 100 | impl ChangeMethodBodyTraitInlined for Foo { |
| 101 | 101 | // ---------------------------------------------------------------------------- |
| 102 | 102 | // ------------------------- |
| ... | ... | @@ -108,16 +108,16 @@ impl ChangeMethodBodyTraitInlined for Foo { |
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | #[cfg(not(any(bfail1,bfail4)))] | |
| 112 | #[rustc_clean(cfg="bfail2")] | |
| 113 | #[rustc_clean(cfg="bfail3")] | |
| 114 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 115 | #[rustc_clean(cfg="bfail6")] | |
| 111 | #[cfg(not(any(bpass1,bpass4)))] | |
| 112 | #[rustc_clean(cfg="bpass2")] | |
| 113 | #[rustc_clean(cfg="bpass3")] | |
| 114 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 115 | #[rustc_clean(cfg="bpass6")] | |
| 116 | 116 | impl ChangeMethodBodyTraitInlined for Foo { |
| 117 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bfail2")] | |
| 118 | #[rustc_clean(cfg="bfail3")] | |
| 119 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bfail5")] | |
| 120 | #[rustc_clean(cfg="bfail6")] | |
| 117 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bpass2")] | |
| 118 | #[rustc_clean(cfg="bpass3")] | |
| 119 | #[rustc_clean(except="opt_hir_owner_nodes,typeck_root,optimized_mir", cfg="bpass5")] | |
| 120 | #[rustc_clean(cfg="bpass6")] | |
| 121 | 121 | #[inline] |
| 122 | 122 | fn method_name() { |
| 123 | 123 | panic!() |
| ... | ... | @@ -126,37 +126,37 @@ impl ChangeMethodBodyTraitInlined for Foo { |
| 126 | 126 | |
| 127 | 127 | // Change Method Selfness ------------------------------------------------------ |
| 128 | 128 | |
| 129 | #[cfg(any(bfail1,bfail4))] | |
| 129 | #[cfg(any(bpass1,bpass4))] | |
| 130 | 130 | pub trait ChangeMethodSelfnessTrait { |
| 131 | 131 | fn method_name(); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | #[cfg(any(bfail1,bfail4))] | |
| 134 | #[cfg(any(bpass1,bpass4))] | |
| 135 | 135 | impl ChangeMethodSelfnessTrait for Foo { |
| 136 | 136 | fn method_name() { } |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | #[cfg(not(any(bfail1,bfail4)))] | |
| 139 | #[cfg(not(any(bpass1,bpass4)))] | |
| 140 | 140 | pub trait ChangeMethodSelfnessTrait { |
| 141 | 141 | fn method_name(&self); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | #[cfg(not(any(bfail1,bfail4)))] | |
| 145 | #[rustc_clean(cfg="bfail2")] | |
| 146 | #[rustc_clean(cfg="bfail3")] | |
| 147 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 148 | #[rustc_clean(cfg="bfail6")] | |
| 144 | #[cfg(not(any(bpass1,bpass4)))] | |
| 145 | #[rustc_clean(cfg="bpass2")] | |
| 146 | #[rustc_clean(cfg="bpass3")] | |
| 147 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 148 | #[rustc_clean(cfg="bpass6")] | |
| 149 | 149 | impl ChangeMethodSelfnessTrait for Foo { |
| 150 | 150 | #[rustc_clean( |
| 151 | 151 | except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir", |
| 152 | cfg="bfail2", | |
| 152 | cfg="bpass2", | |
| 153 | 153 | )] |
| 154 | #[rustc_clean(cfg="bfail3")] | |
| 154 | #[rustc_clean(cfg="bpass3")] | |
| 155 | 155 | #[rustc_clean( |
| 156 | 156 | except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir", |
| 157 | cfg="bfail5", | |
| 157 | cfg="bpass5", | |
| 158 | 158 | )] |
| 159 | #[rustc_clean(cfg="bfail6")] | |
| 159 | #[rustc_clean(cfg="bpass6")] | |
| 160 | 160 | fn method_name(&self) { |
| 161 | 161 | () |
| 162 | 162 | } |
| ... | ... | @@ -164,48 +164,48 @@ impl ChangeMethodSelfnessTrait for Foo { |
| 164 | 164 | |
| 165 | 165 | // Change Method Selfness ----------------------------------------------------------- |
| 166 | 166 | |
| 167 | #[cfg(any(bfail1,bfail4))] | |
| 167 | #[cfg(any(bpass1,bpass4))] | |
| 168 | 168 | pub trait RemoveMethodSelfnessTrait { |
| 169 | 169 | fn method_name(&self); |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | #[cfg(any(bfail1,bfail4))] | |
| 172 | #[cfg(any(bpass1,bpass4))] | |
| 173 | 173 | impl RemoveMethodSelfnessTrait for Foo { |
| 174 | 174 | fn method_name(&self) { } |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | #[cfg(not(any(bfail1,bfail4)))] | |
| 177 | #[cfg(not(any(bpass1,bpass4)))] | |
| 178 | 178 | pub trait RemoveMethodSelfnessTrait { |
| 179 | 179 | fn method_name(); |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | #[cfg(not(any(bfail1,bfail4)))] | |
| 183 | #[rustc_clean(cfg="bfail2")] | |
| 184 | #[rustc_clean(cfg="bfail3")] | |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 186 | #[rustc_clean(cfg="bfail6")] | |
| 182 | #[cfg(not(any(bpass1,bpass4)))] | |
| 183 | #[rustc_clean(cfg="bpass2")] | |
| 184 | #[rustc_clean(cfg="bpass3")] | |
| 185 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 186 | #[rustc_clean(cfg="bpass6")] | |
| 187 | 187 | impl RemoveMethodSelfnessTrait for Foo { |
| 188 | 188 | #[rustc_clean( |
| 189 | 189 | except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir", |
| 190 | cfg="bfail2", | |
| 190 | cfg="bpass2", | |
| 191 | 191 | )] |
| 192 | #[rustc_clean(cfg="bfail3")] | |
| 192 | #[rustc_clean(cfg="bpass3")] | |
| 193 | 193 | #[rustc_clean( |
| 194 | 194 | except="opt_hir_owner_nodes,associated_item,generics_of,fn_sig,typeck_root,optimized_mir", |
| 195 | cfg="bfail5", | |
| 195 | cfg="bpass5", | |
| 196 | 196 | )] |
| 197 | #[rustc_clean(cfg="bfail6")] | |
| 197 | #[rustc_clean(cfg="bpass6")] | |
| 198 | 198 | fn method_name() {} |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | // Change Method Selfmutness ----------------------------------------------------------- |
| 202 | 202 | |
| 203 | #[cfg(any(bfail1,bfail4))] | |
| 203 | #[cfg(any(bpass1,bpass4))] | |
| 204 | 204 | pub trait ChangeMethodSelfmutnessTrait { |
| 205 | 205 | fn method_name(&self); |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | #[cfg(any(bfail1,bfail4))] | |
| 208 | #[cfg(any(bpass1,bpass4))] | |
| 209 | 209 | impl ChangeMethodSelfmutnessTrait for Foo { |
| 210 | 210 | // ----------------------------------------------------------------------------------- |
| 211 | 211 | // ------------------------- |
| ... | ... | @@ -214,101 +214,101 @@ impl ChangeMethodSelfmutnessTrait for Foo { |
| 214 | 214 | fn method_name(& self) {} |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | #[cfg(not(any(bfail1,bfail4)))] | |
| 217 | #[cfg(not(any(bpass1,bpass4)))] | |
| 218 | 218 | pub trait ChangeMethodSelfmutnessTrait { |
| 219 | 219 | fn method_name(&mut self); |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | #[cfg(not(any(bfail1,bfail4)))] | |
| 223 | #[rustc_clean(cfg="bfail2")] | |
| 224 | #[rustc_clean(cfg="bfail3")] | |
| 225 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 226 | #[rustc_clean(cfg="bfail6")] | |
| 222 | #[cfg(not(any(bpass1,bpass4)))] | |
| 223 | #[rustc_clean(cfg="bpass2")] | |
| 224 | #[rustc_clean(cfg="bpass3")] | |
| 225 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 226 | #[rustc_clean(cfg="bpass6")] | |
| 227 | 227 | impl ChangeMethodSelfmutnessTrait for Foo { |
| 228 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail2")] | |
| 229 | #[rustc_clean(cfg="bfail3")] | |
| 230 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail5")] | |
| 231 | #[rustc_clean(cfg="bfail6")] | |
| 228 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass2")] | |
| 229 | #[rustc_clean(cfg="bpass3")] | |
| 230 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass5")] | |
| 231 | #[rustc_clean(cfg="bpass6")] | |
| 232 | 232 | fn method_name(&mut self) {} |
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | // Change item kind ----------------------------------------------------------- |
| 236 | 236 | |
| 237 | #[cfg(any(bfail1,bfail4))] | |
| 237 | #[cfg(any(bpass1,bpass4))] | |
| 238 | 238 | pub trait ChangeItemKindTrait { |
| 239 | 239 | fn name(); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | #[cfg(any(bfail1,bfail4))] | |
| 242 | #[cfg(any(bpass1,bpass4))] | |
| 243 | 243 | impl ChangeItemKindTrait for Foo { |
| 244 | 244 | fn name() { } |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | #[cfg(not(any(bfail1,bfail4)))] | |
| 247 | #[cfg(not(any(bpass1,bpass4)))] | |
| 248 | 248 | pub trait ChangeItemKindTrait { |
| 249 | 249 | type name; |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | #[cfg(not(any(bfail1,bfail4)))] | |
| 253 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 254 | #[rustc_clean(cfg="bfail3")] | |
| 255 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 256 | #[rustc_clean(cfg="bfail6")] | |
| 252 | #[cfg(not(any(bpass1,bpass4)))] | |
| 253 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 254 | #[rustc_clean(cfg="bpass3")] | |
| 255 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 256 | #[rustc_clean(cfg="bpass6")] | |
| 257 | 257 | impl ChangeItemKindTrait for Foo { |
| 258 | 258 | type name = (); |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | // Remove item ----------------------------------------------------------- |
| 262 | 262 | |
| 263 | #[cfg(any(bfail1,bfail4))] | |
| 263 | #[cfg(any(bpass1,bpass4))] | |
| 264 | 264 | pub trait RemoveItemTrait { |
| 265 | 265 | type TypeName; |
| 266 | 266 | fn method_name(); |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | #[cfg(any(bfail1,bfail4))] | |
| 269 | #[cfg(any(bpass1,bpass4))] | |
| 270 | 270 | impl RemoveItemTrait for Foo { |
| 271 | 271 | type TypeName = (); |
| 272 | 272 | fn method_name() { } |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | #[cfg(not(any(bfail1,bfail4)))] | |
| 275 | #[cfg(not(any(bpass1,bpass4)))] | |
| 276 | 276 | pub trait RemoveItemTrait { |
| 277 | 277 | type TypeName; |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | #[cfg(not(any(bfail1,bfail4)))] | |
| 281 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 282 | #[rustc_clean(cfg="bfail3")] | |
| 283 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 284 | #[rustc_clean(cfg="bfail6")] | |
| 280 | #[cfg(not(any(bpass1,bpass4)))] | |
| 281 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 282 | #[rustc_clean(cfg="bpass3")] | |
| 283 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 284 | #[rustc_clean(cfg="bpass6")] | |
| 285 | 285 | impl RemoveItemTrait for Foo { |
| 286 | 286 | type TypeName = (); |
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | // Add item ----------------------------------------------------------- |
| 290 | 290 | |
| 291 | #[cfg(any(bfail1,bfail4))] | |
| 291 | #[cfg(any(bpass1,bpass4))] | |
| 292 | 292 | pub trait AddItemTrait { |
| 293 | 293 | type TypeName; |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | #[cfg(any(bfail1,bfail4))] | |
| 296 | #[cfg(any(bpass1,bpass4))] | |
| 297 | 297 | impl AddItemTrait for Foo { |
| 298 | 298 | type TypeName = (); |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | #[cfg(not(any(bfail1,bfail4)))] | |
| 301 | #[cfg(not(any(bpass1,bpass4)))] | |
| 302 | 302 | pub trait AddItemTrait { |
| 303 | 303 | type TypeName; |
| 304 | 304 | fn method_name(); |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | #[cfg(not(any(bfail1,bfail4)))] | |
| 308 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail2")] | |
| 309 | #[rustc_clean(cfg="bfail3")] | |
| 310 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bfail5")] | |
| 311 | #[rustc_clean(cfg="bfail6")] | |
| 307 | #[cfg(not(any(bpass1,bpass4)))] | |
| 308 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass2")] | |
| 309 | #[rustc_clean(cfg="bpass3")] | |
| 310 | #[rustc_clean(except="opt_hir_owner_nodes,associated_item_def_ids", cfg="bpass5")] | |
| 311 | #[rustc_clean(cfg="bpass6")] | |
| 312 | 312 | impl AddItemTrait for Foo { |
| 313 | 313 | type TypeName = (); |
| 314 | 314 | fn method_name() { } |
| ... | ... | @@ -316,7 +316,7 @@ impl AddItemTrait for Foo { |
| 316 | 316 | |
| 317 | 317 | // Change has-value ----------------------------------------------------------- |
| 318 | 318 | |
| 319 | #[cfg(any(bfail1,bfail4))] | |
| 319 | #[cfg(any(bpass1,bpass4))] | |
| 320 | 320 | pub trait ChangeHasValueTrait { |
| 321 | 321 | //-------------------------------------------------------- |
| 322 | 322 | //-------------------------- |
| ... | ... | @@ -325,29 +325,29 @@ pub trait ChangeHasValueTrait { |
| 325 | 325 | fn method_name() ; |
| 326 | 326 | } |
| 327 | 327 | |
| 328 | #[cfg(any(bfail1,bfail4))] | |
| 328 | #[cfg(any(bpass1,bpass4))] | |
| 329 | 329 | impl ChangeHasValueTrait for Foo { |
| 330 | 330 | fn method_name() { } |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | #[cfg(not(any(bfail1,bfail4)))] | |
| 334 | #[rustc_clean(cfg="bfail2")] | |
| 335 | #[rustc_clean(cfg="bfail3")] | |
| 336 | #[rustc_clean(cfg="bfail5")] | |
| 337 | #[rustc_clean(cfg="bfail6")] | |
| 333 | #[cfg(not(any(bpass1,bpass4)))] | |
| 334 | #[rustc_clean(cfg="bpass2")] | |
| 335 | #[rustc_clean(cfg="bpass3")] | |
| 336 | #[rustc_clean(cfg="bpass5")] | |
| 337 | #[rustc_clean(cfg="bpass6")] | |
| 338 | 338 | pub trait ChangeHasValueTrait { |
| 339 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 340 | #[rustc_clean(cfg="bfail3")] | |
| 341 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 342 | #[rustc_clean(cfg="bfail6")] | |
| 339 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 340 | #[rustc_clean(cfg="bpass3")] | |
| 341 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 342 | #[rustc_clean(cfg="bpass6")] | |
| 343 | 343 | fn method_name() { } |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | #[cfg(not(any(bfail1,bfail4)))] | |
| 347 | #[rustc_clean(cfg="bfail2")] | |
| 348 | #[rustc_clean(cfg="bfail3")] | |
| 349 | #[rustc_clean(cfg="bfail5")] | |
| 350 | #[rustc_clean(cfg="bfail6")] | |
| 346 | #[cfg(not(any(bpass1,bpass4)))] | |
| 347 | #[rustc_clean(cfg="bpass2")] | |
| 348 | #[rustc_clean(cfg="bpass3")] | |
| 349 | #[rustc_clean(cfg="bpass5")] | |
| 350 | #[rustc_clean(cfg="bpass6")] | |
| 351 | 351 | impl ChangeHasValueTrait for Foo { |
| 352 | 352 | fn method_name() { } |
| 353 | 353 | } |
| ... | ... | @@ -358,7 +358,7 @@ pub trait AddDefaultTrait { |
| 358 | 358 | fn method_name(); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | #[cfg(any(bfail1,bfail4))] | |
| 361 | #[cfg(any(bpass1,bpass4))] | |
| 362 | 362 | impl AddDefaultTrait for Foo { |
| 363 | 363 | // ------------------------------------------------------- |
| 364 | 364 | // ------------------------- |
| ... | ... | @@ -367,27 +367,27 @@ impl AddDefaultTrait for Foo { |
| 367 | 367 | fn method_name() { } |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | #[cfg(not(any(bfail1,bfail4)))] | |
| 371 | #[rustc_clean(cfg="bfail2")] | |
| 372 | #[rustc_clean(cfg="bfail3")] | |
| 373 | #[rustc_clean(cfg="bfail5")] | |
| 374 | #[rustc_clean(cfg="bfail6")] | |
| 370 | #[cfg(not(any(bpass1,bpass4)))] | |
| 371 | #[rustc_clean(cfg="bpass2")] | |
| 372 | #[rustc_clean(cfg="bpass3")] | |
| 373 | #[rustc_clean(cfg="bpass5")] | |
| 374 | #[rustc_clean(cfg="bpass6")] | |
| 375 | 375 | impl AddDefaultTrait for Foo { |
| 376 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 377 | #[rustc_clean(cfg="bfail3")] | |
| 378 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 379 | #[rustc_clean(cfg="bfail6")] | |
| 376 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 377 | #[rustc_clean(cfg="bpass3")] | |
| 378 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 379 | #[rustc_clean(cfg="bpass6")] | |
| 380 | 380 | default fn method_name() { } |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | // Add arguments |
| 384 | 384 | |
| 385 | #[cfg(any(bfail1,bfail4))] | |
| 385 | #[cfg(any(bpass1,bpass4))] | |
| 386 | 386 | pub trait AddArgumentTrait { |
| 387 | 387 | fn method_name(&self); |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | #[cfg(any(bfail1,bfail4))] | |
| 390 | #[cfg(any(bpass1,bpass4))] | |
| 391 | 391 | impl AddArgumentTrait for Foo { |
| 392 | 392 | // ----------------------------------------------------------------------------------- |
| 393 | 393 | // ------------------------- |
| ... | ... | @@ -396,32 +396,32 @@ impl AddArgumentTrait for Foo { |
| 396 | 396 | fn method_name(&self ) { } |
| 397 | 397 | } |
| 398 | 398 | |
| 399 | #[cfg(not(any(bfail1,bfail4)))] | |
| 399 | #[cfg(not(any(bpass1,bpass4)))] | |
| 400 | 400 | pub trait AddArgumentTrait { |
| 401 | 401 | fn method_name(&self, x: u32); |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | #[cfg(not(any(bfail1,bfail4)))] | |
| 405 | #[rustc_clean(cfg="bfail2")] | |
| 406 | #[rustc_clean(cfg="bfail3")] | |
| 407 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 408 | #[rustc_clean(cfg="bfail6")] | |
| 404 | #[cfg(not(any(bpass1,bpass4)))] | |
| 405 | #[rustc_clean(cfg="bpass2")] | |
| 406 | #[rustc_clean(cfg="bpass3")] | |
| 407 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 408 | #[rustc_clean(cfg="bpass6")] | |
| 409 | 409 | impl AddArgumentTrait for Foo { |
| 410 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail2")] | |
| 411 | #[rustc_clean(cfg="bfail3")] | |
| 412 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail5")] | |
| 413 | #[rustc_clean(cfg="bfail6")] | |
| 410 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass2")] | |
| 411 | #[rustc_clean(cfg="bpass3")] | |
| 412 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass5")] | |
| 413 | #[rustc_clean(cfg="bpass6")] | |
| 414 | 414 | fn method_name(&self, _x: u32) { } |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | // Change argument type |
| 418 | 418 | |
| 419 | #[cfg(any(bfail1,bfail4))] | |
| 419 | #[cfg(any(bpass1,bpass4))] | |
| 420 | 420 | pub trait ChangeArgumentTypeTrait { |
| 421 | 421 | fn method_name(&self, x: u32); |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | #[cfg(any(bfail1,bfail4))] | |
| 424 | #[cfg(any(bpass1,bpass4))] | |
| 425 | 425 | impl ChangeArgumentTypeTrait for Foo { |
| 426 | 426 | // ----------------------------------------------------------------------------------- |
| 427 | 427 | // ------------------------- |
| ... | ... | @@ -430,21 +430,21 @@ impl ChangeArgumentTypeTrait for Foo { |
| 430 | 430 | fn method_name(&self, _x: u32 ) { } |
| 431 | 431 | } |
| 432 | 432 | |
| 433 | #[cfg(not(any(bfail1,bfail4)))] | |
| 433 | #[cfg(not(any(bpass1,bpass4)))] | |
| 434 | 434 | pub trait ChangeArgumentTypeTrait { |
| 435 | 435 | fn method_name(&self, x: char); |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | #[cfg(not(any(bfail1,bfail4)))] | |
| 439 | #[rustc_clean(cfg="bfail2")] | |
| 440 | #[rustc_clean(cfg="bfail3")] | |
| 441 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 442 | #[rustc_clean(cfg="bfail6")] | |
| 438 | #[cfg(not(any(bpass1,bpass4)))] | |
| 439 | #[rustc_clean(cfg="bpass2")] | |
| 440 | #[rustc_clean(cfg="bpass3")] | |
| 441 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 442 | #[rustc_clean(cfg="bpass6")] | |
| 443 | 443 | impl ChangeArgumentTypeTrait for Foo { |
| 444 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail2")] | |
| 445 | #[rustc_clean(cfg="bfail3")] | |
| 446 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bfail5")] | |
| 447 | #[rustc_clean(cfg="bfail6")] | |
| 444 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass2")] | |
| 445 | #[rustc_clean(cfg="bpass3")] | |
| 446 | #[rustc_clean(except="opt_hir_owner_nodes,fn_sig,typeck_root,optimized_mir", cfg="bpass5")] | |
| 447 | #[rustc_clean(cfg="bpass6")] | |
| 448 | 448 | fn method_name(&self, _x: char) { } |
| 449 | 449 | } |
| 450 | 450 | |
| ... | ... | @@ -457,27 +457,27 @@ trait AddTypeParameterToImpl<T> { |
| 457 | 457 | fn id(t: T) -> T; |
| 458 | 458 | } |
| 459 | 459 | |
| 460 | #[cfg(any(bfail1,bfail4))] | |
| 460 | #[cfg(any(bpass1,bpass4))] | |
| 461 | 461 | impl AddTypeParameterToImpl<u32> for Bar<u32> { |
| 462 | 462 | fn id(t: u32) -> u32 { t } |
| 463 | 463 | } |
| 464 | 464 | |
| 465 | #[cfg(not(any(bfail1,bfail4)))] | |
| 466 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_header", cfg="bfail2")] | |
| 467 | #[rustc_clean(cfg="bfail3")] | |
| 468 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_header", cfg="bfail5")] | |
| 469 | #[rustc_clean(cfg="bfail6")] | |
| 465 | #[cfg(not(any(bpass1,bpass4)))] | |
| 466 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_header", cfg="bpass2")] | |
| 467 | #[rustc_clean(cfg="bpass3")] | |
| 468 | #[rustc_clean(except="opt_hir_owner_nodes,generics_of,impl_trait_header", cfg="bpass5")] | |
| 469 | #[rustc_clean(cfg="bpass6")] | |
| 470 | 470 | impl<TTT> AddTypeParameterToImpl<TTT> for Bar<TTT> { |
| 471 | 471 | #[rustc_clean( |
| 472 | 472 | except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck_root,optimized_mir", |
| 473 | cfg="bfail2", | |
| 473 | cfg="bpass2", | |
| 474 | 474 | )] |
| 475 | #[rustc_clean(cfg="bfail3")] | |
| 475 | #[rustc_clean(cfg="bpass3")] | |
| 476 | 476 | #[rustc_clean( |
| 477 | 477 | except="opt_hir_owner_nodes,generics_of,fn_sig,type_of,typeck_root,optimized_mir", |
| 478 | cfg="bfail5", | |
| 478 | cfg="bpass5", | |
| 479 | 479 | )] |
| 480 | #[rustc_clean(cfg="bfail6")] | |
| 480 | #[rustc_clean(cfg="bpass6")] | |
| 481 | 481 | fn id(t: TTT) -> TTT { t } |
| 482 | 482 | } |
| 483 | 483 | |
| ... | ... | @@ -488,21 +488,21 @@ trait ChangeSelfTypeOfImpl { |
| 488 | 488 | fn id(self) -> Self; |
| 489 | 489 | } |
| 490 | 490 | |
| 491 | #[cfg(any(bfail1,bfail4))] | |
| 491 | #[cfg(any(bpass1,bpass4))] | |
| 492 | 492 | impl ChangeSelfTypeOfImpl for u32 { |
| 493 | 493 | fn id(self) -> Self { self } |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | #[cfg(not(any(bfail1,bfail4)))] | |
| 497 | #[rustc_clean(except="opt_hir_owner_nodes,impl_trait_header", cfg="bfail2")] | |
| 498 | #[rustc_clean(cfg="bfail3")] | |
| 499 | #[rustc_clean(except="opt_hir_owner_nodes,impl_trait_header", cfg="bfail5")] | |
| 500 | #[rustc_clean(cfg="bfail6")] | |
| 496 | #[cfg(not(any(bpass1,bpass4)))] | |
| 497 | #[rustc_clean(except="opt_hir_owner_nodes,impl_trait_header", cfg="bpass2")] | |
| 498 | #[rustc_clean(cfg="bpass3")] | |
| 499 | #[rustc_clean(except="opt_hir_owner_nodes,impl_trait_header", cfg="bpass5")] | |
| 500 | #[rustc_clean(cfg="bpass6")] | |
| 501 | 501 | impl ChangeSelfTypeOfImpl for u64 { |
| 502 | #[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="bfail2")] | |
| 503 | #[rustc_clean(cfg="bfail3")] | |
| 504 | #[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="bfail5")] | |
| 505 | #[rustc_clean(cfg="bfail6")] | |
| 502 | #[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="bpass2")] | |
| 503 | #[rustc_clean(cfg="bpass3")] | |
| 504 | #[rustc_clean(except="fn_sig,typeck_root,optimized_mir", cfg="bpass5")] | |
| 505 | #[rustc_clean(cfg="bpass6")] | |
| 506 | 506 | fn id(self) -> Self { self } |
| 507 | 507 | } |
| 508 | 508 | |
| ... | ... | @@ -513,21 +513,21 @@ trait AddLifetimeBoundToImplParameter { |
| 513 | 513 | fn id(self) -> Self; |
| 514 | 514 | } |
| 515 | 515 | |
| 516 | #[cfg(any(bfail1,bfail4))] | |
| 516 | #[cfg(any(bpass1,bpass4))] | |
| 517 | 517 | impl<T> AddLifetimeBoundToImplParameter for T { |
| 518 | 518 | fn id(self) -> Self { self } |
| 519 | 519 | } |
| 520 | 520 | |
| 521 | #[cfg(not(any(bfail1,bfail4)))] | |
| 522 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 523 | #[rustc_clean(cfg="bfail3")] | |
| 524 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 525 | #[rustc_clean(cfg="bfail6")] | |
| 521 | #[cfg(not(any(bpass1,bpass4)))] | |
| 522 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 523 | #[rustc_clean(cfg="bpass3")] | |
| 524 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 525 | #[rustc_clean(cfg="bpass6")] | |
| 526 | 526 | impl<T: 'static> AddLifetimeBoundToImplParameter for T { |
| 527 | #[rustc_clean(cfg="bfail2")] | |
| 528 | #[rustc_clean(cfg="bfail3")] | |
| 529 | #[rustc_clean(cfg="bfail5")] | |
| 530 | #[rustc_clean(cfg="bfail6")] | |
| 527 | #[rustc_clean(cfg="bpass2")] | |
| 528 | #[rustc_clean(cfg="bpass3")] | |
| 529 | #[rustc_clean(cfg="bpass5")] | |
| 530 | #[rustc_clean(cfg="bpass6")] | |
| 531 | 531 | fn id(self) -> Self { self } |
| 532 | 532 | } |
| 533 | 533 | |
| ... | ... | @@ -538,21 +538,21 @@ trait AddTraitBoundToImplParameter { |
| 538 | 538 | fn id(self) -> Self; |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | #[cfg(any(bfail1,bfail4))] | |
| 541 | #[cfg(any(bpass1,bpass4))] | |
| 542 | 542 | impl<T> AddTraitBoundToImplParameter for T { |
| 543 | 543 | fn id(self) -> Self { self } |
| 544 | 544 | } |
| 545 | 545 | |
| 546 | #[cfg(not(any(bfail1,bfail4)))] | |
| 547 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail2")] | |
| 548 | #[rustc_clean(cfg="bfail3")] | |
| 549 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bfail5")] | |
| 550 | #[rustc_clean(cfg="bfail6")] | |
| 546 | #[cfg(not(any(bpass1,bpass4)))] | |
| 547 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass2")] | |
| 548 | #[rustc_clean(cfg="bpass3")] | |
| 549 | #[rustc_clean(except="opt_hir_owner_nodes", cfg="bpass5")] | |
| 550 | #[rustc_clean(cfg="bpass6")] | |
| 551 | 551 | impl<T: Clone> AddTraitBoundToImplParameter for T { |
| 552 | #[rustc_clean(cfg="bfail2")] | |
| 553 | #[rustc_clean(cfg="bfail3")] | |
| 554 | #[rustc_clean(cfg="bfail5")] | |
| 555 | #[rustc_clean(cfg="bfail6")] | |
| 552 | #[rustc_clean(cfg="bpass2")] | |
| 553 | #[rustc_clean(cfg="bpass3")] | |
| 554 | #[rustc_clean(cfg="bpass5")] | |
| 555 | #[rustc_clean(cfg="bpass6")] | |
| 556 | 556 | fn id(self) -> Self { self } |
| 557 | 557 | } |
| 558 | 558 | |
| ... | ... | @@ -563,7 +563,7 @@ trait AddNoMangleToMethod { |
| 563 | 563 | fn add_no_mangle_to_method(&self) { } |
| 564 | 564 | } |
| 565 | 565 | |
| 566 | #[cfg(any(bfail1,bfail4))] | |
| 566 | #[cfg(any(bpass1,bpass4))] | |
| 567 | 567 | impl AddNoMangleToMethod for Foo { |
| 568 | 568 | // ------------------------- |
| 569 | 569 | // ------------------------- |
| ... | ... | @@ -573,16 +573,16 @@ impl AddNoMangleToMethod for Foo { |
| 573 | 573 | fn add_no_mangle_to_method(&self) { } |
| 574 | 574 | } |
| 575 | 575 | |
| 576 | #[cfg(not(any(bfail1,bfail4)))] | |
| 577 | #[rustc_clean(cfg="bfail2")] | |
| 578 | #[rustc_clean(cfg="bfail3")] | |
| 579 | #[rustc_clean(cfg="bfail5")] | |
| 580 | #[rustc_clean(cfg="bfail6")] | |
| 576 | #[cfg(not(any(bpass1,bpass4)))] | |
| 577 | #[rustc_clean(cfg="bpass2")] | |
| 578 | #[rustc_clean(cfg="bpass3")] | |
| 579 | #[rustc_clean(cfg="bpass5")] | |
| 580 | #[rustc_clean(cfg="bpass6")] | |
| 581 | 581 | impl AddNoMangleToMethod for Foo { |
| 582 | #[rustc_clean(cfg="bfail2")] | |
| 583 | #[rustc_clean(cfg="bfail3")] | |
| 584 | #[rustc_clean(cfg="bfail5")] | |
| 585 | #[rustc_clean(cfg="bfail6")] | |
| 582 | #[rustc_clean(cfg="bpass2")] | |
| 583 | #[rustc_clean(cfg="bpass3")] | |
| 584 | #[rustc_clean(cfg="bpass5")] | |
| 585 | #[rustc_clean(cfg="bpass6")] | |
| 586 | 586 | #[unsafe(no_mangle)] |
| 587 | 587 | fn add_no_mangle_to_method(&self) { } |
| 588 | 588 | } |
| ... | ... | @@ -593,7 +593,7 @@ trait MakeMethodInline { |
| 593 | 593 | fn make_method_inline(&self) -> u8 { 0 } |
| 594 | 594 | } |
| 595 | 595 | |
| 596 | #[cfg(any(bfail1,bfail4))] | |
| 596 | #[cfg(any(bpass1,bpass4))] | |
| 597 | 597 | impl MakeMethodInline for Foo { |
| 598 | 598 | // ------------------------- |
| 599 | 599 | // ------------------------- |
| ... | ... | @@ -603,16 +603,16 @@ impl MakeMethodInline for Foo { |
| 603 | 603 | fn make_method_inline(&self) -> u8 { 0 } |
| 604 | 604 | } |
| 605 | 605 | |
| 606 | #[cfg(not(any(bfail1,bfail4)))] | |
| 607 | #[rustc_clean(cfg="bfail2")] | |
| 608 | #[rustc_clean(cfg="bfail3")] | |
| 609 | #[rustc_clean(cfg="bfail5")] | |
| 610 | #[rustc_clean(cfg="bfail6")] | |
| 606 | #[cfg(not(any(bpass1,bpass4)))] | |
| 607 | #[rustc_clean(cfg="bpass2")] | |
| 608 | #[rustc_clean(cfg="bpass3")] | |
| 609 | #[rustc_clean(cfg="bpass5")] | |
| 610 | #[rustc_clean(cfg="bpass6")] | |
| 611 | 611 | impl MakeMethodInline for Foo { |
| 612 | #[rustc_clean(cfg="bfail2")] | |
| 613 | #[rustc_clean(cfg="bfail3")] | |
| 614 | #[rustc_clean(cfg="bfail5")] | |
| 615 | #[rustc_clean(cfg="bfail6")] | |
| 612 | #[rustc_clean(cfg="bpass2")] | |
| 613 | #[rustc_clean(cfg="bpass3")] | |
| 614 | #[rustc_clean(cfg="bpass5")] | |
| 615 | #[rustc_clean(cfg="bpass6")] | |
| 616 | 616 | #[inline] |
| 617 | 617 | fn make_method_inline(&self) -> u8 { 0 } |
| 618 | 618 | } |
tests/incremental/hashes/type_defs.rs+66-66| ... | ... | @@ -10,10 +10,10 @@ |
| 10 | 10 | // results in a change of the ICH for the enum's metadata, and that it stays |
| 11 | 11 | // the same between rev2 and rev3. |
| 12 | 12 | |
| 13 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 14 | //@ revisions: bfail1 bfail2 bfail3 | |
| 13 | //@ revisions: bpass1 bpass2 bpass3 | |
| 15 | 14 | //@ compile-flags: -Z query-dep-graph -O |
| 16 | 15 | //@ ignore-backends: gcc |
| 16 | // FIXME(#62277): could be check-pass? | |
| 17 | 17 | |
| 18 | 18 | #![allow(warnings)] |
| 19 | 19 | #![feature(rustc_attrs)] |
| ... | ... | @@ -21,34 +21,34 @@ |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | // Change type (primitive) ----------------------------------------------------- |
| 24 | #[cfg(bfail1)] | |
| 24 | #[cfg(bpass1)] | |
| 25 | 25 | type ChangePrimitiveType = i32; |
| 26 | 26 | |
| 27 | #[cfg(not(bfail1))] | |
| 28 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg="bfail3")] | |
| 27 | #[cfg(not(bpass1))] | |
| 28 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 29 | #[rustc_clean(cfg="bpass3")] | |
| 30 | 30 | type ChangePrimitiveType = i64; |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | |
| 34 | 34 | // Change mutability ----------------------------------------------------------- |
| 35 | #[cfg(bfail1)] | |
| 35 | #[cfg(bpass1)] | |
| 36 | 36 | type ChangeMutability = &'static i32; |
| 37 | 37 | |
| 38 | #[cfg(not(bfail1))] | |
| 39 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 40 | #[rustc_clean(cfg="bfail3")] | |
| 38 | #[cfg(not(bpass1))] | |
| 39 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 40 | #[rustc_clean(cfg="bpass3")] | |
| 41 | 41 | type ChangeMutability = &'static mut i32; |
| 42 | 42 | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | // Change mutability ----------------------------------------------------------- |
| 46 | #[cfg(bfail1)] | |
| 46 | #[cfg(bpass1)] | |
| 47 | 47 | type ChangeLifetime<'a> = (&'static i32, &'a i32); |
| 48 | 48 | |
| 49 | #[cfg(not(bfail1))] | |
| 50 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 51 | #[rustc_clean(cfg="bfail3")] | |
| 49 | #[cfg(not(bpass1))] | |
| 50 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 51 | #[rustc_clean(cfg="bpass3")] | |
| 52 | 52 | type ChangeLifetime<'a> = (&'a i32, &'a i32); |
| 53 | 53 | |
| 54 | 54 | |
| ... | ... | @@ -57,23 +57,23 @@ type ChangeLifetime<'a> = (&'a i32, &'a i32); |
| 57 | 57 | struct Struct1; |
| 58 | 58 | struct Struct2; |
| 59 | 59 | |
| 60 | #[cfg(bfail1)] | |
| 60 | #[cfg(bpass1)] | |
| 61 | 61 | type ChangeTypeStruct = Struct1; |
| 62 | 62 | |
| 63 | #[cfg(not(bfail1))] | |
| 64 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 65 | #[rustc_clean(cfg="bfail3")] | |
| 63 | #[cfg(not(bpass1))] | |
| 64 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 65 | #[rustc_clean(cfg="bpass3")] | |
| 66 | 66 | type ChangeTypeStruct = Struct2; |
| 67 | 67 | |
| 68 | 68 | |
| 69 | 69 | |
| 70 | 70 | // Change type (tuple) --------------------------------------------------------- |
| 71 | #[cfg(bfail1)] | |
| 71 | #[cfg(bpass1)] | |
| 72 | 72 | type ChangeTypeTuple = (u32, u64); |
| 73 | 73 | |
| 74 | #[cfg(not(bfail1))] | |
| 75 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 76 | #[rustc_clean(cfg="bfail3")] | |
| 74 | #[cfg(not(bpass1))] | |
| 75 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 76 | #[rustc_clean(cfg="bpass3")] | |
| 77 | 77 | type ChangeTypeTuple = (u32, i64); |
| 78 | 78 | |
| 79 | 79 | |
| ... | ... | @@ -88,102 +88,102 @@ enum Enum2 { |
| 88 | 88 | Var2, |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | #[cfg(bfail1)] | |
| 91 | #[cfg(bpass1)] | |
| 92 | 92 | type ChangeTypeEnum = Enum1; |
| 93 | 93 | |
| 94 | #[cfg(not(bfail1))] | |
| 95 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 96 | #[rustc_clean(cfg="bfail3")] | |
| 94 | #[cfg(not(bpass1))] | |
| 95 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 96 | #[rustc_clean(cfg="bpass3")] | |
| 97 | 97 | type ChangeTypeEnum = Enum2; |
| 98 | 98 | |
| 99 | 99 | |
| 100 | 100 | |
| 101 | 101 | // Add tuple field ------------------------------------------------------------- |
| 102 | #[cfg(bfail1)] | |
| 102 | #[cfg(bpass1)] | |
| 103 | 103 | type AddTupleField = (i32, i64); |
| 104 | 104 | |
| 105 | #[cfg(not(bfail1))] | |
| 106 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 107 | #[rustc_clean(cfg="bfail3")] | |
| 105 | #[cfg(not(bpass1))] | |
| 106 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 107 | #[rustc_clean(cfg="bpass3")] | |
| 108 | 108 | type AddTupleField = (i32, i64, i16); |
| 109 | 109 | |
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | // Change nested tuple field --------------------------------------------------- |
| 113 | #[cfg(bfail1)] | |
| 113 | #[cfg(bpass1)] | |
| 114 | 114 | type ChangeNestedTupleField = (i32, (i64, i16)); |
| 115 | 115 | |
| 116 | #[cfg(not(bfail1))] | |
| 117 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 118 | #[rustc_clean(cfg="bfail3")] | |
| 116 | #[cfg(not(bpass1))] | |
| 117 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 118 | #[rustc_clean(cfg="bpass3")] | |
| 119 | 119 | type ChangeNestedTupleField = (i32, (i64, i8)); |
| 120 | 120 | |
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | // Add type param -------------------------------------------------------------- |
| 124 | #[cfg(bfail1)] | |
| 124 | #[cfg(bpass1)] | |
| 125 | 125 | type AddTypeParam<T1> = (T1, T1); |
| 126 | 126 | |
| 127 | #[cfg(not(bfail1))] | |
| 128 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 129 | #[rustc_clean(cfg="bfail3")] | |
| 127 | #[cfg(not(bpass1))] | |
| 128 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 129 | #[rustc_clean(cfg="bpass3")] | |
| 130 | 130 | type AddTypeParam<T1, T2> = (T1, T2); |
| 131 | 131 | |
| 132 | 132 | |
| 133 | 133 | |
| 134 | 134 | // Add type param bound -------------------------------------------------------- |
| 135 | #[cfg(bfail1)] | |
| 135 | #[cfg(bpass1)] | |
| 136 | 136 | type AddTypeParamBound<T1> = (T1, u32); |
| 137 | 137 | |
| 138 | #[cfg(not(bfail1))] | |
| 139 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 140 | #[rustc_clean(cfg="bfail3")] | |
| 138 | #[cfg(not(bpass1))] | |
| 139 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 140 | #[rustc_clean(cfg="bpass3")] | |
| 141 | 141 | type AddTypeParamBound<T1: Clone> = (T1, u32); |
| 142 | 142 | |
| 143 | 143 | |
| 144 | 144 | |
| 145 | 145 | // Add type param bound in where clause ---------------------------------------- |
| 146 | #[cfg(bfail1)] | |
| 146 | #[cfg(bpass1)] | |
| 147 | 147 | type AddTypeParamBoundWhereClause<T1> where T1: Clone = (T1, u32); |
| 148 | 148 | |
| 149 | #[cfg(not(bfail1))] | |
| 150 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 151 | #[rustc_clean(cfg="bfail3")] | |
| 149 | #[cfg(not(bpass1))] | |
| 150 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 151 | #[rustc_clean(cfg="bpass3")] | |
| 152 | 152 | type AddTypeParamBoundWhereClause<T1> where T1: Clone+Copy = (T1, u32); |
| 153 | 153 | |
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | // Add lifetime param ---------------------------------------------------------- |
| 157 | #[cfg(bfail1)] | |
| 157 | #[cfg(bpass1)] | |
| 158 | 158 | type AddLifetimeParam<'a> = (&'a u32, &'a u32); |
| 159 | 159 | |
| 160 | #[cfg(not(bfail1))] | |
| 161 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bfail3")] | |
| 160 | #[cfg(not(bpass1))] | |
| 161 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bpass3")] | |
| 163 | 163 | type AddLifetimeParam<'a, 'b> = (&'a u32, &'b u32); |
| 164 | 164 | |
| 165 | 165 | |
| 166 | 166 | |
| 167 | 167 | // Add lifetime param bound ---------------------------------------------------- |
| 168 | #[cfg(bfail1)] | |
| 168 | #[cfg(bpass1)] | |
| 169 | 169 | type AddLifetimeParamBound<'a, 'b> = (&'a u32, &'b u32); |
| 170 | 170 | |
| 171 | #[cfg(not(bfail1))] | |
| 172 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 173 | #[rustc_clean(cfg="bfail3")] | |
| 171 | #[cfg(not(bpass1))] | |
| 172 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 173 | #[rustc_clean(cfg="bpass3")] | |
| 174 | 174 | type AddLifetimeParamBound<'a, 'b: 'a> = (&'a u32, &'b u32); |
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 | |
| 178 | 178 | // Add lifetime param bound in where clause ------------------------------------ |
| 179 | #[cfg(bfail1)] | |
| 179 | #[cfg(bpass1)] | |
| 180 | 180 | type AddLifetimeParamBoundWhereClause<'a, 'b, 'c> |
| 181 | 181 | where 'b: 'a |
| 182 | 182 | = (&'a u32, &'b u32, &'c u32); |
| 183 | 183 | |
| 184 | #[cfg(not(bfail1))] | |
| 185 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 186 | #[rustc_clean(cfg="bfail3")] | |
| 184 | #[cfg(not(bpass1))] | |
| 185 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 186 | #[rustc_clean(cfg="bpass3")] | |
| 187 | 187 | type AddLifetimeParamBoundWhereClause<'a, 'b, 'c> |
| 188 | 188 | where 'b: 'a, |
| 189 | 189 | 'c: 'a |
| ... | ... | @@ -196,13 +196,13 @@ trait ReferencedTrait1 {} |
| 196 | 196 | trait ReferencedTrait2 {} |
| 197 | 197 | |
| 198 | 198 | mod change_trait_bound_indirectly { |
| 199 | #[cfg(bfail1)] | |
| 199 | #[cfg(bpass1)] | |
| 200 | 200 | use super::ReferencedTrait1 as Trait; |
| 201 | #[cfg(not(bfail1))] | |
| 201 | #[cfg(not(bpass1))] | |
| 202 | 202 | use super::ReferencedTrait2 as Trait; |
| 203 | 203 | |
| 204 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 205 | #[rustc_clean(cfg="bfail3")] | |
| 204 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 205 | #[rustc_clean(cfg="bpass3")] | |
| 206 | 206 | type ChangeTraitBoundIndirectly<T: Trait> = (T, u32); |
| 207 | 207 | } |
| 208 | 208 | |
| ... | ... | @@ -210,12 +210,12 @@ mod change_trait_bound_indirectly { |
| 210 | 210 | |
| 211 | 211 | // Change Trait Bound Indirectly In Where Clause ------------------------------- |
| 212 | 212 | mod change_trait_bound_indirectly_in_where_clause { |
| 213 | #[cfg(bfail1)] | |
| 213 | #[cfg(bpass1)] | |
| 214 | 214 | use super::ReferencedTrait1 as Trait; |
| 215 | #[cfg(not(bfail1))] | |
| 215 | #[cfg(not(bpass1))] | |
| 216 | 216 | use super::ReferencedTrait2 as Trait; |
| 217 | 217 | |
| 218 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 219 | #[rustc_clean(cfg="bfail3")] | |
| 218 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 219 | #[rustc_clean(cfg="bpass3")] | |
| 220 | 220 | type ChangeTraitBoundIndirectly<T> where T : Trait = (T, u32); |
| 221 | 221 | } |
tests/incremental/hashes/unary_and_binary_exprs.rs+173-173| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,16 +19,16 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change constant operand of negation ----------------------------------------- |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn const_negation() -> i32 { |
| 24 | 24 | -10 |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | #[cfg(not(any(bfail1,bfail4)))] | |
| 28 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 29 | #[rustc_clean(cfg="bfail3")] | |
| 30 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 31 | #[rustc_clean(cfg="bfail6")] | |
| 27 | #[cfg(not(any(bpass1,bpass4)))] | |
| 28 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 29 | #[rustc_clean(cfg="bpass3")] | |
| 30 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 31 | #[rustc_clean(cfg="bpass6")] | |
| 32 | 32 | pub fn const_negation() -> i32 { |
| 33 | 33 | -1 |
| 34 | 34 | } |
| ... | ... | @@ -36,16 +36,16 @@ pub fn const_negation() -> i32 { |
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | // Change constant operand of bitwise not -------------------------------------- |
| 39 | #[cfg(any(bfail1,bfail4))] | |
| 39 | #[cfg(any(bpass1,bpass4))] | |
| 40 | 40 | pub fn const_bitwise_not() -> i32 { |
| 41 | 41 | !100 |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | #[cfg(not(any(bfail1,bfail4)))] | |
| 45 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 46 | #[rustc_clean(cfg="bfail3")] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 48 | #[rustc_clean(cfg="bfail6")] | |
| 44 | #[cfg(not(any(bpass1,bpass4)))] | |
| 45 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 46 | #[rustc_clean(cfg="bpass3")] | |
| 47 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 48 | #[rustc_clean(cfg="bpass6")] | |
| 49 | 49 | pub fn const_bitwise_not() -> i32 { |
| 50 | 50 | !99 |
| 51 | 51 | } |
| ... | ... | @@ -53,16 +53,16 @@ pub fn const_bitwise_not() -> i32 { |
| 53 | 53 | |
| 54 | 54 | |
| 55 | 55 | // Change variable operand of negation ----------------------------------------- |
| 56 | #[cfg(any(bfail1,bfail4))] | |
| 56 | #[cfg(any(bpass1,bpass4))] | |
| 57 | 57 | pub fn var_negation(x: i32, y: i32) -> i32 { |
| 58 | 58 | -x |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | #[cfg(not(any(bfail1,bfail4)))] | |
| 62 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 63 | #[rustc_clean(cfg="bfail3")] | |
| 64 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 65 | #[rustc_clean(cfg="bfail6")] | |
| 61 | #[cfg(not(any(bpass1,bpass4)))] | |
| 62 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 63 | #[rustc_clean(cfg="bpass3")] | |
| 64 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 65 | #[rustc_clean(cfg="bpass6")] | |
| 66 | 66 | pub fn var_negation(x: i32, y: i32) -> i32 { |
| 67 | 67 | -y |
| 68 | 68 | } |
| ... | ... | @@ -70,16 +70,16 @@ pub fn var_negation(x: i32, y: i32) -> i32 { |
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | // Change variable operand of bitwise not -------------------------------------- |
| 73 | #[cfg(any(bfail1,bfail4))] | |
| 73 | #[cfg(any(bpass1,bpass4))] | |
| 74 | 74 | pub fn var_bitwise_not(x: i32, y: i32) -> i32 { |
| 75 | 75 | !x |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | #[cfg(not(any(bfail1,bfail4)))] | |
| 79 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 80 | #[rustc_clean(cfg="bfail3")] | |
| 81 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 82 | #[rustc_clean(cfg="bfail6")] | |
| 78 | #[cfg(not(any(bpass1,bpass4)))] | |
| 79 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 80 | #[rustc_clean(cfg="bpass3")] | |
| 81 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 82 | #[rustc_clean(cfg="bpass6")] | |
| 83 | 83 | pub fn var_bitwise_not(x: i32, y: i32) -> i32 { |
| 84 | 84 | !y |
| 85 | 85 | } |
| ... | ... | @@ -87,16 +87,16 @@ pub fn var_bitwise_not(x: i32, y: i32) -> i32 { |
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | // Change variable operand of deref -------------------------------------------- |
| 90 | #[cfg(any(bfail1,bfail4))] | |
| 90 | #[cfg(any(bpass1,bpass4))] | |
| 91 | 91 | pub fn var_deref(x: &i32, y: &i32) -> i32 { |
| 92 | 92 | *x |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | #[cfg(not(any(bfail1,bfail4)))] | |
| 96 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 97 | #[rustc_clean(cfg="bfail3")] | |
| 98 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 99 | #[rustc_clean(cfg="bfail6")] | |
| 95 | #[cfg(not(any(bpass1,bpass4)))] | |
| 96 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 97 | #[rustc_clean(cfg="bpass3")] | |
| 98 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 99 | #[rustc_clean(cfg="bpass6")] | |
| 100 | 100 | pub fn var_deref(x: &i32, y: &i32) -> i32 { |
| 101 | 101 | *y |
| 102 | 102 | } |
| ... | ... | @@ -104,16 +104,16 @@ pub fn var_deref(x: &i32, y: &i32) -> i32 { |
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | // Change first constant operand of addition ----------------------------------- |
| 107 | #[cfg(any(bfail1,bfail4))] | |
| 107 | #[cfg(any(bpass1,bpass4))] | |
| 108 | 108 | pub fn first_const_add() -> i32 { |
| 109 | 109 | 1 + 3 |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | #[cfg(not(any(bfail1,bfail4)))] | |
| 113 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 114 | #[rustc_clean(cfg="bfail3")] | |
| 115 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 116 | #[rustc_clean(cfg="bfail6")] | |
| 112 | #[cfg(not(any(bpass1,bpass4)))] | |
| 113 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 114 | #[rustc_clean(cfg="bpass3")] | |
| 115 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 116 | #[rustc_clean(cfg="bpass6")] | |
| 117 | 117 | pub fn first_const_add() -> i32 { |
| 118 | 118 | 2 + 3 |
| 119 | 119 | } |
| ... | ... | @@ -121,16 +121,16 @@ pub fn first_const_add() -> i32 { |
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | // Change second constant operand of addition ----------------------------------- |
| 124 | #[cfg(any(bfail1,bfail4))] | |
| 124 | #[cfg(any(bpass1,bpass4))] | |
| 125 | 125 | pub fn second_const_add() -> i32 { |
| 126 | 126 | 1 + 2 |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | #[cfg(not(any(bfail1,bfail4)))] | |
| 130 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 131 | #[rustc_clean(cfg="bfail3")] | |
| 132 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 133 | #[rustc_clean(cfg="bfail6")] | |
| 129 | #[cfg(not(any(bpass1,bpass4)))] | |
| 130 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 131 | #[rustc_clean(cfg="bpass3")] | |
| 132 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 133 | #[rustc_clean(cfg="bpass6")] | |
| 134 | 134 | pub fn second_const_add() -> i32 { |
| 135 | 135 | 1 + 3 |
| 136 | 136 | } |
| ... | ... | @@ -138,16 +138,16 @@ pub fn second_const_add() -> i32 { |
| 138 | 138 | |
| 139 | 139 | |
| 140 | 140 | // Change first variable operand of addition ----------------------------------- |
| 141 | #[cfg(any(bfail1,bfail4))] | |
| 141 | #[cfg(any(bpass1,bpass4))] | |
| 142 | 142 | pub fn first_var_add(a: i32, b: i32) -> i32 { |
| 143 | 143 | a + 2 |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | #[cfg(not(any(bfail1,bfail4)))] | |
| 147 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 148 | #[rustc_clean(cfg="bfail3")] | |
| 149 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 150 | #[rustc_clean(cfg="bfail6")] | |
| 146 | #[cfg(not(any(bpass1,bpass4)))] | |
| 147 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 148 | #[rustc_clean(cfg="bpass3")] | |
| 149 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 150 | #[rustc_clean(cfg="bpass6")] | |
| 151 | 151 | pub fn first_var_add(a: i32, b: i32) -> i32 { |
| 152 | 152 | b + 2 |
| 153 | 153 | } |
| ... | ... | @@ -155,16 +155,16 @@ pub fn first_var_add(a: i32, b: i32) -> i32 { |
| 155 | 155 | |
| 156 | 156 | |
| 157 | 157 | // Change second variable operand of addition ---------------------------------- |
| 158 | #[cfg(any(bfail1,bfail4))] | |
| 158 | #[cfg(any(bpass1,bpass4))] | |
| 159 | 159 | pub fn second_var_add(a: i32, b: i32) -> i32 { |
| 160 | 160 | 1 + a |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | #[cfg(not(any(bfail1,bfail4)))] | |
| 164 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 165 | #[rustc_clean(cfg="bfail3")] | |
| 166 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 167 | #[rustc_clean(cfg="bfail6")] | |
| 163 | #[cfg(not(any(bpass1,bpass4)))] | |
| 164 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 165 | #[rustc_clean(cfg="bpass3")] | |
| 166 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 167 | #[rustc_clean(cfg="bpass6")] | |
| 168 | 168 | pub fn second_var_add(a: i32, b: i32) -> i32 { |
| 169 | 169 | 1 + b |
| 170 | 170 | } |
| ... | ... | @@ -172,16 +172,16 @@ pub fn second_var_add(a: i32, b: i32) -> i32 { |
| 172 | 172 | |
| 173 | 173 | |
| 174 | 174 | // Change operator from + to - ------------------------------------------------- |
| 175 | #[cfg(any(bfail1,bfail4))] | |
| 175 | #[cfg(any(bpass1,bpass4))] | |
| 176 | 176 | pub fn plus_to_minus(a: i32) -> i32 { |
| 177 | 177 | 1 + a |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | #[cfg(not(any(bfail1,bfail4)))] | |
| 181 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 182 | #[rustc_clean(cfg="bfail3")] | |
| 183 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 184 | #[rustc_clean(cfg="bfail6")] | |
| 180 | #[cfg(not(any(bpass1,bpass4)))] | |
| 181 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 182 | #[rustc_clean(cfg="bpass3")] | |
| 183 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 184 | #[rustc_clean(cfg="bpass6")] | |
| 185 | 185 | pub fn plus_to_minus(a: i32) -> i32 { |
| 186 | 186 | 1 - a |
| 187 | 187 | } |
| ... | ... | @@ -189,16 +189,16 @@ pub fn plus_to_minus(a: i32) -> i32 { |
| 189 | 189 | |
| 190 | 190 | |
| 191 | 191 | // Change operator from + to * ------------------------------------------------- |
| 192 | #[cfg(any(bfail1,bfail4))] | |
| 192 | #[cfg(any(bpass1,bpass4))] | |
| 193 | 193 | pub fn plus_to_mult(a: i32) -> i32 { |
| 194 | 194 | 1 + a |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | #[cfg(not(any(bfail1,bfail4)))] | |
| 198 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 199 | #[rustc_clean(cfg="bfail3")] | |
| 200 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 201 | #[rustc_clean(cfg="bfail6")] | |
| 197 | #[cfg(not(any(bpass1,bpass4)))] | |
| 198 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 199 | #[rustc_clean(cfg="bpass3")] | |
| 200 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 201 | #[rustc_clean(cfg="bpass6")] | |
| 202 | 202 | pub fn plus_to_mult(a: i32) -> i32 { |
| 203 | 203 | 1 * a |
| 204 | 204 | } |
| ... | ... | @@ -206,16 +206,16 @@ pub fn plus_to_mult(a: i32) -> i32 { |
| 206 | 206 | |
| 207 | 207 | |
| 208 | 208 | // Change operator from + to / ------------------------------------------------- |
| 209 | #[cfg(any(bfail1,bfail4))] | |
| 209 | #[cfg(any(bpass1,bpass4))] | |
| 210 | 210 | pub fn plus_to_div(a: i32) -> i32 { |
| 211 | 211 | 1 + a |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | #[cfg(not(any(bfail1,bfail4)))] | |
| 215 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 216 | #[rustc_clean(cfg="bfail3")] | |
| 217 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 218 | #[rustc_clean(cfg="bfail6")] | |
| 214 | #[cfg(not(any(bpass1,bpass4)))] | |
| 215 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 216 | #[rustc_clean(cfg="bpass3")] | |
| 217 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 218 | #[rustc_clean(cfg="bpass6")] | |
| 219 | 219 | pub fn plus_to_div(a: i32) -> i32 { |
| 220 | 220 | 1 / a |
| 221 | 221 | } |
| ... | ... | @@ -223,16 +223,16 @@ pub fn plus_to_div(a: i32) -> i32 { |
| 223 | 223 | |
| 224 | 224 | |
| 225 | 225 | // Change operator from + to % ------------------------------------------------- |
| 226 | #[cfg(any(bfail1,bfail4))] | |
| 226 | #[cfg(any(bpass1,bpass4))] | |
| 227 | 227 | pub fn plus_to_mod(a: i32) -> i32 { |
| 228 | 228 | 1 + a |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | #[cfg(not(any(bfail1,bfail4)))] | |
| 232 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 233 | #[rustc_clean(cfg="bfail3")] | |
| 234 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 235 | #[rustc_clean(cfg="bfail6")] | |
| 231 | #[cfg(not(any(bpass1,bpass4)))] | |
| 232 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 233 | #[rustc_clean(cfg="bpass3")] | |
| 234 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 235 | #[rustc_clean(cfg="bpass6")] | |
| 236 | 236 | pub fn plus_to_mod(a: i32) -> i32 { |
| 237 | 237 | 1 % a |
| 238 | 238 | } |
| ... | ... | @@ -240,16 +240,16 @@ pub fn plus_to_mod(a: i32) -> i32 { |
| 240 | 240 | |
| 241 | 241 | |
| 242 | 242 | // Change operator from && to || ----------------------------------------------- |
| 243 | #[cfg(any(bfail1,bfail4))] | |
| 243 | #[cfg(any(bpass1,bpass4))] | |
| 244 | 244 | pub fn and_to_or(a: bool, b: bool) -> bool { |
| 245 | 245 | a && b |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | #[cfg(not(any(bfail1,bfail4)))] | |
| 249 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 250 | #[rustc_clean(cfg="bfail3")] | |
| 251 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 252 | #[rustc_clean(cfg="bfail6")] | |
| 248 | #[cfg(not(any(bpass1,bpass4)))] | |
| 249 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 250 | #[rustc_clean(cfg="bpass3")] | |
| 251 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 252 | #[rustc_clean(cfg="bpass6")] | |
| 253 | 253 | pub fn and_to_or(a: bool, b: bool) -> bool { |
| 254 | 254 | a || b |
| 255 | 255 | } |
| ... | ... | @@ -257,16 +257,16 @@ pub fn and_to_or(a: bool, b: bool) -> bool { |
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | // Change operator from & to | ------------------------------------------------- |
| 260 | #[cfg(any(bfail1,bfail4))] | |
| 260 | #[cfg(any(bpass1,bpass4))] | |
| 261 | 261 | pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 { |
| 262 | 262 | 1 & a |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | #[cfg(not(any(bfail1,bfail4)))] | |
| 266 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 267 | #[rustc_clean(cfg="bfail3")] | |
| 268 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 269 | #[rustc_clean(cfg="bfail6")] | |
| 265 | #[cfg(not(any(bpass1,bpass4)))] | |
| 266 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 267 | #[rustc_clean(cfg="bpass3")] | |
| 268 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 269 | #[rustc_clean(cfg="bpass6")] | |
| 270 | 270 | pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 { |
| 271 | 271 | 1 | a |
| 272 | 272 | } |
| ... | ... | @@ -274,16 +274,16 @@ pub fn bitwise_and_to_bitwise_or(a: i32) -> i32 { |
| 274 | 274 | |
| 275 | 275 | |
| 276 | 276 | // Change operator from & to ^ ------------------------------------------------- |
| 277 | #[cfg(any(bfail1,bfail4))] | |
| 277 | #[cfg(any(bpass1,bpass4))] | |
| 278 | 278 | pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 { |
| 279 | 279 | 1 & a |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | #[cfg(not(any(bfail1,bfail4)))] | |
| 283 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 284 | #[rustc_clean(cfg="bfail3")] | |
| 285 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 286 | #[rustc_clean(cfg="bfail6")] | |
| 282 | #[cfg(not(any(bpass1,bpass4)))] | |
| 283 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 284 | #[rustc_clean(cfg="bpass3")] | |
| 285 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 286 | #[rustc_clean(cfg="bpass6")] | |
| 287 | 287 | pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 { |
| 288 | 288 | 1 ^ a |
| 289 | 289 | } |
| ... | ... | @@ -291,16 +291,16 @@ pub fn bitwise_and_to_bitwise_xor(a: i32) -> i32 { |
| 291 | 291 | |
| 292 | 292 | |
| 293 | 293 | // Change operator from & to << ------------------------------------------------ |
| 294 | #[cfg(any(bfail1,bfail4))] | |
| 294 | #[cfg(any(bpass1,bpass4))] | |
| 295 | 295 | pub fn bitwise_and_to_lshift(a: i32) -> i32 { |
| 296 | 296 | a & 1 |
| 297 | 297 | } |
| 298 | 298 | |
| 299 | #[cfg(not(any(bfail1,bfail4)))] | |
| 300 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 301 | #[rustc_clean(cfg="bfail3")] | |
| 302 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 303 | #[rustc_clean(cfg="bfail6")] | |
| 299 | #[cfg(not(any(bpass1,bpass4)))] | |
| 300 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 301 | #[rustc_clean(cfg="bpass3")] | |
| 302 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 303 | #[rustc_clean(cfg="bpass6")] | |
| 304 | 304 | pub fn bitwise_and_to_lshift(a: i32) -> i32 { |
| 305 | 305 | a << 1 |
| 306 | 306 | } |
| ... | ... | @@ -308,16 +308,16 @@ pub fn bitwise_and_to_lshift(a: i32) -> i32 { |
| 308 | 308 | |
| 309 | 309 | |
| 310 | 310 | // Change operator from & to >> ------------------------------------------------ |
| 311 | #[cfg(any(bfail1,bfail4))] | |
| 311 | #[cfg(any(bpass1,bpass4))] | |
| 312 | 312 | pub fn bitwise_and_to_rshift(a: i32) -> i32 { |
| 313 | 313 | a & 1 |
| 314 | 314 | } |
| 315 | 315 | |
| 316 | #[cfg(not(any(bfail1,bfail4)))] | |
| 317 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 318 | #[rustc_clean(cfg="bfail3")] | |
| 319 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 320 | #[rustc_clean(cfg="bfail6")] | |
| 316 | #[cfg(not(any(bpass1,bpass4)))] | |
| 317 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 318 | #[rustc_clean(cfg="bpass3")] | |
| 319 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 320 | #[rustc_clean(cfg="bpass6")] | |
| 321 | 321 | pub fn bitwise_and_to_rshift(a: i32) -> i32 { |
| 322 | 322 | a >> 1 |
| 323 | 323 | } |
| ... | ... | @@ -325,16 +325,16 @@ pub fn bitwise_and_to_rshift(a: i32) -> i32 { |
| 325 | 325 | |
| 326 | 326 | |
| 327 | 327 | // Change operator from == to != ----------------------------------------------- |
| 328 | #[cfg(any(bfail1,bfail4))] | |
| 328 | #[cfg(any(bpass1,bpass4))] | |
| 329 | 329 | pub fn eq_to_uneq(a: i32) -> bool { |
| 330 | 330 | a == 1 |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | #[cfg(not(any(bfail1,bfail4)))] | |
| 334 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 335 | #[rustc_clean(cfg="bfail3")] | |
| 336 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 337 | #[rustc_clean(cfg="bfail6")] | |
| 333 | #[cfg(not(any(bpass1,bpass4)))] | |
| 334 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 335 | #[rustc_clean(cfg="bpass3")] | |
| 336 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 337 | #[rustc_clean(cfg="bpass6")] | |
| 338 | 338 | pub fn eq_to_uneq(a: i32) -> bool { |
| 339 | 339 | a != 1 |
| 340 | 340 | } |
| ... | ... | @@ -342,16 +342,16 @@ pub fn eq_to_uneq(a: i32) -> bool { |
| 342 | 342 | |
| 343 | 343 | |
| 344 | 344 | // Change operator from == to < ------------------------------------------------ |
| 345 | #[cfg(any(bfail1,bfail4))] | |
| 345 | #[cfg(any(bpass1,bpass4))] | |
| 346 | 346 | pub fn eq_to_lt(a: i32) -> bool { |
| 347 | 347 | a == 1 |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | #[cfg(not(any(bfail1,bfail4)))] | |
| 351 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 352 | #[rustc_clean(cfg="bfail3")] | |
| 353 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 354 | #[rustc_clean(cfg="bfail6")] | |
| 350 | #[cfg(not(any(bpass1,bpass4)))] | |
| 351 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 352 | #[rustc_clean(cfg="bpass3")] | |
| 353 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 354 | #[rustc_clean(cfg="bpass6")] | |
| 355 | 355 | pub fn eq_to_lt(a: i32) -> bool { |
| 356 | 356 | a < 1 |
| 357 | 357 | } |
| ... | ... | @@ -359,16 +359,16 @@ pub fn eq_to_lt(a: i32) -> bool { |
| 359 | 359 | |
| 360 | 360 | |
| 361 | 361 | // Change operator from == to > ------------------------------------------------ |
| 362 | #[cfg(any(bfail1,bfail4))] | |
| 362 | #[cfg(any(bpass1,bpass4))] | |
| 363 | 363 | pub fn eq_to_gt(a: i32) -> bool { |
| 364 | 364 | a == 1 |
| 365 | 365 | } |
| 366 | 366 | |
| 367 | #[cfg(not(any(bfail1,bfail4)))] | |
| 368 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 369 | #[rustc_clean(cfg="bfail3")] | |
| 370 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 371 | #[rustc_clean(cfg="bfail6")] | |
| 367 | #[cfg(not(any(bpass1,bpass4)))] | |
| 368 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 369 | #[rustc_clean(cfg="bpass3")] | |
| 370 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 371 | #[rustc_clean(cfg="bpass6")] | |
| 372 | 372 | pub fn eq_to_gt(a: i32) -> bool { |
| 373 | 373 | a > 1 |
| 374 | 374 | } |
| ... | ... | @@ -376,16 +376,16 @@ pub fn eq_to_gt(a: i32) -> bool { |
| 376 | 376 | |
| 377 | 377 | |
| 378 | 378 | // Change operator from == to <= ----------------------------------------------- |
| 379 | #[cfg(any(bfail1,bfail4))] | |
| 379 | #[cfg(any(bpass1,bpass4))] | |
| 380 | 380 | pub fn eq_to_le(a: i32) -> bool { |
| 381 | 381 | a == 1 |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | #[cfg(not(any(bfail1,bfail4)))] | |
| 385 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 386 | #[rustc_clean(cfg="bfail3")] | |
| 387 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 388 | #[rustc_clean(cfg="bfail6")] | |
| 384 | #[cfg(not(any(bpass1,bpass4)))] | |
| 385 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 386 | #[rustc_clean(cfg="bpass3")] | |
| 387 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 388 | #[rustc_clean(cfg="bpass6")] | |
| 389 | 389 | pub fn eq_to_le(a: i32) -> bool { |
| 390 | 390 | a <= 1 |
| 391 | 391 | } |
| ... | ... | @@ -393,16 +393,16 @@ pub fn eq_to_le(a: i32) -> bool { |
| 393 | 393 | |
| 394 | 394 | |
| 395 | 395 | // Change operator from == to >= ----------------------------------------------- |
| 396 | #[cfg(any(bfail1,bfail4))] | |
| 396 | #[cfg(any(bpass1,bpass4))] | |
| 397 | 397 | pub fn eq_to_ge(a: i32) -> bool { |
| 398 | 398 | a == 1 |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | #[cfg(not(any(bfail1,bfail4)))] | |
| 402 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 403 | #[rustc_clean(cfg="bfail3")] | |
| 404 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 405 | #[rustc_clean(cfg="bfail6")] | |
| 401 | #[cfg(not(any(bpass1,bpass4)))] | |
| 402 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 403 | #[rustc_clean(cfg="bpass3")] | |
| 404 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 405 | #[rustc_clean(cfg="bpass6")] | |
| 406 | 406 | pub fn eq_to_ge(a: i32) -> bool { |
| 407 | 407 | a >= 1 |
| 408 | 408 | } |
| ... | ... | @@ -410,18 +410,18 @@ pub fn eq_to_ge(a: i32) -> bool { |
| 410 | 410 | |
| 411 | 411 | |
| 412 | 412 | // Change type in cast expression ---------------------------------------------- |
| 413 | #[cfg(any(bfail1,bfail4))] | |
| 413 | #[cfg(any(bpass1,bpass4))] | |
| 414 | 414 | pub fn type_cast(a: u8) -> u64 { |
| 415 | 415 | let b = a as i32; |
| 416 | 416 | let c = b as u64; |
| 417 | 417 | c |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | #[cfg(not(any(bfail1,bfail4)))] | |
| 421 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="bfail2")] | |
| 422 | #[rustc_clean(cfg="bfail3")] | |
| 423 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="bfail5")] | |
| 424 | #[rustc_clean(cfg="bfail6")] | |
| 420 | #[cfg(not(any(bpass1,bpass4)))] | |
| 421 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="bpass2")] | |
| 422 | #[rustc_clean(cfg="bpass3")] | |
| 423 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir,typeck_root", cfg="bpass5")] | |
| 424 | #[rustc_clean(cfg="bpass6")] | |
| 425 | 425 | pub fn type_cast(a: u8) -> u64 { |
| 426 | 426 | let b = a as u32; |
| 427 | 427 | let c = b as u64; |
| ... | ... | @@ -431,16 +431,16 @@ pub fn type_cast(a: u8) -> u64 { |
| 431 | 431 | |
| 432 | 432 | |
| 433 | 433 | // Change value in cast expression --------------------------------------------- |
| 434 | #[cfg(any(bfail1,bfail4))] | |
| 434 | #[cfg(any(bpass1,bpass4))] | |
| 435 | 435 | pub fn value_cast(a: u32) -> i32 { |
| 436 | 436 | 1 as i32 |
| 437 | 437 | } |
| 438 | 438 | |
| 439 | #[cfg(not(any(bfail1,bfail4)))] | |
| 440 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 441 | #[rustc_clean(cfg="bfail3")] | |
| 442 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 443 | #[rustc_clean(cfg="bfail6")] | |
| 439 | #[cfg(not(any(bpass1,bpass4)))] | |
| 440 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 441 | #[rustc_clean(cfg="bpass3")] | |
| 442 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 443 | #[rustc_clean(cfg="bpass6")] | |
| 444 | 444 | pub fn value_cast(a: u32) -> i32 { |
| 445 | 445 | 2 as i32 |
| 446 | 446 | } |
| ... | ... | @@ -448,7 +448,7 @@ pub fn value_cast(a: u32) -> i32 { |
| 448 | 448 | |
| 449 | 449 | |
| 450 | 450 | // Change place in assignment -------------------------------------------------- |
| 451 | #[cfg(any(bfail1,bfail4))] | |
| 451 | #[cfg(any(bpass1,bpass4))] | |
| 452 | 452 | pub fn place() -> i32 { |
| 453 | 453 | let mut x = 10; |
| 454 | 454 | let mut y = 11; |
| ... | ... | @@ -456,11 +456,11 @@ pub fn place() -> i32 { |
| 456 | 456 | x |
| 457 | 457 | } |
| 458 | 458 | |
| 459 | #[cfg(not(any(bfail1,bfail4)))] | |
| 460 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 461 | #[rustc_clean(cfg="bfail3")] | |
| 462 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 463 | #[rustc_clean(cfg="bfail6")] | |
| 459 | #[cfg(not(any(bpass1,bpass4)))] | |
| 460 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 461 | #[rustc_clean(cfg="bpass3")] | |
| 462 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 463 | #[rustc_clean(cfg="bpass6")] | |
| 464 | 464 | pub fn place() -> i32 { |
| 465 | 465 | let mut x = 10; |
| 466 | 466 | let mut y = 11; |
| ... | ... | @@ -471,18 +471,18 @@ pub fn place() -> i32 { |
| 471 | 471 | |
| 472 | 472 | |
| 473 | 473 | // Change r-value in assignment ------------------------------------------------ |
| 474 | #[cfg(any(bfail1,bfail4))] | |
| 474 | #[cfg(any(bpass1,bpass4))] | |
| 475 | 475 | pub fn rvalue() -> i32 { |
| 476 | 476 | let mut x = 10; |
| 477 | 477 | x = 9; |
| 478 | 478 | x |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | #[cfg(not(any(bfail1,bfail4)))] | |
| 482 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 483 | #[rustc_clean(cfg="bfail3")] | |
| 484 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 485 | #[rustc_clean(cfg="bfail6")] | |
| 481 | #[cfg(not(any(bpass1,bpass4)))] | |
| 482 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 483 | #[rustc_clean(cfg="bpass3")] | |
| 484 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 485 | #[rustc_clean(cfg="bpass6")] | |
| 486 | 486 | pub fn rvalue() -> i32 { |
| 487 | 487 | let mut x = 10; |
| 488 | 488 | x = 8; |
| ... | ... | @@ -492,16 +492,16 @@ pub fn rvalue() -> i32 { |
| 492 | 492 | |
| 493 | 493 | |
| 494 | 494 | // Change index into slice ----------------------------------------------------- |
| 495 | #[cfg(any(bfail1,bfail4))] | |
| 495 | #[cfg(any(bpass1,bpass4))] | |
| 496 | 496 | pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 { |
| 497 | 497 | s[i] |
| 498 | 498 | } |
| 499 | 499 | |
| 500 | #[cfg(not(any(bfail1,bfail4)))] | |
| 501 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail2")] | |
| 502 | #[rustc_clean(cfg="bfail3")] | |
| 503 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bfail5")] | |
| 504 | #[rustc_clean(cfg="bfail6")] | |
| 500 | #[cfg(not(any(bpass1,bpass4)))] | |
| 501 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass2")] | |
| 502 | #[rustc_clean(cfg="bpass3")] | |
| 503 | #[rustc_clean(except="opt_hir_owner_nodes,optimized_mir", cfg="bpass5")] | |
| 504 | #[rustc_clean(cfg="bpass6")] | |
| 505 | 505 | pub fn index_to_slice(s: &[u8], i: usize, j: usize) -> u8 { |
| 506 | 506 | s[j] |
| 507 | 507 | } |
tests/incremental/hashes/while_let_loops.rs+59-59| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change loop body |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn change_loop_body() { |
| 24 | 24 | let mut _x = 0; |
| 25 | 25 | while let Some(0u32) = None { |
| ... | ... | @@ -28,11 +28,11 @@ pub fn change_loop_body() { |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub fn change_loop_body() { |
| 37 | 37 | let mut _x = 0; |
| 38 | 38 | while let Some(0u32) = None { |
| ... | ... | @@ -44,7 +44,7 @@ pub fn change_loop_body() { |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | // Change loop body |
| 47 | #[cfg(any(bfail1,bfail4))] | |
| 47 | #[cfg(any(bpass1,bpass4))] | |
| 48 | 48 | pub fn change_loop_condition() { |
| 49 | 49 | let mut _x = 0; |
| 50 | 50 | while let Some(0u32) = None { |
| ... | ... | @@ -53,11 +53,11 @@ pub fn change_loop_condition() { |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | #[cfg(not(any(bfail1,bfail4)))] | |
| 57 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 58 | #[rustc_clean(cfg="bfail3")] | |
| 59 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 60 | #[rustc_clean(cfg="bfail6")] | |
| 56 | #[cfg(not(any(bpass1,bpass4)))] | |
| 57 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 58 | #[rustc_clean(cfg="bpass3")] | |
| 59 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 60 | #[rustc_clean(cfg="bpass6")] | |
| 61 | 61 | pub fn change_loop_condition() { |
| 62 | 62 | let mut _x = 0; |
| 63 | 63 | while let Some(1u32) = None { |
| ... | ... | @@ -69,7 +69,7 @@ pub fn change_loop_condition() { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Add break |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | pub fn add_break() { |
| 74 | 74 | let mut _x = 0; |
| 75 | 75 | while let Some(0u32) = None { |
| ... | ... | @@ -78,11 +78,11 @@ pub fn add_break() { |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | #[cfg(not(any(bfail1,bfail4)))] | |
| 82 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 84 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bfail6")] | |
| 81 | #[cfg(not(any(bpass1,bpass4)))] | |
| 82 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bpass6")] | |
| 86 | 86 | pub fn add_break() { |
| 87 | 87 | let mut _x = 0; |
| 88 | 88 | while let Some(0u32) = None { |
| ... | ... | @@ -94,7 +94,7 @@ pub fn add_break() { |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | // Add loop label |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | pub fn add_loop_label() { |
| 99 | 99 | let mut _x = 0; |
| 100 | 100 | while let Some(0u32) = None { |
| ... | ... | @@ -103,11 +103,11 @@ pub fn add_loop_label() { |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn add_loop_label() { |
| 112 | 112 | let mut _x = 0; |
| 113 | 113 | 'label: while let Some(0u32) = None { |
| ... | ... | @@ -119,7 +119,7 @@ pub fn add_loop_label() { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | // Add loop label to break |
| 122 | #[cfg(any(bfail1,bfail4))] | |
| 122 | #[cfg(any(bpass1,bpass4))] | |
| 123 | 123 | pub fn add_loop_label_to_break() { |
| 124 | 124 | let mut _x = 0; |
| 125 | 125 | 'label: while let Some(0u32) = None { |
| ... | ... | @@ -128,11 +128,11 @@ pub fn add_loop_label_to_break() { |
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | #[cfg(not(any(bfail1,bfail4)))] | |
| 132 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bfail3")] | |
| 134 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bfail6")] | |
| 131 | #[cfg(not(any(bpass1,bpass4)))] | |
| 132 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bpass3")] | |
| 134 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bpass6")] | |
| 136 | 136 | pub fn add_loop_label_to_break() { |
| 137 | 137 | let mut _x = 0; |
| 138 | 138 | 'label: while let Some(0u32) = None { |
| ... | ... | @@ -144,7 +144,7 @@ pub fn add_loop_label_to_break() { |
| 144 | 144 | |
| 145 | 145 | |
| 146 | 146 | // Change break label |
| 147 | #[cfg(any(bfail1,bfail4))] | |
| 147 | #[cfg(any(bpass1,bpass4))] | |
| 148 | 148 | pub fn change_break_label() { |
| 149 | 149 | let mut _x = 0; |
| 150 | 150 | 'outer: while let Some(0u32) = None { |
| ... | ... | @@ -155,11 +155,11 @@ pub fn change_break_label() { |
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | #[cfg(not(any(bfail1,bfail4)))] | |
| 159 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 160 | #[rustc_clean(cfg="bfail3")] | |
| 161 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bfail6")] | |
| 158 | #[cfg(not(any(bpass1,bpass4)))] | |
| 159 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 160 | #[rustc_clean(cfg="bpass3")] | |
| 161 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 162 | #[rustc_clean(cfg="bpass6")] | |
| 163 | 163 | pub fn change_break_label() { |
| 164 | 164 | let mut _x = 0; |
| 165 | 165 | 'outer: while let Some(0u32) = None { |
| ... | ... | @@ -171,7 +171,7 @@ pub fn change_break_label() { |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | // Add loop label to continue |
| 174 | #[cfg(any(bfail1,bfail4))] | |
| 174 | #[cfg(any(bpass1,bpass4))] | |
| 175 | 175 | pub fn add_loop_label_to_continue() { |
| 176 | 176 | let mut _x = 0; |
| 177 | 177 | 'label: while let Some(0u32) = None { |
| ... | ... | @@ -180,11 +180,11 @@ pub fn add_loop_label_to_continue() { |
| 180 | 180 | } |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | #[cfg(not(any(bfail1,bfail4)))] | |
| 184 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 185 | #[rustc_clean(cfg="bfail3")] | |
| 186 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 187 | #[rustc_clean(cfg="bfail6")] | |
| 183 | #[cfg(not(any(bpass1,bpass4)))] | |
| 184 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 185 | #[rustc_clean(cfg="bpass3")] | |
| 186 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 187 | #[rustc_clean(cfg="bpass6")] | |
| 188 | 188 | pub fn add_loop_label_to_continue() { |
| 189 | 189 | let mut _x = 0; |
| 190 | 190 | 'label: while let Some(0u32) = None { |
| ... | ... | @@ -196,7 +196,7 @@ pub fn add_loop_label_to_continue() { |
| 196 | 196 | |
| 197 | 197 | |
| 198 | 198 | // Change continue label |
| 199 | #[cfg(any(bfail1,bfail4))] | |
| 199 | #[cfg(any(bpass1,bpass4))] | |
| 200 | 200 | pub fn change_continue_label() { |
| 201 | 201 | let mut _x = 0; |
| 202 | 202 | 'outer: while let Some(0u32) = None { |
| ... | ... | @@ -207,11 +207,11 @@ pub fn change_continue_label() { |
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | #[cfg(not(any(bfail1,bfail4)))] | |
| 211 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 212 | #[rustc_clean(cfg="bfail3")] | |
| 213 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 214 | #[rustc_clean(cfg="bfail6")] | |
| 210 | #[cfg(not(any(bpass1,bpass4)))] | |
| 211 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 212 | #[rustc_clean(cfg="bpass3")] | |
| 213 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 214 | #[rustc_clean(cfg="bpass6")] | |
| 215 | 215 | pub fn change_continue_label() { |
| 216 | 216 | let mut _x = 0; |
| 217 | 217 | 'outer: while let Some(0u32) = None { |
| ... | ... | @@ -225,7 +225,7 @@ pub fn change_continue_label() { |
| 225 | 225 | |
| 226 | 226 | |
| 227 | 227 | // Change continue to break |
| 228 | #[cfg(any(bfail1,bfail4))] | |
| 228 | #[cfg(any(bpass1,bpass4))] | |
| 229 | 229 | pub fn change_continue_to_break() { |
| 230 | 230 | let mut _x = 0; |
| 231 | 231 | while let Some(0u32) = None { |
| ... | ... | @@ -234,11 +234,11 @@ pub fn change_continue_to_break() { |
| 234 | 234 | } |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | #[cfg(not(any(bfail1,bfail4)))] | |
| 238 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 239 | #[rustc_clean(cfg="bfail3")] | |
| 240 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 241 | #[rustc_clean(cfg="bfail6")] | |
| 237 | #[cfg(not(any(bpass1,bpass4)))] | |
| 238 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 239 | #[rustc_clean(cfg="bpass3")] | |
| 240 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 241 | #[rustc_clean(cfg="bpass6")] | |
| 242 | 242 | pub fn change_continue_to_break() { |
| 243 | 243 | let mut _x = 0; |
| 244 | 244 | while let Some(0u32) = None { |
tests/incremental/hashes/while_loops.rs+59-59| ... | ... | @@ -5,13 +5,13 @@ |
| 5 | 5 | // and make sure that the hash has changed, then change nothing between rev2 and |
| 6 | 6 | // rev3 and make sure that the hash has not changed. |
| 7 | 7 | |
| 8 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 bfail4 bfail5 bfail6 | |
| 8 | //@ revisions: bpass1 bpass2 bpass3 bpass4 bpass5 bpass6 | |
| 10 | 9 | //@ compile-flags: -Z query-dep-graph -O |
| 11 | //@ [bfail1]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bfail2]compile-flags: -Zincremental-ignore-spans | |
| 13 | //@ [bfail3]compile-flags: -Zincremental-ignore-spans | |
| 10 | //@ [bpass1]compile-flags: -Zincremental-ignore-spans | |
| 11 | //@ [bpass2]compile-flags: -Zincremental-ignore-spans | |
| 12 | //@ [bpass3]compile-flags: -Zincremental-ignore-spans | |
| 14 | 13 | //@ ignore-backends: gcc |
| 14 | // FIXME(#62277): could be check-pass? | |
| 15 | 15 | |
| 16 | 16 | #![allow(warnings)] |
| 17 | 17 | #![feature(rustc_attrs)] |
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | |
| 20 | 20 | |
| 21 | 21 | // Change loop body |
| 22 | #[cfg(any(bfail1,bfail4))] | |
| 22 | #[cfg(any(bpass1,bpass4))] | |
| 23 | 23 | pub fn change_loop_body() { |
| 24 | 24 | let mut _x = 0; |
| 25 | 25 | while true { |
| ... | ... | @@ -28,11 +28,11 @@ pub fn change_loop_body() { |
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | #[cfg(not(any(bfail1,bfail4)))] | |
| 32 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bfail3")] | |
| 34 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bfail6")] | |
| 31 | #[cfg(not(any(bpass1,bpass4)))] | |
| 32 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 33 | #[rustc_clean(cfg="bpass3")] | |
| 34 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 35 | #[rustc_clean(cfg="bpass6")] | |
| 36 | 36 | pub fn change_loop_body() { |
| 37 | 37 | let mut _x = 0; |
| 38 | 38 | while true { |
| ... | ... | @@ -44,7 +44,7 @@ pub fn change_loop_body() { |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | // Change loop body |
| 47 | #[cfg(any(bfail1,bfail4))] | |
| 47 | #[cfg(any(bpass1,bpass4))] | |
| 48 | 48 | pub fn change_loop_condition() { |
| 49 | 49 | let mut _x = 0; |
| 50 | 50 | while true { |
| ... | ... | @@ -53,11 +53,11 @@ pub fn change_loop_condition() { |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | #[cfg(not(any(bfail1,bfail4)))] | |
| 57 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 58 | #[rustc_clean(cfg="bfail3")] | |
| 59 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 60 | #[rustc_clean(cfg="bfail6")] | |
| 56 | #[cfg(not(any(bpass1,bpass4)))] | |
| 57 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 58 | #[rustc_clean(cfg="bpass3")] | |
| 59 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 60 | #[rustc_clean(cfg="bpass6")] | |
| 61 | 61 | pub fn change_loop_condition() { |
| 62 | 62 | let mut _x = 0; |
| 63 | 63 | while false { |
| ... | ... | @@ -69,7 +69,7 @@ pub fn change_loop_condition() { |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | // Add break |
| 72 | #[cfg(any(bfail1,bfail4))] | |
| 72 | #[cfg(any(bpass1,bpass4))] | |
| 73 | 73 | pub fn add_break() { |
| 74 | 74 | let mut _x = 0; |
| 75 | 75 | while true { |
| ... | ... | @@ -78,11 +78,11 @@ pub fn add_break() { |
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | #[cfg(not(any(bfail1,bfail4)))] | |
| 82 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bfail3")] | |
| 84 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bfail6")] | |
| 81 | #[cfg(not(any(bpass1,bpass4)))] | |
| 82 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 83 | #[rustc_clean(cfg="bpass3")] | |
| 84 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir, typeck_root")] | |
| 85 | #[rustc_clean(cfg="bpass6")] | |
| 86 | 86 | pub fn add_break() { |
| 87 | 87 | let mut _x = 0; |
| 88 | 88 | while true { |
| ... | ... | @@ -94,7 +94,7 @@ pub fn add_break() { |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | // Add loop label |
| 97 | #[cfg(any(bfail1,bfail4))] | |
| 97 | #[cfg(any(bpass1,bpass4))] | |
| 98 | 98 | pub fn add_loop_label() { |
| 99 | 99 | let mut _x = 0; |
| 100 | 100 | while true { |
| ... | ... | @@ -103,11 +103,11 @@ pub fn add_loop_label() { |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | #[cfg(not(any(bfail1,bfail4)))] | |
| 107 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bfail3")] | |
| 109 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bfail6")] | |
| 106 | #[cfg(not(any(bpass1,bpass4)))] | |
| 107 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 108 | #[rustc_clean(cfg="bpass3")] | |
| 109 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 110 | #[rustc_clean(cfg="bpass6")] | |
| 111 | 111 | pub fn add_loop_label() { |
| 112 | 112 | let mut _x = 0; |
| 113 | 113 | 'label: while true { |
| ... | ... | @@ -119,7 +119,7 @@ pub fn add_loop_label() { |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | // Add loop label to break |
| 122 | #[cfg(any(bfail1,bfail4))] | |
| 122 | #[cfg(any(bpass1,bpass4))] | |
| 123 | 123 | pub fn add_loop_label_to_break() { |
| 124 | 124 | let mut _x = 0; |
| 125 | 125 | 'label: while true { |
| ... | ... | @@ -128,11 +128,11 @@ pub fn add_loop_label_to_break() { |
| 128 | 128 | } |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | #[cfg(not(any(bfail1,bfail4)))] | |
| 132 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bfail3")] | |
| 134 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bfail6")] | |
| 131 | #[cfg(not(any(bpass1,bpass4)))] | |
| 132 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 133 | #[rustc_clean(cfg="bpass3")] | |
| 134 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 135 | #[rustc_clean(cfg="bpass6")] | |
| 136 | 136 | pub fn add_loop_label_to_break() { |
| 137 | 137 | let mut _x = 0; |
| 138 | 138 | 'label: while true { |
| ... | ... | @@ -144,7 +144,7 @@ pub fn add_loop_label_to_break() { |
| 144 | 144 | |
| 145 | 145 | |
| 146 | 146 | // Change break label |
| 147 | #[cfg(any(bfail1,bfail4))] | |
| 147 | #[cfg(any(bpass1,bpass4))] | |
| 148 | 148 | pub fn change_break_label() { |
| 149 | 149 | let mut _x = 0; |
| 150 | 150 | 'outer: while true { |
| ... | ... | @@ -155,11 +155,11 @@ pub fn change_break_label() { |
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | #[cfg(not(any(bfail1,bfail4)))] | |
| 159 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 160 | #[rustc_clean(cfg="bfail3")] | |
| 161 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 162 | #[rustc_clean(cfg="bfail6")] | |
| 158 | #[cfg(not(any(bpass1,bpass4)))] | |
| 159 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes,optimized_mir")] | |
| 160 | #[rustc_clean(cfg="bpass3")] | |
| 161 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes,optimized_mir")] | |
| 162 | #[rustc_clean(cfg="bpass6")] | |
| 163 | 163 | pub fn change_break_label() { |
| 164 | 164 | let mut _x = 0; |
| 165 | 165 | 'outer: while true { |
| ... | ... | @@ -173,7 +173,7 @@ pub fn change_break_label() { |
| 173 | 173 | |
| 174 | 174 | |
| 175 | 175 | // Add loop label to continue |
| 176 | #[cfg(any(bfail1,bfail4))] | |
| 176 | #[cfg(any(bpass1,bpass4))] | |
| 177 | 177 | pub fn add_loop_label_to_continue() { |
| 178 | 178 | let mut _x = 0; |
| 179 | 179 | 'label: while true { |
| ... | ... | @@ -182,11 +182,11 @@ pub fn add_loop_label_to_continue() { |
| 182 | 182 | } |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | #[cfg(not(any(bfail1,bfail4)))] | |
| 186 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 187 | #[rustc_clean(cfg="bfail3")] | |
| 188 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 189 | #[rustc_clean(cfg="bfail6")] | |
| 185 | #[cfg(not(any(bpass1,bpass4)))] | |
| 186 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 187 | #[rustc_clean(cfg="bpass3")] | |
| 188 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 189 | #[rustc_clean(cfg="bpass6")] | |
| 190 | 190 | pub fn add_loop_label_to_continue() { |
| 191 | 191 | let mut _x = 0; |
| 192 | 192 | 'label: while true { |
| ... | ... | @@ -198,7 +198,7 @@ pub fn add_loop_label_to_continue() { |
| 198 | 198 | |
| 199 | 199 | |
| 200 | 200 | // Change continue label |
| 201 | #[cfg(any(bfail1,bfail4))] | |
| 201 | #[cfg(any(bpass1,bpass4))] | |
| 202 | 202 | pub fn change_continue_label() { |
| 203 | 203 | let mut _x = 0; |
| 204 | 204 | 'outer: while true { |
| ... | ... | @@ -209,11 +209,11 @@ pub fn change_continue_label() { |
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | #[cfg(not(any(bfail1,bfail4)))] | |
| 213 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes")] | |
| 214 | #[rustc_clean(cfg="bfail3")] | |
| 215 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes")] | |
| 216 | #[rustc_clean(cfg="bfail6")] | |
| 212 | #[cfg(not(any(bpass1,bpass4)))] | |
| 213 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes")] | |
| 214 | #[rustc_clean(cfg="bpass3")] | |
| 215 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes")] | |
| 216 | #[rustc_clean(cfg="bpass6")] | |
| 217 | 217 | pub fn change_continue_label() { |
| 218 | 218 | let mut _x = 0; |
| 219 | 219 | 'outer: while true { |
| ... | ... | @@ -227,7 +227,7 @@ pub fn change_continue_label() { |
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | // Change continue to break |
| 230 | #[cfg(any(bfail1,bfail4))] | |
| 230 | #[cfg(any(bpass1,bpass4))] | |
| 231 | 231 | pub fn change_continue_to_break() { |
| 232 | 232 | let mut _x = 0; |
| 233 | 233 | while true { |
| ... | ... | @@ -236,11 +236,11 @@ pub fn change_continue_to_break() { |
| 236 | 236 | } |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | #[cfg(not(any(bfail1,bfail4)))] | |
| 240 | #[rustc_clean(cfg="bfail2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 241 | #[rustc_clean(cfg="bfail3")] | |
| 242 | #[rustc_clean(cfg="bfail5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 243 | #[rustc_clean(cfg="bfail6")] | |
| 239 | #[cfg(not(any(bpass1,bpass4)))] | |
| 240 | #[rustc_clean(cfg="bpass2", except="opt_hir_owner_nodes, optimized_mir")] | |
| 241 | #[rustc_clean(cfg="bpass3")] | |
| 242 | #[rustc_clean(cfg="bpass5", except="opt_hir_owner_nodes, optimized_mir")] | |
| 243 | #[rustc_clean(cfg="bpass6")] | |
| 244 | 244 | pub fn change_continue_to_break() { |
| 245 | 245 | let mut _x = 0; |
| 246 | 246 | while true { |
tests/incremental/ich_nested_items.rs+6-6| ... | ... | @@ -1,24 +1,24 @@ |
| 1 | 1 | // Check that the hash of `foo` doesn't change just because we ordered |
| 2 | 2 | // the nested items (or even added new ones). |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 5 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 6 | 5 | //@ compile-flags: -Z query-dep-graph |
| 7 | 6 | //@ ignore-backends: gcc |
| 7 | // FIXME(#62277): could be check-pass? | |
| 8 | 8 | |
| 9 | 9 | #![crate_type = "rlib"] |
| 10 | 10 | #![feature(rustc_attrs)] |
| 11 | 11 | #![allow(dead_code)] |
| 12 | 12 | |
| 13 | #[rustc_clean(except = "opt_hir_owner_nodes", cfg = "bfail2")] | |
| 13 | #[rustc_clean(except = "opt_hir_owner_nodes", cfg = "bpass2")] | |
| 14 | 14 | pub fn foo() { |
| 15 | #[cfg(bfail1)] | |
| 15 | #[cfg(bpass1)] | |
| 16 | 16 | pub fn baz() {} // order is different... |
| 17 | 17 | |
| 18 | #[rustc_clean(cfg = "bfail2")] | |
| 18 | #[rustc_clean(cfg = "bpass2")] | |
| 19 | 19 | pub fn bar() {} // but that doesn't matter. |
| 20 | 20 | |
| 21 | #[cfg(bfail2)] | |
| 21 | #[cfg(bpass2)] | |
| 22 | 22 | pub fn baz() {} // order is different... |
| 23 | 23 | |
| 24 | 24 | pub fn bap() {} // neither does adding a new item |
tests/incremental/incremental_proc_macro.rs+2-2| ... | ... | @@ -1,7 +1,7 @@ |
| 1 | 1 | //@ proc-macro: incremental_proc_macro_aux.rs |
| 2 | //@ revisions: bfail1 bfail2 | |
| 3 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 2 | //@ revisions: bpass1 bpass2 | |
| 4 | 3 | //@ ignore-backends: gcc |
| 4 | // FIXME(#62277): could be check-pass? | |
| 5 | 5 | |
| 6 | 6 | // This test makes sure that we still find the proc-macro registrar function |
| 7 | 7 | // when we compile proc-macros incrementally (see #47292). |
tests/incremental/issue-42602.rs+6-6| ... | ... | @@ -6,10 +6,10 @@ |
| 6 | 6 | // This was fixed by improving the resolution of the `FnOnce` trait |
| 7 | 7 | // selection node. |
| 8 | 8 | |
| 9 | //@ revisions: bfail1 bfail2 bfail3 | |
| 9 | //@ revisions: bpass1 bpass2 bpass3 | |
| 10 | 10 | //@ compile-flags:-Zquery-dep-graph |
| 11 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 12 | 11 | //@ ignore-backends: gcc |
| 12 | // FIXME(#62277): could be check-pass? | |
| 13 | 13 | |
| 14 | 14 | #![feature(rustc_attrs)] |
| 15 | 15 | |
| ... | ... | @@ -19,14 +19,14 @@ fn main() { |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | mod a { |
| 22 | #[cfg(bfail1)] | |
| 22 | #[cfg(bpass1)] | |
| 23 | 23 | pub fn foo() { |
| 24 | 24 | let x = vec![1, 2, 3]; |
| 25 | 25 | let v = || ::std::mem::drop(x); |
| 26 | 26 | v(); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | #[cfg(not(bfail1))] | |
| 29 | #[cfg(not(bpass1))] | |
| 30 | 30 | pub fn foo() { |
| 31 | 31 | let x = vec![1, 2, 3, 4]; |
| 32 | 32 | let v = || ::std::mem::drop(x); |
| ... | ... | @@ -35,8 +35,8 @@ mod a { |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | mod b { |
| 38 | #[rustc_clean(cfg="bfail2")] | |
| 39 | #[rustc_clean(cfg="bfail3")] | |
| 38 | #[rustc_clean(cfg="bpass2")] | |
| 39 | #[rustc_clean(cfg="bpass3")] | |
| 40 | 40 | pub fn bar() { |
| 41 | 41 | let x = vec![1, 2, 3]; |
| 42 | 42 | let v = || ::std::mem::drop(x); |
tests/incremental/issue-49595/issue-49595.rs+6-7| ... | ... | @@ -1,16 +1,15 @@ |
| 1 | //@ revisions: bfail1 bfail2 bfail3 | |
| 1 | //@ revisions: bpass1 bpass2 bpass3 | |
| 2 | 2 | //@ compile-flags: -Z query-dep-graph --test |
| 3 | //@ build-pass | |
| 4 | 3 | //@ ignore-backends: gcc |
| 5 | 4 | |
| 6 | 5 | #![feature(rustc_attrs)] |
| 7 | 6 | #![crate_type = "rlib"] |
| 8 | 7 | |
| 9 | #![rustc_partition_codegened(module="issue_49595-tests", cfg="bfail2")] | |
| 10 | #![rustc_partition_codegened(module="issue_49595-lit_test", cfg="bfail3")] | |
| 8 | #![rustc_partition_codegened(module="issue_49595-tests", cfg="bpass2")] | |
| 9 | #![rustc_partition_codegened(module="issue_49595-lit_test", cfg="bpass3")] | |
| 11 | 10 | |
| 12 | 11 | mod tests { |
| 13 | #[cfg_attr(not(bfail1), test)] | |
| 12 | #[cfg_attr(not(bpass1), test)] | |
| 14 | 13 | fn _test() { |
| 15 | 14 | } |
| 16 | 15 | } |
| ... | ... | @@ -20,8 +19,8 @@ mod tests { |
| 20 | 19 | // takes effect. |
| 21 | 20 | |
| 22 | 21 | // replacing a module to have a stable span |
| 23 | #[cfg_attr(not(bfail3), path = "auxiliary/lit_a.rs")] | |
| 24 | #[cfg_attr(bfail3, path = "auxiliary/lit_b.rs")] | |
| 22 | #[cfg_attr(not(bpass3), path = "auxiliary/lit_a.rs")] | |
| 23 | #[cfg_attr(bpass3, path = "auxiliary/lit_b.rs")] | |
| 25 | 24 | mod lit; |
| 26 | 25 | |
| 27 | 26 | pub mod lit_test { |
tests/incremental/issue-59523-on-implemented-is-not-unused.rs+2-2| ... | ... | @@ -2,9 +2,9 @@ |
| 2 | 2 | // rustc_on_unimplemented, but with this bug we are seeing it fire (on |
| 3 | 3 | // subsequent runs) if incremental compilation is enabled. |
| 4 | 4 | |
| 5 | //@ revisions: bfail1 bfail2 | |
| 6 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 5 | //@ revisions: bpass1 bpass2 | |
| 7 | 6 | //@ ignore-backends: gcc |
| 7 | // FIXME(#62277): could be check-pass? | |
| 8 | 8 | |
| 9 | 9 | #![feature(rustc_attrs)] |
| 10 | 10 | #![deny(unused_attributes)] |
tests/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs+2-2| ... | ... | @@ -3,9 +3,9 @@ |
| 3 | 3 | // seeing it fire (on subsequent runs) if incremental compilation is |
| 4 | 4 | // enabled. |
| 5 | 5 | |
| 6 | //@ revisions: bfail1 bfail2 | |
| 7 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 6 | //@ revisions: bpass1 bpass2 | |
| 8 | 7 | //@ ignore-backends: gcc |
| 8 | // FIXME(#62277): could be check-pass? | |
| 9 | 9 | |
| 10 | 10 | #![feature(rustc_attrs)] |
| 11 | 11 | #![deny(unused_attributes)] |
tests/incremental/issue-84252-global-alloc.rs+2-3| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | //@ build-pass | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 3 | 2 | //@ needs-crate-type: cdylib |
| 4 | 3 | |
| 5 | 4 | #![crate_type="lib"] |
| ... | ... | @@ -8,6 +7,6 @@ |
| 8 | 7 | #[allow(unused_imports)] |
| 9 | 8 | use std::alloc::System; |
| 10 | 9 | |
| 11 | #[cfg(bfail1)] | |
| 10 | #[cfg(bpass1)] | |
| 12 | 11 | #[global_allocator] |
| 13 | 12 | static ALLOC: System = System; |
tests/incremental/issue-85360-eval-obligation-ice.rs+3-4| ... | ... | @@ -1,8 +1,7 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | //@[bfail1] compile-flags: --crate-type=lib -Zassert-incr-state=not-loaded | |
| 3 | //@[bfail2] compile-flags: --crate-type=lib -Zassert-incr-state=loaded | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | //@[bpass1] compile-flags: --crate-type=lib -Zassert-incr-state=not-loaded | |
| 3 | //@[bpass2] compile-flags: --crate-type=lib -Zassert-incr-state=loaded | |
| 4 | 4 | //@ edition: 2021 |
| 5 | //@ build-pass | |
| 6 | 5 | //@ ignore-backends: gcc |
| 7 | 6 | |
| 8 | 7 | #![allow(dead_code)] |
tests/incremental/krate-inherent.rs+5-5| ... | ... | @@ -1,11 +1,11 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -Z query-dep-graph |
| 3 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 4 | 3 | //@ ignore-backends: gcc |
| 4 | // FIXME(#62277): could be check-pass? | |
| 5 | 5 | |
| 6 | 6 | #![allow(warnings)] |
| 7 | 7 | #![feature(rustc_attrs)] |
| 8 | #![rustc_partition_reused(module = "krate_inherent-x", cfg = "bfail2")] | |
| 8 | #![rustc_partition_reused(module = "krate_inherent-x", cfg = "bpass2")] | |
| 9 | 9 | #![crate_type = "rlib"] |
| 10 | 10 | |
| 11 | 11 | pub mod x { |
| ... | ... | @@ -20,5 +20,5 @@ pub mod x { |
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | #[cfg(bfail1)] | |
| 24 | pub fn bar() {} // remove this unrelated fn in bfail2, which should not affect `x::method` | |
| 23 | #[cfg(bpass1)] | |
| 24 | pub fn bar() {} // remove this unrelated fn in bpass2, which should not affect `x::method` |
tests/incremental/lto-in-linker.rs+2-3| ... | ... | @@ -1,9 +1,8 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -Z query-dep-graph --crate-type rlib -C linker-plugin-lto -O |
| 3 | 3 | //@ no-prefer-dynamic |
| 4 | //@ build-pass | |
| 5 | 4 | |
| 6 | 5 | #![feature(rustc_attrs)] |
| 7 | #![rustc_partition_reused(module = "lto_in_linker", cfg = "bfail2")] | |
| 6 | #![rustc_partition_reused(module = "lto_in_linker", cfg = "bpass2")] | |
| 8 | 7 | |
| 9 | 8 | pub fn foo() {} |
tests/incremental/macro_export.rs+2-2| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | //@ revisions: bfail1 bfail2 bfail3 | |
| 2 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 1 | //@ revisions: bpass1 bpass2 bpass3 | |
| 3 | 2 | //@ ignore-backends: gcc |
| 3 | // FIXME(#62277): could be check-pass? | |
| 4 | 4 | |
| 5 | 5 | // This test case makes sure that we can compile with incremental compilation |
| 6 | 6 | // enabled when there are macros exported from this crate. (See #37756) |
tests/incremental/no_mangle.rs+1-2| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | //@ check-pass | |
| 1 | //@ revisions: cpass1 cpass2 | |
| 3 | 2 | //@ compile-flags: --crate-type cdylib |
| 4 | 3 | //@ needs-crate-type: cdylib |
| 5 | 4 |
tests/incremental/remove_source_file/main.rs+5-5| ... | ... | @@ -1,24 +1,24 @@ |
| 1 | 1 | // This test case makes sure that the compiler doesn't crash due to a failing |
| 2 | 2 | // table lookup when a source file is removed. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 | |
| 4 | //@ revisions: bpass1 bpass2 | |
| 5 | 5 | |
| 6 | 6 | // Note that we specify -g so that the SourceFiles actually get referenced by the |
| 7 | 7 | // incr. comp. cache: |
| 8 | 8 | //@ compile-flags: -Z query-dep-graph -g |
| 9 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 9 | // FIXME(#62277): could be check-pass? | |
| 10 | 10 | |
| 11 | 11 | #![crate_type= "rlib"] |
| 12 | 12 | |
| 13 | #[cfg(bfail1)] | |
| 13 | #[cfg(bpass1)] | |
| 14 | 14 | mod auxiliary; |
| 15 | 15 | |
| 16 | #[cfg(bfail1)] | |
| 16 | #[cfg(bpass1)] | |
| 17 | 17 | pub fn foo() { |
| 18 | 18 | auxiliary::print_hello(); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | #[cfg(bfail2)] | |
| 21 | #[cfg(bpass2)] | |
| 22 | 22 | pub fn foo() { |
| 23 | 23 | println!("hello"); |
| 24 | 24 | } |
tests/incremental/rlib-lto.rs+2-3| ... | ... | @@ -1,8 +1,7 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -Z query-dep-graph --crate-type rlib -C lto |
| 3 | //@ build-pass | |
| 4 | 3 | |
| 5 | 4 | #![feature(rustc_attrs)] |
| 6 | #![rustc_partition_reused(module = "rlib_lto", cfg = "bfail2")] | |
| 5 | #![rustc_partition_reused(module = "rlib_lto", cfg = "bpass2")] | |
| 7 | 6 | |
| 8 | 7 | pub fn foo() {} |
tests/incremental/string_constant.rs+7-7| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -Z query-dep-graph -Copt-level=0 |
| 3 | //@ build-pass (FIXME(62277): could be check-pass?) | |
| 3 | // FIXME(#62277): could be check-pass? | |
| 4 | 4 | |
| 5 | 5 | #![allow(warnings)] |
| 6 | 6 | #![feature(rustc_attrs)] |
| ... | ... | @@ -11,13 +11,13 @@ |
| 11 | 11 | // needed even for callers of `x`. |
| 12 | 12 | |
| 13 | 13 | pub mod x { |
| 14 | #[cfg(bfail1)] | |
| 14 | #[cfg(bpass1)] | |
| 15 | 15 | pub fn x() { |
| 16 | 16 | println!("{}", "1"); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | #[cfg(bfail2)] | |
| 20 | #[rustc_clean(except = "opt_hir_owner_nodes,optimized_mir", cfg = "bfail2")] | |
| 19 | #[cfg(bpass2)] | |
| 20 | #[rustc_clean(except = "opt_hir_owner_nodes,optimized_mir", cfg = "bpass2")] | |
| 21 | 21 | pub fn x() { |
| 22 | 22 | println!("{}", "2"); |
| 23 | 23 | } |
| ... | ... | @@ -26,7 +26,7 @@ pub mod x { |
| 26 | 26 | pub mod y { |
| 27 | 27 | use x; |
| 28 | 28 | |
| 29 | #[rustc_clean(cfg = "bfail2")] | |
| 29 | #[rustc_clean(cfg = "bpass2")] | |
| 30 | 30 | pub fn y() { |
| 31 | 31 | x::x(); |
| 32 | 32 | } |
| ... | ... | @@ -35,7 +35,7 @@ pub mod y { |
| 35 | 35 | pub mod z { |
| 36 | 36 | use y; |
| 37 | 37 | |
| 38 | #[rustc_clean(cfg = "bfail2")] | |
| 38 | #[rustc_clean(cfg = "bpass2")] | |
| 39 | 39 | pub fn z() { |
| 40 | 40 | y::y(); |
| 41 | 41 | } |
tests/incremental/thinlto/cgu_invalidated_via_import.rs+7-8| ... | ... | @@ -2,37 +2,36 @@ |
| 2 | 2 | // via ThinLTO and that imported thing changes while the definition of the CGU |
| 3 | 3 | // stays untouched. |
| 4 | 4 | |
| 5 | //@ revisions: bfail1 bfail2 bfail3 | |
| 5 | //@ revisions: bpass1 bpass2 bpass3 | |
| 6 | 6 | //@ compile-flags: -Z query-dep-graph -O |
| 7 | //@ build-pass | |
| 8 | 7 | //@ ignore-backends: gcc |
| 9 | 8 | |
| 10 | 9 | #![feature(rustc_attrs)] |
| 11 | 10 | #![crate_type="rlib"] |
| 12 | 11 | |
| 13 | 12 | #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-foo", |
| 14 | cfg="bfail2", | |
| 13 | cfg="bpass2", | |
| 15 | 14 | kind="no")] |
| 16 | 15 | #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-foo", |
| 17 | cfg="bfail3", | |
| 16 | cfg="bpass3", | |
| 18 | 17 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 19 | 18 | |
| 20 | 19 | #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-bar", |
| 21 | cfg="bfail2", | |
| 20 | cfg="bpass2", | |
| 22 | 21 | kind="pre-lto")] |
| 23 | 22 | #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-bar", |
| 24 | cfg="bfail3", | |
| 23 | cfg="bpass3", | |
| 25 | 24 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 26 | 25 | |
| 27 | 26 | mod foo { |
| 28 | 27 | |
| 29 | 28 | // Trivial functions like this one are imported very reliably by ThinLTO. |
| 30 | #[cfg(bfail1)] | |
| 29 | #[cfg(bpass1)] | |
| 31 | 30 | pub fn inlined_fn() -> u32 { |
| 32 | 31 | 1234 |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | #[cfg(not(bfail1))] | |
| 34 | #[cfg(not(bpass1))] | |
| 36 | 35 | pub fn inlined_fn() -> u32 { |
| 37 | 36 | // See `cgu_keeps_identical_fn.rs` for why this is different |
| 38 | 37 | // from the other version of this function. |
tests/incremental/thinlto/cgu_invalidated_when_export_added.rs+2-3| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | //@ build-pass | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 3 | 2 | //@ ignore-backends: gcc |
| 4 | 3 | |
| 5 | 4 | // rust-lang/rust#69798: |
| ... | ... | @@ -18,7 +17,7 @@ impl Drop for Foo { |
| 18 | 17 | pub extern "C" fn run() { |
| 19 | 18 | thread_local! { pub static FOO : Foo = Foo { } ; } |
| 20 | 19 | |
| 21 | #[cfg(bfail2)] | |
| 20 | #[cfg(bpass2)] | |
| 22 | 21 | { |
| 23 | 22 | FOO.with(|_f| ()) |
| 24 | 23 | } |
tests/incremental/thinlto/cgu_invalidated_when_export_removed.rs+2-3| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | //@ build-pass | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 3 | 2 | //@ ignore-backends: gcc |
| 4 | 3 | |
| 5 | 4 | // rust-lang/rust#69798: |
| ... | ... | @@ -18,7 +17,7 @@ impl Drop for Foo { |
| 18 | 17 | pub extern "C" fn run() { |
| 19 | 18 | thread_local! { pub static FOO : Foo = Foo { } ; } |
| 20 | 19 | |
| 21 | #[cfg(bfail1)] | |
| 20 | #[cfg(bpass1)] | |
| 22 | 21 | { |
| 23 | 22 | FOO.with(|_f| ()) |
| 24 | 23 | } |
tests/incremental/thinlto/cgu_invalidated_when_import_added.rs+5-6| ... | ... | @@ -1,6 +1,5 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -O -Zhuman-readable-cgu-names -Cllvm-args=-import-instr-limit=10 |
| 3 | //@ build-pass | |
| 4 | 3 | //@ ignore-backends: gcc |
| 5 | 4 | |
| 6 | 5 | // rust-lang/rust#59535: |
| ... | ... | @@ -28,16 +27,16 @@ fn main() { |
| 28 | 27 | |
| 29 | 28 | mod foo { |
| 30 | 29 | |
| 31 | // In bfail1, ThinLTO decides that foo() does not get inlined into main, and | |
| 30 | // In bpass1, ThinLTO decides that foo() does not get inlined into main, and | |
| 32 | 31 | // instead bar() gets inlined into foo(). |
| 33 | // In bfail2, foo() gets inlined into main. | |
| 32 | // In bpass2, foo() gets inlined into main. | |
| 34 | 33 | pub fn foo(){ |
| 35 | 34 | bar() |
| 36 | 35 | } |
| 37 | 36 | |
| 38 | 37 | // This function needs to be big so that it does not get inlined by ThinLTO |
| 39 | 38 | // but *does* get inlined into foo() when it is declared `internal` in |
| 40 | // bfail1 (alone). | |
| 39 | // bpass1 (alone). | |
| 41 | 40 | pub fn bar(){ |
| 42 | 41 | println!("quux1"); |
| 43 | 42 | println!("quux2"); |
| ... | ... | @@ -55,7 +54,7 @@ mod bar { |
| 55 | 54 | |
| 56 | 55 | #[inline(never)] |
| 57 | 56 | pub fn baz() { |
| 58 | #[cfg(bfail2)] | |
| 57 | #[cfg(bpass2)] | |
| 59 | 58 | { |
| 60 | 59 | crate::foo::bar(); |
| 61 | 60 | } |
tests/incremental/thinlto/cgu_invalidated_when_import_removed.rs+5-6| ... | ... | @@ -1,6 +1,5 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 1 | //@ revisions: bpass1 bpass2 | |
| 2 | 2 | //@ compile-flags: -O -Zhuman-readable-cgu-names -Cllvm-args=-import-instr-limit=10 |
| 3 | //@ build-pass | |
| 4 | 3 | //@ ignore-backends: gcc |
| 5 | 4 | |
| 6 | 5 | // rust-lang/rust#59535: |
| ... | ... | @@ -38,8 +37,8 @@ fn main() { |
| 38 | 37 | |
| 39 | 38 | mod foo { |
| 40 | 39 | |
| 41 | // In bfail1, foo() gets inlined into main. | |
| 42 | // In bfail2, ThinLTO decides that foo() does not get inlined into main, and | |
| 40 | // In bpass1, foo() gets inlined into main. | |
| 41 | // In bpass2, ThinLTO decides that foo() does not get inlined into main, and | |
| 43 | 42 | // instead bar() gets inlined into foo(). But faulty logic in our incr. |
| 44 | 43 | // ThinLTO implementation thought that `main()` is unchanged and thus reused |
| 45 | 44 | // the object file still containing a call to the now non-existent bar(). |
| ... | ... | @@ -49,7 +48,7 @@ mod foo { |
| 49 | 48 | |
| 50 | 49 | // This function needs to be big so that it does not get inlined by ThinLTO |
| 51 | 50 | // but *does* get inlined into foo() once it is declared `internal` in |
| 52 | // bfail2. | |
| 51 | // bpass2. | |
| 53 | 52 | pub fn bar(){ |
| 54 | 53 | println!("quux1"); |
| 55 | 54 | println!("quux2"); |
| ... | ... | @@ -67,7 +66,7 @@ mod bar { |
| 67 | 66 | |
| 68 | 67 | #[inline(never)] |
| 69 | 68 | pub fn baz() { |
| 70 | #[cfg(bfail1)] | |
| 69 | #[cfg(bpass1)] | |
| 71 | 70 | { |
| 72 | 71 | crate::foo::bar(); |
| 73 | 72 | } |
tests/incremental/thinlto/cgu_keeps_identical_fn.rs+7-8| ... | ... | @@ -3,43 +3,42 @@ |
| 3 | 3 | // ends up with any spans in its LLVM bitecode, so LLVM is able to skip |
| 4 | 4 | // re-building any modules which import 'inlined_fn' |
| 5 | 5 | |
| 6 | //@ revisions: bfail1 bfail2 bfail3 | |
| 6 | //@ revisions: bpass1 bpass2 bpass3 | |
| 7 | 7 | //@ compile-flags: -Z query-dep-graph -O |
| 8 | //@ build-pass | |
| 9 | 8 | //@ ignore-backends: gcc |
| 10 | 9 | |
| 11 | 10 | #![feature(rustc_attrs)] |
| 12 | 11 | #![crate_type = "rlib"] |
| 13 | 12 | #![rustc_expected_cgu_reuse( |
| 14 | 13 | module = "cgu_keeps_identical_fn-foo", |
| 15 | cfg = "bfail2", | |
| 14 | cfg = "bpass2", | |
| 16 | 15 | kind = "pre-lto" |
| 17 | 16 | )] |
| 18 | 17 | #![rustc_expected_cgu_reuse( |
| 19 | 18 | module = "cgu_keeps_identical_fn-foo", |
| 20 | cfg = "bfail3", | |
| 19 | cfg = "bpass3", | |
| 21 | 20 | kind = "pre-lto" // Should be "post-lto", see issue #119076 |
| 22 | 21 | )] |
| 23 | 22 | #![rustc_expected_cgu_reuse( |
| 24 | 23 | module = "cgu_keeps_identical_fn-bar", |
| 25 | cfg = "bfail2", | |
| 24 | cfg = "bpass2", | |
| 26 | 25 | kind = "pre-lto" // Should be "post-lto", see issue #119076 |
| 27 | 26 | )] |
| 28 | 27 | #![rustc_expected_cgu_reuse( |
| 29 | 28 | module = "cgu_keeps_identical_fn-bar", |
| 30 | cfg = "bfail3", | |
| 29 | cfg = "bpass3", | |
| 31 | 30 | kind = "pre-lto" // Should be "post-lto", see issue #119076 |
| 32 | 31 | )] |
| 33 | 32 | |
| 34 | 33 | mod foo { |
| 35 | 34 | |
| 36 | 35 | // Trivial functions like this one are imported very reliably by ThinLTO. |
| 37 | #[cfg(bfail1)] | |
| 36 | #[cfg(bpass1)] | |
| 38 | 37 | pub fn inlined_fn() -> u32 { |
| 39 | 38 | 1234 |
| 40 | 39 | } |
| 41 | 40 | |
| 42 | #[cfg(not(bfail1))] | |
| 41 | #[cfg(not(bpass1))] | |
| 43 | 42 | pub fn inlined_fn() -> u32 { |
| 44 | 43 | 1234 |
| 45 | 44 | } |
tests/incremental/thinlto/independent_cgus_dont_affect_each_other.rs+9-10| ... | ... | @@ -1,42 +1,41 @@ |
| 1 | 1 | // This test checks that a change in a CGU does not invalidate an unrelated CGU |
| 2 | 2 | // during incremental ThinLTO. |
| 3 | 3 | |
| 4 | //@ revisions: bfail1 bfail2 bfail3 | |
| 4 | //@ revisions: bpass1 bpass2 bpass3 | |
| 5 | 5 | //@ compile-flags: -Z query-dep-graph -O |
| 6 | //@ build-pass | |
| 7 | 6 | //@ ignore-backends: gcc |
| 8 | 7 | |
| 9 | 8 | #![feature(rustc_attrs)] |
| 10 | 9 | #![crate_type="rlib"] |
| 11 | 10 | |
| 12 | 11 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-foo", |
| 13 | cfg="bfail2", | |
| 12 | cfg="bpass2", | |
| 14 | 13 | kind="no")] |
| 15 | 14 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-foo", |
| 16 | cfg="bfail3", | |
| 15 | cfg="bpass3", | |
| 17 | 16 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 18 | 17 | |
| 19 | 18 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-bar", |
| 20 | cfg="bfail2", | |
| 19 | cfg="bpass2", | |
| 21 | 20 | kind="pre-lto")] |
| 22 | 21 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-bar", |
| 23 | cfg="bfail3", | |
| 22 | cfg="bpass3", | |
| 24 | 23 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 25 | 24 | |
| 26 | 25 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-baz", |
| 27 | cfg="bfail2", | |
| 26 | cfg="bpass2", | |
| 28 | 27 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 29 | 28 | #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-baz", |
| 30 | cfg="bfail3", | |
| 29 | cfg="bpass3", | |
| 31 | 30 | kind="pre-lto")] // Should be "post-lto", see issue #119076 |
| 32 | 31 | mod foo { |
| 33 | 32 | |
| 34 | #[cfg(bfail1)] | |
| 33 | #[cfg(bpass1)] | |
| 35 | 34 | pub fn inlined_fn() -> u32 { |
| 36 | 35 | 1234 |
| 37 | 36 | } |
| 38 | 37 | |
| 39 | #[cfg(not(bfail1))] | |
| 38 | #[cfg(not(bpass1))] | |
| 40 | 39 | pub fn inlined_fn() -> u32 { |
| 41 | 40 | // See `cgu_keeps_identical_fn.rs` for why this is different |
| 42 | 41 | // from the other version of this function. |
tests/incremental/track-deps-in-new-solver.rs+3-5| ... | ... | @@ -1,7 +1,5 @@ |
| 1 | //@ revisions: bfail1 bfail2 | |
| 2 | ||
| 1 | //@ revisions: cpass1 cpass2 | |
| 3 | 2 | //@ compile-flags: -Znext-solver |
| 4 | //@ check-pass | |
| 5 | 3 | |
| 6 | 4 | #![allow(dead_code)] |
| 7 | 5 | |
| ... | ... | @@ -18,10 +16,10 @@ impl Future for S { |
| 18 | 16 | } |
| 19 | 17 | } |
| 20 | 18 | |
| 21 | #[cfg(bfail1)] | |
| 19 | #[cfg(cpass1)] | |
| 22 | 20 | pub struct Error(()); |
| 23 | 21 | |
| 24 | #[cfg(bfail2)] | |
| 22 | #[cfg(cpass2)] | |
| 25 | 23 | pub struct Error(); |
| 26 | 24 | |
| 27 | 25 | fn main() {} |
tests/incremental/unrecoverable_query.rs+3-4| ... | ... | @@ -4,9 +4,8 @@ |
| 4 | 4 | // In this test prior to fixing compiler was having problems figuring out |
| 5 | 5 | // drop impl for T inside of m |
| 6 | 6 | |
| 7 | //@ revisions: bfail1 bfail2 | |
| 7 | //@ revisions: bpass1 bpass2 | |
| 8 | 8 | //@ compile-flags: --crate-type=lib |
| 9 | //@ build-pass | |
| 10 | 9 | //@ ignore-backends: gcc |
| 11 | 10 | |
| 12 | 11 | #![allow(dead_code)] |
| ... | ... | @@ -32,9 +31,9 @@ impl<D: P> T<D> { |
| 32 | 31 | } |
| 33 | 32 | |
| 34 | 33 | enum C { |
| 35 | #[cfg(bfail1)] | |
| 34 | #[cfg(bpass1)] | |
| 36 | 35 | Up(()), |
| 37 | #[cfg(bfail2)] | |
| 36 | #[cfg(bpass2)] | |
| 38 | 37 | Lorry(()), |
| 39 | 38 | } |
| 40 | 39 |
tests/incremental/warnings-reemitted.rs+1-2| ... | ... | @@ -1,6 +1,5 @@ |
| 1 | //@ revisions: bfail1 bfail2 bfail3 | |
| 1 | //@ revisions: bpass1 bpass2 bpass3 | |
| 2 | 2 | //@ compile-flags: -Coverflow-checks=on |
| 3 | //@ build-pass | |
| 4 | 3 | //@ ignore-backends: gcc |
| 5 | 4 | |
| 6 | 5 | #![warn(arithmetic_overflow)] |
tests/ui/derives/clone-include-gat-hrtb.rs created+38| ... | ... | @@ -0,0 +1,38 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/89188. | |
| 2 | //@ check-pass | |
| 3 | ||
| 4 | trait CallWithShim: Sized { | |
| 5 | type Shim<'s> | |
| 6 | where | |
| 7 | Self: 's; | |
| 8 | } | |
| 9 | ||
| 10 | #[derive(Clone)] | |
| 11 | struct ShimMethod<T: CallWithShim + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::Shim<'s>)); | |
| 12 | ||
| 13 | trait CallWithShim2: Sized { | |
| 14 | type Shim<T>; | |
| 15 | } | |
| 16 | ||
| 17 | struct S<'s>(&'s ()); | |
| 18 | ||
| 19 | #[derive(Clone)] | |
| 20 | struct ShimMethod2<T: CallWithShim2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::Shim<S<'s>>)); | |
| 21 | ||
| 22 | trait Trait<'s, 't, 'u> {} | |
| 23 | ||
| 24 | #[derive(Clone)] | |
| 25 | struct ShimMethod3<T: CallWithShim2 + 'static>( | |
| 26 | pub &'static dyn for<'s> Fn( | |
| 27 | &'s mut T::Shim<dyn for<'t> Fn(&'s mut T::Shim<dyn for<'u> Trait<'s, 't, 'u>>)>, | |
| 28 | ), | |
| 29 | ); | |
| 30 | ||
| 31 | trait Trait2 { | |
| 32 | type As; | |
| 33 | } | |
| 34 | ||
| 35 | #[derive(Clone)] | |
| 36 | struct ShimMethod4<T: Trait2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::As)); | |
| 37 | ||
| 38 | pub fn main() {} |
tests/ui/derives/derive-clone-basic.rs created+65| ... | ... | @@ -0,0 +1,65 @@ |
| 1 | //! Make sure that `derive(Clone)` works for simple structs and enums. | |
| 2 | //@ run-pass | |
| 3 | #![allow(dead_code)] | |
| 4 | ||
| 5 | #[derive(Clone)] | |
| 6 | enum SimpleEnum { | |
| 7 | A, | |
| 8 | B(()), | |
| 9 | C, | |
| 10 | } | |
| 11 | ||
| 12 | #[derive(Clone)] | |
| 13 | enum GenericEnum<T, U> { | |
| 14 | A(T), | |
| 15 | B(T, U), | |
| 16 | C, | |
| 17 | } | |
| 18 | ||
| 19 | #[derive(Clone)] | |
| 20 | struct TupleStruct((), ()); | |
| 21 | ||
| 22 | #[derive(Clone)] | |
| 23 | struct GenericStruct<T> { | |
| 24 | foo: (), | |
| 25 | bar: (), | |
| 26 | baz: T, | |
| 27 | } | |
| 28 | ||
| 29 | #[derive(Clone)] | |
| 30 | struct GenericTupleStruct<T>(T, ()); | |
| 31 | ||
| 32 | #[derive(Clone)] | |
| 33 | struct ManyPrimitives { | |
| 34 | _int: isize, | |
| 35 | _i8: i8, | |
| 36 | _i16: i16, | |
| 37 | _i32: i32, | |
| 38 | _i64: i64, | |
| 39 | ||
| 40 | _uint: usize, | |
| 41 | _u8: u8, | |
| 42 | _u16: u16, | |
| 43 | _u32: u32, | |
| 44 | _u64: u64, | |
| 45 | ||
| 46 | _f32: f32, | |
| 47 | _f64: f64, | |
| 48 | ||
| 49 | _bool: bool, | |
| 50 | _char: char, | |
| 51 | _nil: (), | |
| 52 | } | |
| 53 | ||
| 54 | // Regression test for issue #30244 | |
| 55 | #[derive(Copy, Clone)] | |
| 56 | struct Array { | |
| 57 | arr: [[u8; 256]; 4], | |
| 58 | } | |
| 59 | ||
| 60 | pub fn main() { | |
| 61 | let _ = SimpleEnum::A.clone(); | |
| 62 | let _ = GenericEnum::A::<isize, isize>(1).clone(); | |
| 63 | let _ = GenericStruct { foo: (), bar: (), baz: 1 }.clone(); | |
| 64 | let _ = GenericTupleStruct(1, ()).clone(); | |
| 65 | } |
tests/ui/derives/derive-eq-check-all-variants.rs created+12| ... | ... | @@ -0,0 +1,12 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/103157. | |
| 2 | ||
| 3 | #[derive(PartialEq, Eq)] | |
| 4 | pub enum Value { | |
| 5 | Boolean(Option<bool>), | |
| 6 | Float(Option<f64>), //~ ERROR the trait bound `f64: Eq` is not satisfied | |
| 7 | } | |
| 8 | ||
| 9 | fn main() { | |
| 10 | let a = Value::Float(Some(f64::NAN)); | |
| 11 | assert!(a == a); | |
| 12 | } |
tests/ui/derives/derive-eq-check-all-variants.stderr created+26| ... | ... | @@ -0,0 +1,26 @@ |
| 1 | error[E0277]: the trait bound `f64: Eq` is not satisfied | |
| 2 | --> $DIR/derive-eq-check-all-variants.rs:6:11 | |
| 3 | | | |
| 4 | LL | #[derive(PartialEq, Eq)] | |
| 5 | | -- in this derive macro expansion | |
| 6 | ... | |
| 7 | LL | Float(Option<f64>), | |
| 8 | | ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64` | |
| 9 | | | |
| 10 | = help: the following other types implement trait `Eq`: | |
| 11 | i128 | |
| 12 | i16 | |
| 13 | i32 | |
| 14 | i64 | |
| 15 | i8 | |
| 16 | isize | |
| 17 | u128 | |
| 18 | u16 | |
| 19 | and 4 others | |
| 20 | = note: required for `Option<f64>` to implement `Eq` | |
| 21 | note: required by a bound in `std::cmp::AssertParamIsEq` | |
| 22 | --> $SRC_DIR/core/src/cmp.rs:LL:COL | |
| 23 | ||
| 24 | error: aborting due to 1 previous error | |
| 25 | ||
| 26 | For more information about this error, try `rustc --explain E0277`. |
tests/ui/derives/derive-on-drop-type.rs created+13| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/6341. | |
| 2 | //@ check-pass | |
| 3 | ||
| 4 | #[derive(PartialEq)] | |
| 5 | struct A { | |
| 6 | x: usize, | |
| 7 | } | |
| 8 | ||
| 9 | impl Drop for A { | |
| 10 | fn drop(&mut self) {} | |
| 11 | } | |
| 12 | ||
| 13 | pub fn main() {} |
tests/ui/derives/derive-static-str-field.rs created+18| ... | ... | @@ -0,0 +1,18 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/18738. | |
| 2 | //@ check-pass | |
| 3 | #![allow(dead_code)] | |
| 4 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 5 | enum Test<'a> { | |
| 6 | Int(&'a isize), | |
| 7 | Slice(&'a [u8]), | |
| 8 | } | |
| 9 | ||
| 10 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 11 | struct Version { | |
| 12 | vendor_info: &'static str, | |
| 13 | } | |
| 14 | ||
| 15 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 16 | struct Foo(&'static str); | |
| 17 | ||
| 18 | fn main() {} |
tests/ui/derives/derive-type-with-reference.rs created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/15689. | |
| 2 | //@ run-pass | |
| 3 | ||
| 4 | #[derive(PartialEq, Debug, Clone)] | |
| 5 | enum Test<'a> { | |
| 6 | Slice(&'a isize), | |
| 7 | } | |
| 8 | ||
| 9 | fn main() { | |
| 10 | assert_eq!(Test::Slice(&1), Test::Slice(&1)) | |
| 11 | } |
tests/ui/derives/derive-with-where-bounds.rs created+29| ... | ... | @@ -0,0 +1,29 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/19358. | |
| 2 | //@ check-pass | |
| 3 | ||
| 4 | #![allow(dead_code)] | |
| 5 | ||
| 6 | trait Trait { | |
| 7 | fn dummy(&self) {} | |
| 8 | } | |
| 9 | ||
| 10 | #[derive(Debug)] | |
| 11 | struct Foo<T: Trait> { | |
| 12 | foo: T, | |
| 13 | } | |
| 14 | ||
| 15 | #[derive(Debug)] | |
| 16 | struct Bar<T> | |
| 17 | where | |
| 18 | T: Trait, | |
| 19 | { | |
| 20 | bar: T, | |
| 21 | } | |
| 22 | ||
| 23 | impl Trait for isize {} | |
| 24 | ||
| 25 | fn main() { | |
| 26 | let a = Foo { foo: 12 }; | |
| 27 | let b = Bar { bar: 12 }; | |
| 28 | println!("{:?} {:?}", a, b); | |
| 29 | } |
tests/ui/derives/deriving-bounds.rs deleted-11| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | #[derive(Send)] | |
| 2 | //~^ ERROR cannot find derive macro `Send` in this scope | |
| 3 | //~| ERROR cannot find derive macro `Send` in this scope | |
| 4 | struct Test; | |
| 5 | ||
| 6 | #[derive(Sync)] | |
| 7 | //~^ ERROR cannot find derive macro `Sync` in this scope | |
| 8 | //~| ERROR cannot find derive macro `Sync` in this scope | |
| 9 | struct Test1; | |
| 10 | ||
| 11 | pub fn main() {} |
tests/ui/derives/deriving-bounds.stderr deleted-52| ... | ... | @@ -1,52 +0,0 @@ |
| 1 | error: cannot find derive macro `Sync` in this scope | |
| 2 | --> $DIR/deriving-bounds.rs:6:10 | |
| 3 | | | |
| 4 | LL | #[derive(Sync)] | |
| 5 | | ^^^^ | |
| 6 | | | |
| 7 | note: unsafe traits like `Sync` should be implemented explicitly | |
| 8 | --> $DIR/deriving-bounds.rs:6:10 | |
| 9 | | | |
| 10 | LL | #[derive(Sync)] | |
| 11 | | ^^^^ | |
| 12 | ||
| 13 | error: cannot find derive macro `Sync` in this scope | |
| 14 | --> $DIR/deriving-bounds.rs:6:10 | |
| 15 | | | |
| 16 | LL | #[derive(Sync)] | |
| 17 | | ^^^^ | |
| 18 | | | |
| 19 | note: unsafe traits like `Sync` should be implemented explicitly | |
| 20 | --> $DIR/deriving-bounds.rs:6:10 | |
| 21 | | | |
| 22 | LL | #[derive(Sync)] | |
| 23 | | ^^^^ | |
| 24 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
| 25 | ||
| 26 | error: cannot find derive macro `Send` in this scope | |
| 27 | --> $DIR/deriving-bounds.rs:1:10 | |
| 28 | | | |
| 29 | LL | #[derive(Send)] | |
| 30 | | ^^^^ | |
| 31 | | | |
| 32 | note: unsafe traits like `Send` should be implemented explicitly | |
| 33 | --> $DIR/deriving-bounds.rs:1:10 | |
| 34 | | | |
| 35 | LL | #[derive(Send)] | |
| 36 | | ^^^^ | |
| 37 | ||
| 38 | error: cannot find derive macro `Send` in this scope | |
| 39 | --> $DIR/deriving-bounds.rs:1:10 | |
| 40 | | | |
| 41 | LL | #[derive(Send)] | |
| 42 | | ^^^^ | |
| 43 | | | |
| 44 | note: unsafe traits like `Send` should be implemented explicitly | |
| 45 | --> $DIR/deriving-bounds.rs:1:10 | |
| 46 | | | |
| 47 | LL | #[derive(Send)] | |
| 48 | | ^^^^ | |
| 49 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
| 50 | ||
| 51 | error: aborting due to 4 previous errors | |
| 52 |
tests/ui/derives/no-send-sync-derives.rs created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | #[derive(Send)] | |
| 2 | //~^ ERROR cannot find derive macro `Send` in this scope | |
| 3 | //~| ERROR cannot find derive macro `Send` in this scope | |
| 4 | struct Test; | |
| 5 | ||
| 6 | #[derive(Sync)] | |
| 7 | //~^ ERROR cannot find derive macro `Sync` in this scope | |
| 8 | //~| ERROR cannot find derive macro `Sync` in this scope | |
| 9 | struct Test1; | |
| 10 | ||
| 11 | pub fn main() {} |
tests/ui/derives/no-send-sync-derives.stderr created+52| ... | ... | @@ -0,0 +1,52 @@ |
| 1 | error: cannot find derive macro `Sync` in this scope | |
| 2 | --> $DIR/no-send-sync-derives.rs:6:10 | |
| 3 | | | |
| 4 | LL | #[derive(Sync)] | |
| 5 | | ^^^^ | |
| 6 | | | |
| 7 | note: unsafe traits like `Sync` should be implemented explicitly | |
| 8 | --> $DIR/no-send-sync-derives.rs:6:10 | |
| 9 | | | |
| 10 | LL | #[derive(Sync)] | |
| 11 | | ^^^^ | |
| 12 | ||
| 13 | error: cannot find derive macro `Sync` in this scope | |
| 14 | --> $DIR/no-send-sync-derives.rs:6:10 | |
| 15 | | | |
| 16 | LL | #[derive(Sync)] | |
| 17 | | ^^^^ | |
| 18 | | | |
| 19 | note: unsafe traits like `Sync` should be implemented explicitly | |
| 20 | --> $DIR/no-send-sync-derives.rs:6:10 | |
| 21 | | | |
| 22 | LL | #[derive(Sync)] | |
| 23 | | ^^^^ | |
| 24 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
| 25 | ||
| 26 | error: cannot find derive macro `Send` in this scope | |
| 27 | --> $DIR/no-send-sync-derives.rs:1:10 | |
| 28 | | | |
| 29 | LL | #[derive(Send)] | |
| 30 | | ^^^^ | |
| 31 | | | |
| 32 | note: unsafe traits like `Send` should be implemented explicitly | |
| 33 | --> $DIR/no-send-sync-derives.rs:1:10 | |
| 34 | | | |
| 35 | LL | #[derive(Send)] | |
| 36 | | ^^^^ | |
| 37 | ||
| 38 | error: cannot find derive macro `Send` in this scope | |
| 39 | --> $DIR/no-send-sync-derives.rs:1:10 | |
| 40 | | | |
| 41 | LL | #[derive(Send)] | |
| 42 | | ^^^^ | |
| 43 | | | |
| 44 | note: unsafe traits like `Send` should be implemented explicitly | |
| 45 | --> $DIR/no-send-sync-derives.rs:1:10 | |
| 46 | | | |
| 47 | LL | #[derive(Send)] | |
| 48 | | ^^^^ | |
| 49 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
| 50 | ||
| 51 | error: aborting due to 4 previous errors | |
| 52 |
tests/ui/derives/six-hundred-fields.rs created+623| ... | ... | @@ -0,0 +1,623 @@ |
| 1 | //! Regression test for https://github.com/rust-lang/rust/issues/58319. | |
| 2 | //@ build-pass | |
| 3 | fn main() {} | |
| 4 | #[derive(Clone)] | |
| 5 | pub struct Little; | |
| 6 | #[derive(Clone)] | |
| 7 | #[allow(dead_code)] | |
| 8 | pub struct Big( | |
| 9 | Little, | |
| 10 | Little, | |
| 11 | Little, | |
| 12 | Little, | |
| 13 | Little, | |
| 14 | Little, | |
| 15 | Little, | |
| 16 | Little, | |
| 17 | Little, | |
| 18 | Little, | |
| 19 | Little, | |
| 20 | Little, | |
| 21 | Little, | |
| 22 | Little, | |
| 23 | Little, | |
| 24 | Little, | |
| 25 | Little, | |
| 26 | Little, | |
| 27 | Little, | |
| 28 | Little, | |
| 29 | Little, | |
| 30 | Little, | |
| 31 | Little, | |
| 32 | Little, | |
| 33 | Little, | |
| 34 | Little, | |
| 35 | Little, | |
| 36 | Little, | |
| 37 | Little, | |
| 38 | Little, | |
| 39 | Little, | |
| 40 | Little, | |
| 41 | Little, | |
| 42 | Little, | |
| 43 | Little, | |
| 44 | Little, | |
| 45 | Little, | |
| 46 | Little, | |
| 47 | Little, | |
| 48 | Little, | |
| 49 | Little, | |
| 50 | Little, | |
| 51 | Little, | |
| 52 | Little, | |
| 53 | Little, | |
| 54 | Little, | |
| 55 | Little, | |
| 56 | Little, | |
| 57 | Little, | |
| 58 | Little, | |
| 59 | Little, | |
| 60 | Little, | |
| 61 | Little, | |
| 62 | Little, | |
| 63 | Little, | |
| 64 | Little, | |
| 65 | Little, | |
| 66 | Little, | |
| 67 | Little, | |
| 68 | Little, | |
| 69 | Little, | |
| 70 | Little, | |
| 71 | Little, | |
| 72 | Little, | |
| 73 | Little, | |
| 74 | Little, | |
| 75 | Little, | |
| 76 | Little, | |
| 77 | Little, | |
| 78 | Little, | |
| 79 | Little, | |
| 80 | Little, | |
| 81 | Little, | |
| 82 | Little, | |
| 83 | Little, | |
| 84 | Little, | |
| 85 | Little, | |
| 86 | Little, | |
| 87 | Little, | |
| 88 | Little, | |
| 89 | Little, | |
| 90 | Little, | |
| 91 | Little, | |
| 92 | Little, | |
| 93 | Little, | |
| 94 | Little, | |
| 95 | Little, | |
| 96 | Little, | |
| 97 | Little, | |
| 98 | Little, | |
| 99 | Little, | |
| 100 | Little, | |
| 101 | Little, | |
| 102 | Little, | |
| 103 | Little, | |
| 104 | Little, | |
| 105 | Little, | |
| 106 | Little, | |
| 107 | Little, | |
| 108 | Little, | |
| 109 | Little, | |
| 110 | Little, | |
| 111 | Little, | |
| 112 | Little, | |
| 113 | Little, | |
| 114 | Little, | |
| 115 | Little, | |
| 116 | Little, | |
| 117 | Little, | |
| 118 | Little, | |
| 119 | Little, | |
| 120 | Little, | |
| 121 | Little, | |
| 122 | Little, | |
| 123 | Little, | |
| 124 | Little, | |
| 125 | Little, | |
| 126 | Little, | |
| 127 | Little, | |
| 128 | Little, | |
| 129 | Little, | |
| 130 | Little, | |
| 131 | Little, | |
| 132 | Little, | |
| 133 | Little, | |
| 134 | Little, | |
| 135 | Little, | |
| 136 | Little, | |
| 137 | Little, | |
| 138 | Little, | |
| 139 | Little, | |
| 140 | Little, | |
| 141 | Little, | |
| 142 | Little, | |
| 143 | Little, | |
| 144 | Little, | |
| 145 | Little, | |
| 146 | Little, | |
| 147 | Little, | |
| 148 | Little, | |
| 149 | Little, | |
| 150 | Little, | |
| 151 | Little, | |
| 152 | Little, | |
| 153 | Little, | |
| 154 | Little, | |
| 155 | Little, | |
| 156 | Little, | |
| 157 | Little, | |
| 158 | Little, | |
| 159 | Little, | |
| 160 | Little, | |
| 161 | Little, | |
| 162 | Little, | |
| 163 | Little, | |
| 164 | Little, | |
| 165 | Little, | |
| 166 | Little, | |
| 167 | Little, | |
| 168 | Little, | |
| 169 | Little, | |
| 170 | Little, | |
| 171 | Little, | |
| 172 | Little, | |
| 173 | Little, | |
| 174 | Little, | |
| 175 | Little, | |
| 176 | Little, | |
| 177 | Little, | |
| 178 | Little, | |
| 179 | Little, | |
| 180 | Little, | |
| 181 | Little, | |
| 182 | Little, | |
| 183 | Little, | |
| 184 | Little, | |
| 185 | Little, | |
| 186 | Little, | |
| 187 | Little, | |
| 188 | Little, | |
| 189 | Little, | |
| 190 | Little, | |
| 191 | Little, | |
| 192 | Little, | |
| 193 | Little, | |
| 194 | Little, | |
| 195 | Little, | |
| 196 | Little, | |
| 197 | Little, | |
| 198 | Little, | |
| 199 | Little, | |
| 200 | Little, | |
| 201 | Little, | |
| 202 | Little, | |
| 203 | Little, | |
| 204 | Little, | |
| 205 | Little, | |
| 206 | Little, | |
| 207 | Little, | |
| 208 | Little, | |
| 209 | Little, | |
| 210 | Little, | |
| 211 | Little, | |
| 212 | Little, | |
| 213 | Little, | |
| 214 | Little, | |
| 215 | Little, | |
| 216 | Little, | |
| 217 | Little, | |
| 218 | Little, | |
| 219 | Little, | |
| 220 | Little, | |
| 221 | Little, | |
| 222 | Little, | |
| 223 | Little, | |
| 224 | Little, | |
| 225 | Little, | |
| 226 | Little, | |
| 227 | Little, | |
| 228 | Little, | |
| 229 | Little, | |
| 230 | Little, | |
| 231 | Little, | |
| 232 | Little, | |
| 233 | Little, | |
| 234 | Little, | |
| 235 | Little, | |
| 236 | Little, | |
| 237 | Little, | |
| 238 | Little, | |
| 239 | Little, | |
| 240 | Little, | |
| 241 | Little, | |
| 242 | Little, | |
| 243 | Little, | |
| 244 | Little, | |
| 245 | Little, | |
| 246 | Little, | |
| 247 | Little, | |
| 248 | Little, | |
| 249 | Little, | |
| 250 | Little, | |
| 251 | Little, | |
| 252 | Little, | |
| 253 | Little, | |
| 254 | Little, | |
| 255 | Little, | |
| 256 | Little, | |
| 257 | Little, | |
| 258 | Little, | |
| 259 | Little, | |
| 260 | Little, | |
| 261 | Little, | |
| 262 | Little, | |
| 263 | Little, | |
| 264 | Little, | |
| 265 | Little, | |
| 266 | Little, | |
| 267 | Little, | |
| 268 | Little, | |
| 269 | Little, | |
| 270 | Little, | |
| 271 | Little, | |
| 272 | Little, | |
| 273 | Little, | |
| 274 | Little, | |
| 275 | Little, | |
| 276 | Little, | |
| 277 | Little, | |
| 278 | Little, | |
| 279 | Little, | |
| 280 | Little, | |
| 281 | Little, | |
| 282 | Little, | |
| 283 | Little, | |
| 284 | Little, | |
| 285 | Little, | |
| 286 | Little, | |
| 287 | Little, | |
| 288 | Little, | |
| 289 | Little, | |
| 290 | Little, | |
| 291 | Little, | |
| 292 | Little, | |
| 293 | Little, | |
| 294 | Little, | |
| 295 | Little, | |
| 296 | Little, | |
| 297 | Little, | |
| 298 | Little, | |
| 299 | Little, | |
| 300 | Little, | |
| 301 | Little, | |
| 302 | Little, | |
| 303 | Little, | |
| 304 | Little, | |
| 305 | Little, | |
| 306 | Little, | |
| 307 | Little, | |
| 308 | Little, | |
| 309 | Little, | |
| 310 | Little, | |
| 311 | Little, | |
| 312 | Little, | |
| 313 | Little, | |
| 314 | Little, | |
| 315 | Little, | |
| 316 | Little, | |
| 317 | Little, | |
| 318 | Little, | |
| 319 | Little, | |
| 320 | Little, | |
| 321 | Little, | |
| 322 | Little, | |
| 323 | Little, | |
| 324 | Little, | |
| 325 | Little, | |
| 326 | Little, | |
| 327 | Little, | |
| 328 | Little, | |
| 329 | Little, | |
| 330 | Little, | |
| 331 | Little, | |
| 332 | Little, | |
| 333 | Little, | |
| 334 | Little, | |
| 335 | Little, | |
| 336 | Little, | |
| 337 | Little, | |
| 338 | Little, | |
| 339 | Little, | |
| 340 | Little, | |
| 341 | Little, | |
| 342 | Little, | |
| 343 | Little, | |
| 344 | Little, | |
| 345 | Little, | |
| 346 | Little, | |
| 347 | Little, | |
| 348 | Little, | |
| 349 | Little, | |
| 350 | Little, | |
| 351 | Little, | |
| 352 | Little, | |
| 353 | Little, | |
| 354 | Little, | |
| 355 | Little, | |
| 356 | Little, | |
| 357 | Little, | |
| 358 | Little, | |
| 359 | Little, | |
| 360 | Little, | |
| 361 | Little, | |
| 362 | Little, | |
| 363 | Little, | |
| 364 | Little, | |
| 365 | Little, | |
| 366 | Little, | |
| 367 | Little, | |
| 368 | Little, | |
| 369 | Little, | |
| 370 | Little, | |
| 371 | Little, | |
| 372 | Little, | |
| 373 | Little, | |
| 374 | Little, | |
| 375 | Little, | |
| 376 | Little, | |
| 377 | Little, | |
| 378 | Little, | |
| 379 | Little, | |
| 380 | Little, | |
| 381 | Little, | |
| 382 | Little, | |
| 383 | Little, | |
| 384 | Little, | |
| 385 | Little, | |
| 386 | Little, | |
| 387 | Little, | |
| 388 | Little, | |
| 389 | Little, | |
| 390 | Little, | |
| 391 | Little, | |
| 392 | Little, | |
| 393 | Little, | |
| 394 | Little, | |
| 395 | Little, | |
| 396 | Little, | |
| 397 | Little, | |
| 398 | Little, | |
| 399 | Little, | |
| 400 | Little, | |
| 401 | Little, | |
| 402 | Little, | |
| 403 | Little, | |
| 404 | Little, | |
| 405 | Little, | |
| 406 | Little, | |
| 407 | Little, | |
| 408 | Little, | |
| 409 | Little, | |
| 410 | Little, | |
| 411 | Little, | |
| 412 | Little, | |
| 413 | Little, | |
| 414 | Little, | |
| 415 | Little, | |
| 416 | Little, | |
| 417 | Little, | |
| 418 | Little, | |
| 419 | Little, | |
| 420 | Little, | |
| 421 | Little, | |
| 422 | Little, | |
| 423 | Little, | |
| 424 | Little, | |
| 425 | Little, | |
| 426 | Little, | |
| 427 | Little, | |
| 428 | Little, | |
| 429 | Little, | |
| 430 | Little, | |
| 431 | Little, | |
| 432 | Little, | |
| 433 | Little, | |
| 434 | Little, | |
| 435 | Little, | |
| 436 | Little, | |
| 437 | Little, | |
| 438 | Little, | |
| 439 | Little, | |
| 440 | Little, | |
| 441 | Little, | |
| 442 | Little, | |
| 443 | Little, | |
| 444 | Little, | |
| 445 | Little, | |
| 446 | Little, | |
| 447 | Little, | |
| 448 | Little, | |
| 449 | Little, | |
| 450 | Little, | |
| 451 | Little, | |
| 452 | Little, | |
| 453 | Little, | |
| 454 | Little, | |
| 455 | Little, | |
| 456 | Little, | |
| 457 | Little, | |
| 458 | Little, | |
| 459 | Little, | |
| 460 | Little, | |
| 461 | Little, | |
| 462 | Little, | |
| 463 | Little, | |
| 464 | Little, | |
| 465 | Little, | |
| 466 | Little, | |
| 467 | Little, | |
| 468 | Little, | |
| 469 | Little, | |
| 470 | Little, | |
| 471 | Little, | |
| 472 | Little, | |
| 473 | Little, | |
| 474 | Little, | |
| 475 | Little, | |
| 476 | Little, | |
| 477 | Little, | |
| 478 | Little, | |
| 479 | Little, | |
| 480 | Little, | |
| 481 | Little, | |
| 482 | Little, | |
| 483 | Little, | |
| 484 | Little, | |
| 485 | Little, | |
| 486 | Little, | |
| 487 | Little, | |
| 488 | Little, | |
| 489 | Little, | |
| 490 | Little, | |
| 491 | Little, | |
| 492 | Little, | |
| 493 | Little, | |
| 494 | Little, | |
| 495 | Little, | |
| 496 | Little, | |
| 497 | Little, | |
| 498 | Little, | |
| 499 | Little, | |
| 500 | Little, | |
| 501 | Little, | |
| 502 | Little, | |
| 503 | Little, | |
| 504 | Little, | |
| 505 | Little, | |
| 506 | Little, | |
| 507 | Little, | |
| 508 | Little, | |
| 509 | Little, | |
| 510 | Little, | |
| 511 | Little, | |
| 512 | Little, | |
| 513 | Little, | |
| 514 | Little, | |
| 515 | Little, | |
| 516 | Little, | |
| 517 | Little, | |
| 518 | Little, | |
| 519 | Little, | |
| 520 | Little, | |
| 521 | Little, | |
| 522 | Little, | |
| 523 | Little, | |
| 524 | Little, | |
| 525 | Little, | |
| 526 | Little, | |
| 527 | Little, | |
| 528 | Little, | |
| 529 | Little, | |
| 530 | Little, | |
| 531 | Little, | |
| 532 | Little, | |
| 533 | Little, | |
| 534 | Little, | |
| 535 | Little, | |
| 536 | Little, | |
| 537 | Little, | |
| 538 | Little, | |
| 539 | Little, | |
| 540 | Little, | |
| 541 | Little, | |
| 542 | Little, | |
| 543 | Little, | |
| 544 | Little, | |
| 545 | Little, | |
| 546 | Little, | |
| 547 | Little, | |
| 548 | Little, | |
| 549 | Little, | |
| 550 | Little, | |
| 551 | Little, | |
| 552 | Little, | |
| 553 | Little, | |
| 554 | Little, | |
| 555 | Little, | |
| 556 | Little, | |
| 557 | Little, | |
| 558 | Little, | |
| 559 | Little, | |
| 560 | Little, | |
| 561 | Little, | |
| 562 | Little, | |
| 563 | Little, | |
| 564 | Little, | |
| 565 | Little, | |
| 566 | Little, | |
| 567 | Little, | |
| 568 | Little, | |
| 569 | Little, | |
| 570 | Little, | |
| 571 | Little, | |
| 572 | Little, | |
| 573 | Little, | |
| 574 | Little, | |
| 575 | Little, | |
| 576 | Little, | |
| 577 | Little, | |
| 578 | Little, | |
| 579 | Little, | |
| 580 | Little, | |
| 581 | Little, | |
| 582 | Little, | |
| 583 | Little, | |
| 584 | Little, | |
| 585 | Little, | |
| 586 | Little, | |
| 587 | Little, | |
| 588 | Little, | |
| 589 | Little, | |
| 590 | Little, | |
| 591 | Little, | |
| 592 | Little, | |
| 593 | Little, | |
| 594 | Little, | |
| 595 | Little, | |
| 596 | Little, | |
| 597 | Little, | |
| 598 | Little, | |
| 599 | Little, | |
| 600 | Little, | |
| 601 | Little, | |
| 602 | Little, | |
| 603 | Little, | |
| 604 | Little, | |
| 605 | Little, | |
| 606 | Little, | |
| 607 | Little, | |
| 608 | Little, | |
| 609 | Little, | |
| 610 | Little, | |
| 611 | Little, | |
| 612 | Little, | |
| 613 | Little, | |
| 614 | Little, | |
| 615 | Little, | |
| 616 | Little, | |
| 617 | Little, | |
| 618 | Little, | |
| 619 | Little, | |
| 620 | Little, | |
| 621 | Little, | |
| 622 | Little, | |
| 623 | ); |
tests/ui/deriving/deriving-bounds.rs deleted-5| ... | ... | @@ -1,5 +0,0 @@ |
| 1 | //@ check-pass | |
| 2 | #[derive(Copy, Clone)] | |
| 3 | struct Test; | |
| 4 | ||
| 5 | pub fn main() {} |
tests/ui/deriving/deriving-clone-array.rs deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | #![allow(dead_code)] | |
| 3 | // test for issue #30244 | |
| 4 | ||
| 5 | #[derive(Copy, Clone)] | |
| 6 | struct Array { | |
| 7 | arr: [[u8; 256]; 4] | |
| 8 | } | |
| 9 | ||
| 10 | pub fn main() {} |
tests/ui/deriving/deriving-clone-enum.rs deleted-13| ... | ... | @@ -1,13 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | #![allow(dead_code)] | |
| 3 | ||
| 4 | #[derive(Clone)] | |
| 5 | enum E { | |
| 6 | A, | |
| 7 | B(()), | |
| 8 | C | |
| 9 | } | |
| 10 | ||
| 11 | pub fn main() { | |
| 12 | let _ = E::A.clone(); | |
| 13 | } |
tests/ui/deriving/deriving-clone-generic-enum.rs deleted-13| ... | ... | @@ -1,13 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | #![allow(dead_code)] | |
| 3 | ||
| 4 | #[derive(Clone)] | |
| 5 | enum E<T,U> { | |
| 6 | A(T), | |
| 7 | B(T,U), | |
| 8 | C | |
| 9 | } | |
| 10 | ||
| 11 | pub fn main() { | |
| 12 | let _ = E::A::<isize, isize>(1).clone(); | |
| 13 | } |
tests/ui/deriving/deriving-clone-generic-struct.rs deleted-14| ... | ... | @@ -1,14 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #![allow(dead_code)] | |
| 4 | ||
| 5 | #[derive(Clone)] | |
| 6 | struct S<T> { | |
| 7 | foo: (), | |
| 8 | bar: (), | |
| 9 | baz: T, | |
| 10 | } | |
| 11 | ||
| 12 | pub fn main() { | |
| 13 | let _ = S { foo: (), bar: (), baz: 1 }.clone(); | |
| 14 | } |
tests/ui/deriving/deriving-clone-generic-tuple-struct.rs deleted-9| ... | ... | @@ -1,9 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #[derive(Clone)] | |
| 4 | #[allow(dead_code)] | |
| 5 | struct S<T>(T, ()); | |
| 6 | ||
| 7 | pub fn main() { | |
| 8 | let _ = S(1, ()).clone(); | |
| 9 | } |
tests/ui/deriving/deriving-clone-struct.rs deleted-27| ... | ... | @@ -1,27 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #![allow(dead_code)] | |
| 4 | ||
| 5 | #[derive(Clone)] | |
| 6 | struct S { | |
| 7 | _int: isize, | |
| 8 | _i8: i8, | |
| 9 | _i16: i16, | |
| 10 | _i32: i32, | |
| 11 | _i64: i64, | |
| 12 | ||
| 13 | _uint: usize, | |
| 14 | _u8: u8, | |
| 15 | _u16: u16, | |
| 16 | _u32: u32, | |
| 17 | _u64: u64, | |
| 18 | ||
| 19 | _f32: f32, | |
| 20 | _f64: f64, | |
| 21 | ||
| 22 | _bool: bool, | |
| 23 | _char: char, | |
| 24 | _nil: () | |
| 25 | } | |
| 26 | ||
| 27 | pub fn main() {} |
tests/ui/deriving/deriving-clone-tuple-struct.rs deleted-8| ... | ... | @@ -1,8 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #![allow(dead_code)] | |
| 4 | ||
| 5 | #[derive(Clone)] | |
| 6 | struct S((), ()); | |
| 7 | ||
| 8 | pub fn main() {} |
tests/ui/deriving/issue-103157.rs deleted-12| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | //@ check-fail | |
| 2 | ||
| 3 | #[derive(PartialEq, Eq)] | |
| 4 | pub enum Value { | |
| 5 | Boolean(Option<bool>), | |
| 6 | Float(Option<f64>), //~ ERROR the trait bound `f64: Eq` is not satisfied | |
| 7 | } | |
| 8 | ||
| 9 | fn main() { | |
| 10 | let a = Value::Float(Some(f64::NAN)); | |
| 11 | assert!(a == a); | |
| 12 | } |
tests/ui/deriving/issue-103157.stderr deleted-26| ... | ... | @@ -1,26 +0,0 @@ |
| 1 | error[E0277]: the trait bound `f64: Eq` is not satisfied | |
| 2 | --> $DIR/issue-103157.rs:6:11 | |
| 3 | | | |
| 4 | LL | #[derive(PartialEq, Eq)] | |
| 5 | | -- in this derive macro expansion | |
| 6 | ... | |
| 7 | LL | Float(Option<f64>), | |
| 8 | | ^^^^^^^^^^^ the trait `Eq` is not implemented for `f64` | |
| 9 | | | |
| 10 | = help: the following other types implement trait `Eq`: | |
| 11 | i128 | |
| 12 | i16 | |
| 13 | i32 | |
| 14 | i64 | |
| 15 | i8 | |
| 16 | isize | |
| 17 | u128 | |
| 18 | u16 | |
| 19 | and 4 others | |
| 20 | = note: required for `Option<f64>` to implement `Eq` | |
| 21 | note: required by a bound in `std::cmp::AssertParamIsEq` | |
| 22 | --> $SRC_DIR/core/src/cmp.rs:LL:COL | |
| 23 | ||
| 24 | error: aborting due to 1 previous error | |
| 25 | ||
| 26 | For more information about this error, try `rustc --explain E0277`. |
tests/ui/deriving/issue-15689-1.rs deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #[derive(PartialEq, Debug)] | |
| 4 | enum Test<'a> { | |
| 5 | Slice(&'a isize) | |
| 6 | } | |
| 7 | ||
| 8 | fn main() { | |
| 9 | assert_eq!(Test::Slice(&1), Test::Slice(&1)) | |
| 10 | } |
tests/ui/deriving/issue-15689-2.rs deleted-9| ... | ... | @@ -1,9 +0,0 @@ |
| 1 | //@ check-pass | |
| 2 | #![allow(dead_code)] | |
| 3 | ||
| 4 | #[derive(Clone)] | |
| 5 | enum Test<'a> { | |
| 6 | Slice(&'a isize) | |
| 7 | } | |
| 8 | ||
| 9 | fn main() {} |
tests/ui/deriving/issue-18738.rs deleted-17| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | //@ check-pass | |
| 2 | #![allow(dead_code)] | |
| 3 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 4 | enum Test<'a> { | |
| 5 | Int(&'a isize), | |
| 6 | Slice(&'a [u8]), | |
| 7 | } | |
| 8 | ||
| 9 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 10 | struct Version { | |
| 11 | vendor_info: &'static str | |
| 12 | } | |
| 13 | ||
| 14 | #[derive(Eq, PartialEq, PartialOrd, Ord)] | |
| 15 | struct Foo(&'static str); | |
| 16 | ||
| 17 | fn main() {} |
tests/ui/deriving/issue-19358.rs deleted-23| ... | ... | @@ -1,23 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #![allow(dead_code)] | |
| 4 | ||
| 5 | trait Trait { fn dummy(&self) { } } | |
| 6 | ||
| 7 | #[derive(Debug)] | |
| 8 | struct Foo<T: Trait> { | |
| 9 | foo: T, | |
| 10 | } | |
| 11 | ||
| 12 | #[derive(Debug)] | |
| 13 | struct Bar<T> where T: Trait { | |
| 14 | bar: T, | |
| 15 | } | |
| 16 | ||
| 17 | impl Trait for isize {} | |
| 18 | ||
| 19 | fn main() { | |
| 20 | let a = Foo { foo: 12 }; | |
| 21 | let b = Bar { bar: 12 }; | |
| 22 | println!("{:?} {:?}", a, b); | |
| 23 | } |
tests/ui/deriving/issue-3935.rs deleted-13| ... | ... | @@ -1,13 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | ||
| 3 | #[derive(PartialEq)] | |
| 4 | struct Bike { | |
| 5 | name: String, | |
| 6 | } | |
| 7 | ||
| 8 | pub fn main() { | |
| 9 | let town_bike = Bike { name: "schwinn".to_string() }; | |
| 10 | let my_bike = Bike { name: "surly".to_string() }; | |
| 11 | ||
| 12 | assert!(town_bike != my_bike); | |
| 13 | } |
tests/ui/deriving/issue-58319.rs deleted-622| ... | ... | @@ -1,622 +0,0 @@ |
| 1 | //@ run-pass | |
| 2 | fn main() {} | |
| 3 | #[derive(Clone)] | |
| 4 | pub struct Little; | |
| 5 | #[derive(Clone)] | |
| 6 | #[allow(dead_code)] | |
| 7 | pub struct Big( | |
| 8 | Little, | |
| 9 | Little, | |
| 10 | Little, | |
| 11 | Little, | |
| 12 | Little, | |
| 13 | Little, | |
| 14 | Little, | |
| 15 | Little, | |
| 16 | Little, | |
| 17 | Little, | |
| 18 | Little, | |
| 19 | Little, | |
| 20 | Little, | |
| 21 | Little, | |
| 22 | Little, | |
| 23 | Little, | |
| 24 | Little, | |
| 25 | Little, | |
| 26 | Little, | |
| 27 | Little, | |
| 28 | Little, | |
| 29 | Little, | |
| 30 | Little, | |
| 31 | Little, | |
| 32 | Little, | |
| 33 | Little, | |
| 34 | Little, | |
| 35 | Little, | |
| 36 | Little, | |
| 37 | Little, | |
| 38 | Little, | |
| 39 | Little, | |
| 40 | Little, | |
| 41 | Little, | |
| 42 | Little, | |
| 43 | Little, | |
| 44 | Little, | |
| 45 | Little, | |
| 46 | Little, | |
| 47 | Little, | |
| 48 | Little, | |
| 49 | Little, | |
| 50 | Little, | |
| 51 | Little, | |
| 52 | Little, | |
| 53 | Little, | |
| 54 | Little, | |
| 55 | Little, | |
| 56 | Little, | |
| 57 | Little, | |
| 58 | Little, | |
| 59 | Little, | |
| 60 | Little, | |
| 61 | Little, | |
| 62 | Little, | |
| 63 | Little, | |
| 64 | Little, | |
| 65 | Little, | |
| 66 | Little, | |
| 67 | Little, | |
| 68 | Little, | |
| 69 | Little, | |
| 70 | Little, | |
| 71 | Little, | |
| 72 | Little, | |
| 73 | Little, | |
| 74 | Little, | |
| 75 | Little, | |
| 76 | Little, | |
| 77 | Little, | |
| 78 | Little, | |
| 79 | Little, | |
| 80 | Little, | |
| 81 | Little, | |
| 82 | Little, | |
| 83 | Little, | |
| 84 | Little, | |
| 85 | Little, | |
| 86 | Little, | |
| 87 | Little, | |
| 88 | Little, | |
| 89 | Little, | |
| 90 | Little, | |
| 91 | Little, | |
| 92 | Little, | |
| 93 | Little, | |
| 94 | Little, | |
| 95 | Little, | |
| 96 | Little, | |
| 97 | Little, | |
| 98 | Little, | |
| 99 | Little, | |
| 100 | Little, | |
| 101 | Little, | |
| 102 | Little, | |
| 103 | Little, | |
| 104 | Little, | |
| 105 | Little, | |
| 106 | Little, | |
| 107 | Little, | |
| 108 | Little, | |
| 109 | Little, | |
| 110 | Little, | |
| 111 | Little, | |
| 112 | Little, | |
| 113 | Little, | |
| 114 | Little, | |
| 115 | Little, | |
| 116 | Little, | |
| 117 | Little, | |
| 118 | Little, | |
| 119 | Little, | |
| 120 | Little, | |
| 121 | Little, | |
| 122 | Little, | |
| 123 | Little, | |
| 124 | Little, | |
| 125 | Little, | |
| 126 | Little, | |
| 127 | Little, | |
| 128 | Little, | |
| 129 | Little, | |
| 130 | Little, | |
| 131 | Little, | |
| 132 | Little, | |
| 133 | Little, | |
| 134 | Little, | |
| 135 | Little, | |
| 136 | Little, | |
| 137 | Little, | |
| 138 | Little, | |
| 139 | Little, | |
| 140 | Little, | |
| 141 | Little, | |
| 142 | Little, | |
| 143 | Little, | |
| 144 | Little, | |
| 145 | Little, | |
| 146 | Little, | |
| 147 | Little, | |
| 148 | Little, | |
| 149 | Little, | |
| 150 | Little, | |
| 151 | Little, | |
| 152 | Little, | |
| 153 | Little, | |
| 154 | Little, | |
| 155 | Little, | |
| 156 | Little, | |
| 157 | Little, | |
| 158 | Little, | |
| 159 | Little, | |
| 160 | Little, | |
| 161 | Little, | |
| 162 | Little, | |
| 163 | Little, | |
| 164 | Little, | |
| 165 | Little, | |
| 166 | Little, | |
| 167 | Little, | |
| 168 | Little, | |
| 169 | Little, | |
| 170 | Little, | |
| 171 | Little, | |
| 172 | Little, | |
| 173 | Little, | |
| 174 | Little, | |
| 175 | Little, | |
| 176 | Little, | |
| 177 | Little, | |
| 178 | Little, | |
| 179 | Little, | |
| 180 | Little, | |
| 181 | Little, | |
| 182 | Little, | |
| 183 | Little, | |
| 184 | Little, | |
| 185 | Little, | |
| 186 | Little, | |
| 187 | Little, | |
| 188 | Little, | |
| 189 | Little, | |
| 190 | Little, | |
| 191 | Little, | |
| 192 | Little, | |
| 193 | Little, | |
| 194 | Little, | |
| 195 | Little, | |
| 196 | Little, | |
| 197 | Little, | |
| 198 | Little, | |
| 199 | Little, | |
| 200 | Little, | |
| 201 | Little, | |
| 202 | Little, | |
| 203 | Little, | |
| 204 | Little, | |
| 205 | Little, | |
| 206 | Little, | |
| 207 | Little, | |
| 208 | Little, | |
| 209 | Little, | |
| 210 | Little, | |
| 211 | Little, | |
| 212 | Little, | |
| 213 | Little, | |
| 214 | Little, | |
| 215 | Little, | |
| 216 | Little, | |
| 217 | Little, | |
| 218 | Little, | |
| 219 | Little, | |
| 220 | Little, | |
| 221 | Little, | |
| 222 | Little, | |
| 223 | Little, | |
| 224 | Little, | |
| 225 | Little, | |
| 226 | Little, | |
| 227 | Little, | |
| 228 | Little, | |
| 229 | Little, | |
| 230 | Little, | |
| 231 | Little, | |
| 232 | Little, | |
| 233 | Little, | |
| 234 | Little, | |
| 235 | Little, | |
| 236 | Little, | |
| 237 | Little, | |
| 238 | Little, | |
| 239 | Little, | |
| 240 | Little, | |
| 241 | Little, | |
| 242 | Little, | |
| 243 | Little, | |
| 244 | Little, | |
| 245 | Little, | |
| 246 | Little, | |
| 247 | Little, | |
| 248 | Little, | |
| 249 | Little, | |
| 250 | Little, | |
| 251 | Little, | |
| 252 | Little, | |
| 253 | Little, | |
| 254 | Little, | |
| 255 | Little, | |
| 256 | Little, | |
| 257 | Little, | |
| 258 | Little, | |
| 259 | Little, | |
| 260 | Little, | |
| 261 | Little, | |
| 262 | Little, | |
| 263 | Little, | |
| 264 | Little, | |
| 265 | Little, | |
| 266 | Little, | |
| 267 | Little, | |
| 268 | Little, | |
| 269 | Little, | |
| 270 | Little, | |
| 271 | Little, | |
| 272 | Little, | |
| 273 | Little, | |
| 274 | Little, | |
| 275 | Little, | |
| 276 | Little, | |
| 277 | Little, | |
| 278 | Little, | |
| 279 | Little, | |
| 280 | Little, | |
| 281 | Little, | |
| 282 | Little, | |
| 283 | Little, | |
| 284 | Little, | |
| 285 | Little, | |
| 286 | Little, | |
| 287 | Little, | |
| 288 | Little, | |
| 289 | Little, | |
| 290 | Little, | |
| 291 | Little, | |
| 292 | Little, | |
| 293 | Little, | |
| 294 | Little, | |
| 295 | Little, | |
| 296 | Little, | |
| 297 | Little, | |
| 298 | Little, | |
| 299 | Little, | |
| 300 | Little, | |
| 301 | Little, | |
| 302 | Little, | |
| 303 | Little, | |
| 304 | Little, | |
| 305 | Little, | |
| 306 | Little, | |
| 307 | Little, | |
| 308 | Little, | |
| 309 | Little, | |
| 310 | Little, | |
| 311 | Little, | |
| 312 | Little, | |
| 313 | Little, | |
| 314 | Little, | |
| 315 | Little, | |
| 316 | Little, | |
| 317 | Little, | |
| 318 | Little, | |
| 319 | Little, | |
| 320 | Little, | |
| 321 | Little, | |
| 322 | Little, | |
| 323 | Little, | |
| 324 | Little, | |
| 325 | Little, | |
| 326 | Little, | |
| 327 | Little, | |
| 328 | Little, | |
| 329 | Little, | |
| 330 | Little, | |
| 331 | Little, | |
| 332 | Little, | |
| 333 | Little, | |
| 334 | Little, | |
| 335 | Little, | |
| 336 | Little, | |
| 337 | Little, | |
| 338 | Little, | |
| 339 | Little, | |
| 340 | Little, | |
| 341 | Little, | |
| 342 | Little, | |
| 343 | Little, | |
| 344 | Little, | |
| 345 | Little, | |
| 346 | Little, | |
| 347 | Little, | |
| 348 | Little, | |
| 349 | Little, | |
| 350 | Little, | |
| 351 | Little, | |
| 352 | Little, | |
| 353 | Little, | |
| 354 | Little, | |
| 355 | Little, | |
| 356 | Little, | |
| 357 | Little, | |
| 358 | Little, | |
| 359 | Little, | |
| 360 | Little, | |
| 361 | Little, | |
| 362 | Little, | |
| 363 | Little, | |
| 364 | Little, | |
| 365 | Little, | |
| 366 | Little, | |
| 367 | Little, | |
| 368 | Little, | |
| 369 | Little, | |
| 370 | Little, | |
| 371 | Little, | |
| 372 | Little, | |
| 373 | Little, | |
| 374 | Little, | |
| 375 | Little, | |
| 376 | Little, | |
| 377 | Little, | |
| 378 | Little, | |
| 379 | Little, | |
| 380 | Little, | |
| 381 | Little, | |
| 382 | Little, | |
| 383 | Little, | |
| 384 | Little, | |
| 385 | Little, | |
| 386 | Little, | |
| 387 | Little, | |
| 388 | Little, | |
| 389 | Little, | |
| 390 | Little, | |
| 391 | Little, | |
| 392 | Little, | |
| 393 | Little, | |
| 394 | Little, | |
| 395 | Little, | |
| 396 | Little, | |
| 397 | Little, | |
| 398 | Little, | |
| 399 | Little, | |
| 400 | Little, | |
| 401 | Little, | |
| 402 | Little, | |
| 403 | Little, | |
| 404 | Little, | |
| 405 | Little, | |
| 406 | Little, | |
| 407 | Little, | |
| 408 | Little, | |
| 409 | Little, | |
| 410 | Little, | |
| 411 | Little, | |
| 412 | Little, | |
| 413 | Little, | |
| 414 | Little, | |
| 415 | Little, | |
| 416 | Little, | |
| 417 | Little, | |
| 418 | Little, | |
| 419 | Little, | |
| 420 | Little, | |
| 421 | Little, | |
| 422 | Little, | |
| 423 | Little, | |
| 424 | Little, | |
| 425 | Little, | |
| 426 | Little, | |
| 427 | Little, | |
| 428 | Little, | |
| 429 | Little, | |
| 430 | Little, | |
| 431 | Little, | |
| 432 | Little, | |
| 433 | Little, | |
| 434 | Little, | |
| 435 | Little, | |
| 436 | Little, | |
| 437 | Little, | |
| 438 | Little, | |
| 439 | Little, | |
| 440 | Little, | |
| 441 | Little, | |
| 442 | Little, | |
| 443 | Little, | |
| 444 | Little, | |
| 445 | Little, | |
| 446 | Little, | |
| 447 | Little, | |
| 448 | Little, | |
| 449 | Little, | |
| 450 | Little, | |
| 451 | Little, | |
| 452 | Little, | |
| 453 | Little, | |
| 454 | Little, | |
| 455 | Little, | |
| 456 | Little, | |
| 457 | Little, | |
| 458 | Little, | |
| 459 | Little, | |
| 460 | Little, | |
| 461 | Little, | |
| 462 | Little, | |
| 463 | Little, | |
| 464 | Little, | |
| 465 | Little, | |
| 466 | Little, | |
| 467 | Little, | |
| 468 | Little, | |
| 469 | Little, | |
| 470 | Little, | |
| 471 | Little, | |
| 472 | Little, | |
| 473 | Little, | |
| 474 | Little, | |
| 475 | Little, | |
| 476 | Little, | |
| 477 | Little, | |
| 478 | Little, | |
| 479 | Little, | |
| 480 | Little, | |
| 481 | Little, | |
| 482 | Little, | |
| 483 | Little, | |
| 484 | Little, | |
| 485 | Little, | |
| 486 | Little, | |
| 487 | Little, | |
| 488 | Little, | |
| 489 | Little, | |
| 490 | Little, | |
| 491 | Little, | |
| 492 | Little, | |
| 493 | Little, | |
| 494 | Little, | |
| 495 | Little, | |
| 496 | Little, | |
| 497 | Little, | |
| 498 | Little, | |
| 499 | Little, | |
| 500 | Little, | |
| 501 | Little, | |
| 502 | Little, | |
| 503 | Little, | |
| 504 | Little, | |
| 505 | Little, | |
| 506 | Little, | |
| 507 | Little, | |
| 508 | Little, | |
| 509 | Little, | |
| 510 | Little, | |
| 511 | Little, | |
| 512 | Little, | |
| 513 | Little, | |
| 514 | Little, | |
| 515 | Little, | |
| 516 | Little, | |
| 517 | Little, | |
| 518 | Little, | |
| 519 | Little, | |
| 520 | Little, | |
| 521 | Little, | |
| 522 | Little, | |
| 523 | Little, | |
| 524 | Little, | |
| 525 | Little, | |
| 526 | Little, | |
| 527 | Little, | |
| 528 | Little, | |
| 529 | Little, | |
| 530 | Little, | |
| 531 | Little, | |
| 532 | Little, | |
| 533 | Little, | |
| 534 | Little, | |
| 535 | Little, | |
| 536 | Little, | |
| 537 | Little, | |
| 538 | Little, | |
| 539 | Little, | |
| 540 | Little, | |
| 541 | Little, | |
| 542 | Little, | |
| 543 | Little, | |
| 544 | Little, | |
| 545 | Little, | |
| 546 | Little, | |
| 547 | Little, | |
| 548 | Little, | |
| 549 | Little, | |
| 550 | Little, | |
| 551 | Little, | |
| 552 | Little, | |
| 553 | Little, | |
| 554 | Little, | |
| 555 | Little, | |
| 556 | Little, | |
| 557 | Little, | |
| 558 | Little, | |
| 559 | Little, | |
| 560 | Little, | |
| 561 | Little, | |
| 562 | Little, | |
| 563 | Little, | |
| 564 | Little, | |
| 565 | Little, | |
| 566 | Little, | |
| 567 | Little, | |
| 568 | Little, | |
| 569 | Little, | |
| 570 | Little, | |
| 571 | Little, | |
| 572 | Little, | |
| 573 | Little, | |
| 574 | Little, | |
| 575 | Little, | |
| 576 | Little, | |
| 577 | Little, | |
| 578 | Little, | |
| 579 | Little, | |
| 580 | Little, | |
| 581 | Little, | |
| 582 | Little, | |
| 583 | Little, | |
| 584 | Little, | |
| 585 | Little, | |
| 586 | Little, | |
| 587 | Little, | |
| 588 | Little, | |
| 589 | Little, | |
| 590 | Little, | |
| 591 | Little, | |
| 592 | Little, | |
| 593 | Little, | |
| 594 | Little, | |
| 595 | Little, | |
| 596 | Little, | |
| 597 | Little, | |
| 598 | Little, | |
| 599 | Little, | |
| 600 | Little, | |
| 601 | Little, | |
| 602 | Little, | |
| 603 | Little, | |
| 604 | Little, | |
| 605 | Little, | |
| 606 | Little, | |
| 607 | Little, | |
| 608 | Little, | |
| 609 | Little, | |
| 610 | Little, | |
| 611 | Little, | |
| 612 | Little, | |
| 613 | Little, | |
| 614 | Little, | |
| 615 | Little, | |
| 616 | Little, | |
| 617 | Little, | |
| 618 | Little, | |
| 619 | Little, | |
| 620 | Little, | |
| 621 | Little, | |
| 622 | ); |
tests/ui/deriving/issue-6341.rs deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | //@ check-pass | |
| 2 | ||
| 3 | #[derive(PartialEq)] | |
| 4 | struct A { x: usize } | |
| 5 | ||
| 6 | impl Drop for A { | |
| 7 | fn drop(&mut self) {} | |
| 8 | } | |
| 9 | ||
| 10 | pub fn main() {} |
tests/ui/deriving/issue-89188-gat-hrtb.rs deleted-37| ... | ... | @@ -1,37 +0,0 @@ |
| 1 | //@ check-pass | |
| 2 | ||
| 3 | trait CallWithShim: Sized { | |
| 4 | type Shim<'s> | |
| 5 | where | |
| 6 | Self: 's; | |
| 7 | } | |
| 8 | ||
| 9 | #[derive(Clone)] | |
| 10 | struct ShimMethod<T: CallWithShim + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::Shim<'s>)); | |
| 11 | ||
| 12 | trait CallWithShim2: Sized { | |
| 13 | type Shim<T>; | |
| 14 | } | |
| 15 | ||
| 16 | struct S<'s>(&'s ()); | |
| 17 | ||
| 18 | #[derive(Clone)] | |
| 19 | struct ShimMethod2<T: CallWithShim2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::Shim<S<'s>>)); | |
| 20 | ||
| 21 | trait Trait<'s, 't, 'u> {} | |
| 22 | ||
| 23 | #[derive(Clone)] | |
| 24 | struct ShimMethod3<T: CallWithShim2 + 'static>( | |
| 25 | pub &'static dyn for<'s> Fn( | |
| 26 | &'s mut T::Shim<dyn for<'t> Fn(&'s mut T::Shim<dyn for<'u> Trait<'s, 't, 'u>>)>, | |
| 27 | ), | |
| 28 | ); | |
| 29 | ||
| 30 | trait Trait2 { | |
| 31 | type As; | |
| 32 | } | |
| 33 | ||
| 34 | #[derive(Clone)] | |
| 35 | struct ShimMethod4<T: Trait2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::As)); | |
| 36 | ||
| 37 | pub fn main() {} |
tests/ui/traits/const-traits/const-closure-inherited-const-condition.rs created+11| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | //@ check-pass | |
| 2 | //@ revisions: next old | |
| 3 | //@[next] compile-flags: -Znext-solver | |
| 4 | ||
| 5 | #![feature(const_closures, const_trait_impl)] | |
| 6 | ||
| 7 | const trait Foo {} | |
| 8 | ||
| 9 | const fn qux<T: [const] Foo>() { (const || {})() } | |
| 10 | ||
| 11 | fn main() {} |