Files
rust/compiler
Dylan DPC 14157561fb Rollup merge of #109718 - scottmcm:indexvec-last, r=Nilstrieb
Rename `IndexVec::last` → `last_index`

As I've been trying to replace a `Vec` with an `IndexVec`, having `last` exist on both but returning very different types makes the transition a bit awkward -- the errors are later, where you get things like "there's no `ty` method on `mir::Field`" rather than a more localized error like "hey, there's no `last` on `IndexVec`".

So I propose renaming `last` to `last_index` to help distinguish `Vec::last`, which returns an element, and `IndexVec::last_index`, which returns an index.

(Similarly, `Iterator::last` also returns an element, not an index.)
2023-03-29 14:07:31 +05:30
..
2023-03-11 10:53:47 -06:00
2023-03-27 18:58:07 +00:00
2023-03-23 19:52:27 +00:00
2023-03-27 12:16:54 +00:00
2023-03-23 19:52:27 +00:00
2023-03-27 12:16:54 +00:00