Skip to content

Commit 610708e

Browse files
authored
Merge pull request #1353 from cryspen/fix-try-into
fix(proof-libs/F*): fix name `f_TryInto`
2 parents 1a37137 + 9ade8d4 commit 610708e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proof-libs/fstar/core/Core.Convert.fst

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
module Core.Convert
33
open Rust_primitives
44

5-
class try_into_tc self t = {
5+
class t_TryInto self t = {
66
[@@@FStar.Tactics.Typeclasses.no_method]
77
f_Error: Type0;
88
f_try_into: self -> Core.Result.t_Result t f_Error
99
}
1010

11-
instance impl_6 (t: Type0) (len: usize): try_into_tc (t_Slice t) (t_Array t len) = {
11+
instance impl_6 (t: Type0) (len: usize): t_TryInto (t_Slice t) (t_Array t len) = {
1212
f_Error = Core.Array.t_TryFromSliceError;
1313
f_try_into = (fun (s: t_Slice t) ->
1414
if Core.Slice.impl__len s = len
@@ -17,14 +17,14 @@ instance impl_6 (t: Type0) (len: usize): try_into_tc (t_Slice t) (t_Array t len)
1717
)
1818
}
1919

20-
instance impl_6_refined (t: Type0) (len: usize): try_into_tc (s: t_Slice t {Core.Slice.impl__len s == len}) (t_Array t len) = {
20+
instance impl_6_refined (t: Type0) (len: usize): t_TryInto (s: t_Slice t {Core.Slice.impl__len s == len}) (t_Array t len) = {
2121
f_Error = Core.Array.t_TryFromSliceError;
2222
f_try_into = (fun (s: t_Slice t {Core.Slice.impl__len s == len}) ->
2323
Core.Result.Result_Ok (s <: t_Array t len)
2424
)
2525
}
2626

27-
instance integer_try_into (t:inttype) (t':inttype) : try_into_tc (int_t t) (int_t t') = {
27+
instance integer_try_into (t:inttype) (t':inttype) : t_TryInto (int_t t) (int_t t') = {
2828
f_Error = Core.Num.Error.t_TryFromIntError;
2929
f_try_into = (fun (x: int_t t) ->
3030
if range (v #t x) t'

0 commit comments

Comments
 (0)