rust/compiler/rustc_index/src
Scott McMurray 843c5e361e Rename IndexVec::lastlast_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 00:27:24 -07:00
..
bit_set Fix cloning from a BitSet with a different domain size 2022-07-08 11:41:36 +02:00
interval correct the test if IntervalSet 2022-06-08 22:44:26 +08:00
vec A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
bit_set.rs Use SmallVec in bitsets 2023-03-21 22:20:09 +01:00
interval.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
lib.rs move things from rustc_target::abi to rustc_abi 2022-11-24 16:26:13 +03:30
vec.rs Rename IndexVec::lastlast_index 2023-03-29 00:27:24 -07:00