rust/compiler/rustc_next_trait_solver/src
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
..
solve Rollup merge of #136069 - yotamofek:next-solver-slice, r=compiler-errors 2025-02-06 21:56:25 +01:00
canonicalizer.rs introduce ty::Value 2025-01-30 17:47:44 +01:00
coherence.rs Begin to implement type system layer of unsafe binders 2024-12-22 21:57:57 +00:00
delegate.rs Pass spans around new solver 2025-02-05 18:32:06 +00:00
lib.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
resolve.rs Remove associated type based effects logic 2024-10-24 09:46:36 +00:00