File tree Expand file tree Collapse file tree 4 files changed +167
-278
lines changed
CoqOfRust/examples/default/examples/rust_book/custom_types Expand file tree Collapse file tree 4 files changed +167
-278
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ Definition main (τ : list Ty.t) (α : list Value.t) : M :=
216
216
let * bottom_right :=
217
217
let * α0 := M.read UnsupportedLiteral in
218
218
let * α1 := M.read point in
219
- M.alloc (M.struct_record_update (α1) [ ("x", α0) ]) in
219
+ M.alloc (M.struct_record_update α1 [ ("x", α0) ]) in
220
220
let * _ :=
221
221
let * _ :=
222
222
let * α0 := M.get_function "std::io::stdio::_print" [] in
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ pub(crate) enum Expression<'a> {
89
89
name : Option < String > ,
90
90
is_monadic : bool ,
91
91
ty : Option < Rc < Expression < ' a > > > ,
92
- value : Rc < Expression < ' a > > ,
92
+ init : Rc < Expression < ' a > > ,
93
93
body : Rc < Expression < ' a > > ,
94
94
} ,
95
95
Match {
@@ -433,7 +433,7 @@ impl<'a> Expression<'a> {
433
433
name,
434
434
is_monadic,
435
435
ty,
436
- value ,
436
+ init ,
437
437
body,
438
438
} => {
439
439
// NOTE: The following variable is intended to bypass self-referencing issue for borrow checkers.
@@ -461,10 +461,10 @@ impl<'a> Expression<'a> {
461
461
text ( " :=" ) ,
462
462
] ) ,
463
463
line ( ) ,
464
- value . to_doc ( false ) , // init
464
+ init . to_doc ( false ) ,
465
465
text ( " in" ) ,
466
466
] ) ,
467
- line ( ) ,
467
+ hardline ( ) ,
468
468
body. to_doc ( false ) ,
469
469
] ) ,
470
470
)
You can’t perform that action at this time.
0 commit comments