Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e243f8d
Merge commit '89f54caacf90e99fc8ba0d60a28bdadea3cfdf1e' into sync_cg_…
bjorn3 Apr 11, 2024
bf02a87
Merge branch 'sync_from_rust'
bjorn3 Apr 11, 2024
71e7414
Allow MaybeUninit in input and output of inline assembly
taiki-e Apr 14, 2024
49ad3ae
Merge pull request #1481 from taiki-e/asm-maybe-uninit
bjorn3 Apr 14, 2024
5075386
Rustup to rustc 1.79.0-nightly (0d8b3346a 2024-04-14)
bjorn3 Apr 15, 2024
9e4e444
static_mut_refs: use raw pointers to remove the remaining FIXME
RalfJung Apr 15, 2024
ceead1b
Change intrinsic types to use `u32` instead of `T` to match stable re…
WaffleLapkin Apr 16, 2024
e4a854e
Miri: adopt to new intrinsic types
WaffleLapkin Apr 16, 2024
7ce867f
Add an assertion in const eval
WaffleLapkin Apr 16, 2024
c2046c4
Add codegen tests for changed intrinsics
WaffleLapkin Apr 16, 2024
4b6bbcb
Fixup 2 ui tests using changed intrinsics
WaffleLapkin Apr 16, 2024
fbac8ef
Cranelift: Revert raw-dylib for Windows futex APIs
ChrisDenton Apr 16, 2024
f532309
ScalarInt: add methods to assert being a (u)int of given size
RalfJung Apr 18, 2024
a2a949b
Auto merge of #124113 - RalfJung:interpret-scalar-ops, r=oli-obk
bors Apr 19, 2024
2ef1552
Don't fatal when calling expect_one_of when recovering arg in parse_seq
compiler-errors Apr 19, 2024
c0b5cc9
Do intrinsic changes in `rustc_codegen_cranelift`
WaffleLapkin Apr 19, 2024
468179c
Fixup `rustc_codegen_gcc` test signature
WaffleLapkin Apr 20, 2024
4027a52
Sync from rust f9b16149208c8a8a349c32813312716f6603eb6f
bjorn3 Apr 20, 2024
82dd93f
Rustup to rustc 1.79.0-nightly (f9b161492 2024-04-19)
bjorn3 Apr 20, 2024
9ad9620
Don't create data object for zero sized allocations
bjorn3 Apr 20, 2024
be9d7ca
Rollup merge of #123967 - RalfJung:static_mut_refs, r=Nilstrieb
jieyouxu Apr 20, 2024
72e6f0c
Remove a couple of items from the crate prelude
bjorn3 Apr 21, 2024
e654877
Also handle AggregateKind::RawPtr in cg_cranelift
scottmcm Apr 12, 2024
a74d6c2
Only apply --cap-lints to the extended_sysroot test suite
bjorn3 Apr 22, 2024
8bc15fb
Sync from rust fb898629a26e4acec59c928ce3ec00a62675d1cc
bjorn3 Apr 22, 2024
d0c5141
Rustup to rustc 1.79.0-nightly (fb898629a 2024-04-21)
bjorn3 Apr 22, 2024
8bf1687
Fix neon test on non arm64 targets
bjorn3 Apr 22, 2024
569df1d
Inline CValue::pointer_from_data_and_meta
bjorn3 Apr 22, 2024
498dbbd
Fix warning in alloc_system.rs
bjorn3 Apr 22, 2024
d569c84
Update libloading
bjorn3 Apr 22, 2024
c02f6c5
Update windows-trgets to 0.52.5
bjorn3 Apr 22, 2024
cea3e7d
Update syn, quote and proc-macro2
bjorn3 Apr 22, 2024
966e269
Update data structure crates
bjorn3 Apr 22, 2024
2c6ef5a
Update a couple of crates
bjorn3 Apr 22, 2024
6ec27fe
Update to Cranelift 0.107
bjorn3 Mar 31, 2024
041666a
Update abi-cafe ui128 test expectations
bjorn3 Apr 1, 2024
de5d652
Rustup to rustc 1.79.0-nightly (7f2fc33da 2024-04-22)
bjorn3 Apr 23, 2024
3d682cf
Merge commit 'de5d6523738fd44a0521b6abf3e73ae1df210741' into sync_cg_…
bjorn3 Apr 23, 2024
7c968a2
Update allowed cg_clif deps
bjorn3 Apr 23, 2024
96152c7
Fix broken subtree sync
bjorn3 Apr 23, 2024
918304b
Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,Ralf…
matthiaskrgr Apr 23, 2024
afb6c46
Rollup merge of #124169 - compiler-errors:parser-fatal, r=oli-obk
matthiaskrgr Apr 23, 2024
a760954
Rollup merge of #124286 - bjorn3:sync_cg_clif-2024-04-23, r=bjorn3
matthiaskrgr Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix warning in alloc_system.rs
  • Loading branch information
bjorn3 committed Apr 22, 2024
commit 498dbbd018df90f42a4e7db0c7fa35cde78ef66e
3 changes: 1 addition & 2 deletions example/alloc_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ mod platform {
extern "system" {
fn GetProcessHeap() -> HANDLE;
fn HeapAlloc(hHeap: HANDLE, dwFlags: DWORD, dwBytes: SIZE_T) -> LPVOID;
fn HeapReAlloc(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID, dwBytes: SIZE_T) -> LPVOID;
fn HeapFree(hHeap: HANDLE, dwFlags: DWORD, lpMem: LPVOID) -> BOOL;
fn GetLastError() -> DWORD;
}
Expand Down Expand Up @@ -111,7 +110,7 @@ mod platform {
allocate_with_flags(layout, HEAP_ZERO_MEMORY)
}
#[inline]
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) {
let header = get_header(ptr);
let err = HeapFree(GetProcessHeap(), 0, header.0 as LPVOID);
debug_assert!(err != 0, "Failed to free heap memory: {}", GetLastError());
Expand Down