From 6fa0ff25bdc5aa5aae00dbe7c1cafc927b6806b6 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Sat, 19 Sep 2015 16:33:47 -0400 Subject: [PATCH] Feature-gate `#[no_debug]` and `#[omit_gdb_pretty_printer_section]` Closes #28091. --- src/libsyntax/feature_gate.rs | 15 +++++++++++++-- src/test/auxiliary/cross_crate_spans.rs | 1 + src/test/compile-fail/feature-gate-no-debug.rs | 12 ++++++++++++ ...eature-gate-omit-gdb-pretty-printer-section.rs | 12 ++++++++++++ src/test/debuginfo/associated-types.rs | 1 + .../debuginfo/basic-types-globals-metadata.rs | 1 + src/test/debuginfo/basic-types-globals.rs | 1 + src/test/debuginfo/basic-types-metadata.rs | 1 + src/test/debuginfo/basic-types-mut-globals.rs | 1 + src/test/debuginfo/basic-types.rs | 1 + src/test/debuginfo/borrowed-basic.rs | 1 + src/test/debuginfo/borrowed-c-style-enum.rs | 1 + src/test/debuginfo/borrowed-enum.rs | 1 + src/test/debuginfo/borrowed-struct.rs | 1 + src/test/debuginfo/borrowed-tuple.rs | 1 + src/test/debuginfo/borrowed-unique-basic.rs | 1 + src/test/debuginfo/box.rs | 1 + src/test/debuginfo/boxed-struct.rs | 1 + .../debuginfo/by-value-non-immediate-argument.rs | 1 + .../by-value-self-argument-in-trait-impl.rs | 1 + src/test/debuginfo/c-style-enum-in-composite.rs | 1 + src/test/debuginfo/c-style-enum.rs | 1 + src/test/debuginfo/closure-in-generic-function.rs | 1 + src/test/debuginfo/constant-debug-locs.rs | 1 + src/test/debuginfo/constant-in-match-pattern.rs | 1 + src/test/debuginfo/cross-crate-spans.rs | 5 +++-- src/test/debuginfo/destructured-fn-argument.rs | 1 + .../debuginfo/destructured-for-loop-variable.rs | 1 + src/test/debuginfo/destructured-local.rs | 1 + src/test/debuginfo/evec-in-struct.rs | 1 + src/test/debuginfo/extern-c-fn.rs | 1 + src/test/debuginfo/function-arg-initialization.rs | 1 + src/test/debuginfo/function-arguments.rs | 1 + .../function-prologue-stepping-no-stack-check.rs | 1 + .../function-prologue-stepping-regular.rs | 1 + .../generic-enum-with-different-disr-sizes.rs | 1 + src/test/debuginfo/generic-function.rs | 1 + src/test/debuginfo/generic-functions-nested.rs | 1 + .../debuginfo/generic-method-on-generic-struct.rs | 1 + .../generic-static-method-on-struct-and-enum.rs | 1 + src/test/debuginfo/generic-struct-style-enum.rs | 1 + src/test/debuginfo/generic-struct.rs | 1 + src/test/debuginfo/generic-tuple-style-enum.rs | 1 + src/test/debuginfo/include_string.rs | 1 + src/test/debuginfo/issue12886.rs | 3 ++- src/test/debuginfo/issue22656.rs | 1 + src/test/debuginfo/lexical-scope-in-for-loop.rs | 1 + src/test/debuginfo/lexical-scope-in-if.rs | 1 + src/test/debuginfo/lexical-scope-in-match.rs | 1 + .../debuginfo/lexical-scope-in-stack-closure.rs | 1 + .../lexical-scope-in-unconditional-loop.rs | 1 + .../debuginfo/lexical-scope-in-unique-closure.rs | 1 + src/test/debuginfo/lexical-scope-in-while.rs | 1 + src/test/debuginfo/lexical-scope-with-macro.rs | 1 + .../lexical-scopes-in-block-expression.rs | 1 + src/test/debuginfo/limited-debuginfo.rs | 1 + src/test/debuginfo/method-on-enum.rs | 1 + src/test/debuginfo/method-on-generic-struct.rs | 1 + src/test/debuginfo/method-on-struct.rs | 1 + src/test/debuginfo/method-on-trait.rs | 1 + src/test/debuginfo/method-on-tuple-struct.rs | 1 + .../multiple-functions-equal-var-names.rs | 1 + src/test/debuginfo/multiple-functions.rs | 1 + .../debuginfo/name-shadowing-and-scope-nesting.rs | 1 + src/test/debuginfo/nil-enum.rs | 1 + src/test/debuginfo/no-debug-attribute.rs | 2 ++ src/test/debuginfo/option-like-enum.rs | 1 + .../debuginfo/packed-struct-with-destructor.rs | 1 + src/test/debuginfo/packed-struct.rs | 1 + src/test/debuginfo/recursive-enum.rs | 1 + src/test/debuginfo/recursive-struct.rs | 1 + src/test/debuginfo/self-in-default-method.rs | 1 + .../debuginfo/self-in-generic-default-method.rs | 1 + src/test/debuginfo/shadowed-argument.rs | 1 + src/test/debuginfo/shadowed-variable.rs | 1 + src/test/debuginfo/simd.rs | 1 + src/test/debuginfo/simple-lexical-scope.rs | 1 + src/test/debuginfo/simple-struct.rs | 1 + src/test/debuginfo/simple-tuple.rs | 1 + .../debuginfo/static-method-on-struct-and-enum.rs | 1 + src/test/debuginfo/struct-in-enum.rs | 1 + src/test/debuginfo/struct-in-struct.rs | 1 + src/test/debuginfo/struct-style-enum.rs | 1 + src/test/debuginfo/struct-with-destructor.rs | 1 + src/test/debuginfo/trait-pointers.rs | 1 + src/test/debuginfo/tuple-in-struct.rs | 1 + src/test/debuginfo/tuple-in-tuple.rs | 1 + src/test/debuginfo/tuple-struct.rs | 1 + src/test/debuginfo/tuple-style-enum.rs | 1 + src/test/debuginfo/type-names.rs | 1 + src/test/debuginfo/unique-enum.rs | 1 + src/test/debuginfo/unreachable-locals.rs | 1 + .../debuginfo/var-captured-in-nested-closure.rs | 1 + .../debuginfo/var-captured-in-sendable-closure.rs | 1 + .../debuginfo/var-captured-in-stack-closure.rs | 1 + src/test/debuginfo/vec-slices.rs | 1 + src/test/debuginfo/vec.rs | 1 + 97 files changed, 135 insertions(+), 5 deletions(-) create mode 100644 src/test/compile-fail/feature-gate-no-debug.rs create mode 100644 src/test/compile-fail/feature-gate-omit-gdb-pretty-printer-section.rs diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 1e9b244c57cc6..16d44e5046ce5 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -197,6 +197,12 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Option, Status // allow overloading augmented assignment operations like `a += b` ("augmented_assignments", "1.5.0", None, Active), + + // allow `#[no_debug]` + ("no_debug", "1.5.0", None, Active), + + // allow `#[omit_gdb_pretty_printer_section]` + ("omit_gdb_pretty_printer_section", "1.5.0", None, Active), ]; // (changing above list without updating src/doc/reference.md makes @cmr sad) @@ -320,8 +326,13 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat ("link_section", Whitelisted, Ungated), ("no_builtins", Whitelisted, Ungated), ("no_mangle", Whitelisted, Ungated), - ("no_debug", Whitelisted, Ungated), - ("omit_gdb_pretty_printer_section", Whitelisted, Ungated), + ("no_debug", Whitelisted, Gated("no_debug", + "the `#[no_debug]` attribute \ + is an experimental feature")), + ("omit_gdb_pretty_printer_section", Whitelisted, Gated("omit_gdb_pretty_printer_section", + "the `#[omit_gdb_pretty_printer_section]` \ + attribute is just used for the Rust test \ + suite")), ("unsafe_no_drop_flag", Whitelisted, Gated("unsafe_no_drop_flag", "unsafe_no_drop_flag has unstable semantics \ and may be removed in the future")), diff --git a/src/test/auxiliary/cross_crate_spans.rs b/src/test/auxiliary/cross_crate_spans.rs index d9be03c094c49..9b6b6221bda38 100644 --- a/src/test/auxiliary/cross_crate_spans.rs +++ b/src/test/auxiliary/cross_crate_spans.rs @@ -11,6 +11,7 @@ #![crate_type = "rlib"] #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // no-prefer-dynamic diff --git a/src/test/compile-fail/feature-gate-no-debug.rs b/src/test/compile-fail/feature-gate-no-debug.rs new file mode 100644 index 0000000000000..e185056026c3c --- /dev/null +++ b/src/test/compile-fail/feature-gate-no-debug.rs @@ -0,0 +1,12 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[no_debug] //~ ERROR the `#[no_debug]` attribute is +fn main() {} diff --git a/src/test/compile-fail/feature-gate-omit-gdb-pretty-printer-section.rs b/src/test/compile-fail/feature-gate-omit-gdb-pretty-printer-section.rs new file mode 100644 index 0000000000000..a837a7f213e88 --- /dev/null +++ b/src/test/compile-fail/feature-gate-omit-gdb-pretty-printer-section.rs @@ -0,0 +1,12 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[omit_gdb_pretty_printer_section] //~ ERROR the `#[omit_gdb_pretty_printer_section]` attribute is +fn main() {} diff --git a/src/test/debuginfo/associated-types.rs b/src/test/debuginfo/associated-types.rs index d203806c08dca..ebaad663bb4e7 100644 --- a/src/test/debuginfo/associated-types.rs +++ b/src/test/debuginfo/associated-types.rs @@ -80,6 +80,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] trait TraitWithAssocType { diff --git a/src/test/debuginfo/basic-types-globals-metadata.rs b/src/test/debuginfo/basic-types-globals-metadata.rs index 1aabd549ca595..8818063ddf4ba 100644 --- a/src/test/debuginfo/basic-types-globals-metadata.rs +++ b/src/test/debuginfo/basic-types-globals-metadata.rs @@ -44,6 +44,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // N.B. These are `mut` only so they don't constant fold away. diff --git a/src/test/debuginfo/basic-types-globals.rs b/src/test/debuginfo/basic-types-globals.rs index f0c187fd22378..ccf9508a3856c 100644 --- a/src/test/debuginfo/basic-types-globals.rs +++ b/src/test/debuginfo/basic-types-globals.rs @@ -49,6 +49,7 @@ // gdb-command:continue #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // N.B. These are `mut` only so they don't constant fold away. diff --git a/src/test/debuginfo/basic-types-metadata.rs b/src/test/debuginfo/basic-types-metadata.rs index 3b662ae0264fb..1a6b605d9d06a 100644 --- a/src/test/debuginfo/basic-types-metadata.rs +++ b/src/test/debuginfo/basic-types-metadata.rs @@ -64,6 +64,7 @@ // gdb-command:continue #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/basic-types-mut-globals.rs b/src/test/debuginfo/basic-types-mut-globals.rs index 4094c2e9b1339..4ebd0c9577029 100644 --- a/src/test/debuginfo/basic-types-mut-globals.rs +++ b/src/test/debuginfo/basic-types-mut-globals.rs @@ -82,6 +82,7 @@ // gdb-check:$28 = 9.25 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] static mut B: bool = false; diff --git a/src/test/debuginfo/basic-types.rs b/src/test/debuginfo/basic-types.rs index c9144b18b2fe8..998010832881b 100644 --- a/src/test/debuginfo/basic-types.rs +++ b/src/test/debuginfo/basic-types.rs @@ -87,6 +87,7 @@ // lldb-check:[...]$12 = 3.5 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/borrowed-basic.rs b/src/test/debuginfo/borrowed-basic.rs index b0f06bb8a758c..bada77b66293c 100644 --- a/src/test/debuginfo/borrowed-basic.rs +++ b/src/test/debuginfo/borrowed-basic.rs @@ -108,6 +108,7 @@ // lldb-check:[...]$12 = 3.5 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/borrowed-c-style-enum.rs b/src/test/debuginfo/borrowed-c-style-enum.rs index ecc70f4d77e2f..c80783ef31068 100644 --- a/src/test/debuginfo/borrowed-c-style-enum.rs +++ b/src/test/debuginfo/borrowed-c-style-enum.rs @@ -40,6 +40,7 @@ // lldb-check:[...]$2 = TheC #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] enum ABC { TheA, TheB, TheC } diff --git a/src/test/debuginfo/borrowed-enum.rs b/src/test/debuginfo/borrowed-enum.rs index 732383b5e4008..b21574e32866b 100644 --- a/src/test/debuginfo/borrowed-enum.rs +++ b/src/test/debuginfo/borrowed-enum.rs @@ -39,6 +39,7 @@ // lldb-check:[...]$2 = TheOnlyCase(4820353753753434) #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // The first element is to ensure proper alignment, irrespective of the machines word size. Since diff --git a/src/test/debuginfo/borrowed-struct.rs b/src/test/debuginfo/borrowed-struct.rs index 70c24fc2ab07b..ab41185cb7391 100644 --- a/src/test/debuginfo/borrowed-struct.rs +++ b/src/test/debuginfo/borrowed-struct.rs @@ -64,6 +64,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct SomeStruct { diff --git a/src/test/debuginfo/borrowed-tuple.rs b/src/test/debuginfo/borrowed-tuple.rs index add9bdceadab0..2438879dfb670 100644 --- a/src/test/debuginfo/borrowed-tuple.rs +++ b/src/test/debuginfo/borrowed-tuple.rs @@ -42,6 +42,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/borrowed-unique-basic.rs b/src/test/debuginfo/borrowed-unique-basic.rs index d8ce3af478911..88af94c53628c 100644 --- a/src/test/debuginfo/borrowed-unique-basic.rs +++ b/src/test/debuginfo/borrowed-unique-basic.rs @@ -112,6 +112,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/box.rs b/src/test/debuginfo/box.rs index e5f4306b24b04..a731e041d79da 100644 --- a/src/test/debuginfo/box.rs +++ b/src/test/debuginfo/box.rs @@ -32,6 +32,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/boxed-struct.rs b/src/test/debuginfo/boxed-struct.rs index 9c6e197e65e23..dd543405e4c27 100644 --- a/src/test/debuginfo/boxed-struct.rs +++ b/src/test/debuginfo/boxed-struct.rs @@ -35,6 +35,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct StructWithSomePadding { diff --git a/src/test/debuginfo/by-value-non-immediate-argument.rs b/src/test/debuginfo/by-value-non-immediate-argument.rs index 1e89d0e31b86a..a329ef6d0e090 100644 --- a/src/test/debuginfo/by-value-non-immediate-argument.rs +++ b/src/test/debuginfo/by-value-non-immediate-argument.rs @@ -70,6 +70,7 @@ // lldb-check:[...]$6 = Case1 { x: 0, y: 8970181431921507452 } // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Clone)] diff --git a/src/test/debuginfo/by-value-self-argument-in-trait-impl.rs b/src/test/debuginfo/by-value-self-argument-in-trait-impl.rs index 39da48f9e7a76..a768bfdd16764 100644 --- a/src/test/debuginfo/by-value-self-argument-in-trait-impl.rs +++ b/src/test/debuginfo/by-value-self-argument-in-trait-impl.rs @@ -45,6 +45,7 @@ // lldb-check:[...]$2 = (4444.5, 5555, 6666, 7777.5) // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] trait Trait { diff --git a/src/test/debuginfo/c-style-enum-in-composite.rs b/src/test/debuginfo/c-style-enum-in-composite.rs index 562b0d588f5ca..83a22edc96fe1 100644 --- a/src/test/debuginfo/c-style-enum-in-composite.rs +++ b/src/test/debuginfo/c-style-enum-in-composite.rs @@ -64,6 +64,7 @@ // lldb-check:[...]$6 = (StructWithDrop { a: OneHundred, b: Vienna }, 9) #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::AnEnum::{OneHundred, OneThousand, OneMillion}; diff --git a/src/test/debuginfo/c-style-enum.rs b/src/test/debuginfo/c-style-enum.rs index 3024ca0fe6983..4eec26d335c44 100644 --- a/src/test/debuginfo/c-style-enum.rs +++ b/src/test/debuginfo/c-style-enum.rs @@ -99,6 +99,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::AutoDiscriminant::{One, Two, Three}; diff --git a/src/test/debuginfo/closure-in-generic-function.rs b/src/test/debuginfo/closure-in-generic-function.rs index 448e157a251b2..5335e0bfa4a69 100644 --- a/src/test/debuginfo/closure-in-generic-function.rs +++ b/src/test/debuginfo/closure-in-generic-function.rs @@ -46,6 +46,7 @@ // lldb-command:continue #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn some_generic_fun(a: T1, b: T2) -> (T2, T1) { diff --git a/src/test/debuginfo/constant-debug-locs.rs b/src/test/debuginfo/constant-debug-locs.rs index ec5a6fa3d3f16..04e19b30fd414 100644 --- a/src/test/debuginfo/constant-debug-locs.rs +++ b/src/test/debuginfo/constant-debug-locs.rs @@ -13,6 +13,7 @@ // compile-flags:-g #![allow(dead_code, unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #![feature(const_fn)] #![feature(static_mutex)] diff --git a/src/test/debuginfo/constant-in-match-pattern.rs b/src/test/debuginfo/constant-in-match-pattern.rs index 785778e62f6ea..fb40400a4429c 100644 --- a/src/test/debuginfo/constant-in-match-pattern.rs +++ b/src/test/debuginfo/constant-in-match-pattern.rs @@ -13,6 +13,7 @@ // compile-flags:-g #![allow(dead_code, unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // This test makes sure that the compiler doesn't crash when trying to assign diff --git a/src/test/debuginfo/cross-crate-spans.rs b/src/test/debuginfo/cross-crate-spans.rs index ce6ef080c1f11..544fe2c66d5e8 100644 --- a/src/test/debuginfo/cross-crate-spans.rs +++ b/src/test/debuginfo/cross-crate-spans.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // min-lldb-version: 310 @@ -20,7 +21,7 @@ extern crate cross_crate_spans; // === GDB TESTS =================================================================================== -// gdb-command:break cross_crate_spans.rs:23 +// gdb-command:break cross_crate_spans.rs:24 // gdb-command:run // gdb-command:print result @@ -43,7 +44,7 @@ extern crate cross_crate_spans; // === LLDB TESTS ================================================================================== -// lldb-command:b cross_crate_spans.rs:23 +// lldb-command:b cross_crate_spans.rs:24 // lldb-command:run // lldb-command:print result diff --git a/src/test/debuginfo/destructured-fn-argument.rs b/src/test/debuginfo/destructured-fn-argument.rs index 5d330e16a13e4..a3a48b786163b 100644 --- a/src/test/debuginfo/destructured-fn-argument.rs +++ b/src/test/debuginfo/destructured-fn-argument.rs @@ -312,6 +312,7 @@ #![allow(unused_variables)] #![feature(box_patterns)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Univariant::Unit; diff --git a/src/test/debuginfo/destructured-for-loop-variable.rs b/src/test/debuginfo/destructured-for-loop-variable.rs index ad04f97fb08a2..a34d5d6adbfcb 100644 --- a/src/test/debuginfo/destructured-for-loop-variable.rs +++ b/src/test/debuginfo/destructured-for-loop-variable.rs @@ -154,6 +154,7 @@ #![allow(unused_variables)] #![feature(box_patterns)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/destructured-local.rs b/src/test/debuginfo/destructured-local.rs index 632f17bd2007b..a73b5c8de11a1 100644 --- a/src/test/debuginfo/destructured-local.rs +++ b/src/test/debuginfo/destructured-local.rs @@ -245,6 +245,7 @@ #![allow(unused_variables)] #![feature(box_patterns)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Univariant::Unit; diff --git a/src/test/debuginfo/evec-in-struct.rs b/src/test/debuginfo/evec-in-struct.rs index 1a9b9f73cba99..8624a0cba0256 100644 --- a/src/test/debuginfo/evec-in-struct.rs +++ b/src/test/debuginfo/evec-in-struct.rs @@ -50,6 +50,7 @@ // lldb-check:[...]$4 = StructPaddedAtEnd { x: [22, 23], y: [24, 25] } #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct NoPadding1 { diff --git a/src/test/debuginfo/extern-c-fn.rs b/src/test/debuginfo/extern-c-fn.rs index 9e73417e7de74..c93db41dc55bf 100644 --- a/src/test/debuginfo/extern-c-fn.rs +++ b/src/test/debuginfo/extern-c-fn.rs @@ -44,6 +44,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] diff --git a/src/test/debuginfo/function-arg-initialization.rs b/src/test/debuginfo/function-arg-initialization.rs index a1ca59caa3304..d007b50755618 100644 --- a/src/test/debuginfo/function-arg-initialization.rs +++ b/src/test/debuginfo/function-arg-initialization.rs @@ -224,6 +224,7 @@ #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn immediate_args(a: isize, b: bool, c: f64) { diff --git a/src/test/debuginfo/function-arguments.rs b/src/test/debuginfo/function-arguments.rs index 21c2cc09a9fd4..c8f2e385a6e74 100644 --- a/src/test/debuginfo/function-arguments.rs +++ b/src/test/debuginfo/function-arguments.rs @@ -45,6 +45,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs b/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs index d9cca5eb31517..b5b6ca7572703 100644 --- a/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs +++ b/src/test/debuginfo/function-prologue-stepping-no-stack-check.rs @@ -247,6 +247,7 @@ // lldb-command:continue #![allow(dead_code, unused_assignments, unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[no_stack_check] diff --git a/src/test/debuginfo/function-prologue-stepping-regular.rs b/src/test/debuginfo/function-prologue-stepping-regular.rs index b34f1af01f5fd..529a8cd635a92 100644 --- a/src/test/debuginfo/function-prologue-stepping-regular.rs +++ b/src/test/debuginfo/function-prologue-stepping-regular.rs @@ -126,6 +126,7 @@ // lldb-command:continue #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn immediate_args(a: isize, b: bool, c: f64) { 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 ae290e228cc4a..3115b3f7e761c 100644 --- a/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs +++ b/src/test/debuginfo/generic-enum-with-different-disr-sizes.rs @@ -62,6 +62,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // This test case makes sure that we get correct type descriptions for the enum diff --git a/src/test/debuginfo/generic-function.rs b/src/test/debuginfo/generic-function.rs index 890133c58c893..415dd36212a44 100644 --- a/src/test/debuginfo/generic-function.rs +++ b/src/test/debuginfo/generic-function.rs @@ -69,6 +69,7 @@ // lldb-check:[...]$8 = ((5, Struct { a: 6, b: 7.5 }), (Struct { a: 6, b: 7.5 }, 5)) // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Clone)] diff --git a/src/test/debuginfo/generic-functions-nested.rs b/src/test/debuginfo/generic-functions-nested.rs index 5f9236038b22e..79ae007a50062 100644 --- a/src/test/debuginfo/generic-functions-nested.rs +++ b/src/test/debuginfo/generic-functions-nested.rs @@ -70,6 +70,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn outer(a: TA) { diff --git a/src/test/debuginfo/generic-method-on-generic-struct.rs b/src/test/debuginfo/generic-method-on-generic-struct.rs index 14df15242dfde..968cb2e159716 100644 --- a/src/test/debuginfo/generic-method-on-generic-struct.rs +++ b/src/test/debuginfo/generic-method-on-generic-struct.rs @@ -112,6 +112,7 @@ // lldb-command:continue #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/generic-static-method-on-struct-and-enum.rs b/src/test/debuginfo/generic-static-method-on-struct-and-enum.rs index f24b221ccec2c..603365089ecef 100644 --- a/src/test/debuginfo/generic-static-method-on-struct-and-enum.rs +++ b/src/test/debuginfo/generic-static-method-on-struct-and-enum.rs @@ -31,6 +31,7 @@ // gdb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/generic-struct-style-enum.rs b/src/test/debuginfo/generic-struct-style-enum.rs index caed4bd181d64..991404f56eff9 100644 --- a/src/test/debuginfo/generic-struct-style-enum.rs +++ b/src/test/debuginfo/generic-struct-style-enum.rs @@ -29,6 +29,7 @@ // gdb-check:$4 = {{a = -1}} +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Regular::{Case1, Case2, Case3}; diff --git a/src/test/debuginfo/generic-struct.rs b/src/test/debuginfo/generic-struct.rs index a459badfa8a3c..92a67a2344d1c 100644 --- a/src/test/debuginfo/generic-struct.rs +++ b/src/test/debuginfo/generic-struct.rs @@ -41,6 +41,7 @@ // lldb-check:[...]$3 = AGenericStruct> { key: 6.5, value: AGenericStruct { key: 7, value: 8.5 } } +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct AGenericStruct { diff --git a/src/test/debuginfo/generic-tuple-style-enum.rs b/src/test/debuginfo/generic-tuple-style-enum.rs index 83340c83dc01c..e2727fbe7df4a 100644 --- a/src/test/debuginfo/generic-tuple-style-enum.rs +++ b/src/test/debuginfo/generic-tuple-style-enum.rs @@ -47,6 +47,7 @@ // lldb-command:print univariant // lldb-check:[...]$3 = TheOnlyCase(-1) +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Regular::{Case1, Case2, Case3}; diff --git a/src/test/debuginfo/include_string.rs b/src/test/debuginfo/include_string.rs index 1dead6c2734f8..2c75349e5c8c7 100644 --- a/src/test/debuginfo/include_string.rs +++ b/src/test/debuginfo/include_string.rs @@ -35,6 +35,7 @@ // lldb-command:continue #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // This test case makes sure that debug info does not ICE when include_str is diff --git a/src/test/debuginfo/issue12886.rs b/src/test/debuginfo/issue12886.rs index b259efc9caf80..c30ee92dc532d 100644 --- a/src/test/debuginfo/issue12886.rs +++ b/src/test/debuginfo/issue12886.rs @@ -16,9 +16,10 @@ // gdb-command:run // gdb-command:next -// gdb-check:[...]34[...]s +// gdb-check:[...]35[...]s // gdb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS diff --git a/src/test/debuginfo/issue22656.rs b/src/test/debuginfo/issue22656.rs index af518797d19df..a971e06ed5ec2 100644 --- a/src/test/debuginfo/issue22656.rs +++ b/src/test/debuginfo/issue22656.rs @@ -30,6 +30,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct ZeroSizedStruct; diff --git a/src/test/debuginfo/lexical-scope-in-for-loop.rs b/src/test/debuginfo/lexical-scope-in-for-loop.rs index dceb436310fa3..e99e241411bfd 100644 --- a/src/test/debuginfo/lexical-scope-in-for-loop.rs +++ b/src/test/debuginfo/lexical-scope-in-for-loop.rs @@ -85,6 +85,7 @@ // lldb-check:[...]$6 = 1000000 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-if.rs b/src/test/debuginfo/lexical-scope-in-if.rs index 08a762fc4e5d8..42e288321e197 100644 --- a/src/test/debuginfo/lexical-scope-in-if.rs +++ b/src/test/debuginfo/lexical-scope-in-if.rs @@ -133,6 +133,7 @@ // lldb-check:[...]$15 = -1 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-match.rs b/src/test/debuginfo/lexical-scope-in-match.rs index 228799848c646..597d9837aadcf 100644 --- a/src/test/debuginfo/lexical-scope-in-match.rs +++ b/src/test/debuginfo/lexical-scope-in-match.rs @@ -125,6 +125,7 @@ // lldb-check:[...]$17 = 232 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/lexical-scope-in-stack-closure.rs b/src/test/debuginfo/lexical-scope-in-stack-closure.rs index c0b65fbb22b53..0a8d3b61a8d8d 100644 --- a/src/test/debuginfo/lexical-scope-in-stack-closure.rs +++ b/src/test/debuginfo/lexical-scope-in-stack-closure.rs @@ -69,6 +69,7 @@ // lldb-check:[...]$5 = false // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] 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 868cea29a7bc3..e55088afd7d9f 100644 --- a/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs +++ b/src/test/debuginfo/lexical-scope-in-unconditional-loop.rs @@ -131,6 +131,7 @@ // lldb-check:[...]$12 = 2 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] 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 5bae2aa7ae2cc..70dece865ece0 100644 --- a/src/test/debuginfo/lexical-scope-in-unique-closure.rs +++ b/src/test/debuginfo/lexical-scope-in-unique-closure.rs @@ -70,6 +70,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/lexical-scope-in-while.rs b/src/test/debuginfo/lexical-scope-in-while.rs index b5f43e7d21f1a..38d8b75a644fd 100644 --- a/src/test/debuginfo/lexical-scope-in-while.rs +++ b/src/test/debuginfo/lexical-scope-in-while.rs @@ -131,6 +131,7 @@ // lldb-check:[...]$12 = 2 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/lexical-scope-with-macro.rs b/src/test/debuginfo/lexical-scope-with-macro.rs index 1dd738c6d512e..a00d0f74f1e4e 100644 --- a/src/test/debuginfo/lexical-scope-with-macro.rs +++ b/src/test/debuginfo/lexical-scope-with-macro.rs @@ -110,6 +110,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] macro_rules! trivial { diff --git a/src/test/debuginfo/lexical-scopes-in-block-expression.rs b/src/test/debuginfo/lexical-scopes-in-block-expression.rs index 1d406af10a215..841786f930daf 100644 --- a/src/test/debuginfo/lexical-scopes-in-block-expression.rs +++ b/src/test/debuginfo/lexical-scopes-in-block-expression.rs @@ -348,6 +348,7 @@ #![allow(unused_variables)] #![allow(unused_assignments)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] static mut MUT_INT: isize = 0; diff --git a/src/test/debuginfo/limited-debuginfo.rs b/src/test/debuginfo/limited-debuginfo.rs index ea7d150164dfb..3d21def3953b8 100644 --- a/src/test/debuginfo/limited-debuginfo.rs +++ b/src/test/debuginfo/limited-debuginfo.rs @@ -29,6 +29,7 @@ #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/method-on-enum.rs b/src/test/debuginfo/method-on-enum.rs index 77a11db8ba4db..6437b3bb900f8 100644 --- a/src/test/debuginfo/method-on-enum.rs +++ b/src/test/debuginfo/method-on-enum.rs @@ -113,6 +113,7 @@ // lldb-command:continue #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/method-on-generic-struct.rs b/src/test/debuginfo/method-on-generic-struct.rs index f76f8c8cad2d3..5b697f859d4ed 100644 --- a/src/test/debuginfo/method-on-generic-struct.rs +++ b/src/test/debuginfo/method-on-generic-struct.rs @@ -113,6 +113,7 @@ #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/method-on-struct.rs b/src/test/debuginfo/method-on-struct.rs index 28885d0ad9b79..3bf2e775e7791 100644 --- a/src/test/debuginfo/method-on-struct.rs +++ b/src/test/debuginfo/method-on-struct.rs @@ -113,6 +113,7 @@ #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/method-on-trait.rs b/src/test/debuginfo/method-on-trait.rs index b69a3856736c4..5ce4a7905a1d0 100644 --- a/src/test/debuginfo/method-on-trait.rs +++ b/src/test/debuginfo/method-on-trait.rs @@ -113,6 +113,7 @@ #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/method-on-tuple-struct.rs b/src/test/debuginfo/method-on-tuple-struct.rs index 4ea0fd44475c2..d8644a3934f10 100644 --- a/src/test/debuginfo/method-on-tuple-struct.rs +++ b/src/test/debuginfo/method-on-tuple-struct.rs @@ -113,6 +113,7 @@ #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/multiple-functions-equal-var-names.rs b/src/test/debuginfo/multiple-functions-equal-var-names.rs index 5fe0c13e5e4a5..71ba1bcea306a 100644 --- a/src/test/debuginfo/multiple-functions-equal-var-names.rs +++ b/src/test/debuginfo/multiple-functions-equal-var-names.rs @@ -44,6 +44,7 @@ // lldb-check:[...]$2 = 30303 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn function_one() { diff --git a/src/test/debuginfo/multiple-functions.rs b/src/test/debuginfo/multiple-functions.rs index 3179a8050d35d..7a1b7b19d9f5d 100644 --- a/src/test/debuginfo/multiple-functions.rs +++ b/src/test/debuginfo/multiple-functions.rs @@ -44,6 +44,7 @@ // lldb-check:[...]$2 = 30303 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn function_one() { diff --git a/src/test/debuginfo/name-shadowing-and-scope-nesting.rs b/src/test/debuginfo/name-shadowing-and-scope-nesting.rs index 5553d7e496b57..462e1c59aea22 100644 --- a/src/test/debuginfo/name-shadowing-and-scope-nesting.rs +++ b/src/test/debuginfo/name-shadowing-and-scope-nesting.rs @@ -93,6 +93,7 @@ // lldb-check:[...]$11 = 20 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/nil-enum.rs b/src/test/debuginfo/nil-enum.rs index 44d7c2b1ad23e..81399ec590b14 100644 --- a/src/test/debuginfo/nil-enum.rs +++ b/src/test/debuginfo/nil-enum.rs @@ -22,6 +22,7 @@ // gdb-check:$2 = {} #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] enum ANilEnum {} diff --git a/src/test/debuginfo/no-debug-attribute.rs b/src/test/debuginfo/no-debug-attribute.rs index f39e8ee222932..6bdd68d5e26e5 100644 --- a/src/test/debuginfo/no-debug-attribute.rs +++ b/src/test/debuginfo/no-debug-attribute.rs @@ -23,6 +23,8 @@ // gdb-command:continue #![allow(unused_variables)] +#![feature(no_debug)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn function_with_debuginfo() { diff --git a/src/test/debuginfo/option-like-enum.rs b/src/test/debuginfo/option-like-enum.rs index fba21d9a553ba..f103294a94a07 100644 --- a/src/test/debuginfo/option-like-enum.rs +++ b/src/test/debuginfo/option-like-enum.rs @@ -79,6 +79,7 @@ // lldb-check:[...]$9 = Nope +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // If a struct has exactly two variants, one of them is empty, and the other one diff --git a/src/test/debuginfo/packed-struct-with-destructor.rs b/src/test/debuginfo/packed-struct-with-destructor.rs index 8b2f34a99099c..9d37cb3012b7d 100644 --- a/src/test/debuginfo/packed-struct-with-destructor.rs +++ b/src/test/debuginfo/packed-struct-with-destructor.rs @@ -73,6 +73,7 @@ #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[repr(packed)] diff --git a/src/test/debuginfo/packed-struct.rs b/src/test/debuginfo/packed-struct.rs index 9f3b7baf83db2..e86e963f38cdd 100644 --- a/src/test/debuginfo/packed-struct.rs +++ b/src/test/debuginfo/packed-struct.rs @@ -59,6 +59,7 @@ // lldb-check:[...]$5 = 40 #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[repr(packed)] diff --git a/src/test/debuginfo/recursive-enum.rs b/src/test/debuginfo/recursive-enum.rs index ef1092efa1145..3094bdeac8b66 100644 --- a/src/test/debuginfo/recursive-enum.rs +++ b/src/test/debuginfo/recursive-enum.rs @@ -17,6 +17,7 @@ // is taken from issue #11083. #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] pub struct Window<'a> { diff --git a/src/test/debuginfo/recursive-struct.rs b/src/test/debuginfo/recursive-struct.rs index 4772ee10ff724..ea067d5bffbec 100644 --- a/src/test/debuginfo/recursive-struct.rs +++ b/src/test/debuginfo/recursive-struct.rs @@ -69,6 +69,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Opt::{Empty, Val}; diff --git a/src/test/debuginfo/self-in-default-method.rs b/src/test/debuginfo/self-in-default-method.rs index f16f236a0cb06..6d3f93c5d5014 100644 --- a/src/test/debuginfo/self-in-default-method.rs +++ b/src/test/debuginfo/self-in-default-method.rs @@ -112,6 +112,7 @@ // lldb-command:continue #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/self-in-generic-default-method.rs b/src/test/debuginfo/self-in-generic-default-method.rs index 56de877016dee..aea3bae4bfc1b 100644 --- a/src/test/debuginfo/self-in-generic-default-method.rs +++ b/src/test/debuginfo/self-in-generic-default-method.rs @@ -112,6 +112,7 @@ // lldb-command:continue #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #[derive(Copy, Clone)] diff --git a/src/test/debuginfo/shadowed-argument.rs b/src/test/debuginfo/shadowed-argument.rs index 4d74e6f1084e5..baf782b7e678a 100644 --- a/src/test/debuginfo/shadowed-argument.rs +++ b/src/test/debuginfo/shadowed-argument.rs @@ -58,6 +58,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn a_function(x: bool, y: bool) { diff --git a/src/test/debuginfo/shadowed-variable.rs b/src/test/debuginfo/shadowed-variable.rs index 630999677ab1b..4883853f72fce 100644 --- a/src/test/debuginfo/shadowed-variable.rs +++ b/src/test/debuginfo/shadowed-variable.rs @@ -57,6 +57,7 @@ // lldb-check:[...]$5 = 20 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/simd.rs b/src/test/debuginfo/simd.rs index 6bc8892a83a69..24eb407612c3e 100644 --- a/src/test/debuginfo/simd.rs +++ b/src/test/debuginfo/simd.rs @@ -41,6 +41,7 @@ // gdb-command:continue #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] #![feature(core_simd)] diff --git a/src/test/debuginfo/simple-lexical-scope.rs b/src/test/debuginfo/simple-lexical-scope.rs index c1dae7a6d677c..5f9a4fd080534 100644 --- a/src/test/debuginfo/simple-lexical-scope.rs +++ b/src/test/debuginfo/simple-lexical-scope.rs @@ -78,6 +78,7 @@ // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/simple-struct.rs b/src/test/debuginfo/simple-struct.rs index 36007c1093297..d25cd4d7c047f 100644 --- a/src/test/debuginfo/simple-struct.rs +++ b/src/test/debuginfo/simple-struct.rs @@ -96,6 +96,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct NoPadding16 { diff --git a/src/test/debuginfo/simple-tuple.rs b/src/test/debuginfo/simple-tuple.rs index 29bf9c5e419fd..1b85ecc537a34 100644 --- a/src/test/debuginfo/simple-tuple.rs +++ b/src/test/debuginfo/simple-tuple.rs @@ -91,6 +91,7 @@ #![allow(unused_variables)] #![allow(dead_code)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] static mut NO_PADDING_8: (i8, u8) = (-50, 50); diff --git a/src/test/debuginfo/static-method-on-struct-and-enum.rs b/src/test/debuginfo/static-method-on-struct-and-enum.rs index 59fe96f99580e..dab4ab515d995 100644 --- a/src/test/debuginfo/static-method-on-struct-and-enum.rs +++ b/src/test/debuginfo/static-method-on-struct-and-enum.rs @@ -53,6 +53,7 @@ // lldb-check:[...]$4 = 5 // lldb-command:continue +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/struct-in-enum.rs b/src/test/debuginfo/struct-in-enum.rs index e200a497f51c2..98b90de600516 100644 --- a/src/test/debuginfo/struct-in-enum.rs +++ b/src/test/debuginfo/struct-in-enum.rs @@ -41,6 +41,7 @@ // lldb-check:[...]$2 = TheOnlyCase(Struct { x: 123, y: 456, z: 789 }) #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Regular::{Case1, Case2}; diff --git a/src/test/debuginfo/struct-in-struct.rs b/src/test/debuginfo/struct-in-struct.rs index 8bccb041c9a90..76a1613c23146 100644 --- a/src/test/debuginfo/struct-in-struct.rs +++ b/src/test/debuginfo/struct-in-struct.rs @@ -56,6 +56,7 @@ // lldb-check:[...]$7 = Tree { x: Simple { x: 25 }, y: InternalPaddingParent { x: InternalPadding { x: 26, y: 27 }, y: InternalPadding { x: 28, y: 29 }, z: InternalPadding { x: 30, y: 31 } }, z: BagInBag { x: Bag { x: Simple { x: 32 } } } } #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Simple { diff --git a/src/test/debuginfo/struct-style-enum.rs b/src/test/debuginfo/struct-style-enum.rs index 43cb48d16bf4b..3376fc9bbd450 100644 --- a/src/test/debuginfo/struct-style-enum.rs +++ b/src/test/debuginfo/struct-style-enum.rs @@ -48,6 +48,7 @@ // lldb-check:[...]$3 = TheOnlyCase { a: -1 } #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Regular::{Case1, Case2, Case3}; diff --git a/src/test/debuginfo/struct-with-destructor.rs b/src/test/debuginfo/struct-with-destructor.rs index 4c2c9d06ae91c..ad8731997abd7 100644 --- a/src/test/debuginfo/struct-with-destructor.rs +++ b/src/test/debuginfo/struct-with-destructor.rs @@ -44,6 +44,7 @@ // lldb-check:[...]$3 = NestedOuter { a: NestedInner { a: WithDestructor { x: 7890, y: 9870 } } } #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct NoDestructor { diff --git a/src/test/debuginfo/trait-pointers.rs b/src/test/debuginfo/trait-pointers.rs index 3054f646b9100..193cd419bab88 100644 --- a/src/test/debuginfo/trait-pointers.rs +++ b/src/test/debuginfo/trait-pointers.rs @@ -16,6 +16,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] trait Trait { diff --git a/src/test/debuginfo/tuple-in-struct.rs b/src/test/debuginfo/tuple-in-struct.rs index 04119956f1944..1a7fde766f0d8 100644 --- a/src/test/debuginfo/tuple-in-struct.rs +++ b/src/test/debuginfo/tuple-in-struct.rs @@ -42,6 +42,7 @@ // gdb-check:$10 = {x = {__0 = {__0 = 40, __1 = 41, __2 = 42}, __1 = {__0 = 43, __1 = 44}}, y = {__0 = 45, __1 = 46, __2 = 47, __3 = 48}} #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct NoPadding1 { diff --git a/src/test/debuginfo/tuple-in-tuple.rs b/src/test/debuginfo/tuple-in-tuple.rs index e98109130311b..a514b69a2d31d 100644 --- a/src/test/debuginfo/tuple-in-tuple.rs +++ b/src/test/debuginfo/tuple-in-tuple.rs @@ -56,6 +56,7 @@ // lldb-check:[...]$6 = ((21, 22), 23) #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] fn main() { diff --git a/src/test/debuginfo/tuple-struct.rs b/src/test/debuginfo/tuple-struct.rs index 5e4e849457446..a2ca8c2237b42 100644 --- a/src/test/debuginfo/tuple-struct.rs +++ b/src/test/debuginfo/tuple-struct.rs @@ -62,6 +62,7 @@ // structs. +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct NoPadding16(u16, i16); diff --git a/src/test/debuginfo/tuple-style-enum.rs b/src/test/debuginfo/tuple-style-enum.rs index 48c47c51150de..52f171434b037 100644 --- a/src/test/debuginfo/tuple-style-enum.rs +++ b/src/test/debuginfo/tuple-style-enum.rs @@ -48,6 +48,7 @@ // lldb-check:[...]$3 = TheOnlyCase(-1) #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Regular::{Case1, Case2, Case3}; diff --git a/src/test/debuginfo/type-names.rs b/src/test/debuginfo/type-names.rs index 4eae074120233..3db3e9d311da0 100644 --- a/src/test/debuginfo/type-names.rs +++ b/src/test/debuginfo/type-names.rs @@ -175,6 +175,7 @@ #![feature(box_syntax)] #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] use self::Enum1::{Variant1, Variant2}; diff --git a/src/test/debuginfo/unique-enum.rs b/src/test/debuginfo/unique-enum.rs index 0252e3b54fff3..bbf13ec756ad8 100644 --- a/src/test/debuginfo/unique-enum.rs +++ b/src/test/debuginfo/unique-enum.rs @@ -42,6 +42,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // The first element is to ensure proper alignment, irrespective of the machines word size. Since diff --git a/src/test/debuginfo/unreachable-locals.rs b/src/test/debuginfo/unreachable-locals.rs index 63536b1383475..4c4210ea132a6 100644 --- a/src/test/debuginfo/unreachable-locals.rs +++ b/src/test/debuginfo/unreachable-locals.rs @@ -13,6 +13,7 @@ // compile-flags:-g #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] // No need to actually run the debugger, just make sure that the compiler can diff --git a/src/test/debuginfo/var-captured-in-nested-closure.rs b/src/test/debuginfo/var-captured-in-nested-closure.rs index d576aff8b1c08..7090377e5db1b 100644 --- a/src/test/debuginfo/var-captured-in-nested-closure.rs +++ b/src/test/debuginfo/var-captured-in-nested-closure.rs @@ -79,6 +79,7 @@ #![allow(unused_variables)] #![feature(box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/var-captured-in-sendable-closure.rs b/src/test/debuginfo/var-captured-in-sendable-closure.rs index 2b27f938b308f..aa269edadd8f4 100644 --- a/src/test/debuginfo/var-captured-in-sendable-closure.rs +++ b/src/test/debuginfo/var-captured-in-sendable-closure.rs @@ -41,6 +41,7 @@ #![allow(unused_variables)] #![feature(unboxed_closures, box_syntax)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/var-captured-in-stack-closure.rs b/src/test/debuginfo/var-captured-in-stack-closure.rs index 54ef42b48f1b1..6def5cf285934 100644 --- a/src/test/debuginfo/var-captured-in-stack-closure.rs +++ b/src/test/debuginfo/var-captured-in-stack-closure.rs @@ -71,6 +71,7 @@ #![feature(unboxed_closures, box_syntax)] #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct Struct { diff --git a/src/test/debuginfo/vec-slices.rs b/src/test/debuginfo/vec-slices.rs index 87fd2e9a65d03..0d396c885eb85 100644 --- a/src/test/debuginfo/vec-slices.rs +++ b/src/test/debuginfo/vec-slices.rs @@ -77,6 +77,7 @@ // lldb-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }] #![allow(dead_code, unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] struct AStruct { diff --git a/src/test/debuginfo/vec.rs b/src/test/debuginfo/vec.rs index f7bdf1bd3faaf..c9827a02fc759 100644 --- a/src/test/debuginfo/vec.rs +++ b/src/test/debuginfo/vec.rs @@ -28,6 +28,7 @@ // lldb-check:[...]$0 = [1, 2, 3] #![allow(unused_variables)] +#![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] static mut VECT: [i32; 3] = [1, 2, 3];