about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2024-09-15 23:26:51 +0200
committerLukas Markeffsky <@>2024-09-24 23:12:02 +0200
commitb62e72ce8c31bbfd028136570a5e46bee233d4f3 (patch)
tree12d22580cffb52b2e36d60fe9ee05daf49e3ff13
parent39f66baa68ed3ad0d60eb31020dd00ca2c05f811 (diff)
downloadrust-b62e72ce8c31bbfd028136570a5e46bee233d4f3.tar.gz
rust-b62e72ce8c31bbfd028136570a5e46bee233d4f3.zip
update doc comment
-rw-r--r--compiler/rustc_middle/src/mir/syntax.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs
index bba3aee820a..ae75f2d4187 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.