| ... | ... | @@ -59,13 +59,7 @@ pub fn ArrayListAligned(comptime T: type, comptime alignment: ?u29) type { |
| 59 | 59 | self.allocator.free(self.allocatedSlice()); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | | /// 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 | | |
| 62 | pub const span = @compileError("deprecated: use `items` field directly"); |
| 69 | 63 | pub const toSlice = @compileError("deprecated: use `items` field directly"); |
| 70 | 64 | pub const toSliceConst = @compileError("deprecated: use `items` field directly"); |
| 71 | 65 | pub const at = @compileError("deprecated: use `list.items[i]`"); |