Update for latest libsyntax changes - #44
Conversation
Update to current Rust Nightly. (2016-04-28) Note that this is not a straighforward merge commit, but rather contains all adaptation necessary to make it work with stable Rust and syntex -- not just fixing the immediate merge conflicts. In addition to the usual churn in syntex-syntax (`try!` etc.), this also contains a minor change to syntex proper, to adapt it to an interface change affecting it.
The recent interface changes are not backwards compatible -- so we need a new semantic version...
|
OK, now it actually works ;-) |
| attrs.iter().fold(InlineAttr::None, |ia,attr| { | ||
| match attr.node.value.node { | ||
| MetaItemKind::Word(ref n) if *n == "inline" => { | ||
| MetaItemKind::Word(ref n) if n == "inline" => { |
There was a problem hiding this comment.
just out of curiosity, did this actually break or was it just possible to omit the explicit deref now? Because I changed something in rustc related to comparison of InternedString with &str
There was a problem hiding this comment.
oh... nevermind, I didn't get how syntex updates work xD this is actual code from rustc
|
Great work! Did you have to remove all the unstable features by hand? 😨 |
|
@marcusklaas well, many bits already had been handled in previous updates, and thus were merged in automatically -- but there were many conflicts to resolve by hand; and some new places to handle too... So it was still fairly tedious. (Though some quick Vim macros helped a lot with the repetitive stuff :-) ) |
|
@antrik I'm confused, why is there a merge in the middle of that PR? Could you rebase it? |
|
Thanks! This is awesome! @nox: no, this is the right procedure for syntex. Check out https://github.com/serde-rs/syntex/blob/master/CONTRIBUTING.md. The reason for this is it's much simpler to sync with the upstream rust libsyntax if we store it in a side branch. This allows git to properly merge most changes, while preserving the patches we need to make syntex_syntax still work on stable rust. |
Syncs with current nightly (2016-04-28), and bumps version accordingly.