-
Notifications
You must be signed in to change notification settings - Fork 14
regression: 2.13 failing bootstrap (culprit: PR 6025?) #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe the PR validation was still in the |
|
you have to admit that of ah, lub humor |
The root bug is either in:
Or maybe in the way the new code passes constants in without first deconsting them. I'll revert until we get to the bottom of it. |
Here's the code in the parser that was affected. def param(owner: Name, implicitmod: Int, caseParam: Boolean): ValDef = {
val start = in.offset
val annots = annotations(skipNewLines = false)
var mods = Modifiers(Flags.PARAM)
if (owner.isTypeName) {
mods = modifiers() | Flags.PARAMACCESSOR
if (mods.isLazy) syntaxError("lazy modifier not allowed here. Use call-by-name parameters instead", skipIt = false)
in.token match {
case v @ (VAL | VAR) =>
mods = mods withPosition (in.token.toLong, tokenRange(in))
if (v == VAR) mods |= Flags.MUTABLE
in.nextToken()
case _ =>
if (mods.flags != Flags.PARAMACCESSOR) accept(VAL)
if (!caseParam) mods |= Flags.PrivateLocal
}
if (caseParam) mods |= Flags.CASEACCESSOR
}
val nameOffset = in.offset
val name = ident()
var bynamemod = 0
val tpt =
if ((settings.YmethodInfer && !owner.isTypeName) && in.token != COLON) {
TypeTree()
} else { // XX-METHOD-INFER
accept(COLON)
if (in.token == ARROW) {
if (owner.isTypeName && !mods.isLocalToThis)
syntaxError(
in.offset,
(if (mods.isMutable) "`var'" else "`val'") +
" parameters may not be call-by-name", skipIt = false)
else if (implicitmod != 0)
syntaxError(
in.offset,
"implicit parameters may not be call-by-name", skipIt = false)
else bynamemod = Flags.BYNAMEPARAM
}
paramType()
}
val default =
if (in.token == EQUALS) {
in.nextToken()
mods |= Flags.DEFAULTPARAM
expr()
} else EmptyTree
atPos(start, if (name == nme.ERROR) start else nameOffset) {
ValDef((mods | implicitmod.toLong | bynamemod) withAnnotations annots, name.toTermName, tpt, default)
}
}
|
This reverts commit 31210e7. Fixes scala/scala-dev#455
This reverts commit 31210e7. Fixes scala/scala-dev#455
This reverts commit 31210e7. Fixes scala/scala-dev#455
Uh oh!
There was an error while loading. Please reload this page.
2.13.x just started failing bootstrap: https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-bootstrap/594/consoleFull
🤔
afaict the only merged PR was scala/scala#6025 (@hrhino, merged by @retronym) and it passed PR validation, so I guess this is one of those weird times when a problem only shows up after re-STARR?
The text was updated successfully, but these errors were encountered: