Skip to content

Partial unification unconditional; deprecate -Xexperimental#6309

Merged
adriaanm merged 1 commit intoscala:2.13.xfrom
milessabin:topic/unconditional-partial-unification
Apr 6, 2018
Merged

Partial unification unconditional; deprecate -Xexperimental#6309
adriaanm merged 1 commit intoscala:2.13.xfrom
milessabin:topic/unconditional-partial-unification

Conversation

@milessabin
Copy link
Contributor

Partial unification is now enabled unless -Xsource:2.12 is specified. The -Ypartial-unification flag has been removed and the -Xexperimental option, which is now redundant, has been deprecated.

@milessabin milessabin requested a review from adriaanm February 3, 2018 15:24
@milessabin milessabin added this to the 2.13.0-M4 milestone Feb 3, 2018
@Daenyth
Copy link

Daenyth commented Feb 3, 2018

Does it make sense to preserve the -Ypartial-unification flag but have it be a no-op, printing a warning, to ease build.sbt transitions?

@milessabin
Copy link
Contributor Author

According to @adriaanm, no, because -Y options were always subject to change without notice. If you can persuade him otherwise I'd be happy to update the PR.

@SethTisue
Copy link
Member

Maybe there’s another possibility here, of doing something stronger than deprecation, namely refusing to accept the flag, but also printing something more helpful than “huh? -Ypartial-unification`? never heard of it”.

(thinking out loud)

@dwijnand
Copy link
Member

Maybe there’s another possibility here, of doing something stronger than deprecation, namely refusing to accept the flag, but also printing something more helpful than “huh? -Ypartial-unification`? never heard of it”.

Sounds like @eed3si9n's "Restligeist macro" idea: https://twitter.com/eed3si9n/status/770584274819055617

We have those in sbt 1 for the old sbt 0.9-0.12 operators: https://github.com/sbt/sbt/blob/v1.1.1/main-settings/src/main/scala/sbt/std/TaskMacro.scala#L129-L130.

@SethTisue
Copy link
Member

SethTisue commented Feb 19, 2018

@adriaanm Jenkins seems wedged on this one, won't rebuild

@milessabin try rebasing?

@milessabin milessabin force-pushed the topic/unconditional-partial-unification branch from f03ab36 to 54f9a43 Compare February 19, 2018 20:21
@milessabin
Copy link
Contributor Author

Rebased.

@adriaanm
Copy link
Contributor

adriaanm commented Feb 20, 2018

The jenkins upgrade appears to have broken the job notification plugin. No idea what's wrong. The start of job notification arrives fine, end of job is logged as sent on the jenkins side, but never arrives at scabot. 🤔

@scala scala deleted a comment from milessabin Feb 21, 2018
@scala scala deleted a comment from milessabin Feb 21, 2018
@scala scala deleted a comment from milessabin Feb 21, 2018
@scala scala deleted a comment from milessabin Feb 21, 2018
@scala scala deleted a comment from milessabin Feb 21, 2018
@scala scala deleted a comment from milessabin Feb 21, 2018
@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Feb 21, 2018
@milessabin milessabin force-pushed the topic/unconditional-partial-unification branch from 54f9a43 to a942d33 Compare March 5, 2018 12:20
@milessabin
Copy link
Contributor Author

Rebased.

@milessabin
Copy link
Contributor Author

Is there any more that needs to be done before this can be merged?

Partial unification is now enabled unless -Xsource:2.12 is specified.
The -Ypartial-unification flag has been removed and the -Xexperimental
option, which is now redundant, has been deprecated.
@milessabin milessabin force-pushed the topic/unconditional-partial-unification branch from a942d33 to 7d5e0b0 Compare March 22, 2018 19:41
@milessabin
Copy link
Contributor Author

Rebased ... also ... bump!

@milessabin
Copy link
Contributor Author

@adriaanm is there anything blocking this from being merged now?

@adriaanm adriaanm merged commit ced7076 into scala:2.13.x Apr 6, 2018
@milessabin
Copy link
Contributor Author

Hurrah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes worth highlighting in next release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants