Skip to content

Commit 4b0eebf

Browse files
committed
bugfix: Fix compilation after merge conflicts
1 parent 3dc441b commit 4b0eebf

File tree

5 files changed

+3
-22
lines changed

5 files changed

+3
-22
lines changed

compiler/src/dotty/tools/dotc/config/Settings.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ object Settings:
5454

5555
def deprecated(msg: String, extraArgs: List[String] = Nil): Settings.ArgsSummary =
5656
ArgsSummary(sstate, extraArgs ++ arguments.tail, errors, warnings :+ msg)
57-
58-
@unshared
59-
val settingCharacters = "[a-zA-Z0-9_\\-]*".r
60-
def validateSettingString(name: String): Unit =
61-
assert(settingCharacters.matches(name), s"Setting string $name contains invalid characters")
57+
}
6258

6359
/** List of setting-value pairs that are required for another setting to be valid.
6460
* For example, `s = Setting(..., depends = List(YprofileEnabled -> true))`

compiler/src/dotty/tools/dotc/core/Phases.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ object Phases {
333333

334334
// Test that we are in a state where we need to check if the phase should be skipped for a java file,
335335
// this prevents checking the expensive `unit.typedAsJava` unnecessarily.
336-
val doCheckJava = skipIfJava && !isAfterLastJavaPhase
337336
for unit <- units do ctx.profiler.onUnit(this, unit):
338337
given unitCtx: Context = runCtx.fresh.setPhase(this.start).setCompilationUnit(unit).withRootImports
339338
if ctx.run.enterUnit(unit) then

compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import java.nio.channels.ClosedByInterruptException
77

88
import scala.util.control.NonFatal
99

10-
import dotty.tools.dotc.classpath.FileUtils.{hasTastyExtension, hasBetastyExtension}
1110
import dotty.tools.io.{ ClassPath, ClassRepresentation, AbstractFile, NoAbstractFile }
1211
import dotty.tools.backend.jvm.DottyBackendInterface.symExtensions
1312

@@ -338,7 +337,7 @@ abstract class SymbolLoader extends LazyType { self =>
338337
val sym = root.symbol
339338
def associatedFile = root.symbol.associatedFile match
340339
case file: AbstractFile => file
341-
case _ => NoAbstractFile
340+
case null => NoAbstractFile
342341
ctx.profiler.onCompletion(sym, associatedFile)(body)
343342
}
344343

compiler/src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ object TypeOps:
917917
}
918918

919919
val inferThisMap = new InferPrefixMap
920-
val tvars = tp1.etaExpand match
920+
val tvars = tp1.EtaExpand(tp1.typeParams) match
921921
case eta: TypeLambda => constrained(eta)
922922
case _ => Nil
923923
val protoTp1 = inferThisMap.apply(tp1).appliedTo(tvars)

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,19 +2490,6 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
24902490
if filters == List(MessageFilter.None) then sup.markUsed()
24912491
ctx.run.nn.suppressions.addSuppression(sup)
24922492

2493-
/** Run `typed` on `rhs` except if `rhs` is the right hand side of a deferred given,
2494-
* in which case the empty tree is returned.
2495-
*/
2496-
private inline def excludeDeferredGiven(
2497-
rhs: untpd.Tree, sym: Symbol)(
2498-
inline typed: untpd.Tree => Tree)(using Context): Tree =
2499-
rhs match
2500-
case rhs: RefTree
2501-
if rhs.name == nme.deferred && sym.isAllOf(DeferredGivenFlags, butNot = Param) =>
2502-
EmptyTree
2503-
case _ =>
2504-
typed(rhs)
2505-
25062493
def typedValDef(vdef: untpd.ValDef, sym: Symbol)(using Context): Tree = ctx.profiler.onTypedDef(sym) {
25072494
val ValDef(name, tpt, _) = vdef
25082495
completeAnnotations(vdef, sym)

0 commit comments

Comments
 (0)