diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-20 06:29:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 06:29:50 +0000 |
| commit | db960a25d1cd3cf848506561ac88e7d338c4366c (patch) | |
| tree | 72ad079ee9a4274d62260de1889ae8a545ac8a74 /compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs | |
| parent | 0aec399b830cc53e14c056bbd88f93e937129a5b (diff) | |
| parent | 5e2ce7eb7a76908404d9532cae2628d38cc62b4b (diff) | |
| download | rust-db960a25d1cd3cf848506561ac88e7d338c4366c.tar.gz rust-db960a25d1cd3cf848506561ac88e7d338c4366c.zip | |
Merge pull request #4100 from rust-lang/rustup-2024-12-20
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs index 086cf1f44a0..2cd7fa3225a 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/llvm_cov.rs @@ -40,11 +40,10 @@ pub(crate) fn create_pgo_func_name_var<'ll>( } } -pub(crate) fn write_filenames_to_buffer<'a>( - filenames: impl IntoIterator<Item = &'a str>, -) -> Vec<u8> { +pub(crate) fn write_filenames_to_buffer(filenames: &[impl AsRef<str>]) -> Vec<u8> { let (pointers, lengths) = filenames .into_iter() + .map(AsRef::as_ref) .map(|s: &str| (s.as_c_char_ptr(), s.len())) .unzip::<_, _, Vec<_>, Vec<_>>(); |
