Rollup merge of #108624 - Nilstrieb:move-it-up, r=WaffleLapkin
Make `ExprKind` the first field in `thir::Expr` This makes its `Debug` impl print it first which is useful, as it's the most important part when looking at an expr.
This commit is contained in:
commit
7c4e9dd63d
2 changed files with 12 additions and 12 deletions
|
@ -237,6 +237,9 @@ pub struct LocalVarId(pub hir::HirId);
|
|||
/// A THIR expression.
|
||||
#[derive(Clone, Debug, HashStable)]
|
||||
pub struct Expr<'tcx> {
|
||||
/// kind of expression
|
||||
pub kind: ExprKind<'tcx>,
|
||||
|
||||
/// The type of this expression
|
||||
pub ty: Ty<'tcx>,
|
||||
|
||||
|
@ -246,9 +249,6 @@ pub struct Expr<'tcx> {
|
|||
|
||||
/// span of the expression in the source
|
||||
pub span: Span,
|
||||
|
||||
/// kind of expression
|
||||
pub kind: ExprKind<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, HashStable)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue