Skip to content

Commit 6c990f4

Browse files
committed
fix doc issues
1 parent a58d8f6 commit 6c990f4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/rustc_middle/src/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mod syntax;
6363
pub use syntax::*;
6464
mod switch_sources;
6565
pub mod tcx;
66-
pub mod terminator;
66+
mod terminator;
6767
pub use terminator::*;
6868

6969
pub mod traversal;

compiler/rustc_middle/src/mir/syntax.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ pub enum MirPhase {
5353
/// query.
5454
ConstsPromoted = 2,
5555
/// Beginning with this phase, the following variants are disallowed:
56-
/// * [`TerminatorKind::DropAndReplace`](terminator::TerminatorKind::DropAndReplace)
57-
/// * [`TerminatorKind::FalseUnwind`](terminator::TerminatorKind::FalseUnwind)
58-
/// * [`TerminatorKind::FalseEdge`](terminator::TerminatorKind::FalseEdge)
56+
/// * [`TerminatorKind::DropAndReplace`]
57+
/// * [`TerminatorKind::FalseUnwind`]
58+
/// * [`TerminatorKind::FalseEdge`]
5959
/// * [`StatementKind::FakeRead`]
6060
/// * [`StatementKind::AscribeUserType`]
6161
/// * [`Rvalue::Ref`] with `BorrowKind::Shallow`
@@ -86,8 +86,8 @@ pub enum MirPhase {
8686
/// types across a yield point will lead to ICEs becaues of this.
8787
///
8888
/// Beginning with this phase, the following variants are disallowed:
89-
/// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
90-
/// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
89+
/// * [`TerminatorKind::Yield`]
90+
/// * [`TerminatorKind::GeneratorDrop`]
9191
/// * [`ProjectionElem::Deref`] of `Box`
9292
GeneratorsLowered = 6,
9393
Optimized = 7,
@@ -712,7 +712,7 @@ pub type AssertMessage<'tcx> = AssertKind<Operand<'tcx>>;
712712
///
713713
/// 1. The address in memory that the place refers to.
714714
/// 2. The provenance with which the place is being accessed.
715-
/// 3. The type of the place and an optional variant index. See [`PlaceTy`][tcx::PlaceTy].
715+
/// 3. The type of the place and an optional variant index. See [`PlaceTy`][super::tcx::PlaceTy].
716716
/// 4. Optionally, some metadata. This exists if and only if the type of the place is not `Sized`.
717717
///
718718
/// We'll give a description below of how all pieces of the place except for the provenance are

0 commit comments

Comments
 (0)