June 26, 2020
https://issues.dlang.org/show_bug.cgi?id=20982

          Issue ID: 20982
           Summary: Add a pragma to suppress deprecation messages
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: andrei@erdani.com

In introspection code, often just enumerating the members of a type with deprecated members will issue deprecated warnings.

We'd need a pragma(deprecated, false) directive to temporarily disable
deprecation messages. Then pragma(deprecated, restore) to restore to its set
value.

--