Rollup merge of #139086 - meithecatte:expr-use-visitor-cleanup, r=compiler-errors
Various cleanup in ExprUseVisitor These are the non-behavior-changing commits from #138961.
This commit is contained in:
commit
12165fce87
3 changed files with 62 additions and 100 deletions
|
@ -53,7 +53,10 @@ pub struct Projection<'tcx> {
|
|||
pub kind: ProjectionKind,
|
||||
}
|
||||
|
||||
/// A `Place` represents how a value is located in memory.
|
||||
/// A `Place` represents how a value is located in memory. This does not
|
||||
/// always correspond to a syntactic place expression. For example, when
|
||||
/// processing a pattern, a `Place` can be used to refer to the sub-value
|
||||
/// currently being inspected.
|
||||
///
|
||||
/// This is an HIR version of [`rustc_middle::mir::Place`].
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, TyEncodable, TyDecodable, HashStable)]
|
||||
|
@ -67,7 +70,10 @@ pub struct Place<'tcx> {
|
|||
pub projections: Vec<Projection<'tcx>>,
|
||||
}
|
||||
|
||||
/// A `PlaceWithHirId` represents how a value is located in memory.
|
||||
/// A `PlaceWithHirId` represents how a value is located in memory. This does not
|
||||
/// always correspond to a syntactic place expression. For example, when
|
||||
/// processing a pattern, a `Place` can be used to refer to the sub-value
|
||||
/// currently being inspected.
|
||||
///
|
||||
/// This is an HIR version of [`rustc_middle::mir::Place`].
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash, TyEncodable, TyDecodable, HashStable)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue