authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-26 01:54:18+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-26 01:57:59+02:00
logef14d8ad3f5815f8edf0eeb6cf3736cb6fded70a
treeadc845b17f543092264604f122f45a03e56ddc31
parentea2032fa0f40c34e73fa75805698dd16d4494f4f
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target.Query: deprecate allocDescription()

This just delegates to zigTriple() and has no clear reason for existing. It also isn't used anywhere in the codebase.

1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/Target/Query.zig+1-2
...@@ -533,9 +533,8 @@ pub fn serializeCpuAlloc(q: Query, ally: Allocator) Allocator.Error![]u8 {...@@ -533,9 +533,8 @@ pub fn serializeCpuAlloc(q: Query, ally: Allocator) Allocator.Error![]u8 {
533 return buffer.toOwnedSlice();533 return buffer.toOwnedSlice();
534}534}
535535
536/// Deprecated; use `zigTriple` instead. Will be removed in 0.18.0.
536pub fn allocDescription(self: Query, allocator: Allocator) ![]u8 {537pub fn allocDescription(self: Query, allocator: Allocator) ![]u8 {
537 // TODO is there anything else worthy of the description that is not
538 // already captured in the triple?
539 return self.zigTriple(allocator);538 return self.zigTriple(allocator);
540}539}
541540