Skip to content

Temporarily replace RangeEnd::Included with _ #1996

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

Merged
merged 1 commit into from
Sep 26, 2017
Merged

Temporarily replace RangeEnd::Included with _ #1996

merged 1 commit into from
Sep 26, 2017

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