diff options
| author | bors <bors@rust-lang.org> | 2025-07-11 01:06:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-11 01:06:04 +0000 |
| commit | cdac44e608c3df9a241e0a1b53b3f62af250dbf1 (patch) | |
| tree | f7e355279b7866227d1019dec44e56752e73cad5 /compiler/rustc_codegen_llvm/src/builder | |
| parent | 2a023bf80a6fbd6a06d5460a34eb247b986286ed (diff) | |
| parent | 3a1bb04166b58762d8d9a1a7d1f5a24a938891f6 (diff) | |
| download | rust-cdac44e608c3df9a241e0a1b53b3f62af250dbf1.tar.gz rust-cdac44e608c3df9a241e0a1b53b3f62af250dbf1.zip | |
Auto merge of #143762 - tgross35:rollup-n9t27c6, r=tgross35
Rollup of 7 pull requests Successful merges: - rust-lang/rust#140136 (Add an aarch64-msvc build running on ARM64 Windows) - rust-lang/rust#143642 (stdarch subtree update) - rust-lang/rust#143707 (Fix `--skip-std-check-if-no-download-rustc`) - rust-lang/rust#143722 (Make some "safe" llvm ops actually sound) - rust-lang/rust#143728 (Resolve refactor: extraction of `finalize_module_binding` and `single_import_can_define_name`) - rust-lang/rust#143742 (Rework borrowing suggestions to use `Expr` instead of just `Span`) - rust-lang/rust#143744 (Properly track the depth when expanding free alias types) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder/autodiff.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs index b07d9a5cfca..5afb9a60d42 100644 --- a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs +++ b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs @@ -306,7 +306,7 @@ fn generate_enzyme_call<'ll>( // add outer_fn name to ad_name to make it unique, in case users apply autodiff to multiple // functions. Unwrap will only panic, if LLVM gave us an invalid string. let name = llvm::get_value_name(outer_fn); - let outer_fn_name = std::str::from_utf8(name).unwrap(); + let outer_fn_name = std::str::from_utf8(&name).unwrap(); ad_name.push_str(outer_fn_name); // Let us assume the user wrote the following function square: |
