serde-rs / serde-rs.github.io

https://serde.rs
Creative Commons Attribution Share Alike 4.0 International
22 stars 96 forks source link

Optional comment casues ICE #123

Open Buzzec opened 3 years ago

Buzzec commented 3 years ago

The comment on https://serde.rs/deserialize-struct.html# that states

// This part could also be generated independently by:
//
//    #[derive(Deserialize)]
//    #[serde(field_identifier, rename_all = "lowercase")]
//    enum Field { Secs, Nanos }

Causes an internal compiler error of thread 'rustc' has overflowed its stack fatal runtime error: stack overflow Playground Link

This is consistent with rust-lang/rust#81844.

Buzzec commented 3 years ago

Consistent issue was duplicate of rust-lang/rust#55779