Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions argparse/arg_spec.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/// - `SetTrue` / `SetFalse` set a boolean value.
/// - `Count` increments `Matches.flag_counts`.
/// - `Help` / `Version` display output and exit successfully when triggered.
#warnings("-deprecated_syntax")
pub(all) enum FlagAction {
SetTrue
SetFalse
Expand All @@ -31,6 +32,7 @@ pub(all) enum FlagAction {
///
/// - `Set` keeps the last provided value.
/// - `Append` keeps all provided values in order.
#warnings("-deprecated_syntax")
pub(all) enum OptionAction {
Set
Append
Expand Down
1 change: 1 addition & 0 deletions argparse/matches.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ using @debug {trait Debug, type Repr}

///|
/// Where a value/flag came from.
#warnings("-deprecated_syntax")
pub enum ValueSource {
Argv
Env
Expand Down
1 change: 1 addition & 0 deletions argparse/value_range.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

///|
/// Number-of-values constraint for an argument.
#warnings("-deprecated_syntax")
pub struct ValueRange {
priv lower : Int
priv upper : Int?
Expand Down
5 changes: 2 additions & 3 deletions bigint/bigint_js.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,10 @@ pub extern "js" fn BigInt::from_uint(x : UInt) -> BigInt =

///|
pub extern "js" fn BigInt::from_int64(x : Int64) -> BigInt =
#|(x) => BigInt(x.hi) * 0x100000000n + BigInt(x.lo >>> 0)
#|(x) => BigInt.asIntN(64, x)

///|
pub extern "js" fn BigInt::from_uint64(x : UInt64) -> BigInt =
#|(x) => BigInt(x.hi >>> 0) * 0x100000000n + BigInt(x.lo >>> 0)
pub fn BigInt::from_uint64(x : UInt64) -> BigInt = "%identity"

///|
pub extern "js" fn BigInt::is_zero(self : BigInt) -> Bool =
Expand Down
1 change: 1 addition & 0 deletions bool/bool_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test "Bool hash function" {
}

///|
#warnings("-deprecated_syntax")
test "Bool hash function with struct" {
struct TestHash {
flag : Bool
Expand Down
1 change: 1 addition & 0 deletions builtin/autoloc.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub fn SourceLoc::to_json_string(self : SourceLoc) -> String {
/// array of optional source locations, where each element corresponds to an
/// argument's location in the source code. Used internally by the compiler for
/// error reporting and debugging purposes.
#warnings("-deprecated_syntax")
pub(all) struct ArgsLoc(Array[SourceLoc?]) derive(Show)

///|
Expand Down
1 change: 1 addition & 0 deletions builtin/char_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

///|
#warnings("-deprecated_syntax")
enum H {
A(Char)
} derive(Show)
Expand Down
122 changes: 0 additions & 122 deletions builtin/double_to_int64_js.mbt

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions builtin/failure.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/// @json.json_inspect(err, content=["Failure", "Test assertion failed"])
/// }
/// ```
#warnings("-deprecated_syntax")
pub(all) suberror Failure {
Failure(String)
} derive(ToJson, Show)
Expand Down
1 change: 1 addition & 0 deletions builtin/feature_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

///|
#warnings("-deprecated_syntax")
struct RangeImpl[T] {
lo : T
hi : T
Expand Down
1 change: 1 addition & 0 deletions builtin/guard_feature_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

///|
#warnings("-deprecated_syntax")
enum Expr {
Add(Expr, Expr)
Sub(Expr, Expr)
Expand Down
Loading
Loading