rust-analyzer/crates/hir-ty/src
bors d08f1c3dff Auto merge of #13382 - lowr:fix/reorder-dyn-bounds-on-render, r=lowr
fix: reorder dyn bounds on render

Fixes #13368

#13192 changed the order of dyn bounds, violating the [contract](3a69435af7/crates/hir-ty/src/display.rs (L896-L901)) with `write_bounds_like_dyn_trait()` on render. The projection bounds are expected to come right after the trait bound they are accompanied with.

Although the reordering procedure can be made a bit more efficient, I opted for relying only on the [invariants](3a69435af7/crates/hir-ty/src/lower.rs (L995-L998)) currently documented in `lower_dyn_trait()`. It's not the hottest path and dyn bounds tend to be short so I believe it shouldn't hurt performance noticeably.
2022-10-11 11:44:32 +00:00
..
consteval Added more consteval tests and fixed consteval result 2022-09-12 20:20:45 +01:00
diagnostics Implemented basic enum const eval 2022-09-12 20:19:13 +01:00
infer Adapt to the new generic parameter/argument order 2022-10-03 02:40:07 +09:00
tests Auto merge of #13382 - lowr:fix/reorder-dyn-bounds-on-render, r=lowr 2022-10-11 11:44:32 +00:00
autoderef.rs Adapt to the new generic parameter/argument order 2022-10-03 02:40:07 +09:00
builder.rs fix: treat enum variants as generic item on their own 2022-10-04 00:07:34 +09:00
chalk_db.rs Adapt to the new generic parameter/argument order 2022-10-03 02:40:07 +09:00
chalk_ext.rs refactor: use cast() instead of interning GenericArgData 2022-10-02 22:40:55 +09:00
consteval.rs Simplify 2022-09-20 17:12:10 +02:00
db.rs Auto merge of #13209 - lowr:feat/inference-for-generator, r=Veykril 2022-09-26 09:28:41 +00:00
diagnostics.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
display.rs fix: reorder dyn bounds on render 2022-10-11 20:26:11 +09:00
infer.rs Adapt to the new generic parameter/argument order 2022-10-03 02:40:07 +09:00
inhabitedness.rs Add docs 2022-09-02 17:01:51 +05:00
interner.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
lib.rs fix: handle lifetime variables in projection normalization 2022-09-12 22:52:58 +09:00
lower.rs fix: use BoundVars from current generic scope 2022-10-05 00:49:00 +09:00
mapping.rs Implement type inference for generator and yield expressions 2022-09-13 02:42:52 +09:00
method_resolution.rs Adapt to the new generic parameter/argument order 2022-10-03 02:40:07 +09:00
primitive.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
test_db.rs Make use of NoHash hashing for FileId and CrateId 2022-08-25 20:41:49 +02:00
tests.rs Fix default enum representation not being isize 2022-09-20 17:50:13 +02:00
tls.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
traits.rs Remove unnecessary Option 2022-09-13 02:20:35 +09:00
utils.rs Remove hack 2022-10-03 02:40:12 +09:00
walk.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00