about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamelid <37223377+camelid@users.noreply.github.com>2020-09-14 10:32:42 -0700
committerGitHub <noreply@github.com>2020-09-14 10:32:42 -0700
commit1f26a189551ea037e769d27c433b4eaf8c3091b2 (patch)
treeacbab1cf66f2c86024ee15653d425973c12fbcc6
parent57c5f40cf4d7685538f6e3a405612f939e0a5e47 (diff)
downloadrust-1f26a189551ea037e769d27c433b4eaf8c3091b2.tar.gz
rust-1f26a189551ea037e769d27c433b4eaf8c3091b2.zip
Use intra-doc links for `DelaySpanBugEmitted`
Also improve the docs for it a bit.
-rw-r--r--compiler/rustc_middle/src/ty/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index aacf61e5b42..56746666e2f 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -66,8 +66,8 @@ use std::mem;
 use std::ops::{Bound, Deref};
 use std::sync::Arc;
 
-/// A type that is not publicly constructable. This prevents people from making `TyKind::Error`
-/// except through `tcx.err*()`, which are in this module.
+/// A type that is not publicly constructable. This prevents people from making [`TyKind::Error`]s
+/// except through the error-reporting functions on a [`tcx`][TyCtxt].
 #[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
 #[derive(TyEncodable, TyDecodable, HashStable)]
 pub struct DelaySpanBugEmitted(());