-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert into_iter changes to fix chacha20.
- Loading branch information
1 parent
737aa3f
commit c49e5f0
Showing
1 changed file
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
module Core.Iter.Traits.Collect | ||
|
||
class into_iterator (v_Self: Type0) = { | ||
// f_Item:Type0; | ||
f_IntoIter:Type0; | ||
f_IntoIter_Iterator:Core.Iter.Traits.Iterator.t_Iterator f_IntoIter; | ||
f_into_iter_pre:v_Self -> bool; | ||
f_into_iter_post:v_Self -> f_IntoIter -> bool; | ||
f_into_iter:x0: v_Self | ||
-> Prims.Pure f_IntoIter (f_into_iter_pre x0) (fun result -> f_into_iter_post x0 result) | ||
class into_iterator self = { | ||
f_IntoIter: Type0; | ||
// f_Item: Type0; | ||
f_into_iter: self -> f_IntoIter; | ||
} | ||
|
||
let t_IntoIterator = into_iterator | ||
|
||
unfold instance impl t {| iterator_t: Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = { | ||
unfold instance impl t {| Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = { | ||
f_IntoIter = t; | ||
f_into_iter = id; | ||
f_IntoIter_Iterator = iterator_t; | ||
f_into_iter_pre = (fun (self: t) -> true); | ||
f_into_iter_post = (fun (self: t) (out: t) -> true) | ||
} |