Andrew Kelley
|
c84548e71d
|
fix @compileLog having unintended side effects
closes #1459
|
2018-09-22 10:46:22 -04:00 |
|
Andrew Kelley
|
5c15c5fc48
|
add compile error for slice of undefined slice
closes #1293
|
2018-09-22 10:04:47 -04:00 |
|
Andrew Kelley
|
2e27407161
|
stage1: unify 2 implementations of pointer deref
I found out there were accidentally two code paths
in zig ir for pointer dereference. So this should
fix a few bugs.
closes #1486
|
2018-09-21 18:47:12 -04:00 |
|
Andrew Kelley
|
7c5e3e1f8e
|
fixups
|
2018-09-21 14:15:58 -04:00 |
|
Andrew Kelley
|
5a21d3dce0
|
Merge branch 'BitByteOffsetOfs' of https://github.com/raulgrell/zig into raulgrell-BitByteOffsetOfs
|
2018-09-21 13:10:21 -04:00 |
|
Andrew Kelley
|
9c8dfadbb1
|
add compile error for casting const array to mutable slice
See #1565
|
2018-09-20 12:24:51 -04:00 |
|
Andrew Kelley
|
c1af360532
|
add compile error for slice.*.len
closes #1372
|
2018-09-18 16:32:40 -04:00 |
|
Andrew Kelley
|
b16229da1d
|
add compile error for @ptrCast 0 bit type to non-0 bit type
|
2018-09-17 19:41:11 -04:00 |
|
Andrew Kelley
|
78a9a465a3
|
add compile error for non-optional types compared against null
closes #1539
|
2018-09-17 18:58:50 -04:00 |
|
Andrew Kelley
|
3f776af3fa
|
fix alignment of structs
closes #1248
closes #1052
closes #1154
|
2018-09-14 19:08:59 -04:00 |
|
Andrew Kelley
|
c06a61e9bf
|
remove this . add @This() .
closes #1283
|
2018-09-13 16:34:33 -04:00 |
|
Andrew Kelley
|
7c3636aaa3
|
remove the scope parameter of setFloatMode
also document that scopes inherit this value. See #367
See #1283
|
2018-09-13 15:46:34 -04:00 |
|
Andrew Kelley
|
ac0cda8df8
|
add compile error for merging non- error sets
closes #1509
|
2018-09-13 13:48:41 -04:00 |
|
Andrew Kelley
|
52f4e934a9
|
fix llvm assertion and missing compile error
|
2018-09-10 22:44:27 -04:00 |
|
raulgrell
|
09a1162af5
|
builtin functions: @byteOffsetOf and @bitOffsetOf
|
2018-09-07 22:49:19 +01:00 |
|
Andrew Kelley
|
b18af37c57
|
fix crash when var init has compile error
and then the var is referenced
closes #1483
|
2018-09-07 15:17:24 -04:00 |
|
Andrew Kelley
|
6632d85e5f
|
stage1: improve handling of generic fn proto type expr
closes #902
|
2018-09-05 21:21:59 -04:00 |
|
Andrew Kelley
|
1d8b8ad687
|
add compile error for using outer scoped runtime variables
from a fn defined inside it. closes #876
|
2018-09-05 20:32:06 -04:00 |
|
Andrew Kelley
|
b517bea734
|
allow comptime_int to @floatToInt
|
2018-09-05 18:01:48 -04:00 |
|
hfcc
|
768d1fc539
|
Added compilation error when a non-float is given to @floatToInt()
|
2018-09-05 23:31:25 +02:00 |
|
Andrew Kelley
|
c87a576cb5
|
stage1 compile error instead of crashing for unsupported comptime ptr cast
See #955
|
2018-09-05 15:53:36 -04:00 |
|
Andrew Kelley
|
a76a72469b
|
stage1: fix crash when invalid type used in array type
closes #1186
|
2018-09-05 10:43:35 -04:00 |
|
Andrew Kelley
|
869167fc6d
|
compile error for @noInlineCall on an inline fn
closes #1133
|
2018-09-04 17:38:48 -04:00 |
|
Andrew Kelley
|
68db9d5074
|
add compile error for comptime control flow inside runtime block
closes #834
|
2018-09-04 15:28:35 -04:00 |
|
Andrew Kelley
|
b65cca37ce
|
add test coverage for invalid switch expression parameter
closes #604
|
2018-08-28 15:48:39 -04:00 |
|
Andrew Kelley
|
901b5c1566
|
add compile error for function prototype with no body
closes #1231
|
2018-08-28 15:39:32 -04:00 |
|
Andrew Kelley
|
009e90f446
|
fix @typeInfo unable to distinguish compile error vs no-payload
closes #1421
closes #1426
|
2018-08-27 17:13:34 -04:00 |
|
kristopher tate
|
298abbcff8
|
better support for _ identifier
* disallow variable declaration of `_`
* prevent `_` from shadowing itself
* prevent read access of `_`
closes #1204
closes #1320
|
2018-08-03 02:57:17 -04:00 |
|
Andrew Kelley
|
895f262a55
|
pull request fixups
* clean up parser code
* fix stage2 parse and render code
* remove redundant test
* make stage1 compile tests leaner
|
2018-08-02 14:15:31 -04:00 |
|
kristopher tate
|
51955a5ca2
|
test/compile_errors.zig: update test to reflect that the promise symbol is no in scope with suspend;
Tracking Issue #1296 ;
|
2018-08-02 17:02:14 +09:00 |
|
kristopher tate
|
13ec5db234
|
test/compile_errors.zig: @handle() in non-async function
Tracking Issue #1296 ;
|
2018-08-02 16:50:08 +09:00 |
|
kristopher tate
|
c546f750f1
|
test/compile_errors.zig: @handle() called outside of function definition;
Tracking Issue #1296 ;
|
2018-08-02 16:50:08 +09:00 |
|
Andrew Kelley
|
2cbad364c1
|
add compile error for ignoring return value of while loop bodies
closes #1049
|
2018-07-26 18:29:07 -04:00 |
|
Andrew Kelley
|
fd575fe1f3
|
add compile error for missing parameter name of generic function
|
2018-07-25 18:15:55 -04:00 |
|
Andrew Kelley
|
84195467ad
|
add compile error for non-inline for loop on comptime type
|
2018-07-25 17:08:55 -04:00 |
|
Andrew Kelley
|
29e19ace36
|
fix logic for determining whether param requires comptime
closes #778
closes #1213
|
2018-07-24 10:21:33 -04:00 |
|
Andrew Kelley
|
e9a03cccf3
|
all integer sizes are available as primitives
* fix wrong implicit cast for `@IntType` bit_count parameter.
* fix incorrect docs for `@IntType` bit_count parameter.
closes #1242
closes #745
closes #1240
|
2018-07-16 10:53:15 -04:00 |
|
Andrew Kelley
|
3f30897fdc
|
add compile error for disallowed types in extern structs
closes #1218
|
2018-07-11 14:08:56 -04:00 |
|
Andrew Kelley
|
28f9230b40
|
fix crash when calling comptime-known undefined function ptr
closes #880
closes #1212
|
2018-07-10 10:12:08 -04:00 |
|
Andrew Kelley
|
2ee67b7642
|
langref: docs for invalid error set cast and incorrect pointer alignment
also add detection of incorrect pointer alignment at compile-time
of pointers that were constructed with `@intToPtr`.
|
2018-07-09 11:13:29 -04:00 |
|
Andrew Kelley
|
9eb51e20ed
|
fix crash on @ptrToInt of a *void
closes #1192
|
2018-07-09 10:44:06 -04:00 |
|
Andrew Kelley
|
d8295c1889
|
add @popCount intrinsic
|
2018-07-07 00:25:32 -04:00 |
|
Andrew Kelley
|
1cf7511dc9
|
add compile error notes for where struct definitions are
closes #1202
|
2018-07-06 16:20:46 -04:00 |
|
Isaac Hier
|
9cff23dbf9
|
Fix assertion crash on enum switch values
|
2018-07-04 13:27:10 -04:00 |
|
Andrew Kelley
|
4c0e280d6d
|
Merge pull request #1185 from ziglang/undefined-at-comptime-improvements
Operators now throw a compiler error when operating on undefined values
|
2018-07-01 01:33:23 -04:00 |
|
Jimmi Holst Christensen
|
b182151de5
|
Fixed line numbers for tests
|
2018-06-30 21:59:14 +02:00 |
|
Jimmi Holst Christensen
|
ecd5e60be9
|
Expanded the list of operators that catch undefined values at comptime
|
2018-06-30 20:50:09 +02:00 |
|
Jimmi Holst Christensen
|
01bd5c46e1
|
Revert "ir_resolve_const now checks recursivly for undef values"
This reverts commit 4c3f27ce1ea17b5236a022971ebace73a02b7c2b.
|
2018-06-30 17:35:06 +02:00 |
|
isaachier
|
f1c56f7f22
|
Clarify reason implicit cast does not work for large RHS (#1168)
* Clarify reason implicit cast does not work for large RHS
|
2018-06-29 14:52:25 -04:00 |
|
Jimmi HC
|
4c3f27ce1e
|
ir_resolve_const now checks recursivly for undef values
|
2018-06-29 10:21:43 +02:00 |
|