authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-10-05 21:17:06+02:00
committergravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-10-05 21:33:42+02:00
log8e2aaf6aed5213736f6cbbb374098e2394f19429
treee7385e628e35a662f2e5595ddd5aa32b66d08168
parent51d9db856978610c24b3fed50a9550455a2eb64b

fix(text): hyphenate "runtime" adjectives


10 files changed, 19 insertions(+), 19 deletions(-)

lib/std/bit_set.zig+3-3
......@@ -23,7 +23,7 @@
2323//! size. The interfaces of these two types match exactly, except for fields.
2424//!
2525//! DynamicBitSet:
26//! A bit set with runtime known size, backed by an allocated slice
26//! A bit set with runtime-known size, backed by an allocated slice
2727//! of usize.
2828//!
2929//! DynamicBitSetUnmanaged:
......@@ -515,7 +515,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
515515 };
516516}
517517
518/// A bit set with runtime known size, backed by an allocated slice
518/// A bit set with runtime-known size, backed by an allocated slice
519519/// of usize. The allocator must be tracked externally by the user.
520520pub const DynamicBitSetUnmanaged = struct {
521521 const Self = @This();
......@@ -843,7 +843,7 @@ pub const DynamicBitSetUnmanaged = struct {
843843 }
844844};
845845
846/// A bit set with runtime known size, backed by an allocated slice
846/// A bit set with runtime-known size, backed by an allocated slice
847847/// of usize. Thin wrapper around DynamicBitSetUnmanaged which keeps
848848/// track of the allocator instance.
849849pub const DynamicBitSet = struct {
src/Module.zig+1-1
......@@ -3494,7 +3494,7 @@ fn freeExportList(gpa: Allocator, export_list: []*Export) void {
34943494const data_has_safety_tag = @sizeOf(Zir.Inst.Data) != 8;
34953495// TODO This is taking advantage of matching stage1 debug union layout.
34963496// We need a better language feature for initializing a union with
3497// a runtime known tag.
3497// a runtime-known tag.
34983498const Stage1DataLayout = extern struct {
34993499 data: [8]u8 align(@alignOf(Zir.Inst.Data)),
35003500 safety_tag: u8,
src/Sema.zig+3-3
......@@ -4326,7 +4326,7 @@ fn zirValidateDeref(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr
43264326 const msg = try sema.errMsg(
43274327 block,
43284328 src,
4329 "values of type '{}' must be comptime-known, but operand value is runtime known",
4329 "values of type '{}' must be comptime-known, but operand value is runtime-known",
43304330 .{elem_ty.fmt(sema.mod)},
43314331 );
43324332 errdefer msg.destroy(sema.gpa);
......@@ -22602,7 +22602,7 @@ fn validateRuntimeElemAccess(
2260222602 const msg = try sema.errMsg(
2260322603 block,
2260422604 elem_index_src,
22605 "values of type '{}' must be comptime-known, but index value is runtime known",
22605 "values of type '{}' must be comptime-known, but index value is runtime-known",
2260622606 .{parent_ty.fmt(sema.mod)},
2260722607 );
2260822608 errdefer msg.destroy(sema.gpa);
......@@ -27177,7 +27177,7 @@ fn cmpNumeric(
2717727177 };
2717827178
2717927179 // TODO handle comparisons against lazy zero values
27180 // Some values can be compared against zero without being runtime known or without forcing
27180 // Some values can be compared against zero without being runtime-known or without forcing
2718127181 // a full resolution of their value, for example `@sizeOf(@Frame(function))` is known to
2718227182 // always be nonzero, and we benefit from not forcing the full evaluation and stack frame layout
2718327183 // of this function if we don't need to.
src/arch/riscv64/CodeGen.zig+1-1
......@@ -1769,7 +1769,7 @@ fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.
17691769 return self.fail("TODO implement calling bitcasted functions", .{});
17701770 }
17711771 } else {
1772 return self.fail("TODO implement calling runtime known function pointer", .{});
1772 return self.fail("TODO implement calling runtime-known function pointer", .{});
17731773 }
17741774 } else if (self.bin_file.cast(link.File.Coff)) |_| {
17751775 return self.fail("TODO implement calling in COFF for {}", .{self.target.cpu.arch});
test/behavior/align.zig+1-1
......@@ -400,7 +400,7 @@ test "function callconv expression depends on generic parameter" {
400400 comptime try S.doTheTest();
401401}
402402
403test "runtime known array index has best alignment possible" {
403test "runtime-known array index has best alignment possible" {
404404 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
405405
406406 // take full advantage of over-alignment
test/cases/compile_errors/dereference_anyopaque.zig+4-4
......@@ -45,11 +45,11 @@ pub export fn entry() void {
4545// backend=llvm
4646//
4747// :11:22: error: comparison of 'void' with null
48// :25:51: error: values of type 'anyopaque' must be comptime-known, but operand value is runtime known
48// :25:51: error: values of type 'anyopaque' must be comptime-known, but operand value is runtime-known
4949// :25:51: note: opaque type 'anyopaque' has undefined size
50// :25:51: error: values of type 'fn(*anyopaque, usize, u29, u29, usize) error{OutOfMemory}![]u8' must be comptime-known, but operand value is runtime known
50// :25:51: error: values of type 'fn(*anyopaque, usize, u29, u29, usize) error{OutOfMemory}![]u8' must be comptime-known, but operand value is runtime-known
5151// :25:51: note: use '*const fn(*anyopaque, usize, u29, u29, usize) error{OutOfMemory}![]u8' for a function pointer type
52// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' must be comptime-known, but operand value is runtime known
52// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' must be comptime-known, but operand value is runtime-known
5353// :25:51: note: use '*const fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' for a function pointer type
54// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize) void' must be comptime-known, but operand value is runtime known
54// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize) void' must be comptime-known, but operand value is runtime-known
5555// :25:51: note: use '*const fn(*anyopaque, []u8, u29, usize) void' for a function pointer type
test/cases/compile_errors/non-const_variables_of_things_that_require_const_variables.zig+1-1
......@@ -39,7 +39,7 @@ const Opaque = opaque {};
3939// :14:8: error: variable of type 'comptime_float' must be const or comptime
4040// :14:8: note: to modify this variable at runtime, it must be given an explicit fixed-size number type
4141// :18:8: error: variable of type '@TypeOf(null)' must be const or comptime
42// :22:19: error: values of type 'tmp.Opaque' must be comptime-known, but operand value is runtime known
42// :22:19: error: values of type 'tmp.Opaque' must be comptime-known, but operand value is runtime-known
4343// :22:19: note: opaque type 'tmp.Opaque' has undefined size
4444// :26:8: error: variable of type 'type' must be const or comptime
4545// :26:8: note: types are not available at runtime
test/cases/compile_errors/non-inline_for_loop_on_a_type_that_requires_comptime.zig+1-1
......@@ -11,6 +11,6 @@ export fn entry() void {
1111// backend=stage2
1212// target=native
1313//
14// :7:10: error: values of type '[2]tmp.Foo' must be comptime-known, but index value is runtime known
14// :7:10: error: values of type '[2]tmp.Foo' must be comptime-known, but index value is runtime-known
1515// :3:8: note: struct requires comptime because of this field
1616// :3:8: note: types are not available at runtime
test/cases/compile_errors/runtime_index_into_comptime_type_slice.zig+1-1
......@@ -14,6 +14,6 @@ export fn entry() void {
1414// backend=stage2
1515// target=native
1616//
17// :9:51: error: values of type '[]const builtin.Type.StructField' must be comptime-known, but index value is runtime known
17// :9:51: error: values of type '[]const builtin.Type.StructField' must be comptime-known, but index value is runtime-known
1818// :?:21: note: struct requires comptime because of this field
1919// :?:21: note: types are not available at runtime
test/cases/compile_errors/runtime_indexing_comptime_array.zig+3-3
......@@ -24,9 +24,9 @@ pub export fn entry3() void {
2424// target=native
2525// backend=stage2
2626//
27// :7:10: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
27// :7:10: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
2828// :7:10: note: use '*const fn() void' for a function pointer type
29// :15:18: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
29// :15:18: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
3030// :15:17: note: use '*const fn() void' for a function pointer type
31// :21:19: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
31// :21:19: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
3232// :21:18: note: use '*const fn() void' for a function pointer type