fix(text): hyphenate "runtime" adjectives

This commit is contained in:
r00ster91 2022-10-05 21:17:06 +02:00
parent 51d9db8569
commit 8e2aaf6aed
10 changed files with 19 additions and 19 deletions

View File

@ -23,7 +23,7 @@
//! size. The interfaces of these two types match exactly, except for fields.
//!
//! DynamicBitSet:
//! A bit set with runtime known size, backed by an allocated slice
//! A bit set with runtime-known size, backed by an allocated slice
//! of usize.
//!
//! DynamicBitSetUnmanaged:
@ -515,7 +515,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
};
}
/// A bit set with runtime known size, backed by an allocated slice
/// A bit set with runtime-known size, backed by an allocated slice
/// of usize. The allocator must be tracked externally by the user.
pub const DynamicBitSetUnmanaged = struct {
const Self = @This();
@ -843,7 +843,7 @@ pub const DynamicBitSetUnmanaged = struct {
}
};
/// A bit set with runtime known size, backed by an allocated slice
/// A bit set with runtime-known size, backed by an allocated slice
/// of usize. Thin wrapper around DynamicBitSetUnmanaged which keeps
/// track of the allocator instance.
pub const DynamicBitSet = struct {

View File

@ -3494,7 +3494,7 @@ fn freeExportList(gpa: Allocator, export_list: []*Export) void {
const data_has_safety_tag = @sizeOf(Zir.Inst.Data) != 8;
// TODO This is taking advantage of matching stage1 debug union layout.
// We need a better language feature for initializing a union with
// a runtime known tag.
// a runtime-known tag.
const Stage1DataLayout = extern struct {
data: [8]u8 align(@alignOf(Zir.Inst.Data)),
safety_tag: u8,

View File

@ -4326,7 +4326,7 @@ fn zirValidateDeref(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr
const msg = try sema.errMsg(
block,
src,
"values of type '{}' must be comptime-known, but operand value is runtime known",
"values of type '{}' must be comptime-known, but operand value is runtime-known",
.{elem_ty.fmt(sema.mod)},
);
errdefer msg.destroy(sema.gpa);
@ -22602,7 +22602,7 @@ fn validateRuntimeElemAccess(
const msg = try sema.errMsg(
block,
elem_index_src,
"values of type '{}' must be comptime-known, but index value is runtime known",
"values of type '{}' must be comptime-known, but index value is runtime-known",
.{parent_ty.fmt(sema.mod)},
);
errdefer msg.destroy(sema.gpa);
@ -27177,7 +27177,7 @@ fn cmpNumeric(
};
// TODO handle comparisons against lazy zero values
// Some values can be compared against zero without being runtime known or without forcing
// Some values can be compared against zero without being runtime-known or without forcing
// a full resolution of their value, for example `@sizeOf(@Frame(function))` is known to
// always be nonzero, and we benefit from not forcing the full evaluation and stack frame layout
// of this function if we don't need to.

View File

@ -1769,7 +1769,7 @@ fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.
return self.fail("TODO implement calling bitcasted functions", .{});
}
} else {
return self.fail("TODO implement calling runtime known function pointer", .{});
return self.fail("TODO implement calling runtime-known function pointer", .{});
}
} else if (self.bin_file.cast(link.File.Coff)) |_| {
return self.fail("TODO implement calling in COFF for {}", .{self.target.cpu.arch});

View File

@ -400,7 +400,7 @@ test "function callconv expression depends on generic parameter" {
comptime try S.doTheTest();
}
test "runtime known array index has best alignment possible" {
test "runtime-known array index has best alignment possible" {
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
// take full advantage of over-alignment

View File

@ -45,11 +45,11 @@ pub export fn entry() void {
// backend=llvm
//
// :11:22: error: comparison of 'void' with null
// :25:51: error: values of type 'anyopaque' must be comptime-known, but operand value is runtime known
// :25:51: error: values of type 'anyopaque' must be comptime-known, but operand value is runtime-known
// :25:51: note: opaque type 'anyopaque' has undefined size
// :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
// :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
// :25:51: note: use '*const fn(*anyopaque, usize, u29, u29, usize) error{OutOfMemory}![]u8' for a function pointer type
// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' must be comptime-known, but operand value is runtime known
// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' must be comptime-known, but operand value is runtime-known
// :25:51: note: use '*const fn(*anyopaque, []u8, u29, usize, u29, usize) ?usize' for a function pointer type
// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize) void' must be comptime-known, but operand value is runtime known
// :25:51: error: values of type 'fn(*anyopaque, []u8, u29, usize) void' must be comptime-known, but operand value is runtime-known
// :25:51: note: use '*const fn(*anyopaque, []u8, u29, usize) void' for a function pointer type

View File

@ -39,7 +39,7 @@ const Opaque = opaque {};
// :14:8: error: variable of type 'comptime_float' must be const or comptime
// :14:8: note: to modify this variable at runtime, it must be given an explicit fixed-size number type
// :18:8: error: variable of type '@TypeOf(null)' must be const or comptime
// :22:19: error: values of type 'tmp.Opaque' must be comptime-known, but operand value is runtime known
// :22:19: error: values of type 'tmp.Opaque' must be comptime-known, but operand value is runtime-known
// :22:19: note: opaque type 'tmp.Opaque' has undefined size
// :26:8: error: variable of type 'type' must be const or comptime
// :26:8: note: types are not available at runtime

View File

@ -11,6 +11,6 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :7:10: error: values of type '[2]tmp.Foo' must be comptime-known, but index value is runtime known
// :7:10: error: values of type '[2]tmp.Foo' must be comptime-known, but index value is runtime-known
// :3:8: note: struct requires comptime because of this field
// :3:8: note: types are not available at runtime

View File

@ -14,6 +14,6 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :9:51: error: values of type '[]const builtin.Type.StructField' must be comptime-known, but index value is runtime known
// :9:51: error: values of type '[]const builtin.Type.StructField' must be comptime-known, but index value is runtime-known
// :?:21: note: struct requires comptime because of this field
// :?:21: note: types are not available at runtime

View File

@ -24,9 +24,9 @@ pub export fn entry3() void {
// target=native
// backend=stage2
//
// :7:10: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
// :7:10: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :7:10: note: use '*const fn() void' for a function pointer type
// :15:18: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
// :15:18: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :15:17: note: use '*const fn() void' for a function pointer type
// :21:19: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime known
// :21:19: error: values of type '[2]fn() void' must be comptime-known, but index value is runtime-known
// :21:18: note: use '*const fn() void' for a function pointer type