emekoi
2d85ff9465
added invalid switch prong error
...
added error for switch prong with different payloads and support for capturing payload on switch prongs with payloads of the same type
2019-07-01 00:27:55 -05:00
Marc Tiehuis
0dd2e93e4c
Update for new fmt.zig formatting
2019-06-30 22:25:03 +12:00
emekoi
92b68c57b3
fix formatting
2019-06-29 13:21:27 -04:00
emekoi
8156a61de8
fix syntax highlighting
2019-06-29 13:21:27 -04:00
Michael Dusan
7a2b0cc9c4
fix stack escape in add_source_file()
2019-06-29 13:19:39 -04:00
Andrew Kelley
4b7e04f75a
rename std/special/bootstrap.zig to std/special/start.zig
2019-06-28 02:00:56 -04:00
Andrew Kelley
ae72a98224
Merge pull request #2775 from SamTebbs33/alignment-docs
...
Add doc comments to alignment functions
2019-06-27 20:37:28 -04:00
Andrew Kelley
ff477361b0
Merge branch 'emekoi-root-import'
2019-06-27 19:16:24 -04:00
Andrew Kelley
69c7c5de09
fixups
...
* better detection for already seen packages
* "root" instead of "@root"
2019-06-27 19:15:33 -04:00
Andrew Kelley
fe2d89007b
Merge branch 'root-import' of https://github.com/emekoi/zig into emekoi-root-import
2019-06-27 18:38:28 -04:00
SamTebbs33
623dbb73df
Add check for power of 2 to std.mem.alignBackward
2019-06-27 22:23:09 +01:00
Andrew Kelley
0a0c11685f
fix for with null and T peer types and inferred result location type
...
See #2762
2019-06-27 17:22:35 -04:00
SamTebbs33
14abf0fda5
Add doc comments to alignment functions
2019-06-27 22:22:17 +01:00
Andrew Kelley
1b23c46138
fix switch with null and T peer types and inferred result location type
...
closes #2762
2019-06-27 16:54:19 -04:00
Andrew Kelley
d422d5753b
avoid std.debug.global_allocator in http headers tests
2019-06-27 15:38:40 -04:00
Andrew Kelley
8a251c411d
Merge branch 'daurnimator-http.headers'
2019-06-27 14:07:27 -04:00
Andrew Kelley
39112d9052
update format function for new std fmt changes
2019-06-27 14:06:29 -04:00
Andrew Kelley
ba29435f67
Merge branch 'http.headers' of https://github.com/daurnimator/zig into daurnimator-http.headers
2019-06-27 13:37:40 -04:00
Andrew Kelley
1ccf6a2c9e
compile error for using slice as array init expr type
...
when there are more than 0 elements.
closes #2764
2019-06-27 12:24:13 -04:00
Andrew Kelley
6cd3995754
Merge branch 'daurnimator-logging-allocator'
2019-06-27 12:05:12 -04:00
Andrew Kelley
0041e00a78
fixups
...
* move LoggingAllocator to its own file
* style conventions
* add documentation
* use `anyerror` instead of `error{}` for the stream
2019-06-27 12:04:14 -04:00
Andrew Kelley
c346b257bb
Merge branch 'logging-allocator' of https://github.com/daurnimator/zig into daurnimator-logging-allocator
2019-06-27 11:20:00 -04:00
Andrew Kelley
516b5e649f
better CLI error message for missing sub-architecture
2019-06-27 11:05:12 -04:00
Marc Tiehuis
3c914c63a5
Remove #2725 workaround
...
These were no longer being hit after the copy-elision branch was merged.
Closes #2725 .
2019-06-27 21:50:24 +12:00
Andrew Kelley
6c195ede54
add test case for defer modifying return value before returned
...
See #961
2019-06-26 23:25:53 -04:00
Andrew Kelley
01ff0d4d62
Merge pull request #2602 from ziglang/copy-elision-3
...
result location mechanism (part of no-copy semantics)
2019-06-26 18:29:19 -04:00
Andrew Kelley
517bdea754
fix incorrectly omitting variable declarations
...
in non-debug modes
2019-06-26 16:27:24 -04:00
Andrew Kelley
3085d29af8
Merge remote-tracking branch 'origin/master' into copy-elision-3
2019-06-26 14:44:01 -04:00
Andrew Kelley
5cd4753bea
add missing error code for DeleteFileW
2019-06-26 14:32:19 -04:00
Andrew Kelley
33f996bb16
all tests passing on linux
2019-06-26 14:00:44 -04:00
Luna
07c0d484ee
net: quickfix on non-existing Address.family
2019-06-26 13:24:51 -04:00
Andrew Kelley
32c6f643ae
disable building self hosted compiler in test suite
...
Rather than fixing regressions with deprecated coroutines, I'm going
to let them regress more until #2377 is solved.
2019-06-26 12:42:08 -04:00
Andrew Kelley
ff737cc648
fix peer type resolution: unreachable, error set, unreachable
2019-06-26 12:31:51 -04:00
Vexu
fa42c99d82
fixed IfTypeExpr parsing
2019-06-26 11:04:34 -04:00
Andrew Kelley
e79e8993e6
Merge pull request #2750 from cartr/thumbv4-aeabi
...
compiler-rt: Support thumb versions older than armv6
2019-06-26 11:03:42 -04:00
Carter Sande
f9e26d9871
compiler-rt: use more idiomatic switch syntax
2019-06-25 22:56:09 -07:00
Andrew Kelley
b4e40cb59a
fix peer type resolution with null
2019-06-26 00:36:24 -04:00
Andrew Kelley
fd4c5f54f0
all compile error tests passing
2019-06-25 19:03:56 -04:00
Andrew Kelley
0a77325916
fix several compile error test regressions
2019-06-25 18:06:03 -04:00
Andrew Kelley
da68aec339
fix infinite loop when error in peer resolution
2019-06-25 16:04:01 -04:00
Andrew Kelley
cb55803a59
fix implicit cast vector to array
2019-06-25 13:57:45 -04:00
Andrew Kelley
c61e0a078c
fix union init with void payload
...
all std lib tests passing now
2019-06-25 11:31:38 -04:00
Marc Tiehuis
f5af349bd6
Merge pull request #2714 from ziglang/fmt-overhaul
...
Add positional, precision and width support to std.fmt
2019-06-25 20:15:33 +12:00
Carter Sande
cd02630da8
compiler-rt: Support thumb versions older than armv6
...
Add versions of __aeabi_memset and __aeabi_memclr which do not use mov
instructions between low registers, as this is unsupported on thumbv4t
and thumbv5.
2019-06-24 22:32:50 -07:00
Marc Tiehuis
08e8d30dd6
Add parsing of fill and alignment in std.format
...
These options are now available to use when printing, however nothing
currently makes use of these.
2019-06-25 17:11:18 +12:00
Michael Dusan
de2b0cd722
fix compile error when building zig w/ clang
...
errors as reported on macOS w/ Xcode 10.1, 10.2 and 11.0:
src/ir.cpp:23285:16: error: variable 'bits' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (float_type->id == ZigTypeIdFloat)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ir.cpp:23288:13: note: uninitialized use occurs here
switch (bits) {
^~~~
src/ir.cpp:23285:12: note: remove the 'if' if its condition is always true
} else if (float_type->id == ZigTypeIdFloat)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ir.cpp:23281:18: note: initialize the variable 'bits' to silence this warning
unsigned bits;
2019-06-24 16:25:18 -04:00
Michael Dusan
3021e5ca67
align (vector -> array) store to result location
2019-06-24 14:52:57 -04:00
Andrew Kelley
24400d5882
Merge branch 'shawnl-simd2'
2019-06-23 17:14:28 -04:00
Andrew Kelley
7f4de2dfdb
remove stray abort
2019-06-23 17:14:10 -04:00
Andrew Kelley
b2cbc59e4c
Merge branch 'simd2' of https://github.com/shawnl/zig into shawnl-simd2
2019-06-23 17:10:33 -04:00