Skip to content

Commit f2c80b2

Browse files
committed
Drop markContextual in PrepareInline
It was a remainder from transparent methods, serves no purpose now.
1 parent eebc21e commit f2c80b2

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

compiler/src/dotty/tools/dotc/typer/Implicits.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,6 @@ trait Implicits { self: Typer =>
13071307
else implicitScope(wildProto).eligible
13081308
searchImplicits(eligible, contextual) match {
13091309
case result: SearchSuccess =>
1310-
if (contextual && ctx.mode.is(Mode.InlineableBody))
1311-
PrepareInlineable.markContextualImplicit(result.tree)
13121310
result
13131311
case failure: SearchFailure =>
13141312
failure.reason match {

compiler/src/dotty/tools/dotc/typer/PrepareInlineable.scala

-10
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ import dotty.tools.dotc.transform.TreeMapWithStages._
2424
object PrepareInlineable {
2525
import tpd._
2626

27-
/** Marks an implicit reference found in the context (as opposed to the implicit scope)
28-
* from an inlineable body. Such references will be carried along with the body to
29-
* the expansion site.
30-
*/
31-
private val ContextualImplicit = new Property.StickyKey[Unit]
32-
33-
def markContextualImplicit(tree: Tree)(implicit ctx: Context): Unit =
34-
if (!defn.ScalaPredefModule.moduleClass.derivesFrom(tree.symbol.maybeOwner))
35-
methPart(tree).putAttachment(ContextualImplicit, ())
36-
3727
class InlineAccessors extends AccessProxies {
3828

3929
/** If an inline accessor name wraps a unique inline name, this is taken as indication

0 commit comments

Comments
 (0)