authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2024-10-27 20:42:00-07:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-28 08:17:31+00:00
log6415ff29d717ad10cd9e2bdae9e77677f8e1f8fa
treeb8247a72edd63d0d39dbecb1d83c978524c3e1f0
parent05b445a276536f6d62c20786d816f9f6444d20d8

remove `needs_mem_loc`

This field isn't used anymore and was related to old RLS

1 files changed, 0 insertions(+), 19 deletions(-)

lib/std/zig/BuiltinFn.zig-19
......@@ -124,17 +124,6 @@ pub const Tag = enum {
124124 work_group_id,
125125};
126126
127pub const MemLocRequirement = enum {
128 /// The builtin never needs a memory location.
129 never,
130 /// The builtin always needs a memory location.
131 always,
132 /// The builtin forwards the question to argument at index 0.
133 forward0,
134 /// The builtin forwards the question to argument at index 1.
135 forward1,
136};
137
138127pub const EvalToError = enum {
139128 /// The builtin cannot possibly evaluate to an error.
140129 never,
......@@ -146,8 +135,6 @@ pub const EvalToError = enum {
146135
147136tag: Tag,
148137
149/// Info about the builtin call's ability to take advantage of a result location pointer.
150needs_mem_loc: MemLocRequirement = .never,
151138/// Info about the builtin call's possibility of returning an error.
152139eval_to_error: EvalToError = .never,
153140/// `true` if the builtin call can be the left-hand side of an expression (assigned to).
......@@ -193,7 +180,6 @@ pub const list = list: {
193180 "@as",
194181 .{
195182 .tag = .as,
196 .needs_mem_loc = .forward1,
197183 .eval_to_error = .maybe,
198184 .param_count = 2,
199185 },
......@@ -230,7 +216,6 @@ pub const list = list: {
230216 "@bitCast",
231217 .{
232218 .tag = .bit_cast,
233 .needs_mem_loc = .forward0,
234219 .param_count = 1,
235220 },
236221 },
......@@ -311,7 +296,6 @@ pub const list = list: {
311296 "@call",
312297 .{
313298 .tag = .call,
314 .needs_mem_loc = .always,
315299 .eval_to_error = .maybe,
316300 .param_count = 3,
317301 },
......@@ -503,7 +487,6 @@ pub const list = list: {
503487 "@field",
504488 .{
505489 .tag = .field,
506 .needs_mem_loc = .always,
507490 .eval_to_error = .maybe,
508491 .param_count = 2,
509492 .allows_lvalue = true,
......@@ -817,7 +800,6 @@ pub const list = list: {
817800 "@src",
818801 .{
819802 .tag = .src,
820 .needs_mem_loc = .always,
821803 .param_count = 0,
822804 .illegal_outside_function = true,
823805 },
......@@ -987,7 +969,6 @@ pub const list = list: {
987969 "@unionInit",
988970 .{
989971 .tag = .union_init,
990 .needs_mem_loc = .always,
991972 .param_count = 3,
992973 },
993974 },