Skip to content

Commit 9c5f684

Browse files
committed
Turn Pick field comments into documentation
1 parent 5ac6935 commit 9c5f684

File tree

1 file changed

+11
-11
lines changed
  • compiler/rustc_typeck/src/check/method

1 file changed

+11
-11
lines changed

compiler/rustc_typeck/src/check/method/probe.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,21 @@ pub struct Pick<'tcx> {
159159
pub kind: PickKind<'tcx>,
160160
pub import_ids: SmallVec<[LocalDefId; 1]>,
161161

162-
// Indicates that the source expression should be autoderef'd N times
163-
//
164-
// A = expr | *expr | **expr | ...
162+
/// Indicates that the source expression should be autoderef'd N times
163+
///
164+
/// A = expr | *expr | **expr | ...
165165
pub autoderefs: usize,
166166

167-
// Indicates that an autoref is applied after the optional autoderefs
168-
//
169-
// B = A | &A | &mut A
167+
/// Indicates that an autoref is applied after the optional autoderefs
168+
///
169+
/// B = A | &A | &mut A
170170
pub autoref: Option<hir::Mutability>,
171171

172-
// Indicates that the source expression should be "unsized" to a
173-
// target type. This should probably eventually go away in favor
174-
// of just coercing method receivers.
175-
//
176-
// C = B | unsize(B)
172+
/// Indicates that the source expression should be "unsized" to a
173+
/// target type. This should probably eventually go away in favor
174+
/// of just coercing method receivers.
175+
///
176+
/// C = B | unsize(B)
177177
pub unsize: Option<Ty<'tcx>>,
178178
}
179179

0 commit comments

Comments
 (0)