Skip to content

Commit

Permalink
Typos in build
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Jan 7, 2025
1 parent 4c58507 commit e7422fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/reporting/Diagnostic.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ class Diagnostic(
override def diagnosticRelatedInformation: JList[interfaces.DiagnosticRelatedInformation] =
Collections.emptyList()

override def toString: String = s"$getClass at $pos: $message"
override def toString: String = s"$getClass at $pos L${pos.line}: $message"
end Diagnostic
10 changes: 6 additions & 4 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ object Build {
"-deprecation",
"-unchecked",
//"-Wconf:cat=deprecation&msg=Unsafe:s", // example usage
"-Xfatal-warnings", // -Werror in modern usage
"-Werror",
//"-Wunused:all",
//"-rewrite", // requires -Werror:false since no rewrites are applied with errors
"-encoding", "UTF8",
"-language:implicitConversions",
),
Expand Down Expand Up @@ -1224,8 +1226,8 @@ object Build {
},
Compile / doc / scalacOptions += "-Ydocument-synthetic-types",
scalacOptions += "-Ycompile-scala2-library",
scalacOptions += "-Yscala2Unpickler:never",
scalacOptions -= "-Xfatal-warnings",
scalacOptions += "-Yscala2-unpickler:never",
scalacOptions -= "-Werror",
Compile / compile / logLevel.withRank(KeyRanks.Invisible) := Level.Error,
ivyConfigurations += SourceDeps.hide,
transitiveClassifiers := Seq("sources"),
Expand Down Expand Up @@ -1596,7 +1598,7 @@ object Build {
dependsOn(`scala3-library-bootstrappedJS`).
settings(
bspEnabled := false,
scalacOptions --= Seq("-Xfatal-warnings", "-deprecation"),
scalacOptions --= Seq("-Werror", "-deprecation"),

// Required to run Scala.js tests.
Test / fork := false,
Expand Down

0 comments on commit e7422fa

Please sign in to comment.