Skip to content

Conversation

Badel2
Copy link
Contributor

@Badel2 Badel2 commented Sep 25, 2017

Hi! I'm currently adding support for ..= syntax as a synonym for ...: rust-lang/rust#44709
I made a small change in HIR the AST which prevents rustfmt from compiling, however with this workaround it will compile without errors, in both old and new versions of rustc. Once the PR gets merged, I will fix this. Basically the change in HIR the AST is the new RangeSyntax enum:

enum RangeEnd {
   // Included,
   Included(RangeSyntax),
   Excluded,
}

enum RangeSyntax {
   DotDotDot, // ...
   DotDotEq,  // ..=
}

@topecongiro topecongiro merged commit 22eb524 into rust-lang:master Sep 26, 2017
@topecongiro
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants