| ... | @@ -59,13 +59,7 @@ pub fn ArrayListAligned(comptime T: type, comptime alignment: ?u29) type { | ... | @@ -59,13 +59,7 @@ pub fn ArrayListAligned(comptime T: type, comptime alignment: ?u29) type { |
| 59 | self.allocator.free(self.allocatedSlice()); | 59 | self.allocator.free(self.allocatedSlice()); |
| 60 | } | 60 | } |
| 61 | | 61 | |
| 62 | /// Deprecated: use `items` field directly. | 62 | pub const span = @compileError("deprecated: use `items` field directly"); |
| 63 | /// Return contents as a slice. Only valid while the list | | |
| 64 | /// doesn't change size. | | |
| 65 | pub fn span(self: anytype) @TypeOf(self.items) { | | |
| 66 | return self.items; | | |
| 67 | } | | |
| 68 | | | |
| 69 | pub const toSlice = @compileError("deprecated: use `items` field directly"); | 63 | pub const toSlice = @compileError("deprecated: use `items` field directly"); |
| 70 | pub const toSliceConst = @compileError("deprecated: use `items` field directly"); | 64 | pub const toSliceConst = @compileError("deprecated: use `items` field directly"); |
| 71 | pub const at = @compileError("deprecated: use `list.items[i]`"); | 65 | pub const at = @compileError("deprecated: use `list.items[i]`"); |