-
Couldn't load subscription status.
- Fork 962
Closed
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEgood first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributors
Description
For example, when I try to format the following code,
#![feature(generators)]
unsafe fn foo() {
let mut g = static || {
yield 3;
};
}rustfmt 0.3.6-nightly emits the following error:
error: expected expression, found keyword `static`
--> test.rs:4:17
|
4 | let mut g = static || {
| ^^^^^^
The procedure to fix this would be something like this:
- add tests to make sure that rustfmt handles immovable generators
- update
rustc-ap-syntaxandrustc-ap-rustc_errorsto the latest version - update expr.rs and closures.rs to support immovable generators
valff
Metadata
Metadata
Assignees
Labels
C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEgood first issueIssues up for grabs, also good candidates for new rustfmt contributorsIssues up for grabs, also good candidates for new rustfmt contributors