Skip to content

Commit 1f26a18

Browse files
authored
Use intra-doc links for DelaySpanBugEmitted
Also improve the docs for it a bit.
1 parent 57c5f40 commit 1f26a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ use std::mem;
6666
use std::ops::{Bound, Deref};
6767
use std::sync::Arc;
6868

69-
/// A type that is not publicly constructable. This prevents people from making `TyKind::Error`
70-
/// except through `tcx.err*()`, which are in this module.
69+
/// A type that is not publicly constructable. This prevents people from making [`TyKind::Error`]s
70+
/// except through the error-reporting functions on a [`tcx`][TyCtxt].
7171
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, PartialOrd, Ord)]
7272
#[derive(TyEncodable, TyDecodable, HashStable)]
7373
pub struct DelaySpanBugEmitted(());

0 commit comments

Comments
 (0)