fix doc issues
This commit is contained in:
parent
a58d8f6616
commit
6c990f48af
@ -63,7 +63,7 @@ mod syntax;
|
|||||||
pub use syntax::*;
|
pub use syntax::*;
|
||||||
mod switch_sources;
|
mod switch_sources;
|
||||||
pub mod tcx;
|
pub mod tcx;
|
||||||
pub mod terminator;
|
mod terminator;
|
||||||
pub use terminator::*;
|
pub use terminator::*;
|
||||||
|
|
||||||
pub mod traversal;
|
pub mod traversal;
|
||||||
|
@ -53,9 +53,9 @@ pub enum MirPhase {
|
|||||||
/// query.
|
/// query.
|
||||||
ConstsPromoted = 2,
|
ConstsPromoted = 2,
|
||||||
/// Beginning with this phase, the following variants are disallowed:
|
/// Beginning with this phase, the following variants are disallowed:
|
||||||
/// * [`TerminatorKind::DropAndReplace`](terminator::TerminatorKind::DropAndReplace)
|
/// * [`TerminatorKind::DropAndReplace`]
|
||||||
/// * [`TerminatorKind::FalseUnwind`](terminator::TerminatorKind::FalseUnwind)
|
/// * [`TerminatorKind::FalseUnwind`]
|
||||||
/// * [`TerminatorKind::FalseEdge`](terminator::TerminatorKind::FalseEdge)
|
/// * [`TerminatorKind::FalseEdge`]
|
||||||
/// * [`StatementKind::FakeRead`]
|
/// * [`StatementKind::FakeRead`]
|
||||||
/// * [`StatementKind::AscribeUserType`]
|
/// * [`StatementKind::AscribeUserType`]
|
||||||
/// * [`Rvalue::Ref`] with `BorrowKind::Shallow`
|
/// * [`Rvalue::Ref`] with `BorrowKind::Shallow`
|
||||||
@ -86,8 +86,8 @@ pub enum MirPhase {
|
|||||||
/// types across a yield point will lead to ICEs becaues of this.
|
/// types across a yield point will lead to ICEs becaues of this.
|
||||||
///
|
///
|
||||||
/// Beginning with this phase, the following variants are disallowed:
|
/// Beginning with this phase, the following variants are disallowed:
|
||||||
/// * [`TerminatorKind::Yield`](terminator::TerminatorKind::Yield)
|
/// * [`TerminatorKind::Yield`]
|
||||||
/// * [`TerminatorKind::GeneratorDrop`](terminator::TerminatorKind::GeneratorDrop)
|
/// * [`TerminatorKind::GeneratorDrop`]
|
||||||
/// * [`ProjectionElem::Deref`] of `Box`
|
/// * [`ProjectionElem::Deref`] of `Box`
|
||||||
GeneratorsLowered = 6,
|
GeneratorsLowered = 6,
|
||||||
Optimized = 7,
|
Optimized = 7,
|
||||||
@ -712,7 +712,7 @@ pub type AssertMessage<'tcx> = AssertKind<Operand<'tcx>>;
|
|||||||
///
|
///
|
||||||
/// 1. The address in memory that the place refers to.
|
/// 1. The address in memory that the place refers to.
|
||||||
/// 2. The provenance with which the place is being accessed.
|
/// 2. The provenance with which the place is being accessed.
|
||||||
/// 3. The type of the place and an optional variant index. See [`PlaceTy`][tcx::PlaceTy].
|
/// 3. The type of the place and an optional variant index. See [`PlaceTy`][super::tcx::PlaceTy].
|
||||||
/// 4. Optionally, some metadata. This exists if and only if the type of the place is not `Sized`.
|
/// 4. Optionally, some metadata. This exists if and only if the type of the place is not `Sized`.
|
||||||
///
|
///
|
||||||
/// We'll give a description below of how all pieces of the place except for the provenance are
|
/// We'll give a description below of how all pieces of the place except for the provenance are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user