Skip to content
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

Fix broken build after use_nested_groups lands on nightly #2218

Merged

Conversation

pietroalbini
Copy link
Member

Rustfmt will be broken after rust-lang/rust#45846 (support for the use_nested_groups feature) lands on nightly. That PR completly changes the AST for use declarations, so imports formatting will break.

This PR fixes rustfmt to keep the old behavior with the new AST, and adds partial support for the new features introduced in the rustc PR: some of them will work, some will behave unexpectedly and some will just panic with unimplemented!.

@pietroalbini pietroalbini force-pushed the fix-ast-for-use_nested_groups branch from 81ce961 to 9d8cfbc Compare November 30, 2017 23:18
@topecongiro topecongiro merged commit 483f71c into rust-lang:master Dec 2, 2017
@topecongiro
Copy link
Contributor

Thank you!

@pietroalbini pietroalbini deleted the fix-ast-for-use_nested_groups branch December 2, 2017 10:01
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