Skip to content

Commit 5c78825

Browse files
Yoorkinbobzhang
authored andcommitted
refactor: clean up @alert deprecated pragmas
1 parent 47a4456 commit 5c78825

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

buffer/buffer.mbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
///| Extensible buffer.
16-
/// @alert deprecated "Use type `T` instead"
16+
#deprecated("Use type `T` instead")
1717
pub(all) typealias Buffer = T
1818

1919
///|

builtin/arrayview.mbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/// assert_eq!(view[0], 2)
2424
/// assert_eq!(view.length(), 3)
2525
/// ```
26-
/// @alert deprecated "use @array.View instead"
26+
#deprecated("use @array.View instead")
2727
struct ArrayView[T] {
2828
buf : UninitializedArray[T]
2929
start : Int

builtin/builtin.mbti

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl[T : Hash] Hash for Array[T]
133133
impl[X : Show] Show for Array[X]
134134
impl[X : ToJson] ToJson for Array[X]
135135

136-
type ArrayView[T] //deprecated
136+
type ArrayView[T]
137137
impl ArrayView {
138138
length[T](Self[T]) -> Int
139139
op_as_view[T](Self[T], start~ : Int = .., end? : Int) -> Self[T]

json/types.mbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
///|
16-
/// @alert deprecated "Definition of json is moved to builtin package, use `Json` instead"
16+
#deprecated("Definition of json is moved to builtin package, use `Json` instead")
1717
pub(all) typealias JsonValue = Json
1818

1919
///|

strconv/decimal.mbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/// reference:
2020
/// - <https://nigeltao.github.io/blog/2020/parse-number-f64-simple.html>
2121
/// - <https://nigeltao.github.io/blog/2020/eisel-lemire.html>
22-
/// @alert deprecated "Decimal will be changed to private. Use `@strconv.parse_double` instead"
22+
#deprecated("Decimal will be changed to private. Use `@strconv.parse_double` instead")
2323
struct Decimal {
2424
digits : FixedArray[Byte]
2525
mut digits_num : Int

strconv/strconv.mbti

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn shift(Decimal, Int) -> Unit
2323
fn to_double(Decimal) -> Double!StrConvError //deprecated
2424

2525
// Types and methods
26-
type Decimal //deprecated
26+
type Decimal
2727
impl Decimal {
2828
#deprecated
2929
from_int64(Int64) -> Self

0 commit comments

Comments
 (0)