|
| 1 | +# cg meeting 2021-03-02 |
| 2 | + |
| 3 | +What can we stabilize without having to supply generic params to anon consts? |
| 4 | + |
| 5 | +- loosen the ty/const param ordering restriction |
| 6 | +- const param defaults |
| 7 | + - const evaluatable bounds? |
| 8 | + - start out by not supplying any generic params? |
| 9 | + - should we allow `const N: usize, const M: usize = N`, |
| 10 | + - requires the hack already used for const args |
| 11 | + - seems fine, requires stabilization report |
| 12 | + - mention lazy norm backcompat |
| 13 | +- const param types |
| 14 | + - what types are allowed? |
| 15 | + - structural match |
| 16 | + - do we require explicit opt in? [pcg issue](https://github.com/rust-lang/project-const-generics/issues/6) |
| 17 | + - consensus seems to be yes |
| 18 | + - open question: are there worrying interactions with structural match? |
| 19 | + - without val trees |
| 20 | + - c like enums? seems quite helpful and should already work |
| 21 | + - concern: might feel a bit arbitrary to users [msg](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/meeting.202021-03-02/near/228445035) |
| 22 | + - val trees :sparkles: |
| 23 | + - generic param types |
| 24 | + - requires changes to `WithOptConstParam` |
| 25 | + - what types are allowed? |
| 26 | + - structural match |
| 27 | + - do we require explicit opt in? [pcg issue](https://github.com/rust-lang/project-const-generics/issues/6) |
| 28 | +- `_` as array len and const argument |
| 29 | + - rn always gets interpreted as a type |
| 30 | + - add `hir::GenericArg::Infer` |
| 31 | + - should we go ahead and solve this for paths/unit(`()`) at the same time? |
| 32 | + - not neccessarily, if only `_` is easier |
| 33 | +# Not talked about during the meeting |
| 34 | + |
| 35 | +- inline consts |
| 36 | + - typeck together with their parent |
| 37 | + - const evaluatable bounds? |
| 38 | + - require them to not depend on params after typeck for now? |
0 commit comments