authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-03-08 19:18:06+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-03-08 19:18:06+11:00
logb85bb152bf4c84a298200703d9a005ffcd1b24a0
tree5423517c56e80a0be7d48e4f3b48a5e279ddb1f9
parent9e60c89601ab205cd3e63215b318beb89ad1b471
signaturelock-open Commit is signed but in an unrecognized format.

Fix grammar in error message


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

src/ir.cpp+1-1
...@@ -30246,7 +30246,7 @@ static Error ir_resolve_lazy_raw(AstNode *source_node, ZigValue *val) {...@@ -30246,7 +30246,7 @@ static Error ir_resolve_lazy_raw(AstNode *source_node, ZigValue *val) {
30246 return ErrorSemanticAnalyzeFail;30246 return ErrorSemanticAnalyzeFail;
30247 } else if (elem_type->id == ZigTypeIdOpaque) {30247 } else if (elem_type->id == ZigTypeIdOpaque) {
30248 ir_add_error(ira, &lazy_ptr_type->elem_type->base,30248 ir_add_error(ira, &lazy_ptr_type->elem_type->base,
30249 buf_sprintf("C pointers cannot point opaque types"));30249 buf_sprintf("C pointers cannot point to opaque types"));
30250 return ErrorSemanticAnalyzeFail;30250 return ErrorSemanticAnalyzeFail;
30251 } else if (lazy_ptr_type->is_allowzero) {30251 } else if (lazy_ptr_type->is_allowzero) {
30252 ir_add_error(ira, &lazy_ptr_type->elem_type->base,30252 ir_add_error(ira, &lazy_ptr_type->elem_type->base,
test/compile_errors.zig+1-1
...@@ -1592,7 +1592,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {...@@ -1592,7 +1592,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
1592 \\ var y: [*c]c_void = x;1592 \\ var y: [*c]c_void = x;
1593 \\}1593 \\}
1594 , &[_][]const u8{1594 , &[_][]const u8{
1595 "tmp.zig:3:16: error: C pointers cannot point opaque types",1595 "tmp.zig:3:16: error: C pointers cannot point to opaque types",
1596 });1596 });
15971597
1598 cases.add("directly embedding opaque type in struct and union",1598 cases.add("directly embedding opaque type in struct and union",