Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for libsyntax breaking changes #31645
Comments
Manishearth
added
metabug
A-syntaxext
labels
Feb 14, 2016
This comment has been minimized.
This comment has been minimized.
|
I would also like to re-submit my plea that commits with breaking changes are tagged, and if possible, at least some message that hints at or explains how to fix breakages. Other crates with macros in use (apparently) are |
This comment has been minimized.
This comment has been minimized.
|
Yeah, they get tagged with [breaking-change]. With this bug in place they should also be posted here first and we can notify everyone well in advance before a rollup. |
jonas-schievink
referenced this issue
Mar 9, 2016
Merged
[breaking-batch] Move more uses of `panictry!` out of libsyntax #31631
This was referenced Apr 2, 2016
jseyfried
referenced this issue
Apr 2, 2016
Merged
[breaking-batch] Add support for `pub(restricted)` syntax in the AST #32688
Manishearth
referenced this issue
Apr 3, 2016
Closed
Macro expansion bypasses #[derive_*] stability checks. #32655
bors
added a commit
that referenced
this issue
Apr 6, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Apr 6, 2016
bors
added a commit
that referenced
this issue
Apr 6, 2016
This comment has been minimized.
This comment has been minimized.
|
#32767 is a breaking change that will land soon, along with #32688. I'd normally wait a few days before merging these so that everyone can fix their code early, but in this case #32688 already landed so there's not much I can do. This will definitely break syntex and friends, cc @erickt. I've never looked at diesel's code so it may or may not break it, @sgrif you may want to have a look before this lands in the nightly. |
bors
added a commit
that referenced
this issue
Apr 6, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks for the ping, definitely going to cause breakage. |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Apr 6, 2016
bors
added a commit
that referenced
this issue
Apr 6, 2016
This comment has been minimized.
This comment has been minimized.
|
#33041 will land in a few days. It changes the parser and some of the token tree representation
|
This was referenced Apr 18, 2016
This comment has been minimized.
This comment has been minimized.
|
Note that #31414 has been added to the rollup. It will break derive plugins, not sure what else. |
Manishearth
referenced this issue
Apr 21, 2016
Merged
Thread tighter span for closures around #33125
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
#33157 is also in the list |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Apr 24, 2016
bors
added a commit
that referenced
this issue
Apr 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Merging now: #33179 |
bors
added a commit
that referenced
this issue
Apr 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Next breaking batch will contain the above PRs, waiting on the last one. cc @dtolnay @sfackler @mystor @sgrif @BurntSushi |
Manishearth
referenced this issue
Aug 21, 2016
Merged
Implement RFC#1559: allow all literals in attributes #35850
This was referenced Aug 22, 2016
This comment has been minimized.
This comment has been minimized.
|
Everything seems reviewed, breaking batch will be made todayish (and land over the weekend). |
This comment has been minimized.
This comment has been minimized.
|
Batch at #36066 |
This comment has been minimized.
This comment has been minimized.
|
Landed! |
This comment has been minimized.
This comment has been minimized.
sanxiyn
referenced this issue
Sep 19, 2016
Closed
Clarify the workings of StringReader in the lexer #36470
jonas-schievink
referenced this issue
Sep 20, 2016
Merged
Call arrays "arrays" instead of "vecs" internally #36599
This comment has been minimized.
This comment has been minimized.
|
@Manishearth don't know if it's to late for the two other PRs to make it into the next nightly, but #36551 was a syntax breaking change and has already been merged. |
This comment has been minimized.
This comment has been minimized.
|
Too late :/ But we're rolling it up now anyway |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 30, 2016
This comment has been minimized.
This comment has been minimized.
|
Breaking batch at #36857 cc @dtolnay @sgrif @BurntSushi Will merge tomorrowish. |
This comment has been minimized.
This comment has been minimized.
|
This is exciting - I am not planning to do a serde_macros release so we will see if people revolt or move to serde_derive. |
This comment has been minimized.
This comment has been minimized.
|
Should we PSA this? |
This comment has been minimized.
This comment has been minimized.
|
The announcement that we are dropping serde_macros was at the top of reddit for a while and also popular on u.r-l.o. I think people will put two and two together when their builds fail. Worst case we get a handful of issues filed and we point them to the announcement. Do you know a better way to reach people who have not seen either of those already? |
This comment has been minimized.
This comment has been minimized.
|
You could potentially cut a new release that panics with a message telling people to move to serde-derive. |
This comment has been minimized.
This comment has been minimized.
|
@dtolnay Has this been announced in the Project Updates section of TWiR? |
This comment has been minimized.
This comment has been minimized.
|
No we just missed the last one. |
This comment has been minimized.
This comment has been minimized.
|
The panicky method feels a bit invasive imo. It should be worth mentioning somewhere (perhaps on the crates.io page, or in the readme) that the method for upgrading is to switch over to the new macro version. |
This comment has been minimized.
This comment has been minimized.
|
If it has access to the diagnostics machinery, printing a deprecation warning wouldn't be that hard. |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Oct 1, 2016
This comment has been minimized.
This comment has been minimized.
|
This landed. beware the breakage! |
This comment has been minimized.
This comment has been minimized.
|
We should be done with the macros 1.1 port later today so I no longer need to get pinged on these. Thank you for including me though! |
Manishearth commentedFeb 14, 2016
•
edited by dtolnay
See also: https://internals.rust-lang.org/t/please-consider-stability-of-libsyntax/2947
We decided to batch up breaking changes to oft-used unstable compiler internals (mainly, libsyntax) until they're large enough; so that the impact of these breaking changes is minimized. (For example, every time libsyntax breaks, aster and transitively everyone using serde on nightly has to fix it)
Let's try to coordinate these in the future through this issue. We can list breaking PRs here and batch them up when we feel that they're large enough (or when there's another inevitable breaking change about to merge). Merge them when there's enough time for the folks below to know about it, and preferably make PRs to the larger projects below beforehand.
CCing stakeholders:
Add more if you know of them!