diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-09-15 23:16:40 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-03-11 23:38:08 -0800 |
commit | 94b938bb290a231694e5721368023bd6693bb2ed (patch) | |
tree | ce8366bfa9b301add12d53f2ddf13fe7e05b235a /src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala | |
parent | bd280077d04a3ac84ca48f549faaa8915d46ef2e (diff) | |
download | scala-94b938bb290a231694e5721368023bd6693bb2ed.tar.gz scala-94b938bb290a231694e5721368023bd6693bb2ed.tar.bz2 scala-94b938bb290a231694e5721368023bd6693bb2ed.zip |
SI-8040 Warn unused flags
Introduce `-Ywarn-unused:x,y,z` and exploit `-Ywarn-unused:patvars`.
Although the tree attachment for shielding patvars from warnings
is not structural, sneaking the settings flag into the reflection
internal TreeGen is awkward.
Add test to ensure isolation of patvars warning from others.
`-Ywarn-unused-import` is an alias for `-Ywarn-unused:imports`.
`-Xlint:unused` is an alias for `-Ywarn-unused`, but not enabled
yet. The help text advises to use `-Ywarn-unused`. The future can
decide if `-Xlint:unused-imports` is warranted.
Diffstat (limited to 'src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala')
-rw-r--r-- | src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala b/src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala index 2dded48251..089f07de06 100644 --- a/src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala +++ b/src/compiler/scala/reflect/reify/codegen/GenAnnotationInfos.scala @@ -10,7 +10,6 @@ trait GenAnnotationInfos { // however, when reifying free and tough types, we're forced to reify annotation infos as is // why is that bad? take a look inside def reifyAnnotationInfo(ann: AnnotationInfo): Tree = { - //val reifiedArgs = ann.args map // SI-8915 ann.args.foreach { arg => val saved1 = reifyTreeSymbols val saved2 = reifyTreeTypes |