about summary refs log tree commit diff
path: root/tests/ui/attributes
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-12 22:53:51 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-12 22:55:48 +0200
commit86349e31dde1f9aa5a8a519ff0213c5461f7f4d7 (patch)
tree6818446f3df172bba18a16fefc6e59449e6ea8fa /tests/ui/attributes
parent915e5352448afb3c24f89117468935283bc7d2cf (diff)
downloadrust-86349e31dde1f9aa5a8a519ff0213c5461f7f4d7.tar.gz
rust-86349e31dde1f9aa5a8a519ff0213c5461f7f4d7.zip
Port `#[omit_gdb_pretty_printer_section]` to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'tests/ui/attributes')
-rw-r--r--tests/ui/attributes/malformed-attrs.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ui/attributes/malformed-attrs.stderr b/tests/ui/attributes/malformed-attrs.stderr
index be529df3a49..b8a71be18fc 100644
--- a/tests/ui/attributes/malformed-attrs.stderr
+++ b/tests/ui/attributes/malformed-attrs.stderr
@@ -22,12 +22,6 @@ error[E0463]: can't find crate for `wloop`
 LL | extern crate wloop;
    | ^^^^^^^^^^^^^^^^^^^ can't find crate
 
-error: malformed `omit_gdb_pretty_printer_section` attribute input
-  --> $DIR/malformed-attrs.rs:26:1
-   |
-LL | #![omit_gdb_pretty_printer_section = 1]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![omit_gdb_pretty_printer_section]`
-
 error: malformed `windows_subsystem` attribute input
   --> $DIR/malformed-attrs.rs:29:1
    |
@@ -283,6 +277,15 @@ LL | #[debugger_visualizer]
    = note: OR
    = note: expected: `gdb_script_file = "..."`
 
+error[E0565]: malformed `omit_gdb_pretty_printer_section` attribute input
+  --> $DIR/malformed-attrs.rs:26:1
+   |
+LL | #![omit_gdb_pretty_printer_section = 1]
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---^
+   | |                                  |
+   | |                                  didn't expect any arguments here
+   | help: must be of the form: `#[omit_gdb_pretty_printer_section]`
+
 error[E0539]: malformed `export_name` attribute input
   --> $DIR/malformed-attrs.rs:32:1
    |