.githooks/
compiler/
kernel/
lib/
scripts/
seed/
sublime/
test/
boot/
bootstrap/
compiler/
cycles/
dispatch/
format/
input/
output/
basic.rad
458 B
escapes.rad
42 B
regions.rad
529 B
host/
integration/
kernel/
loader/
manifests/
mmio/
native/
packages/
runtime/
scheduling/
shared/
slots/
smp/
std/
sync/
termination/
tests/
trap/
verify/
Makefile
9.2 KiB
kernel.rad
776 B
runner.rad
11.6 KiB
vim/
.gitignore
333 B
.gitsigners
224 B
AGENTS.md
8.3 KiB
CONTRIBUTING
2.1 KiB
LICENSE
1.1 KiB
Makefile
2.5 KiB
README
3.4 KiB
STYLE
3.2 KiB
std.lib
2.1 KiB
std.lib.test
1.1 KiB
test/format/output/regions.rad
raw
| 1 | fn get(map: &'r Map, other: &'s mut Map, key: u64) -> ?&'r mut [u8] { |
| 2 | return nil; |
| 3 | } |
| 4 | |
| 5 | fn (m: &'r mut Map) find(key: u64) -> ?&'r u32 { |
| 6 | return nil; |
| 7 | } |
| 8 | |
| 9 | fn f() { |
| 10 | let m: &'r Map = &map { |
| 11 | inspect(m); |
| 12 | } |
| 13 | let w: &'w mut Map = &mut map { |
| 14 | update(w); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | record Request['in]: Copy { method: &'in [u8], body: &'in [u8] } |
| 19 | |
| 20 | record Pair['r](&'r u8, u32); |
| 21 | |
| 22 | union Token['src]: Copy { |
| 23 | Ident(&'src [u8]), Number(u64), |
| 24 | } |
| 25 | |
| 26 | fn parse(input: &'in [u8]) -> Request['in] throws (ParseError) { |
| 27 | return nil; |
| 28 | } |