Skip to content

Fix broken build after use_nested_groups lands on nightly#2218

Merged
topecongiro merged 1 commit intorust-lang:masterfrom
emilyalbini:fix-ast-for-use_nested_groups
Dec 2, 2017
Merged

Fix broken build after use_nested_groups lands on nightly#2218
topecongiro merged 1 commit intorust-lang:masterfrom
emilyalbini:fix-ast-for-use_nested_groups

Conversation

@emilyalbini
Copy link
Copy Markdown
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!.

@emilyalbini emilyalbini 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
Copy Markdown
Contributor

Thank you!

@emilyalbini emilyalbini 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