Files
rust/library
Matthias Krüger 6f7fa03a06 Rollup merge of #127748 - scottmcm:option_len, r=joboet
Use Option's discriminant as its size hint

I was looking at this in MIR after a question on discord, and noticed that it ends up with a switch in MIR (<https://rust.godbolt.org/z/3q4cYnnb3>), which it doesn't need because (as `Option::as_slice` uses) the discriminant is already the length.
2024-07-18 18:10:16 +02:00
..
2024-06-06 22:50:45 -07:00
2024-06-19 13:54:51 +01:00
2024-06-19 13:54:51 +01:00