Skip to content

Commit

Permalink
Merge pull request #534 from hacspec/parent-bounds
Browse files Browse the repository at this point in the history
doc(frontend): document `copied.rs` file
  • Loading branch information
W95Psp authored Feb 28, 2024
2 parents a2e54a4 + 1c545ff commit e54c845
Show file tree
Hide file tree
Showing 3 changed files with 253 additions and 46 deletions.
4 changes: 4 additions & 0 deletions frontend/exporter/src/constant_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ pub struct ConstantFieldExpr {
pub value: ConstantExpr,
}

/// Rustc has different representation for constants: one for MIR
/// ([`rustc_middle::mir::ConstantKind`]), one for the type system
/// ([`rustc_middle::ty::ConstKind`]). For simplicity hax maps those
/// two construct to one same `ConstantExpr` type.
pub type ConstantExpr = Decorated<ConstantExprKind>;

impl From<ConstantFieldExpr> for FieldExpr {
Expand Down
Loading

0 comments on commit e54c845

Please sign in to comment.