rust/compiler/rustc_mir_transform/src/coverage
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
..
test_macros Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
counters.rs Consistently use dominates instead of is_dominated_by 2023-01-21 12:15:02 +01:00
debug.rs Remove DropAndReplace terminator 2023-03-07 14:25:22 +01:00
graph.rs Rollup merge of #108902 - lcnr:do-while-sus, r=davidtwco,Nilstrieb 2023-03-10 21:15:46 +01:00
mod.rs Only compute the crate hash when necessary. 2023-03-08 09:30:22 +11:00
query.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
spans.rs Introduce a no-op PlaceMention statement for let _ =. 2023-03-09 17:45:13 +00:00
tests.rs Rename IndexVec::lastlast_index 2023-03-29 00:27:24 -07:00