Files
rust/tests
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-07-01 05:17:13 -07:00
2024-07-13 12:02:12 +00:00
2024-07-06 14:24:20 +02:00