Commit graph

275 commits

Author SHA1 Message Date
David Tolnay
0d1349aeec
Remove loader_ctx from public API 2022-07-08 12:54:41 -07:00
David Tolnay
cdc0fb3956
Delete _e and _t suffixed types 2022-07-08 12:54:41 -07:00
David Tolnay
bf92f088e0
Expand all wildcard imports 2022-07-08 12:54:41 -07:00
David Tolnay
abb2be1726
Remove unnamed struct and union types from public API 2022-07-08 12:54:41 -07:00
David Tolnay
fb56e956c1
Export all contents at crate root 2022-07-08 12:54:41 -07:00
David Tolnay
3b26dd0b96
Switch to specific integer widths 2022-07-08 12:54:41 -07:00
David Tolnay
a99695f989
Switch to rust ABI 2022-07-08 12:54:41 -07:00
David Tolnay
f936d8a977
Mangle all function names 2022-07-08 12:54:40 -07:00
David Tolnay
f0ff16aa40
Import std::mem 2022-07-08 12:54:40 -07:00
David Tolnay
d9b5024557
Mark all public structs non_exhaustive 2022-07-08 12:54:40 -07:00
David Tolnay
4e959d205a
Delete empty else blocks 2022-07-08 12:54:40 -07:00
David Tolnay
8c8c5ebe70
Resolve short_circuit_statement lints 2022-07-08 12:54:40 -07:00
David Tolnay
a9501b4e9d
Resolve unnecessary_operation lints 2022-07-08 12:54:40 -07:00
David Tolnay
2c4a86204a
Resolve collapsible_else_if lints 2022-07-08 12:54:40 -07:00
David Tolnay
5184a172fd
Resolve borrow_as_ptr lints 2022-07-08 12:54:40 -07:00
David Tolnay
1e7f46afac
Add clippy lint level attributes 2022-07-08 12:54:40 -07:00
David Tolnay
ffbb8c03a3
Resolve let_and_return lints 2022-07-06 21:29:11 -07:00
David Tolnay
fce1dca212
Resolve zero_ptr lints 2022-07-06 21:26:47 -07:00
David Tolnay
c69d0be72a
Resolve toplevel_ref_arg lints 2022-07-06 21:24:31 -07:00
David Tolnay
f709de93a2
Resolve needless_return lints 2022-07-06 21:24:00 -07:00
David Tolnay
91acf48f82
Resolve needless_late_init lints 2022-07-06 21:15:37 -07:00
David Tolnay
5dd92d86b4
Resolve assign_op_pattern lints 2022-07-06 21:11:28 -07:00
David Tolnay
facba40cb3
Resolve unused_parens lints 2022-07-06 21:08:55 -07:00
David Tolnay
ca3436c9eb
Resolve unused_variables lints 2022-07-06 19:21:24 -07:00
David Tolnay
14ef08e7b6
Resolve unused_assignments lints 2022-07-06 19:18:26 -07:00
David Tolnay
0a488e3b4b
Resolve unused_mut lints 2022-07-06 19:05:43 -07:00
David Tolnay
ae901c9bce
Resolve unreachable_code lint 2022-07-06 19:03:44 -07:00
David Tolnay
90a8a9231a
Unallow lints which are no longer triggered 2022-07-06 19:02:43 -07:00
David Tolnay
f4864a57f7
Convert __assert_fail to __assert 2022-07-06 19:01:09 -07:00
David Tolnay
ffd9f2ab1d
Remove file and line from assert_fail calls 2022-07-06 18:38:21 -07:00
David Tolnay
18d7210166
Convert __assert_fail to macro 2022-07-06 18:29:43 -07:00
David Tolnay
5110ab43d9
Fix UB on out of bounds pointer offset 2022-07-06 18:21:03 -07:00
David Tolnay
6cccf5d91f
Fix UB on offset_from on deallocated pointers 2022-07-06 18:08:50 -07:00
David Tolnay
5cf27a24f6
Replace fopen/fgets/fclose with std::fs 2022-07-06 17:34:45 -07:00
David Tolnay
7759d75c3b
Reimplement a basic strchr to replace extern 2022-07-06 16:40:29 -07:00
David Tolnay
07dab93581
Replace printf with Rust standard write 2022-07-06 16:40:29 -07:00
David Tolnay
5d8cb6a469
Replace fprintf with Rust standard write 2022-07-06 16:40:29 -07:00
David Tolnay
d0342cd486
Factor out common part of parse error print 2022-07-06 16:10:55 -07:00
David Tolnay
466afb66ad
Rust standard abort 2022-07-06 16:01:34 -07:00
David Tolnay
1e0b7fafb3
Use MaybeUninit for uninitialized structs in bins 2022-07-06 15:58:25 -07:00
David Tolnay
2468c99634
Change '0 as ptr' to ptr::null in bins 2022-07-06 15:51:46 -07:00
David Tolnay
c57a6757e6
Format with rustfmt 1.5.1 2022-07-06 15:45:09 -07:00
David Tolnay
832ce9eecc
Use imports instead of extern declaration 2022-07-03 21:24:22 -07:00
David Tolnay
025ca4a078
Replace C standard library functions with rust 2022-07-03 21:24:21 -07:00
David Tolnay
64531de7a9
Replace sprintf with rust fmt 2022-07-03 21:24:21 -07:00
David Tolnay
f0110f61b4
Remove I/O support from lib 2022-07-03 21:24:21 -07:00
David Tolnay
43b507a405
Convert test bins to rust std I/O 2022-07-03 20:41:04 -07:00
David Tolnay
41a587f8a3
Inline argument processing into translated main 2022-07-03 20:41:04 -07:00
David Tolnay
74adb8c5e0
Delete unneeded flag parsing from test bins 2022-07-03 20:41:04 -07:00
David Tolnay
256b6db012
Move all commonality from yaml.h and yaml_private.h to module 2022-07-03 20:41:03 -07:00