Skip to content

no_debug and omit_gdb_pretty_printer_sections attributes exist and are ungated #28091

Description

@huonw

This compiles without a peep from the compiler:

#[no_debug]
#[omit_gdb_pretty_printer_section]
fn main() {}

The later especially seems to be purely designed for the rust testsuite, so should probably be feature gated.

(Nominating for more discussion and some sort of priority: if the decision is made to feature gate them,fixing this should just involve changing a few lines of src/libsyntax/feature_gate.rs and then adding the appropriate feature(...)s to the tests that use them.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-stabilityArea: `#[stable]`, `#[unstable]` etc.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions