about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorStan Manilov <stanislav.manilov@gmail.com>2025-05-26 15:39:25 +0300
committerGitHub <noreply@github.com>2025-05-26 15:39:25 +0300
commitb73dfdfbd350052e8a45046ad25b1c97a1825146 (patch)
tree667e026a2094bbb409614186c73189a97d753960 /src/doc
parentd5b3f8dba3dad0d2ed1a7fecfa35ba7a523ff50f (diff)
downloadrust-b73dfdfbd350052e8a45046ad25b1c97a1825146.tar.gz
rust-b73dfdfbd350052e8a45046ad25b1c97a1825146.zip
Link normalization chapter
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/typing_parameter_envs.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/typing_parameter_envs.md b/src/doc/rustc-dev-guide/src/typing_parameter_envs.md
index a8f4059827f..e21bc5155da 100644
--- a/src/doc/rustc-dev-guide/src/typing_parameter_envs.md
+++ b/src/doc/rustc-dev-guide/src/typing_parameter_envs.md
@@ -32,7 +32,7 @@ where
     <T as Trait>::Assoc: Clone,
 {}
 ```
-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.
+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.
 
 A more concrete example:
 ```rust
@@ -70,6 +70,7 @@ fn foo2<T>(a: T) {
 [predicates_of]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_analysis/collect/predicates_of/fn.predicates_of.html
 [method_pred_entailment]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_analysis/check/compare_impl_item/fn.compare_method_predicate_entailment.html
 [query]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.param_env
+[normalization]: normalization.md
 
 ### Acquiring a `ParamEnv`