@@ -53,7 +53,10 @@ pub struct Projection<'tcx> {
53
53
pub kind : ProjectionKind ,
54
54
}
55
55
56
- /// A `Place` represents how a value is located in memory.
56
+ /// A `Place` represents how a value is located in memory. This does not
57
+ /// always correspond to a syntactic place expression. For example, when
58
+ /// processing a pattern, a `Place` can be used to refer to the sub-value
59
+ /// currently being inspected.
57
60
///
58
61
/// This is an HIR version of [`rustc_middle::mir::Place`].
59
62
#[ derive( Clone , Debug , PartialEq , Eq , Hash , TyEncodable , TyDecodable , HashStable ) ]
@@ -67,7 +70,10 @@ pub struct Place<'tcx> {
67
70
pub projections : Vec < Projection < ' tcx > > ,
68
71
}
69
72
70
- /// A `PlaceWithHirId` represents how a value is located in memory.
73
+ /// A `PlaceWithHirId` represents how a value is located in memory. This does not
74
+ /// always correspond to a syntactic place expression. For example, when
75
+ /// processing a pattern, a `Place` can be used to refer to the sub-value
76
+ /// currently being inspected.
71
77
///
72
78
/// This is an HIR version of [`rustc_middle::mir::Place`].
73
79
#[ derive( Clone , Debug , PartialEq , Eq , Hash , TyEncodable , TyDecodable , HashStable ) ]
0 commit comments