Skip to content

Commit 7436eb9

Browse files
authored
Update anon-const-substs.md
1 parent 28b2c9a commit 7436eb9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

design-docs/anon-const-substs.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Anon consts substs
22

3-
Currently locked behind `feature(lazy_normalization_consts)` or `feature(const_generics)`, we do not supply anonymous constants
3+
Currently locked behind `feature(generic_const_exprs)`, we do not supply anonymous constants
44
with their parents generics.
55

66
Doing so is needed if we want to ever support more complex generic expressions in anonymous constants.
77

88
## Known blockers
99

10-
Unless said otherwise, "currently" means "with `feature(const_generics)` enabled" for the rest of this document.
10+
Unless said otherwise, "currently" means "with `feature(generic_const_exprs)` enabled" for the rest of this document.
1111

1212
### Unused substs
1313

@@ -41,16 +41,15 @@ fn main() {
4141

4242
Discussed in the following meetings: [2021.02.09](../meetings/2021.02.09-lazy-norm.md), [2021.02.16](../meetings/2021.02.16-lazy-norm.md), [2021.03.09](../meetings/2021.03.09-unused-substs-impl.md)
4343

44-
A solution has been found and is currently getting implemented in [#87280](https://github.com/rust-lang/rust/pull/87280)
44+
A potential solution has been merged with [#87280](https://github.com/rust-lang/rust/pull/87280) and reverted in [#92805](https://github.com/rust-lang/rust/pull/92805) as the required changes negatively impacted large parts of the compiler, even these unrelated to const generics. A potentially nicer solution would be to forbid all parameters which aren't explicitly mentioned by anonymous constants. It isn't yet clear how to best implement this.
4545

4646
### Consts in where bounds can reference themselves
4747

4848
This causes query cycles for code that should compile and already compiles on stable
4949

5050
[#79356](https://github.com/rust-lang/rust/issues/79356)
5151
```rust
52-
#![feature(const_generics)]
53-
#![allow(incomplete_features)]
52+
#![feature(generic_const_exprs)]
5453

5554
struct Foo<T>(T);
5655

0 commit comments

Comments
 (0)