|
| 1 | +# Triage meeting on 2019-03-04 |
| 2 | + |
| 3 | +## Info |
| 4 | + |
| 5 | +[Zulip thread.](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04) |
| 6 | + |
| 7 | +## Summary |
| 8 | + |
| 9 | +We followed up on the goals from last time. |
| 10 | + |
| 11 | +### Lifetime problems around async-await |
| 12 | + |
| 13 | +We |
| 14 | +[discussed](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159939976) |
| 15 | +how we found a way to resolve the `async fn` complications by changing |
| 16 | +the async fn desugaring, and hence don't need any deep trait |
| 17 | +action. We are [still |
| 18 | +interested](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940028) |
| 19 | +in trying to find a way to solve the "captures problem" for impl |
| 20 | +Trait, however, and alexreg and nikomatsakis may do some follow-up |
| 21 | +there. |
| 22 | + |
| 23 | +### Explore use cases for lazy normalization |
| 24 | + |
| 25 | +Some investigation occurred. [Current plan](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940188) |
| 26 | +to continue documenting the way that the current normalization code |
| 27 | +plays out and to hold some sort of meeting to document that and walk |
| 28 | +through it. That meeting will hopefully happen this week and will be |
| 29 | +recorded. |
| 30 | + |
| 31 | +### Explorse use cases for GATs |
| 32 | + |
| 33 | +[Not a lot of progress here.](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940294) (Yet!) |
| 34 | + |
| 35 | +Once we **do** make progress, though, the [logical next |
| 36 | +step](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940943) |
| 37 | +is probably to try and model those use cases some in Chalk, as well as |
| 38 | +to investigate more deeply how rustc could be extended to handle the |
| 39 | +cases natively (without blocking on full chalk integration). |
| 40 | + |
| 41 | +### Dig into the chalk transition |
| 42 | + |
| 43 | +We [have a meeting scheduled for tomorrow](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940496) with the RLS 2.0 folks, planning to talk about how the type checker is working in that context. |
| 44 | + |
| 45 | +[**We are thinking that integrating Chalk first into the RLS 2.0 |
| 46 | +project may be a better idea than starting with |
| 47 | +rustc**](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940552), |
| 48 | +particularly as it can help get RLS 2.0 to a "working product" faster, |
| 49 | +but also because we may be able to use that to pursue the idea of |
| 50 | +sharing more code between chalk + compiler than we could readily do |
| 51 | +with rustc. Specifically, we should be able to have: |
| 52 | + |
| 53 | +- a library to share the definition of types between chalk + RLS 2.0 |
| 54 | +- shared code for lowering traits + impls into logical rules |
| 55 | + |
| 56 | +We also talked about other possible work on chalk, in particular the |
| 57 | +idea of chalk-specific refactorings but also building a [benchmarking |
| 58 | +harness](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159940894) |
| 59 | +for the `chalk-engine` crate. |
| 60 | + |
| 61 | +## Miscellaneous discussion |
| 62 | + |
| 63 | +There are a few other things we talked about this week: |
| 64 | + |
| 65 | +- [the idea of a research intern working on chalk and what they might |
| 66 | +do](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159941464) |
| 67 | +- [how we might support `async fn` in traits without full GAT support](https://rust-lang.zulipchat.com/#narrow/stream/144729-t-compiler.2Fwg-traits/topic/weekly.20meeting.202019-03-04/near/159942222) |
| 68 | + |
| 69 | +## Plans for the coming week |
| 70 | + |
| 71 | +We settled on the following plans for the coming week: |
| 72 | + |
| 73 | +So plans for this week are: |
| 74 | + |
| 75 | +- Describe how normalization works today and hold a (recorded) call to |
| 76 | + try and explain it to others. Trace through some of the examples |
| 77 | + where lazy norm would be helpful. (nikomatsakis) |
| 78 | +- Explore the use cases for GATs (aturon, centril) |
| 79 | +- Discuss RLS 2.0 type checker and contemplate how to integrate chalk |
| 80 | + into it (nikomatsakis, scalexm) |
| 81 | +- Maybe discuss other chalk improvements? (e.g., benchmarking harness) (nikomatsakis) |
| 82 | +- Maybe discuss the "lifetime capture" problem in impl Trait? (nikomatsakis, alexreg) |
| 83 | + |
0 commit comments