@@ -617,7 +617,7 @@ trait Checking {
617617 def checkImplicitConversionDefOK (sym : Symbol )(implicit ctx : Context ): Unit = {
618618 def check (): Unit = {
619619 checkFeature(
620- defn. LanguageModuleClass , nme.implicitConversions,
620+ nme.implicitConversions,
621621 i " Definition of implicit conversion $sym" ,
622622 ctx.owner.topLevelClass,
623623 sym.sourcePos)
@@ -654,20 +654,17 @@ trait Checking {
654654 defn.isPredefClass(conv.owner) ||
655655 conv.name == nme.reflectiveSelectable && conv.maybeOwner.maybeOwner.maybeOwner == defn.ScalaPackageClass
656656 if (! conversionOK)
657- checkFeature(defn. LanguageModuleClass , nme.implicitConversions,
657+ checkFeature(nme.implicitConversions,
658658 i " Use of implicit conversion ${conv.showLocated}" , NoSymbol , posd.sourcePos)
659659 }
660660
661661 /** Issue a feature warning if feature is not enabled */
662- def checkFeature (base : ClassSymbol ,
663- name : TermName ,
662+ def checkFeature (name : TermName ,
664663 description : => String ,
665664 featureUseSite : Symbol ,
666665 pos : SourcePosition )(implicit ctx : Context ): Unit =
667- if (! ctx.featureEnabled(base, name))
668- ctx.featureWarning(name.toString, description,
669- isScala2Feature = base.isContainedIn(defn.LanguageModuleClass ),
670- featureUseSite, required = false , pos)
666+ if (! ctx.featureEnabled(name))
667+ ctx.featureWarning(name.toString, description, featureUseSite, required = false , pos)
671668
672669 /** Check that `tp` is a class type and that any top-level type arguments in this type
673670 * are feasible, i.e. that their lower bound conforms to their upper bound. If a type
@@ -1048,5 +1045,5 @@ trait NoChecking extends ReChecking {
10481045 override def checkNoForwardDependencies (vparams : List [ValDef ])(implicit ctx : Context ): Unit = ()
10491046 override def checkMembersOK (tp : Type , pos : SourcePosition )(implicit ctx : Context ): Type = tp
10501047 override def checkInInlineContext (what : String , posd : Positioned )(implicit ctx : Context ): Unit = ()
1051- override def checkFeature (base : ClassSymbol , name : TermName , description : => String , featureUseSite : Symbol , pos : SourcePosition )(implicit ctx : Context ): Unit = ()
1048+ override def checkFeature (name : TermName , description : => String , featureUseSite : Symbol , pos : SourcePosition )(implicit ctx : Context ): Unit = ()
10521049}
0 commit comments