@@ -623,7 +623,7 @@ trait Checking {
623623 def checkImplicitConversionDefOK (sym : Symbol )(implicit ctx : Context ): Unit = {
624624 def check (): Unit = {
625625 checkFeature(
626- defn. LanguageModuleClass , nme.implicitConversions,
626+ nme.implicitConversions,
627627 i " Definition of implicit conversion $sym" ,
628628 ctx.owner.topLevelClass,
629629 sym.sourcePos)
@@ -660,20 +660,17 @@ trait Checking {
660660 defn.isPredefClass(conv.owner) ||
661661 conv.name == nme.reflectiveSelectable && conv.maybeOwner.maybeOwner.maybeOwner == defn.ScalaPackageClass
662662 if (! conversionOK)
663- checkFeature(defn. LanguageModuleClass , nme.implicitConversions,
663+ checkFeature(nme.implicitConversions,
664664 i " Use of implicit conversion ${conv.showLocated}" , NoSymbol , posd.sourcePos)
665665 }
666666
667667 /** Issue a feature warning if feature is not enabled */
668- def checkFeature (base : ClassSymbol ,
669- name : TermName ,
668+ def checkFeature (name : TermName ,
670669 description : => String ,
671670 featureUseSite : Symbol ,
672671 pos : SourcePosition )(implicit ctx : Context ): Unit =
673- if (! ctx.featureEnabled(base, name))
674- ctx.featureWarning(name.toString, description,
675- isScala2Feature = base.isContainedIn(defn.LanguageModuleClass ),
676- featureUseSite, required = false , pos)
672+ if (! ctx.featureEnabled(name))
673+ ctx.featureWarning(name.toString, description, featureUseSite, required = false , pos)
677674
678675 /** Check that `tp` is a class type and that any top-level type arguments in this type
679676 * are feasible, i.e. that their lower bound conforms to their upper bound. If a type
@@ -1056,5 +1053,5 @@ trait NoChecking extends ReChecking {
10561053 override def checkNoForwardDependencies (vparams : List [ValDef ])(implicit ctx : Context ): Unit = ()
10571054 override def checkMembersOK (tp : Type , pos : SourcePosition )(implicit ctx : Context ): Type = tp
10581055 override def checkInInlineContext (what : String , posd : Positioned )(implicit ctx : Context ): Unit = ()
1059- override def checkFeature (base : ClassSymbol , name : TermName , description : => String , featureUseSite : Symbol , pos : SourcePosition )(implicit ctx : Context ): Unit = ()
1056+ override def checkFeature (name : TermName , description : => String , featureUseSite : Symbol , pos : SourcePosition )(implicit ctx : Context ): Unit = ()
10601057}
0 commit comments