-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reenable warning 22 across the codebase #14361
Changes from all commits
88391e5
f9b4b23
b0a2016
6fb6008
08d463c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
open Core_kernel | ||
open Mina_base_import | ||
open Snark_params | ||
open Snarky_backendless | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,11 +236,15 @@ module type Full = sig | |
|
||
module V2 : sig | ||
type t = | ||
( Payload.Stable.V2.t | ||
, Public_key.Stable.V1.t | ||
, Signature.Stable.V1.t ) | ||
( Payload.Stable.Latest.t | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should do this. A versioned type should be built from other specific versioned types. If those other types add new versions, this type will change. It is true that the new version linter will detect such changes, but still. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is also true that this is a signature, not an implementation. But still ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed these to get around the ppx_version warning, but have since disabled it, so I can undo all of these changes to refer to the latest versions. |
||
, Public_key.Stable.Latest.t | ||
, Signature.Stable.Latest.t ) | ||
Poly.Stable.V1.t | ||
[@@deriving sexp, hash, yojson, version] | ||
[@@deriving sexp, hash, version] | ||
|
||
val to_yojson : t -> Yojson.Safe.t | ||
|
||
val of_yojson : Yojson.Safe.t -> (t, string) result | ||
|
||
include Comparable.S with type t := t | ||
|
||
|
@@ -266,5 +270,5 @@ module type Full = sig | |
end | ||
end] | ||
|
||
include S with type t = Stable.V2.t and type t_v1 = Stable.V1.t | ||
include S with type t = Stable.V2.t and type t_v1 := Stable.V1.t | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these types omit the
Stable.Latest
, soGlobal_slot_since_genesis.t
, for example. That's the same type.