Commit graph

98 commits

Author SHA1 Message Date
David Tolnay
eef6bb4b5f
More uninitialized local variables 2022-07-08 12:54:43 -07:00
David Tolnay
c6c368f5a3
Fix constructed name of unnamed types 2022-07-08 12:54:43 -07:00
David Tolnay
d1a5075546
Make test suite runnable in miri 2022-07-08 12:54:43 -07:00
David Tolnay
a6de143358
Make parser test read input from io::Read 2022-07-08 12:54:43 -07:00
David Tolnay
75ef3415bd
Move argument parsing of bins to safe main code 2022-07-08 12:54:43 -07:00
David Tolnay
c1b8c6e6b7
Make unconditionally no_std 2022-07-08 12:54:43 -07:00
David Tolnay
0c9952c9a1
Drop CStr dependency 2022-07-08 12:54:43 -07:00
David Tolnay
17872c0728
Make a fmt::Write impl for pointer writes 2022-07-08 12:54:43 -07:00
David Tolnay
eb854c860b
Pass through zero sized mallocs 2022-07-08 12:54:43 -07:00
David Tolnay
43b0129bc7
Reduce alloc repetition 2022-07-08 12:54:42 -07:00
David Tolnay
a0d51c55f6
Eliminate redundant integer casts 2022-07-08 12:54:42 -07:00
David Tolnay
d28ea5887b
Resolve identity_op lints 2022-07-08 12:54:42 -07:00
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