Sema: replace backticks with single quotes
Most error messages already use single quotes for everything so this makes the remaining ones consistent.
This commit is contained in:
@@ -20,4 +20,4 @@ export fn entry() void {
|
||||
//
|
||||
// :11:27: error: expected type 'u8', found '?u8'
|
||||
// :11:27: note: cannot convert optional to payload type
|
||||
// :11:27: note: consider using `.?`, `orelse`, or `if`
|
||||
// :11:27: note: consider using '.?', 'orelse', or 'if'
|
||||
|
||||
@@ -10,4 +10,4 @@ fn foo() !void {
|
||||
// target=native
|
||||
//
|
||||
// :2:12: error: error is discarded
|
||||
// :2:12: note: consider using `try`, `catch`, or `if`
|
||||
// :2:12: note: consider using 'try', 'catch', or 'if'
|
||||
|
||||
@@ -26,7 +26,7 @@ export fn quux() u32 {
|
||||
// :11:15: error: expected type 'u32', found '@typeInfo(@typeInfo(@TypeOf(tmp.bar)).Fn.return_type.?).ErrorUnion.error_set!u32'
|
||||
// :10:17: note: function cannot return an error
|
||||
// :11:15: note: cannot convert error union to payload type
|
||||
// :11:15: note: consider using `try`, `catch`, or `if`
|
||||
// :11:15: note: consider using 'try', 'catch', or 'if'
|
||||
// :15:14: error: expected type 'u32', found '@typeInfo(@typeInfo(@TypeOf(tmp.bar)).Fn.return_type.?).ErrorUnion.error_set!u32'
|
||||
// :15:14: note: cannot convert error union to payload type
|
||||
// :15:14: note: consider using `try`, `catch`, or `if`
|
||||
// :15:14: note: consider using 'try', 'catch', or 'if'
|
||||
|
||||
@@ -8,4 +8,4 @@ fn bar() anyerror!i32 { return 0; }
|
||||
// target=native
|
||||
//
|
||||
// :2:14: error: error is ignored
|
||||
// :2:14: note: consider using `try`, `catch`, or `if`
|
||||
// :2:14: note: consider using 'try', 'catch', or 'if'
|
||||
|
||||
@@ -18,8 +18,8 @@ fn bad() anyerror!void {
|
||||
// target=native
|
||||
//
|
||||
// :2:24: error: error is ignored
|
||||
// :2:24: note: consider using `try`, `catch`, or `if`
|
||||
// :2:24: note: consider using 'try', 'catch', or 'if'
|
||||
// :6:25: error: error is ignored
|
||||
// :6:25: note: consider using `try`, `catch`, or `if`
|
||||
// :6:25: note: consider using 'try', 'catch', or 'if'
|
||||
// :10:25: error: error is ignored
|
||||
// :10:25: note: consider using `try`, `catch`, or `if`
|
||||
// :10:25: note: consider using 'try', 'catch', or 'if'
|
||||
|
||||
@@ -10,5 +10,5 @@ export fn foo() void {
|
||||
//
|
||||
// :4:9: error: expected type '*anyopaque', found '?*anyopaque'
|
||||
// :4:9: note: cannot convert optional to payload type
|
||||
// :4:9: note: consider using `.?`, `orelse`, or `if`
|
||||
// :4:9: note: consider using '.?', 'orelse', or 'if'
|
||||
// :4:9: note: '?*anyopaque' could have null values which are illegal in type '*anyopaque'
|
||||
|
||||
@@ -20,4 +20,4 @@ export fn entry() void {
|
||||
//
|
||||
// :12:25: error: expected type 'u32', found '@typeInfo(@typeInfo(@TypeOf(tmp.get_uval)).Fn.return_type.?).ErrorUnion.error_set!u32'
|
||||
// :12:25: note: cannot convert error union to payload type
|
||||
// :12:25: note: consider using `try`, `catch`, or `if`
|
||||
// :12:25: note: consider using 'try', 'catch', or 'if'
|
||||
|
||||
@@ -17,4 +17,4 @@ pub const Container = struct {
|
||||
//
|
||||
// :3:36: error: expected type 'i32', found '?i32'
|
||||
// :3:36: note: cannot convert optional to payload type
|
||||
// :3:36: note: consider using `.?`, `orelse`, or `if`
|
||||
// :3:36: note: consider using '.?', 'orelse', or 'if'
|
||||
|
||||
@@ -17,4 +17,4 @@ pub const Container = struct {
|
||||
//
|
||||
// :3:36: error: expected type 'i32', found '?i32'
|
||||
// :3:36: note: cannot convert optional to payload type
|
||||
// :3:36: note: consider using `.?`, `orelse`, or `if`
|
||||
// :3:36: note: consider using '.?', 'orelse', or 'if'
|
||||
|
||||
Reference in New Issue
Block a user