scala/scala — pull request #2985 by retronym (2013-09-25 14:43:22+00:00)
Title: SI-7783 Don't issue deprecation warnings for inferred TypeTrees

Deprecation checks in RefChecks were looking into all TypeTrees
to find references to deprecated type aliases. However, when the
compiler infers a type argument or type of a member it creates
a TypeTree (with a null original) that was also leading to warnings.

I ran into this problem often when upgrading a build from SBT 0.12
to 0.13: a plugin I was using used the deprecated type alias, and I
suffered transitively when I used methods from its API.

This commit disables the checks for inferred TypeTree-s.

Review by @adriaanm

Discussion: https://groups.google.com/d/msg/scala-internals/3nf9-X6Yfe4/yNiPl1foK6sJ