File tree 2 files changed +0
-12
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -1307,8 +1307,6 @@ trait Implicits { self: Typer =>
1307
1307
else implicitScope(wildProto).eligible
1308
1308
searchImplicits(eligible, contextual) match {
1309
1309
case result : SearchSuccess =>
1310
- if (contextual && ctx.mode.is(Mode .InlineableBody ))
1311
- PrepareInlineable .markContextualImplicit(result.tree)
1312
1310
result
1313
1311
case failure : SearchFailure =>
1314
1312
failure.reason match {
Original file line number Diff line number Diff line change @@ -24,16 +24,6 @@ import dotty.tools.dotc.transform.TreeMapWithStages._
24
24
object PrepareInlineable {
25
25
import tpd ._
26
26
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
-
37
27
class InlineAccessors extends AccessProxies {
38
28
39
29
/** If an inline accessor name wraps a unique inline name, this is taken as indication
You can’t perform that action at this time.
0 commit comments