diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-07-01 08:21:07 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-07-10 09:27:51 -0700 |
commit | 3b89c168b4926139f7295183fdc1903f6f553798 (patch) | |
tree | 640f0672a1deadf6d3b7e57383be6432165a551f /src/compiler/scala/tools/nsc/plugins | |
parent | 44855dcd3c2e19d5dbaf01b2165ea8dc9fb287d3 (diff) | |
download | scala-3b89c168b4926139f7295183fdc1903f6f553798.tar.gz scala-3b89c168b4926139f7295183fdc1903f6f553798.tar.bz2 scala-3b89c168b4926139f7295183fdc1903f6f553798.zip |
SI-8525 No anonymous lint
Turn anonymous references to `settings.lint` into named settings.
After that, trust to Adriaan to make them filterable.
There are a few remaining top-level -Y lint warnings that are
deprecated.
Diffstat (limited to 'src/compiler/scala/tools/nsc/plugins')
-rw-r--r-- | src/compiler/scala/tools/nsc/plugins/Plugins.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/plugins/Plugins.scala b/src/compiler/scala/tools/nsc/plugins/Plugins.scala index 12f9aeba27..6e3d013e52 100644 --- a/src/compiler/scala/tools/nsc/plugins/Plugins.scala +++ b/src/compiler/scala/tools/nsc/plugins/Plugins.scala @@ -33,7 +33,7 @@ trait Plugins { global: Global => } val maybes = Plugin.loadAllFrom(paths, dirs, settings.disable.value) val (goods, errors) = maybes partition (_.isSuccess) - // Explicit parameterization of recover to suppress -Xlint warning about inferred Any + // Explicit parameterization of recover to avoid -Xlint warning about inferred Any errors foreach (_.recover[Any] { // legacy behavior ignores altogether, so at least warn devs case e: MissingPluginException => if (global.isDeveloper) warning(e.getMessage) |