Skip to content

Commit

Permalink
silence deprecation warnings, fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed May 10, 2022
1 parent b256c59 commit f7c4266
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions internal/compiler-bridge/src/main/scala/xsbt/ExtractAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class ExtractAPI[GlobalType <: Global](

def leaveExistentialTypeVariables(typeVariables: Seq[Symbol]): Unit = {
nestingLevel -= 1
assert(nestingLevel >= 0)
assert(nestingLevel >= 0, s"nestingLevel = $nestingLevel")
typeVariables.foreach(renameTo.remove)
}
def enterExistentialTypeVariables(typeVariables: Seq[Symbol]): Unit = {
Expand Down Expand Up @@ -315,8 +315,8 @@ class ExtractAPI[GlobalType <: Global](
}
t match {
case PolyType(typeParams0, base) =>
assert(typeParams.isEmpty)
assert(valueParameters.isEmpty)
assert(typeParams.isEmpty, typeParams.toString)
assert(valueParameters.isEmpty, valueParameters.toString)
build(base, typeParameters(in, typeParams0), Nil)
case MethodType(params, resultType) =>
build(resultType, typeParams, parameterList(params) :: valueParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ sealed abstract class APIChange(val modifiedClass: String) extends XAPIChange {
}

/**
* If we recompile a source file that contains a macro definition then we always assume that it's
* If we recompile a source file that contains a macro definition then we always assume that its
* api has changed. The reason is that there's no way to determine if changes to macros implementation
* are affecting its users or not. Therefore we err on the side of caution.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ object Incremental {
} catch {
case _: xsbti.CompileCancelled =>
log.info("Compilation has been cancelled")
// in case compilation got cancelled potential partial compilation results (e.g. produced classs files) got rolled back
// in case compilation got cancelled potential partial compilation results (e.g. produced class files) got rolled back
// and we can report back as there was no change (false) and return a previous Analysis which is still up-to-date
(false, previous)
} finally runProfiler.registerRun()
Expand Down Expand Up @@ -291,7 +291,7 @@ object Incremental {
} catch {
case _: xsbti.CompileCancelled =>
log.info("Compilation has been cancelled")
// in case compilation got cancelled potential partial compilation results (e.g. produced classs files) got rolled back
// in case compilation got cancelled potential partial compilation results (e.g. produced class files) got rolled back
// and we can report back as there was no change (false) and return a previous Analysis which is still up-to-date
(false, previous)
}
Expand Down

0 comments on commit f7c4266

Please sign in to comment.