about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2025-04-03 17:19:11 -0400
committerManuel Drehwald <git@manuel.drehwald.info>2025-04-03 17:19:11 -0400
commit087ffd73bf43671db22087570c97e0afdde20f31 (patch)
treeea98c29174d6d69c0a1ee2d5d586656060cc3fe1 /compiler/rustc_codegen_ssa/src
parentaa8f0fd7163a2f23aa958faed30c9c2b77b934a5 (diff)
downloadrust-087ffd73bf43671db22087570c97e0afdde20f31.tar.gz
rust-087ffd73bf43671db22087570c97e0afdde20f31.zip
add the autodiff batch mode frontend
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/codegen_attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
index d16d4ed2283..4b2fd61442b 100644
--- a/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
+++ b/compiler/rustc_codegen_ssa/src/codegen_attrs.rs
@@ -860,7 +860,7 @@ fn autodiff_attrs(tcx: TyCtxt<'_>, id: DefId) -> Option<AutoDiffAttrs> {
         }
     }
 
-    Some(AutoDiffAttrs { mode, ret_activity, input_activity: arg_activities })
+    Some(AutoDiffAttrs { mode, width: 1, ret_activity, input_activity: arg_activities })
 }
 
 pub(crate) fn provide(providers: &mut Providers) {