diff options
| author | lcnr <rust@lcnr.de> | 2024-07-24 12:58:44 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2024-07-24 13:08:53 +0200 |
| commit | 30f52b28d07eb53bedc12417e56d4855b71d2e02 (patch) | |
| tree | 74579f13745282ed33ead893aba14fe37ccdf72c /src/doc/rustc-dev-guide | |
| parent | 61f29ae008d153fe809ef74c08a4e4d7484f4617 (diff) | |
| download | rust-30f52b28d07eb53bedc12417e56d4855b71d2e02.tar.gz rust-30f52b28d07eb53bedc12417e56d4855b71d2e02.zip | |
fix link
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/solve/opaque-types.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/solve/opaque-types.md b/src/doc/rustc-dev-guide/src/solve/opaque-types.md index 5a9920a497c..fa7dde2e6b2 100644 --- a/src/doc/rustc-dev-guide/src/solve/opaque-types.md +++ b/src/doc/rustc-dev-guide/src/solve/opaque-types.md @@ -50,7 +50,8 @@ with the arguments of any opaque type already in the opaque types storage. If so previously stored type with the expected type of this `normalizes-to` call: [source][eq-prev][^1]. If not, we insert the expected type in the opaque types storage: [source][insert-storage][^2]. -Finally, we check whether the item bounds of the opaque hold for the expected type: [source]. +Finally, we check whether the item bounds of the opaque hold for the expected type: +[source][item-bounds-ck]. [norm]: https://github.com/rust-lang/rust/blob/384d26fc7e3bdd7687cc17b2662b091f6017ec2a/compiler/rustc_trait_selection/src/solve/normalizes_to/opaque_types.rs#L13 [coherence-example]: https://github.com/rust-lang/rust/blob/master/tests/ui/type-alias-impl-trait/coherence_different_hidden_ty.rs @@ -116,4 +117,4 @@ fn go(i: usize) -> impl Future<Output = ()> + Send + 'static { } } } -``` \ No newline at end of file +``` |
