From ef14d8ad3f5815f8edf0eeb6cf3736cb6fded70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 26 May 2026 01:54:18 +0200 Subject: [PATCH] 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. --- lib/std/Target/Query.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/Target/Query.zig b/lib/std/Target/Query.zig index b9d1bbb35f11c597319a737e6c35b7a4038e5a9e..2f6b9fb718b8452065d972395342f453261d09ee 100644 --- a/lib/std/Target/Query.zig +++ b/lib/std/Target/Query.zig @@ -533,9 +533,8 @@ pub fn serializeCpuAlloc(q: Query, ally: Allocator) Allocator.Error![]u8 { return buffer.toOwnedSlice(); } +/// Deprecated; use `zigTriple` instead. Will be removed in 0.18.0. pub fn allocDescription(self: Query, allocator: Allocator) ![]u8 { - // TODO is there anything else worthy of the description that is not - // already captured in the triple? return self.zigTriple(allocator); } -- 2.54.0