Skip to content

Commit

Permalink
update doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed Sep 24, 2024
1 parent 39f66ba commit b62e72c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/rustc_middle/src/mir/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ pub struct CopyNonOverlapping<'tcx> {
pub count: Operand<'tcx>,
}

/// Represents how a [`TerminatorKind::Call`] was constructed, used for diagnostics.
/// Represents how a [`TerminatorKind::Call`] was constructed.
/// Used only for diagnostics.
#[derive(Clone, Copy, TyEncodable, TyDecodable, Debug, PartialEq, Hash, HashStable)]
#[derive(TypeFoldable, TypeVisitable)]
pub enum CallSource {
Expand Down Expand Up @@ -1419,7 +1420,8 @@ pub enum CastKind {
Transmute,
}

/// Represents how a [`CastKind::PointerCoercion`] was constructed, used for diagnostics.
/// Represents how a [`CastKind::PointerCoercion`] was constructed.
/// Used only for diagnostics.
#[derive(Clone, Copy, Debug, PartialEq, Eq, TyEncodable, TyDecodable, Hash, HashStable)]
pub enum CoercionSource {
/// The coercion was manually written by the user with an `as` cast.
Expand Down

0 comments on commit b62e72c

Please sign in to comment.