www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20916] New: hard to find where a deprecation comes from

https://issues.dlang.org/show_bug.cgi?id=20916

          Issue ID: 20916
           Summary: hard to find where a deprecation comes from
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

E.g. Messages like this:

/home/john/dlang/dmd-2.091.1/linux/bin64/../../src/phobos/std/range/primitives.d(175,38):
Deprecation: alias byKeyValue this is deprecated - Iterate over .byKeyValue
instead.

with no further information

How am I supposed to know where I am doing the wrong thing?

Sure, I can use -de, but that has a fatal flaw: compilation stops after the
first deprecation. So if I can't fix that one for some reason, I can never get
to the rest.

--
Jun 09