Skip to content

Commit a863290

Browse files
authored
Link normalization chapter
1 parent ceae66b commit a863290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/typing_parameter_envs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ where
3232
<T as Trait>::Assoc: Clone,
3333
{}
3434
```
35-
If we were conceptually inside of `foo` (for example, type-checking or linting it) we would use this `ParamEnv` everywhere that we interact with the type system. This would allow things such as normalization (TODO: write a chapter about normalization and link it), evaluating generic constants, and proving where clauses/goals, to rely on `T` being sized, implementing `Trait`, etc.
35+
If we were conceptually inside of `foo` (for example, type-checking or linting it) we would use this `ParamEnv` everywhere that we interact with the type system. This would allow things such as [normalization], evaluating generic constants, and proving where clauses/goals, to rely on `T` being sized, implementing `Trait`, etc.
3636

3737
A more concrete example:
3838
```rust
@@ -70,6 +70,7 @@ fn foo2<T>(a: T) {
7070
[predicates_of]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_analysis/collect/predicates_of/fn.predicates_of.html
7171
[method_pred_entailment]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_analysis/check/compare_impl_item/fn.compare_method_predicate_entailment.html
7272
[query]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.param_env
73+
[normalization]: normalization.md
7374

7475
### Acquiring a `ParamEnv`
7576

0 commit comments

Comments
 (0)