about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/partitioning
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2025-02-21 21:47:48 -0500
committerManuel Drehwald <git@manuel.drehwald.info>2025-02-21 21:47:48 -0500
commitf4e2218b131b82097c720d28c1c2ea10922b0d47 (patch)
treeaae82a0f14f363b10b1cc45f42b9c462dca77d0c /compiler/rustc_monomorphize/src/partitioning
parentfe90883ef7124f5b9dae69374f9bfb37c9aebb8f (diff)
downloadrust-f4e2218b131b82097c720d28c1c2ea10922b0d47.tar.gz
rust-f4e2218b131b82097c720d28c1c2ea10922b0d47.zip
clean up autodiff code/comments
Diffstat (limited to 'compiler/rustc_monomorphize/src/partitioning')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning/autodiff.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning/autodiff.rs b/compiler/rustc_monomorphize/src/partitioning/autodiff.rs
index bce31bf0748..0c855508434 100644
--- a/compiler/rustc_monomorphize/src/partitioning/autodiff.rs
+++ b/compiler/rustc_monomorphize/src/partitioning/autodiff.rs
@@ -66,7 +66,7 @@ pub(crate) fn find_autodiff_source_functions<'tcx>(
     let mut autodiff_items: Vec<AutoDiffItem> = vec![];
     for (item, instance) in autodiff_mono_items {
         let target_id = instance.def_id();
-        let cg_fn_attr = tcx.codegen_fn_attrs(target_id).autodiff_item.clone();
+        let cg_fn_attr = &tcx.codegen_fn_attrs(target_id).autodiff_item;
         let Some(target_attrs) = cg_fn_attr else {
             continue;
         };