From 3a6f518f9a0709c8a8b4d4decea92aba2967635b Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Sun, 15 Sep 2024 23:26:51 +0200 Subject: [PATCH] update doc comment --- compiler/rustc_middle/src/mir/syntax.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs index c04723ba99e0..7ef26f55c919 100644 --- a/compiler/rustc_middle/src/mir/syntax.rs +++ b/compiler/rustc_middle/src/mir/syntax.rs @@ -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 { @@ -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.