diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-09 23:07:45 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-04-09 23:22:14 +0200 |
| commit | 4b4948c2e34e6b320f0091b97bf3044db467f4d3 (patch) | |
| tree | 433b68740fa430a08d2cab9e413820eaada0ffa7 /compiler/rustc_llvm/src | |
| parent | 81c320ea7786a2b5a07a165aedacb438ae14fd74 (diff) | |
| download | rust-4b4948c2e34e6b320f0091b97bf3044db467f4d3.tar.gz rust-4b4948c2e34e6b320f0091b97bf3044db467f4d3.zip | |
Remove identity casts
Diffstat (limited to 'compiler/rustc_llvm/src')
| -rw-r--r-- | compiler/rustc_llvm/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/src/lib.rs b/compiler/rustc_llvm/src/lib.rs index 8542dcf5bf0..ec3cf34d710 100644 --- a/compiler/rustc_llvm/src/lib.rs +++ b/compiler/rustc_llvm/src/lib.rs @@ -30,7 +30,7 @@ pub unsafe extern "C" fn LLVMRustStringWriteImpl( ptr: *const c_char, size: size_t, ) { - let slice = slice::from_raw_parts(ptr as *const u8, size as usize); + let slice = slice::from_raw_parts(ptr as *const u8, size); sr.bytes.borrow_mut().extend_from_slice(slice); } |
