Commit graph

136 commits

Author SHA1 Message Date
David Tolnay
7f726a96a4
Resolve unnecessary_cast lints 2022-07-08 12:54:42 -07:00
David Tolnay
501b058987
Make C primitives reexports instead of type aliases 2022-07-08 12:54:42 -07:00
David Tolnay
24d4a7671a
Switch to panic-in-panic for C assertion failures 2022-07-08 12:54:42 -07:00
David Tolnay
4b6e1ab5cb
Update imports that don't need to come from std 2022-07-08 12:54:42 -07:00
David Tolnay
eceedff226
Inline c_offset implementation 2022-07-08 12:54:42 -07:00
David Tolnay
6a9ed3ee68
Eliminate integer-to-pointer cast in offset implementation 2022-07-08 12:54:42 -07:00
David Tolnay
9951855ff3
Avoid mutable borrow reservation conflicts 2022-07-08 12:54:42 -07:00
David Tolnay
9587d26afe
Uninitialize more local variables 2022-07-08 12:54:42 -07:00
David Tolnay
d05ef52665
Import individual items from mem and ptr 2022-07-08 12:54:41 -07:00
David Tolnay
4c6b230ddf
Clean up redundant local variable types 2022-07-08 12:54:41 -07:00
David Tolnay
3710f11929
Flatten unneeded block expressions 2022-07-08 12:54:41 -07:00
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