Skip to content

Commit b62e72c

Browse files
author
Lukas Markeffsky
committed
update doc comment
1 parent 39f66ba commit b62e72c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: compiler/rustc_middle/src/mir/syntax.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,8 @@ pub struct CopyNonOverlapping<'tcx> {
579579
pub count: Operand<'tcx>,
580580
}
581581

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

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

0 commit comments

Comments
 (0)