serde-rs/serde-rs.github.io

Optional comment casues ICE

Buzzec opened this issue · 1 comments

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.

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