about summary refs log tree commit diff
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2021-02-24 10:36:43 +0300
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2021-02-24 10:37:53 +0300
commit9c5f684e83018f990d067ea44d5204ca3762b722 (patch)
treeae6a33c99da228136221c28853fcb50984590c1d
parent5ac6935974d72e28c0b9c49af45f771de1b4d4a0 (diff)
downloadrust-9c5f684e83018f990d067ea44d5204ca3762b722.tar.gz
rust-9c5f684e83018f990d067ea44d5204ca3762b722.zip
Turn Pick field comments into documentation
-rw-r--r--compiler/rustc_typeck/src/check/method/probe.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/compiler/rustc_typeck/src/check/method/probe.rs b/compiler/rustc_typeck/src/check/method/probe.rs
index 09863e9e7c9..52cdbde0e98 100644
--- a/compiler/rustc_typeck/src/check/method/probe.rs
+++ b/compiler/rustc_typeck/src/check/method/probe.rs
@@ -159,21 +159,21 @@ pub struct Pick<'tcx> {
     pub kind: PickKind<'tcx>,
     pub import_ids: SmallVec<[LocalDefId; 1]>,
 
-    // Indicates that the source expression should be autoderef'd N times
-    //
-    // A = expr | *expr | **expr | ...
+    /// Indicates that the source expression should be autoderef'd N times
+    ///
+    ///     A = expr | *expr | **expr | ...
     pub autoderefs: usize,
 
-    // Indicates that an autoref is applied after the optional autoderefs
-    //
-    // B = A | &A | &mut A
+    /// Indicates that an autoref is applied after the optional autoderefs
+    ///
+    ///     B = A | &A | &mut A
     pub autoref: Option<hir::Mutability>,
 
-    // Indicates that the source expression should be "unsized" to a
-    // target type. This should probably eventually go away in favor
-    // of just coercing method receivers.
-    //
-    // C = B | unsize(B)
+    /// Indicates that the source expression should be "unsized" to a
+    /// target type. This should probably eventually go away in favor
+    /// of just coercing method receivers.
+    ///
+    ///     C = B | unsize(B)
     pub unsize: Option<Ty<'tcx>>,
 }