Closed as not planned
Closed as not planned
Description
Rustfmt is unable to format the following code:
fn foo() {
match key {
< :: icu_calendar :: provider :: JapaneseErasV1Marker as ResourceMarker > :: KEY => {
AnyPayload :: from_static_ref :: << :: icu_calendar :: provider :: JapaneseErasV1Marker as DataMarker > :: Yokeable > (litemap_slice_get (calendar :: japanese_v1 :: DATA , key , req) ?)
}
}
}
We're hitting that in unicode-org/icu4x#2098, where we've generated a very large match statement containing a lot of those such arms (but we hit those bugs even for the one-arm match statement above). It woudl be nice if we could have our generated code be readable.
Metadata
Metadata
Assignees
Labels
No labels