rust/compiler/rustc_next_trait_solver
Matthias Krüger ae1410e2d8
Rollup merge of #136069 - yotamofek:next-solver-slice, r=compiler-errors
Simplify slice indexing in next trait solver

Unless I'm missing something:
- no need to explicitly specify the end of the slice as the end of the index range
- the `assert` is redundant since the indexing will panic for the same condition

I think this change simplifies it a bit. Also replaced the `for` loop of `push`es with a call to `extend` with an iterator. Might improve performance since it knows how many elements will be added beforehand and can pre-reserve room?

r? `@compiler-errors` , I think
2025-02-06 21:56:25 +01:00
..
src Rollup merge of #136069 - yotamofek:next-solver-slice, r=compiler-errors 2025-02-06 21:56:25 +01:00
Cargo.toml remove unnecessary collection 2025-01-20 18:51:45 +01:00