Veikka Tuominen
c673e6a48a
Sema: avoid passing .unneeded to safetyPanic
2022-09-27 18:35:32 +03:00
Veikka Tuominen
17eea918ae
langref: document inline switch
2022-09-27 18:33:23 +03:00
Veikka Tuominen
d4917957ef
Sema: add better source location for inline prong backwards branch limit
2022-09-27 18:33:23 +03:00
Veikka Tuominen
509bb82b20
Sema: refactor common code to its own function
2022-09-27 18:33:23 +03:00
Veikka Tuominen
83fa216c8d
Sema: implement inline else for ints
2022-09-27 18:33:23 +03:00
Veikka Tuominen
950a0e2405
Sema: implement inline else for errors enums and bools
2022-09-27 18:33:23 +03:00
Veikka Tuominen
0e77259f44
add inline switch union tag captures
2022-09-27 18:33:23 +03:00
Veikka Tuominen
5baaf90e3c
Sema: implement non-special inline switch prongs
2022-09-27 18:33:23 +03:00
Veikka Tuominen
cccc4c3827
AstGen: analyze inline switch cases
2022-09-27 18:05:08 +03:00
Veikka Tuominen
07a7c2f7c8
stage2: remove redundant is_ref flag from SwitchBlock.Bits
2022-09-27 18:05:08 +03:00
Veikka Tuominen
b4d81857f3
stage1+2: parse inline switch cases
2022-09-27 18:05:08 +03:00
Jacob Young
c1493635fb
fmt: ignore non-files
2022-09-27 13:25:19 +03:00
kkHAIKE
ba5cbea0c3
Sema: fix segfault when union init with empty field
2022-09-27 13:23:51 +03:00
Zhora Trush
f7f15e99c4
Fix minor langref typos
2022-09-27 13:22:57 +03:00
Jacob Young
e915b905e0
use @ptrCast to assigned generic type to default_value
...
If the type happens to be a pointer, then the double pointer will not
coerce implicitly.
2022-09-27 13:21:01 +03:00
Lee Cannon
38a50f819c
make runPkgConfig pub
2022-09-27 13:20:32 +03:00
Jakub Konka
9c2fb6e186
Merge pull request #12959 from kcbanner/fix_uwtable
...
llvm: fix missing unwind info (wrong uwtable attribute value)
2022-09-26 23:05:39 +02:00
Luuk de Gram
9cd521a24f
zig fmt
2022-09-26 19:54:35 +02:00
Loris Cro
37cfe3dfd2
Merge pull request #12976 from der-teufel-programming/master
...
autodoc: Added `.html` to generated source view file names
2022-09-26 18:00:36 +02:00
Der Teufel
55a9db4c9d
autodoc: Added .html to generated source view file names
2022-09-26 15:46:01 +02:00
Veikka Tuominen
8849792789
Merge pull request #12951 from schmee/fix-add-field-err-note-oob
...
sema: load the correct AST in addFieldErrNote
2022-09-26 13:58:55 +03:00
John Schmidt
b6bda5183e
sema: load the correct AST in failWithInvalidComptimeFieldStore
...
The container we want to get the fields from might not be declared in the
same file as the block we are analyzing, so we should get the AST from
the decl's file instead.
2022-09-26 08:56:34 +02:00
John Schmidt
6cc2b26163
sema: load the correct AST in addFieldErrNote
...
The enum we want to get the fields from might not be declared in the
same file as the block we are analyzing, so we should get the AST from
the decl's file instead.
Closes #12950 .
2022-09-25 10:28:48 +02:00
Andrew Kelley
6d7b0690a0
Merge pull request #12942 from Vexu/stage2-fixes
...
misc stage2 fixes
2022-09-25 03:31:57 -04:00
kcbanner
1cc890e5c3
llvm: update uwtable value for stage1
2022-09-25 02:39:00 -04:00
kcbanner
328f75c985
llvm: fix uwtable attribute value
2022-09-25 01:52:40 -04:00
Veikka Tuominen
c4400e8aa5
AstGen: reset anon_name_strategy for sub expressions
...
Closes #12910
2022-09-24 16:30:37 +03:00
Veikka Tuominen
8e4d0ae4f5
Sema: avoid generic parameter error in nested function type
...
Related to cd1833044ab7505bc101c85f59889bd3ea3fac80
Closes #12945
2022-09-24 15:15:36 +03:00
Veikka Tuominen
3a5148112d
Sema: avoid using pointerDecl when dealing with slices
...
Closes #12885
2022-09-24 14:43:03 +03:00
Veikka Tuominen
fdf4c875ff
llvm: avoid crash on duplicate asm input/output name
2022-09-24 14:43:03 +03:00
Veikka Tuominen
3525b8778e
Sema: properly handle generic struct as parameter type
...
Closes #12907
2022-09-24 14:43:03 +03:00
Veikka Tuominen
ede3798485
Sema: resolve struct layout in zirStructInit
...
Closes #12911
2022-09-23 17:39:21 +03:00
Veikka Tuominen
581df942e1
Sema: correct sentinel check on implicit cast from array ptr
...
Closes #12938
2022-09-23 17:39:06 +03:00
Veikka Tuominen
3de5c3b503
Sema: check for slices in packed and extern type validation
...
Closes #12930
2022-09-23 17:39:06 +03:00
Veikka Tuominen
8d1fdfc8ed
Sema: preserve volatileness when constructing field pointers
...
Closes #12928
2022-09-23 17:39:06 +03:00
Sage Hane
cae76d8293
langref: fix minor format error
2022-09-23 15:58:46 +02:00
Bill Nagel
eeeda53423
add missing darwin types
2022-09-23 12:25:40 +03:00
ノYuh
eaaaceaf3c
make fmt.formatAsciiChar respect options parameter
2022-09-23 12:20:38 +03:00
noiryuh
0be46866fe
use std.ascii instead of defining ascii functions in std.fs.path
2022-09-23 12:19:09 +03:00
John Simon
246a39c10e
langref: remove uses of old function pointer syntax
2022-09-23 12:08:30 +03:00
Evin Yulo
dab5bb9247
Fix docstring for std.fs.path.extension
2022-09-22 20:13:09 -04:00
Andrew Kelley
0e4b04672c
CI: remove --fail-with-body option
...
I observed this error:
```
curl: option --fail-with-body: is unknown
```
2022-09-21 22:22:41 -07:00
Andrew Kelley
5dce9368d6
CI: update sourcehut oauth token
...
it expired after one year
2022-09-21 20:34:17 -07:00
Andrew Kelley
99b954b9ce
LLVM: remove purposeless const qualifiers
...
These const qualifiers on pointers to opaque types do not serve any
purpose. If anything they are misleading since the underlying pointers
very likely point to objects that are in fact mutated.
This commit does not change any behavior.
2022-09-21 13:27:23 -07:00
kkHAIKE
4961044ce8
AstGen: store void to ptr result loc when there is no else branch
2022-09-21 20:21:02 +03:00
kkHAIKE
183127733c
AstGen: make loop body's ResultLoc .none
...
Fixes #12555
Fixes #12551
Fixes #12455
2022-09-21 20:20:05 +03:00
Ali Chraghi
0799e98562
std: update NativeTargetInfo.detect doc comments
...
`detect` doesn't take allocator anymore
2022-09-21 20:14:39 +03:00
Jacob Young
14f4c73191
sema: fix typo
2022-09-21 11:29:20 +02:00
Andrew Kelley
85e3204344
stage2: free up 2 ZIR tags
...
cmpxchg_weak and cmpxchg_strong are not very common; demote them to
extended operations to make some headroom.
This commit does not change any behavior, only memory layout of the
compiler.
2022-09-21 03:54:37 -04:00
Andrew Kelley
902f6db67b
Merge pull request #12889 from ziglang/unwrap-error-switch
...
safety: show error return trace when unwrapping error in switch
2022-09-21 02:56:21 -04:00