diff --git a/src/test/codegen/alloc-optimisation.rs b/src/test/codegen/alloc-optimisation.rs index 07dc1350714..6705bbd5b9e 100644 --- a/src/test/codegen/alloc-optimisation.rs +++ b/src/test/codegen/alloc-optimisation.rs @@ -10,6 +10,7 @@ // // no-system-llvm // compile-flags: -O +// ignore-test FIXME swt_ignore #![crate_type="lib"] #[no_mangle] diff --git a/src/test/codegen/dealloc-no-unwind.rs b/src/test/codegen/dealloc-no-unwind.rs index 551b66e103a..12d1bed0cba 100644 --- a/src/test/codegen/dealloc-no-unwind.rs +++ b/src/test/codegen/dealloc-no-unwind.rs @@ -10,6 +10,7 @@ // // no-system-llvm // compile-flags: -O +// ignore-test FIXME swt_ignore #![crate_type="lib"] diff --git a/src/test/codegen/issue-13018.rs b/src/test/codegen/issue-13018.rs index 702b9545794..ad8ef3329c1 100644 --- a/src/test/codegen/issue-13018.rs +++ b/src/test/codegen/issue-13018.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-test FIXME swt_ignore // compile-flags: -O // A drop([...].clone()) sequence on an Rc should be a no-op diff --git a/src/test/codegen/issue-34947-pow-i32.rs b/src/test/codegen/issue-34947-pow-i32.rs index 0564cd2e501..03538a8ee77 100644 --- a/src/test/codegen/issue-34947-pow-i32.rs +++ b/src/test/codegen/issue-34947-pow-i32.rs @@ -11,6 +11,7 @@ // compile-flags: -O #![crate_type = "lib"] +#![no_trace] // CHECK-LABEL: @issue_34947 #[no_mangle] diff --git a/src/test/codegen/issue-45222.rs b/src/test/codegen/issue-45222.rs index 30a03243f01..63b34abf9e3 100644 --- a/src/test/codegen/issue-45222.rs +++ b/src/test/codegen/issue-45222.rs @@ -12,6 +12,7 @@ // min-llvm-version 6.0 #![crate_type = "lib"] +#![no_trace] // verify that LLVM recognizes a loop involving 0..=n and will const-fold it. diff --git a/src/test/codegen/issue-45466.rs b/src/test/codegen/issue-45466.rs index 14954763944..2d39ed57ca7 100644 --- a/src/test/codegen/issue-45466.rs +++ b/src/test/codegen/issue-45466.rs @@ -12,6 +12,7 @@ // min-llvm-version 6.0 #![crate_type="rlib"] +#![no_trace] // CHECK-LABEL: @memzero // CHECK-NOT: store diff --git a/src/test/codegen/match-optimizes-away.rs b/src/test/codegen/match-optimizes-away.rs index d7b77937431..96aa51dca92 100644 --- a/src/test/codegen/match-optimizes-away.rs +++ b/src/test/codegen/match-optimizes-away.rs @@ -11,6 +11,7 @@ // no-system-llvm // compile-flags: -O #![crate_type="lib"] +#![no_trace] pub enum Three { A, B, C } diff --git a/src/test/codegen/match.rs b/src/test/codegen/match.rs index c9d0427dd0a..04d3e3c4cc3 100644 --- a/src/test/codegen/match.rs +++ b/src/test/codegen/match.rs @@ -11,6 +11,7 @@ // compile-flags: -C no-prepopulate-passes #![crate_type = "lib"] +#![no_trace] pub enum E { A, diff --git a/src/test/codegen/repeat-trusted-len.rs b/src/test/codegen/repeat-trusted-len.rs index 8565335bd75..d42f1b35b5b 100644 --- a/src/test/codegen/repeat-trusted-len.rs +++ b/src/test/codegen/repeat-trusted-len.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// ignore-test FIXME swt_ignore // compile-flags: -O // ignore-tidy-linelength // min-llvm-version 7.0 diff --git a/src/test/codegen/scalar-pair-bool.rs b/src/test/codegen/scalar-pair-bool.rs index f50e032f8e6..b7b7080b665 100644 --- a/src/test/codegen/scalar-pair-bool.rs +++ b/src/test/codegen/scalar-pair-bool.rs @@ -11,6 +11,7 @@ // compile-flags: -O #![crate_type = "lib"] +#![no_trace] // CHECK: define { i8, i8 } @pair_bool_bool(i1 zeroext %pair.0, i1 zeroext %pair.1) #[no_mangle] diff --git a/src/test/codegen/slice-position-bounds-check.rs b/src/test/codegen/slice-position-bounds-check.rs index a6c846d7dab..ab6b09237c8 100644 --- a/src/test/codegen/slice-position-bounds-check.rs +++ b/src/test/codegen/slice-position-bounds-check.rs @@ -11,6 +11,7 @@ // no-system-llvm // compile-flags: -O -C panic=abort #![crate_type = "lib"] +#![no_trace] fn search(arr: &mut [T], a: &T) -> Result { match arr.iter().position(|x| x == a) { diff --git a/src/test/compile-fail/two-panic-runtimes.rs b/src/test/compile-fail/two-panic-runtimes.rs index 0fe0da2fa2c..4809d92f62b 100644 --- a/src/test/compile-fail/two-panic-runtimes.rs +++ b/src/test/compile-fail/two-panic-runtimes.rs @@ -15,9 +15,13 @@ // aux-build:panic-runtime-lang-items.rs #![no_std] +#![feature(lang_items)] extern crate panic_runtime_unwind; extern crate panic_runtime_unwind2; extern crate panic_runtime_lang_items; fn main() {} + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/debuginfo/associated-types.rs b/src/test/debuginfo/associated-types.rs index 229f9466b51..db816a9ca29 100644 --- a/src/test/debuginfo/associated-types.rs +++ b/src/test/debuginfo/associated-types.rs @@ -93,6 +93,7 @@ #![allow(dead_code)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] trait TraitWithAssocType { type Type; diff --git a/src/test/debuginfo/borrowed-basic.rs b/src/test/debuginfo/borrowed-basic.rs index 6f618c3881f..1442082a7d8 100644 --- a/src/test/debuginfo/borrowed-basic.rs +++ b/src/test/debuginfo/borrowed-basic.rs @@ -127,6 +127,8 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] + fn main() { let bool_val: bool = true; let bool_ref: &bool = &bool_val; diff --git a/src/test/debuginfo/borrowed-c-style-enum.rs b/src/test/debuginfo/borrowed-c-style-enum.rs index 73b92b82ba0..366d3654832 100644 --- a/src/test/debuginfo/borrowed-c-style-enum.rs +++ b/src/test/debuginfo/borrowed-c-style-enum.rs @@ -48,6 +48,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] enum ABC { TheA, TheB, TheC } diff --git a/src/test/debuginfo/borrowed-enum.rs b/src/test/debuginfo/borrowed-enum.rs index 8362934166c..20a97807fcc 100644 --- a/src/test/debuginfo/borrowed-enum.rs +++ b/src/test/debuginfo/borrowed-enum.rs @@ -45,6 +45,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] // The first element is to ensure proper alignment, irrespective of the machines word size. Since // the size of the discriminant value is machine dependent, this has be taken into account when diff --git a/src/test/debuginfo/borrowed-struct.rs b/src/test/debuginfo/borrowed-struct.rs index 3efb4dd470e..71a1abdaa48 100644 --- a/src/test/debuginfo/borrowed-struct.rs +++ b/src/test/debuginfo/borrowed-struct.rs @@ -76,6 +76,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct SomeStruct { x: isize, diff --git a/src/test/debuginfo/borrowed-tuple.rs b/src/test/debuginfo/borrowed-tuple.rs index ec7c000350f..8720ebbe89a 100644 --- a/src/test/debuginfo/borrowed-tuple.rs +++ b/src/test/debuginfo/borrowed-tuple.rs @@ -50,6 +50,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let stack_val: (i16, f32) = (-14, -19f32); diff --git a/src/test/debuginfo/borrowed-unique-basic.rs b/src/test/debuginfo/borrowed-unique-basic.rs index 78effa5f3df..b073bc5ee6b 100644 --- a/src/test/debuginfo/borrowed-unique-basic.rs +++ b/src/test/debuginfo/borrowed-unique-basic.rs @@ -129,6 +129,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let bool_box: Box = box true; diff --git a/src/test/debuginfo/box.rs b/src/test/debuginfo/box.rs index 7e25a9bf76a..6bb883a2109 100644 --- a/src/test/debuginfo/box.rs +++ b/src/test/debuginfo/box.rs @@ -37,6 +37,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let a = box 1; diff --git a/src/test/debuginfo/boxed-struct.rs b/src/test/debuginfo/boxed-struct.rs index 130ea3822cb..72bf9fcaff9 100644 --- a/src/test/debuginfo/boxed-struct.rs +++ b/src/test/debuginfo/boxed-struct.rs @@ -43,6 +43,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct StructWithSomePadding { x: i16, diff --git a/src/test/debuginfo/c-style-enum-in-composite.rs b/src/test/debuginfo/c-style-enum-in-composite.rs index 0a19a040a5f..32517f82cf1 100644 --- a/src/test/debuginfo/c-style-enum-in-composite.rs +++ b/src/test/debuginfo/c-style-enum-in-composite.rs @@ -79,6 +79,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::AnEnum::{OneHundred, OneThousand, OneMillion}; use self::AnotherEnum::{MountainView, Toronto, Vienna}; diff --git a/src/test/debuginfo/destructured-fn-argument.rs b/src/test/debuginfo/destructured-fn-argument.rs index b152fa27906..5eaf601d4c8 100644 --- a/src/test/debuginfo/destructured-fn-argument.rs +++ b/src/test/debuginfo/destructured-fn-argument.rs @@ -371,6 +371,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Univariant::Unit; diff --git a/src/test/debuginfo/destructured-local.rs b/src/test/debuginfo/destructured-local.rs index 5a2edf81d29..d9d628c7377 100644 --- a/src/test/debuginfo/destructured-local.rs +++ b/src/test/debuginfo/destructured-local.rs @@ -298,6 +298,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Univariant::Unit; diff --git a/src/test/debuginfo/evec-in-struct.rs b/src/test/debuginfo/evec-in-struct.rs index c5460c69944..b21759b70c0 100644 --- a/src/test/debuginfo/evec-in-struct.rs +++ b/src/test/debuginfo/evec-in-struct.rs @@ -64,6 +64,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct NoPadding1 { x: [u32; 3], diff --git a/src/test/debuginfo/extern-c-fn.rs b/src/test/debuginfo/extern-c-fn.rs index 2e6602c63ff..d6ddd82ff05 100644 --- a/src/test/debuginfo/extern-c-fn.rs +++ b/src/test/debuginfo/extern-c-fn.rs @@ -51,6 +51,7 @@ #![allow(dead_code)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] #[no_mangle] diff --git a/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs b/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs index 158a1f17fc0..46f925f7ca5 100644 --- a/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs +++ b/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs @@ -38,6 +38,7 @@ // gdbr-check:$5 = gdb_pretty_struct_and_enums_pre_gdb_7_7::CStyleEnum::CStyleEnumVar3 #![allow(dead_code, unused_variables)] +#![no_trace] struct RegularStruct { the_first_field: isize, diff --git a/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs b/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs index 988ec4a65f1..70c0ff3e0c6 100644 --- a/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs +++ b/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs @@ -75,6 +75,7 @@ #![allow(dead_code)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] // This test case makes sure that we get correct type descriptions for the enum // discriminant of different instantiations of the same generic enum type where, diff --git a/src/test/debuginfo/generic-function.rs b/src/test/debuginfo/generic-function.rs index 89b0e4ca453..9216da19bd1 100644 --- a/src/test/debuginfo/generic-function.rs +++ b/src/test/debuginfo/generic-function.rs @@ -86,6 +86,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] #[derive(Clone)] struct Struct { diff --git a/src/test/debuginfo/generic-struct-style-enum.rs b/src/test/debuginfo/generic-struct-style-enum.rs index e08cde03c47..27f1a184fd8 100644 --- a/src/test/debuginfo/generic-struct-style-enum.rs +++ b/src/test/debuginfo/generic-struct-style-enum.rs @@ -35,6 +35,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Regular::{Case1, Case2, Case3}; use self::Univariant::TheOnlyCase; diff --git a/src/test/debuginfo/generic-struct.rs b/src/test/debuginfo/generic-struct.rs index 4e06a15e1cd..04588958869 100644 --- a/src/test/debuginfo/generic-struct.rs +++ b/src/test/debuginfo/generic-struct.rs @@ -51,6 +51,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct AGenericStruct { key: TKey, diff --git a/src/test/debuginfo/generic-tuple-style-enum.rs b/src/test/debuginfo/generic-tuple-style-enum.rs index ebd43daf464..069ffe358ed 100644 --- a/src/test/debuginfo/generic-tuple-style-enum.rs +++ b/src/test/debuginfo/generic-tuple-style-enum.rs @@ -54,6 +54,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Regular::{Case1, Case2, Case3}; use self::Univariant::TheOnlyCase; diff --git a/src/test/debuginfo/include_string.rs b/src/test/debuginfo/include_string.rs index e915bf13702..20027f6f833 100644 --- a/src/test/debuginfo/include_string.rs +++ b/src/test/debuginfo/include_string.rs @@ -40,6 +40,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] // This test case makes sure that debug info does not ICE when include_str is // used multiple times (see issue #11322). diff --git a/src/test/debuginfo/issue-12886.rs b/src/test/debuginfo/issue-12886.rs index c30ee92dc53..b0b691068c2 100644 --- a/src/test/debuginfo/issue-12886.rs +++ b/src/test/debuginfo/issue-12886.rs @@ -16,11 +16,12 @@ // gdb-command:run // gdb-command:next -// gdb-check:[...]35[...]s +// gdb-check:[...]36[...]s // gdb-command:continue #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] // IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS diff --git a/src/test/debuginfo/lexical-scope-in-for-loop.rs b/src/test/debuginfo/lexical-scope-in-for-loop.rs index 7a3c30ed8e5..2a88c0f90da 100644 --- a/src/test/debuginfo/lexical-scope-in-for-loop.rs +++ b/src/test/debuginfo/lexical-scope-in-for-loop.rs @@ -94,6 +94,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-if.rs b/src/test/debuginfo/lexical-scope-in-if.rs index 1a21fe6c1a9..97200df9133 100644 --- a/src/test/debuginfo/lexical-scope-in-if.rs +++ b/src/test/debuginfo/lexical-scope-in-if.rs @@ -151,6 +151,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-match.rs b/src/test/debuginfo/lexical-scope-in-match.rs index 3c10039e76a..c02a184fe1f 100644 --- a/src/test/debuginfo/lexical-scope-in-match.rs +++ b/src/test/debuginfo/lexical-scope-in-match.rs @@ -145,6 +145,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct Struct { x: isize, diff --git a/src/test/debuginfo/lexical-scope-in-stack-closure.rs b/src/test/debuginfo/lexical-scope-in-stack-closure.rs index fec9d9af1ba..2bd48e515ec 100644 --- a/src/test/debuginfo/lexical-scope-in-stack-closure.rs +++ b/src/test/debuginfo/lexical-scope-in-stack-closure.rs @@ -77,6 +77,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs b/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs index d160b0250cf..213b4a6b276 100644 --- a/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs +++ b/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs @@ -146,6 +146,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-unique-closure.rs b/src/test/debuginfo/lexical-scope-in-unique-closure.rs index 574752d728f..af4f16aac6d 100644 --- a/src/test/debuginfo/lexical-scope-in-unique-closure.rs +++ b/src/test/debuginfo/lexical-scope-in-unique-closure.rs @@ -78,6 +78,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-while.rs b/src/test/debuginfo/lexical-scope-in-while.rs index 7bc0409f2bb..ec9b8a2f5ef 100644 --- a/src/test/debuginfo/lexical-scope-in-while.rs +++ b/src/test/debuginfo/lexical-scope-in-while.rs @@ -146,6 +146,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/lexical-scope-with-macro.rs b/src/test/debuginfo/lexical-scope-with-macro.rs index d11a42bb0ed..ba3d664b536 100644 --- a/src/test/debuginfo/lexical-scope-with-macro.rs +++ b/src/test/debuginfo/lexical-scope-with-macro.rs @@ -122,6 +122,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] macro_rules! trivial { ($e1:expr) => ($e1) diff --git a/src/test/debuginfo/multiple-functions-equal-var-names.rs b/src/test/debuginfo/multiple-functions-equal-var-names.rs index b2327e494e7..f03ec9cdd4c 100644 --- a/src/test/debuginfo/multiple-functions-equal-var-names.rs +++ b/src/test/debuginfo/multiple-functions-equal-var-names.rs @@ -49,6 +49,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn function_one() { let abc = 10101; diff --git a/src/test/debuginfo/multiple-functions.rs b/src/test/debuginfo/multiple-functions.rs index d78ef0292c1..956ee6cf0a1 100644 --- a/src/test/debuginfo/multiple-functions.rs +++ b/src/test/debuginfo/multiple-functions.rs @@ -49,6 +49,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn function_one() { let a = 10101; diff --git a/src/test/debuginfo/name-shadowing-and-scope-nesting.rs b/src/test/debuginfo/name-shadowing-and-scope-nesting.rs index 91f0e14157e..f8bbc2cf5ec 100644 --- a/src/test/debuginfo/name-shadowing-and-scope-nesting.rs +++ b/src/test/debuginfo/name-shadowing-and-scope-nesting.rs @@ -107,6 +107,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let x = false; diff --git a/src/test/debuginfo/no-debug-attribute.rs b/src/test/debuginfo/no-debug-attribute.rs index 15f2eae76c6..671335e1955 100644 --- a/src/test/debuginfo/no-debug-attribute.rs +++ b/src/test/debuginfo/no-debug-attribute.rs @@ -26,6 +26,7 @@ #![feature(no_debug)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] #[inline(never)] fn id(x: T) -> T {x} diff --git a/src/test/debuginfo/packed-struct-with-destructor.rs b/src/test/debuginfo/packed-struct-with-destructor.rs index d5273d53dc5..116d67050a4 100644 --- a/src/test/debuginfo/packed-struct-with-destructor.rs +++ b/src/test/debuginfo/packed-struct-with-destructor.rs @@ -91,6 +91,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] #[repr(packed)] struct Packed { diff --git a/src/test/debuginfo/packed-struct.rs b/src/test/debuginfo/packed-struct.rs index 2ed3711fbde..64004c1e681 100644 --- a/src/test/debuginfo/packed-struct.rs +++ b/src/test/debuginfo/packed-struct.rs @@ -72,6 +72,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] #[repr(packed)] struct Packed { diff --git a/src/test/debuginfo/pretty-huge-vec.rs b/src/test/debuginfo/pretty-huge-vec.rs index bb538523523..3171e051b3b 100644 --- a/src/test/debuginfo/pretty-huge-vec.rs +++ b/src/test/debuginfo/pretty-huge-vec.rs @@ -27,6 +27,7 @@ #![allow(unused_variables)] +#![no_trace] fn main() { diff --git a/src/test/debuginfo/recursive-struct.rs b/src/test/debuginfo/recursive-struct.rs index 647f9519789..8e01bc3c85a 100644 --- a/src/test/debuginfo/recursive-struct.rs +++ b/src/test/debuginfo/recursive-struct.rs @@ -76,6 +76,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Opt::{Empty, Val}; diff --git a/src/test/debuginfo/shadowed-argument.rs b/src/test/debuginfo/shadowed-argument.rs index 49d876d4530..eba70a2cafb 100644 --- a/src/test/debuginfo/shadowed-argument.rs +++ b/src/test/debuginfo/shadowed-argument.rs @@ -66,6 +66,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn a_function(x: bool, y: bool) { zzz(); // #break diff --git a/src/test/debuginfo/shadowed-variable.rs b/src/test/debuginfo/shadowed-variable.rs index 3a8f6d3b70d..83fb9b6491a 100644 --- a/src/test/debuginfo/shadowed-variable.rs +++ b/src/test/debuginfo/shadowed-variable.rs @@ -91,6 +91,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let x = false; diff --git a/src/test/debuginfo/simd.rs b/src/test/debuginfo/simd.rs index 75e68f7efed..8fad3e81530 100644 --- a/src/test/debuginfo/simd.rs +++ b/src/test/debuginfo/simd.rs @@ -67,6 +67,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #![feature(repr_simd)] +#![no_trace] #[repr(simd)] struct i8x16(i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8); diff --git a/src/test/debuginfo/simple-lexical-scope.rs b/src/test/debuginfo/simple-lexical-scope.rs index 935a0bb2ae4..9552a2965ea 100644 --- a/src/test/debuginfo/simple-lexical-scope.rs +++ b/src/test/debuginfo/simple-lexical-scope.rs @@ -87,6 +87,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let x = false; diff --git a/src/test/debuginfo/struct-in-struct.rs b/src/test/debuginfo/struct-in-struct.rs index 129500860c8..3f5f2e31baf 100644 --- a/src/test/debuginfo/struct-in-struct.rs +++ b/src/test/debuginfo/struct-in-struct.rs @@ -69,6 +69,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct Simple { x: i32 diff --git a/src/test/debuginfo/struct-style-enum.rs b/src/test/debuginfo/struct-style-enum.rs index 722ca00e048..e5c224c9133 100644 --- a/src/test/debuginfo/struct-style-enum.rs +++ b/src/test/debuginfo/struct-style-enum.rs @@ -55,6 +55,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Regular::{Case1, Case2, Case3}; use self::Univariant::TheOnlyCase; diff --git a/src/test/debuginfo/struct-with-destructor.rs b/src/test/debuginfo/struct-with-destructor.rs index f7722bb3775..b5ccab5dbe0 100644 --- a/src/test/debuginfo/struct-with-destructor.rs +++ b/src/test/debuginfo/struct-with-destructor.rs @@ -56,6 +56,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct NoDestructor { x: i32, diff --git a/src/test/debuginfo/tuple-in-struct.rs b/src/test/debuginfo/tuple-in-struct.rs index dae1f5da542..f1c86b7b00c 100644 --- a/src/test/debuginfo/tuple-in-struct.rs +++ b/src/test/debuginfo/tuple-in-struct.rs @@ -54,6 +54,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct NoPadding1 { x: (i32, i32), diff --git a/src/test/debuginfo/tuple-in-tuple.rs b/src/test/debuginfo/tuple-in-tuple.rs index 79335a3d0e1..60ecd601c7d 100644 --- a/src/test/debuginfo/tuple-in-tuple.rs +++ b/src/test/debuginfo/tuple-in-tuple.rs @@ -72,6 +72,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] fn main() { let no_padding1: ((u32, u32), u32, u32) = ((0, 1), 2, 3); diff --git a/src/test/debuginfo/tuple-struct.rs b/src/test/debuginfo/tuple-struct.rs index def48c84488..ded48d44ff3 100644 --- a/src/test/debuginfo/tuple-struct.rs +++ b/src/test/debuginfo/tuple-struct.rs @@ -78,6 +78,7 @@ #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] struct NoPadding16(u16, i16); struct NoPadding32(i32, f32, u32); diff --git a/src/test/debuginfo/tuple-style-enum.rs b/src/test/debuginfo/tuple-style-enum.rs index d976839f08c..6cb754c93b2 100644 --- a/src/test/debuginfo/tuple-style-enum.rs +++ b/src/test/debuginfo/tuple-style-enum.rs @@ -55,6 +55,7 @@ #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] use self::Regular::{Case1, Case2, Case3}; use self::Univariant::TheOnlyCase; diff --git a/src/test/debuginfo/unique-enum.rs b/src/test/debuginfo/unique-enum.rs index aab8edc55f7..e1e16450e44 100644 --- a/src/test/debuginfo/unique-enum.rs +++ b/src/test/debuginfo/unique-enum.rs @@ -49,6 +49,7 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] // The first element is to ensure proper alignment, irrespective of the machines word size. Since // the size of the discriminant value is machine dependent, this has be taken into account when diff --git a/src/test/debuginfo/var-captured-in-nested-closure.rs b/src/test/debuginfo/var-captured-in-nested-closure.rs index 02c836bb6ac..ca2c56877c3 100644 --- a/src/test/debuginfo/var-captured-in-nested-closure.rs +++ b/src/test/debuginfo/var-captured-in-nested-closure.rs @@ -97,6 +97,8 @@ #![feature(box_syntax)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] +#![no_trace] + struct Struct { a: isize, diff --git a/src/test/incremental/change_add_field/struct_point.rs b/src/test/incremental/change_add_field/struct_point.rs index 37d1a397303..c772493c8a3 100644 --- a/src/test/incremental/change_add_field/struct_point.rs +++ b/src/test/incremental/change_add_field/struct_point.rs @@ -21,6 +21,7 @@ #![feature(stmt_expr_attributes)] #![allow(dead_code)] #![crate_type = "rlib"] +#![no_trace] // These are expected to require codegen. #![rustc_partition_codegened(module="struct_point-point", cfg="cfail2")] diff --git a/src/test/incremental/change_private_fn/struct_point.rs b/src/test/incremental/change_private_fn/struct_point.rs index d1b8399dbda..962dd0f0ee0 100644 --- a/src/test/incremental/change_private_fn/struct_point.rs +++ b/src/test/incremental/change_private_fn/struct_point.rs @@ -19,6 +19,7 @@ #![feature(stmt_expr_attributes)] #![allow(dead_code)] #![crate_type = "rlib"] +#![no_trace] #![rustc_partition_codegened(module="struct_point-point", cfg="cfail2")] diff --git a/src/test/incremental/change_private_fn_cc/struct_point.rs b/src/test/incremental/change_private_fn_cc/struct_point.rs index c79dc6e3418..77b613440ba 100644 --- a/src/test/incremental/change_private_fn_cc/struct_point.rs +++ b/src/test/incremental/change_private_fn_cc/struct_point.rs @@ -20,6 +20,7 @@ #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] #![allow(dead_code)] +#![no_trace] #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_same_impl", cfg="cfail2")] #![rustc_partition_reused(module="struct_point-fn_calls_methods_in_another_impl", cfg="cfail2")] diff --git a/src/test/incremental/change_private_impl_method/struct_point.rs b/src/test/incremental/change_private_impl_method/struct_point.rs index cf6eefd61d7..f11a54344e9 100644 --- a/src/test/incremental/change_private_impl_method/struct_point.rs +++ b/src/test/incremental/change_private_impl_method/struct_point.rs @@ -19,6 +19,7 @@ #![feature(stmt_expr_attributes)] #![allow(dead_code)] #![crate_type = "rlib"] +#![no_trace] #![rustc_partition_codegened(module="struct_point-point", cfg="cfail2")] diff --git a/src/test/incremental/change_private_impl_method_cc/struct_point.rs b/src/test/incremental/change_private_impl_method_cc/struct_point.rs index f32ef9622f0..d2a709d0a3d 100644 --- a/src/test/incremental/change_private_impl_method_cc/struct_point.rs +++ b/src/test/incremental/change_private_impl_method_cc/struct_point.rs @@ -20,6 +20,7 @@ #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] #![allow(dead_code)] +#![no_trace] #![rustc_partition_reused(module="struct_point-fn_read_field", cfg="cfail2")] #![rustc_partition_reused(module="struct_point-fn_write_field", cfg="cfail2")] diff --git a/src/test/incremental/change_pub_inherent_method_body/struct_point.rs b/src/test/incremental/change_pub_inherent_method_body/struct_point.rs index a204fe27da6..288582589f3 100644 --- a/src/test/incremental/change_pub_inherent_method_body/struct_point.rs +++ b/src/test/incremental/change_pub_inherent_method_body/struct_point.rs @@ -18,6 +18,7 @@ #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] #![allow(dead_code)] +#![no_trace] #![rustc_partition_codegened(module="struct_point-point", cfg="cfail2")] diff --git a/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs b/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs index 76c9dfce93d..72483600f79 100644 --- a/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs +++ b/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs @@ -18,6 +18,7 @@ #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] #![allow(dead_code)] +#![no_trace] // These are expected to require codegen. #![rustc_partition_codegened(module="struct_point-point", cfg="cfail2")] diff --git a/src/test/incremental/change_symbol_export_status.rs b/src/test/incremental/change_symbol_export_status.rs index feb8026f501..85b490741e2 100644 --- a/src/test/incremental/change_symbol_export_status.rs +++ b/src/test/incremental/change_symbol_export_status.rs @@ -16,6 +16,7 @@ #![rustc_partition_codegened(module="change_symbol_export_status-mod1", cfg="rpass2")] #![rustc_partition_reused(module="change_symbol_export_status-mod2", cfg="rpass2")] +#![no_trace] // This test case makes sure that a change in symbol visibility is detected by // our dependency tracking. We do this by changing a module's visibility to diff --git a/src/test/incremental/hashes/closure_expressions.rs b/src/test/incremental/hashes/closure_expressions.rs index 85d1f3df05b..3065265373d 100644 --- a/src/test/incremental/hashes/closure_expressions.rs +++ b/src/test/incremental/hashes/closure_expressions.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change closure body --------------------------------------------------------- diff --git a/src/test/incremental/hashes/enum_constructors.rs b/src/test/incremental/hashes/enum_constructors.rs index 9e8a0a9027b..6dc1b2d0fe7 100644 --- a/src/test/incremental/hashes/enum_constructors.rs +++ b/src/test/incremental/hashes/enum_constructors.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] pub enum Enum { diff --git a/src/test/incremental/hashes/for_loops.rs b/src/test/incremental/hashes/for_loops.rs index 15546a5bacf..b1cdef56b54 100644 --- a/src/test/incremental/hashes/for_loops.rs +++ b/src/test/incremental/hashes/for_loops.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change loop body ------------------------------------------------------------ diff --git a/src/test/incremental/hashes/function_interfaces.rs b/src/test/incremental/hashes/function_interfaces.rs index 03860ae2122..372399e5520 100644 --- a/src/test/incremental/hashes/function_interfaces.rs +++ b/src/test/incremental/hashes/function_interfaces.rs @@ -26,6 +26,7 @@ #![feature(linkage)] #![feature(rustc_attrs)] #![crate_type = "rlib"] +#![no_trace] // Add Parameter --------------------------------------------------------------- diff --git a/src/test/incremental/hashes/if_expressions.rs b/src/test/incremental/hashes/if_expressions.rs index 6a1139f1e8e..6b7e0b6dcd4 100644 --- a/src/test/incremental/hashes/if_expressions.rs +++ b/src/test/incremental/hashes/if_expressions.rs @@ -24,6 +24,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change condition (if) ------------------------------------------------------- #[cfg(cfail1)] diff --git a/src/test/incremental/hashes/inherent_impls.rs b/src/test/incremental/hashes/inherent_impls.rs index dd12fa2192f..f8b47b3201e 100644 --- a/src/test/incremental/hashes/inherent_impls.rs +++ b/src/test/incremental/hashes/inherent_impls.rs @@ -24,6 +24,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] pub struct Foo; diff --git a/src/test/incremental/hashes/let_expressions.rs b/src/test/incremental/hashes/let_expressions.rs index 097cd665375..8b2a4d77cc4 100644 --- a/src/test/incremental/hashes/let_expressions.rs +++ b/src/test/incremental/hashes/let_expressions.rs @@ -24,6 +24,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change Name ----------------------------------------------------------------- #[cfg(cfail1)] diff --git a/src/test/incremental/hashes/loop_expressions.rs b/src/test/incremental/hashes/loop_expressions.rs index bda8c5f16a0..e56291f152f 100644 --- a/src/test/incremental/hashes/loop_expressions.rs +++ b/src/test/incremental/hashes/loop_expressions.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change loop body ------------------------------------------------------------ diff --git a/src/test/incremental/hashes/struct_constructors.rs b/src/test/incremental/hashes/struct_constructors.rs index 09b661ba619..6010409b43f 100644 --- a/src/test/incremental/hashes/struct_constructors.rs +++ b/src/test/incremental/hashes/struct_constructors.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] pub struct RegularStruct { diff --git a/src/test/incremental/hashes/while_let_loops.rs b/src/test/incremental/hashes/while_let_loops.rs index a15e239a6b1..f99686462aa 100644 --- a/src/test/incremental/hashes/while_let_loops.rs +++ b/src/test/incremental/hashes/while_let_loops.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change loop body ------------------------------------------------------------ diff --git a/src/test/incremental/hashes/while_loops.rs b/src/test/incremental/hashes/while_loops.rs index 4311cef28d1..48acd4140b3 100644 --- a/src/test/incremental/hashes/while_loops.rs +++ b/src/test/incremental/hashes/while_loops.rs @@ -23,6 +23,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] // Change loop body ------------------------------------------------------------ diff --git a/src/test/incremental/issue-38222.rs b/src/test/incremental/issue-38222.rs index a19de6ef636..b2983e86925 100644 --- a/src/test/incremental/issue-38222.rs +++ b/src/test/incremental/issue-38222.rs @@ -24,6 +24,8 @@ // be re-used, so checking that this module was re-used is sufficient. #![rustc_partition_reused(module="issue_38222", cfg="rpass2")] +#![no_trace] + //[rpass1] compile-flags: -C debuginfo=1 //[rpass2] compile-flags: -C debuginfo=1 diff --git a/src/test/incremental/issue-42602.rs b/src/test/incremental/issue-42602.rs index 921c7c25a06..32a4ef4c4b3 100644 --- a/src/test/incremental/issue-42602.rs +++ b/src/test/incremental/issue-42602.rs @@ -21,6 +21,7 @@ // compile-pass #![feature(rustc_attrs)] +#![no_trace] fn main() { a::foo(); diff --git a/src/test/incremental/krate-inherent.rs b/src/test/incremental/krate-inherent.rs index 925538879aa..79321e918c7 100644 --- a/src/test/incremental/krate-inherent.rs +++ b/src/test/incremental/krate-inherent.rs @@ -16,6 +16,7 @@ #![feature(rustc_attrs)] #![rustc_partition_reused(module="krate_inherent-x", cfg="cfail2")] #![crate_type = "rlib"] +#![no_trace] pub mod x { pub struct Foo; diff --git a/src/test/incremental/krate-inlined.rs b/src/test/incremental/krate-inlined.rs index 83b75116c60..e8096df1758 100644 --- a/src/test/incremental/krate-inlined.rs +++ b/src/test/incremental/krate-inlined.rs @@ -18,6 +18,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![rustc_partition_reused(module="krate_inlined-x", cfg="rpass2")] +#![no_trace] fn main() { x::method(); diff --git a/src/test/incremental/remapped_paths_cc/main.rs b/src/test/incremental/remapped_paths_cc/main.rs index cd66310dafe..c27bc9d0247 100644 --- a/src/test/incremental/remapped_paths_cc/main.rs +++ b/src/test/incremental/remapped_paths_cc/main.rs @@ -16,6 +16,7 @@ // are changed, even when the change happens in an external crate. #![feature(rustc_attrs)] +#![no_trace] #![rustc_partition_reused(module="main", cfg="rpass2")] #![rustc_partition_reused(module="main-some_mod", cfg="rpass2")] diff --git a/src/test/incremental/remove-private-item-cross-crate/main.rs b/src/test/incremental/remove-private-item-cross-crate/main.rs index 68806561547..7adefa8554d 100644 --- a/src/test/incremental/remove-private-item-cross-crate/main.rs +++ b/src/test/incremental/remove-private-item-cross-crate/main.rs @@ -17,6 +17,7 @@ #![feature(rustc_attrs)] #![crate_type = "bin"] +#![no_trace] #![rustc_partition_reused(module="main", cfg="rpass2")] diff --git a/src/test/incremental/spans_in_type_debuginfo.rs b/src/test/incremental/spans_in_type_debuginfo.rs index e1369d92c5c..8d8b5d93a26 100644 --- a/src/test/incremental/spans_in_type_debuginfo.rs +++ b/src/test/incremental/spans_in_type_debuginfo.rs @@ -18,6 +18,7 @@ #![rustc_partition_reused(module="spans_in_type_debuginfo-enums", cfg="rpass2")] #![feature(rustc_attrs)] +#![no_trace] mod structs { #[cfg(rpass1)] diff --git a/src/test/incremental/spike.rs b/src/test/incremental/spike.rs index 1756511dd37..77470467b49 100644 --- a/src/test/incremental/spike.rs +++ b/src/test/incremental/spike.rs @@ -20,6 +20,7 @@ #![rustc_partition_reused(module="spike", cfg="rpass2")] #![rustc_partition_codegened(module="spike-x", cfg="rpass2")] #![rustc_partition_reused(module="spike-y", cfg="rpass2")] +#![no_trace] mod x { pub struct X { diff --git a/src/test/incremental/string_constant.rs b/src/test/incremental/string_constant.rs index 35c906525cb..f492f61739e 100644 --- a/src/test/incremental/string_constant.rs +++ b/src/test/incremental/string_constant.rs @@ -15,6 +15,7 @@ #![allow(warnings)] #![feature(rustc_attrs)] #![crate_type = "rlib"] +#![no_trace] // Here the only thing which changes is the string constant in `x`. // Therefore, the compiler deduces (correctly) that typeck is not diff --git a/src/test/incremental/thinlto/cgu_invalidated_via_import.rs b/src/test/incremental/thinlto/cgu_invalidated_via_import.rs index c9e1ab89e50..d5c34c53f6f 100644 --- a/src/test/incremental/thinlto/cgu_invalidated_via_import.rs +++ b/src/test/incremental/thinlto/cgu_invalidated_via_import.rs @@ -19,6 +19,7 @@ #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] #![rustc_expected_cgu_reuse(module="cgu_invalidated_via_import-foo", cfg="cfail2", diff --git a/src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs b/src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs index d0d6d6fdc24..557b362bafd 100644 --- a/src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs +++ b/src/test/incremental/thinlto/independent_cgus_dont_affect_each_other.rs @@ -18,6 +18,7 @@ #![feature(rustc_attrs)] #![crate_type="rlib"] +#![no_trace] #![rustc_expected_cgu_reuse(module="independent_cgus_dont_affect_each_other-foo", cfg="cfail2", diff --git a/src/test/mir-opt/inline-any-operand.rs b/src/test/mir-opt/inline-any-operand.rs index da95842ea4d..f0c0c8dd382 100644 --- a/src/test/mir-opt/inline-any-operand.rs +++ b/src/test/mir-opt/inline-any-operand.rs @@ -12,6 +12,8 @@ // Tests that MIR inliner works for any operand +#![no_trace] + fn main() { println!("{}", bar()); } diff --git a/src/test/mir-opt/inline-closure-borrows-arg.rs b/src/test/mir-opt/inline-closure-borrows-arg.rs index ba1712f4ca3..a8e30669f6d 100644 --- a/src/test/mir-opt/inline-closure-borrows-arg.rs +++ b/src/test/mir-opt/inline-closure-borrows-arg.rs @@ -9,10 +9,13 @@ // except according to those terms. // compile-flags: -Z span_free_formats +// ignore-test FIXME swt_ignore // Tests that MIR inliner can handle closure arguments, // even when (#45894) +#![no_trace] + fn main() { println!("{}", foo(0, &14)); } diff --git a/src/test/mir-opt/inline-closure.rs b/src/test/mir-opt/inline-closure.rs index 9cb0a4dc2bf..127755981ee 100644 --- a/src/test/mir-opt/inline-closure.rs +++ b/src/test/mir-opt/inline-closure.rs @@ -9,9 +9,12 @@ // except according to those terms. // compile-flags: -Z span_free_formats +// ignore-test FIXME swt_ignore // Tests that MIR inliner can handle closure arguments. (#45894) +#![no_trace] + fn main() { println!("{}", foo(0, 14)); } diff --git a/src/test/mir-opt/inline-trait-method_2.rs b/src/test/mir-opt/inline-trait-method_2.rs index aa756f4a233..8af9903a12d 100644 --- a/src/test/mir-opt/inline-trait-method_2.rs +++ b/src/test/mir-opt/inline-trait-method_2.rs @@ -1,5 +1,7 @@ // compile-flags: -Z span_free_formats -Z mir-opt-level=3 +#![no_trace] + #[inline] fn test(x: &dyn X) -> bool { x.y() diff --git a/src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs b/src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs index 539dcdfa9b3..9d17473b2b6 100644 --- a/src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs +++ b/src/test/run-make-fulldeps/inline-always-many-cgu/foo.rs @@ -9,6 +9,7 @@ // except according to those terms. #![crate_type = "lib"] +#![no_trace] pub mod a { #[inline(always)] diff --git a/src/test/run-make-fulldeps/issue-51671/app.rs b/src/test/run-make-fulldeps/issue-51671/app.rs index 4066214f4b4..510e4836388 100644 --- a/src/test/run-make-fulldeps/issue-51671/app.rs +++ b/src/test/run-make-fulldeps/issue-51671/app.rs @@ -16,6 +16,9 @@ use core::alloc::Layout; use core::panic::PanicInfo; +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} + #[panic_handler] fn panic(_: &PanicInfo) -> ! { loop {} diff --git a/src/test/run-make-fulldeps/issue-53964/app.rs b/src/test/run-make-fulldeps/issue-53964/app.rs index 8127b9578bf..f5fa02d35f7 100644 --- a/src/test/run-make-fulldeps/issue-53964/app.rs +++ b/src/test/run-make-fulldeps/issue-53964/app.rs @@ -3,6 +3,10 @@ #![no_std] #![deny(unused_extern_crates)] +#![feature(lang_items)] + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} // `panic` provides a `panic_handler` so it shouldn't trip the `unused_extern_crates` lint extern crate panic; diff --git a/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs b/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs index 77aae7ee2c0..aa4dc8aeb88 100644 --- a/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs +++ b/src/test/run-make-fulldeps/panic-impl-transitive/panic-impl-provider.rs @@ -10,6 +10,10 @@ #![crate_type = "rlib"] #![no_std] +#![feature(lang_items)] + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} use core::panic::PanicInfo; diff --git a/src/test/run-pass/stack-probes-lto.rs b/src/test/run-pass/stack-probes-lto.rs index ff5413ce06c..9bf867140a9 100644 --- a/src/test/run-pass/stack-probes-lto.rs +++ b/src/test/run-pass/stack-probes-lto.rs @@ -24,4 +24,6 @@ // compile-flags: -C lto // no-prefer-dynamic +extern crate core; + include!("stack-probes.rs"); diff --git a/src/test/run-pass/thinlto/thin-lto-inlines.rs b/src/test/run-pass/thinlto/thin-lto-inlines.rs index 68b9ab76985..7ad3847df9b 100644 --- a/src/test/run-pass/thinlto/thin-lto-inlines.rs +++ b/src/test/run-pass/thinlto/thin-lto-inlines.rs @@ -18,6 +18,8 @@ // praying two functions go into separate codegen units and then assuming that // if inlining *doesn't* happen the first byte of the functions will differ. +#![no_trace] + pub fn foo() -> u32 { bar::bar() } diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs index 0a54ae8341b..4204fe2d6bc 100644 --- a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs +++ b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-1.rs @@ -10,7 +10,7 @@ // compile-flags:-C panic=abort -#![feature(alloc_error_handler, panic_handler)] +#![feature(alloc_error_handler, panic_handler, lang_items)] #![no_std] #![no_main] @@ -26,3 +26,6 @@ fn oom( #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs index b33d82cd550..4cadf03676d 100644 --- a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs +++ b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs @@ -10,7 +10,7 @@ // compile-flags:-C panic=abort -#![feature(alloc_error_handler, panic_handler)] +#![feature(alloc_error_handler, panic_handler, lang_items)] #![no_std] #![no_main] @@ -25,3 +25,6 @@ fn oom( #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs index 0e102dd08ea..2e465909723 100644 --- a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs +++ b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.rs @@ -10,7 +10,7 @@ // compile-flags:-C panic=abort -#![feature(alloc_error_handler, panic_handler)] +#![feature(alloc_error_handler, panic_handler, lang_items)] #![no_std] #![no_main] @@ -23,3 +23,6 @@ fn oom() -> ! { //~ ERROR function should have one argument #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/consts/const-eval/const_panic_libcore_main.rs b/src/test/ui/consts/const-eval/const_panic_libcore_main.rs index 03365ae46ab..d8301e11767 100644 --- a/src/test/ui/consts/const-eval/const_panic_libcore_main.rs +++ b/src/test/ui/consts/const-eval/const_panic_libcore_main.rs @@ -34,3 +34,6 @@ fn eh_unwind_resume() {} fn panic(_info: &PanicInfo) -> ! { loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/missing/missing-alloc_error_handler.rs b/src/test/ui/missing/missing-alloc_error_handler.rs index 1096027c8dc..d4a7feaddd4 100644 --- a/src/test/ui/missing/missing-alloc_error_handler.rs +++ b/src/test/ui/missing/missing-alloc_error_handler.rs @@ -13,7 +13,7 @@ #![no_std] #![crate_type = "staticlib"] -#![feature(panic_handler, alloc_error_handler, alloc)] +#![feature(panic_handler, alloc_error_handler, alloc, lang_items)] #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { @@ -31,3 +31,6 @@ unsafe impl core::alloc::GlobalAlloc for MyAlloc { unsafe fn alloc(&self, _: core::alloc::Layout) -> *mut u8 { 0 as _ } unsafe fn dealloc(&self, _: *mut u8, _: core::alloc::Layout) {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/missing/missing-allocator.rs b/src/test/ui/missing/missing-allocator.rs index f4331c4b994..5650ec5907b 100644 --- a/src/test/ui/missing/missing-allocator.rs +++ b/src/test/ui/missing/missing-allocator.rs @@ -13,7 +13,7 @@ #![no_std] #![crate_type = "staticlib"] -#![feature(panic_handler, alloc_error_handler, alloc)] +#![feature(panic_handler, alloc_error_handler, alloc, lang_items)] #[panic_handler] fn panic(_: &core::panic::PanicInfo) -> ! { @@ -26,3 +26,6 @@ fn oom(_: core::alloc::Layout) -> ! { } extern crate alloc; + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/no_owned_box_lang_item.rs b/src/test/ui/no_owned_box_lang_item.rs index 34d1075f9b7..49546e32bbb 100644 --- a/src/test/ui/no_owned_box_lang_item.rs +++ b/src/test/ui/no_owned_box_lang_item.rs @@ -24,3 +24,4 @@ fn main() { #[lang = "eh_personality"] extern fn eh_personality() {} #[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {} #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} } +#[lang = "yk_swt_rec_loc"] fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-1.rs b/src/test/ui/panic-handler/panic-handler-bad-signature-1.rs index 8d53c66adbd..ee2d554a646 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-1.rs +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-1.rs @@ -12,6 +12,7 @@ #![no_std] #![no_main] +#![feature(lang_items)] use core::panic::PanicInfo; @@ -21,3 +22,6 @@ fn panic( ) -> () //~ ERROR return type should be `!` { } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr b/src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr index 72b85da028f..5771f4277b4 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-1.stderr @@ -1,11 +1,11 @@ error: return type should be `!` - --> $DIR/panic-handler-bad-signature-1.rs:21:6 + --> $DIR/panic-handler-bad-signature-1.rs:22:6 | LL | ) -> () //~ ERROR return type should be `!` | ^^ error: argument should be `&PanicInfo` - --> $DIR/panic-handler-bad-signature-1.rs:20:11 + --> $DIR/panic-handler-bad-signature-1.rs:21:11 | LL | info: PanicInfo, //~ ERROR argument should be `&PanicInfo` | ^^^^^^^^^ diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-2.rs b/src/test/ui/panic-handler/panic-handler-bad-signature-2.rs index 0e8b3d5e855..ccb79410aa1 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-2.rs +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-2.rs @@ -12,6 +12,7 @@ #![no_std] #![no_main] +#![feature(lang_items)] use core::panic::PanicInfo; @@ -22,3 +23,6 @@ fn panic( { loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr b/src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr index f2bcb6b6809..4823f8a2781 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-2.stderr @@ -1,5 +1,5 @@ error: argument should be `&PanicInfo` - --> $DIR/panic-handler-bad-signature-2.rs:20:11 + --> $DIR/panic-handler-bad-signature-2.rs:21:11 | LL | info: &'static PanicInfo, //~ ERROR argument should be `&PanicInfo` | ^^^^^^^^^^^^^^^^^^ diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-3.rs b/src/test/ui/panic-handler/panic-handler-bad-signature-3.rs index ac1b19105b6..041303fca5f 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-3.rs +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-3.rs @@ -12,6 +12,7 @@ #![no_std] #![no_main] +#![feature(lang_items)] use core::panic::PanicInfo; @@ -19,3 +20,6 @@ use core::panic::PanicInfo; fn panic() -> ! { //~ ERROR function should have one argument loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr b/src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr index 77227e0d5a6..5d0395e17f5 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-3.stderr @@ -1,5 +1,5 @@ error: function should have one argument - --> $DIR/panic-handler-bad-signature-3.rs:19:1 + --> $DIR/panic-handler-bad-signature-3.rs:20:1 | LL | fn panic() -> ! { //~ ERROR function should have one argument | ^^^^^^^^^^^^^^^ diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-4.rs b/src/test/ui/panic-handler/panic-handler-bad-signature-4.rs index f4728408a1a..d21962085b8 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-4.rs +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-4.rs @@ -12,6 +12,7 @@ #![no_std] #![no_main] +#![feature(lang_items)] use core::panic::PanicInfo; @@ -20,3 +21,6 @@ fn panic(pi: &PanicInfo) -> ! { //~^ ERROR should have no type parameters loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr b/src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr index 0dd47cafd75..a61b9b3743c 100644 --- a/src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr +++ b/src/test/ui/panic-handler/panic-handler-bad-signature-4.stderr @@ -1,5 +1,5 @@ error: should have no type parameters - --> $DIR/panic-handler-bad-signature-4.rs:19:1 + --> $DIR/panic-handler-bad-signature-4.rs:20:1 | LL | / fn panic(pi: &PanicInfo) -> ! { LL | | //~^ ERROR should have no type parameters diff --git a/src/test/ui/panic-handler/panic-handler-duplicate.rs b/src/test/ui/panic-handler/panic-handler-duplicate.rs index c4fb4903e00..1e45727439c 100644 --- a/src/test/ui/panic-handler/panic-handler-duplicate.rs +++ b/src/test/ui/panic-handler/panic-handler-duplicate.rs @@ -25,3 +25,6 @@ fn panic(info: &PanicInfo) -> ! { fn panic2(info: &PanicInfo) -> ! { //~ ERROR duplicate lang item found: `panic_impl`. loop {} } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-wrong-location.rs b/src/test/ui/panic-handler/panic-handler-wrong-location.rs index 04e02682bc1..5434b28795c 100644 --- a/src/test/ui/panic-handler/panic-handler-wrong-location.rs +++ b/src/test/ui/panic-handler/panic-handler-wrong-location.rs @@ -12,7 +12,11 @@ #![no_std] #![no_main] +#![feature(lang_items)] #[panic_handler] #[no_mangle] static X: u32 = 42; + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-handler/panic-handler-wrong-location.stderr b/src/test/ui/panic-handler/panic-handler-wrong-location.stderr index f761e26b86e..a164b04a4f8 100644 --- a/src/test/ui/panic-handler/panic-handler-wrong-location.stderr +++ b/src/test/ui/panic-handler/panic-handler-wrong-location.stderr @@ -1,5 +1,5 @@ error[E0718]: `panic_impl` language item must be applied to a function - --> $DIR/panic-handler-wrong-location.rs:16:1 + --> $DIR/panic-handler-wrong-location.rs:17:1 | LL | #[panic_handler] | ^^^^^^^^^^^^^^^^ attribute should be applied to a function, not a static item diff --git a/src/test/ui/panic-runtime/transitive-link-a-bunch.rs b/src/test/ui/panic-runtime/transitive-link-a-bunch.rs index f886aac9a10..2f6af734d22 100644 --- a/src/test/ui/panic-runtime/transitive-link-a-bunch.rs +++ b/src/test/ui/panic-runtime/transitive-link-a-bunch.rs @@ -17,9 +17,13 @@ // ignore-wasm32-bare compiled with panic=abort by default #![no_std] +#![feature(lang_items)] extern crate wants_panic_runtime_unwind; extern crate wants_panic_runtime_abort; extern crate panic_runtime_lang_items; fn main() {} + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort.rs b/src/test/ui/panic-runtime/want-unwind-got-abort.rs index dda92d9a560..f04e302cbd5 100644 --- a/src/test/ui/panic-runtime/want-unwind-got-abort.rs +++ b/src/test/ui/panic-runtime/want-unwind-got-abort.rs @@ -14,8 +14,12 @@ // ignore-wasm32-bare compiled with panic=abort by default #![no_std] +#![feature(lang_items)] extern crate panic_runtime_abort; extern crate panic_runtime_lang_items; fn main() {} + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/panic-runtime/want-unwind-got-abort2.rs b/src/test/ui/panic-runtime/want-unwind-got-abort2.rs index 49f719057d2..3dd2501ad54 100644 --- a/src/test/ui/panic-runtime/want-unwind-got-abort2.rs +++ b/src/test/ui/panic-runtime/want-unwind-got-abort2.rs @@ -15,8 +15,12 @@ // ignore-wasm32-bare compiled with panic=abort by default #![no_std] +#![feature(lang_items)] extern crate wants_panic_runtime_abort; extern crate panic_runtime_lang_items; fn main() {} + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {} diff --git a/src/test/ui/range/issue-54505-no-std.rs b/src/test/ui/range/issue-54505-no-std.rs index 22cf15fb2e4..4032ebf144d 100644 --- a/src/test/ui/range/issue-54505-no-std.rs +++ b/src/test/ui/range/issue-54505-no-std.rs @@ -55,3 +55,6 @@ fn main() { //~| HELP consider borrowing here //~| SUGGESTION &(..=42) } + +#[lang = "yk_swt_rec_loc"] +fn yk_swt_rec_loc(_crate_hash: u64, _def_idx: u32, _bb: u32) {}