←back to thread

148 points returningfory2 | 2 comments | | HN request time: 0.423s | source
1. subarctic ◴[] No.43646490[source]
When was this implemented? I remember when people used to have to manually flatten nested enums in order to save space
replies(1): >>43646704 #
2. returningfory2 ◴[] No.43646704[source]
Many years ago I think, here: https://github.com/rust-lang/rust/issues/46213. (Found this via https://lobste.rs/s/w3jjb2/surprising_enum_size_optimization...)