Skip to content

Commit 461f7c2

Browse files
committed
pr review changes
1 parent 9f438c2 commit 461f7c2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

compiler/rustc_ast/src/expand/autodiff_attrs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ pub struct AutoDiffItem {
8686
/// The name of the function being generated
8787
pub target: String,
8888
pub attrs: AutoDiffAttrs,
89-
// Type Tree support
9089
pub inputs: Vec<TypeTree>,
9190
pub output: TypeTree,
9291
}

compiler/rustc_codegen_gcc/src/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,6 +1384,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
13841384
_src_align: Align,
13851385
size: RValue<'gcc>,
13861386
flags: MemFlags,
1387+
// `tt` is an LLVM-only feature for tracking typetree, not used in GCC
13871388
_tt: Option<FncTree>,
13881389
) {
13891390
assert!(!flags.contains(MemFlags::NONTEMPORAL), "non-temporal memcpy not supported");

compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,31 +196,31 @@ pub(crate) mod Fallback_AD {
196196

197197
// TypeTree function fallbacks
198198
pub(crate) fn EnzymeNewTypeTree() -> CTypeTreeRef {
199-
unimplemented!()
199+
unsafe { unimplemented!() }
200200
}
201201

202202
pub(crate) fn EnzymeNewTypeTreeCT(arg1: CConcreteType, ctx: &Context) -> CTypeTreeRef {
203-
unimplemented!()
203+
unsafe { unimplemented!() }
204204
}
205205

206206
pub(crate) fn EnzymeNewTypeTreeTR(arg1: CTypeTreeRef) -> CTypeTreeRef {
207-
unimplemented!()
207+
unsafe { unimplemented!() }
208208
}
209209

210210
pub(crate) fn EnzymeFreeTypeTree(CTT: CTypeTreeRef) {
211-
unimplemented!()
211+
unsafe { unimplemented!() }
212212
}
213213

214214
pub(crate) fn EnzymeMergeTypeTree(arg1: CTypeTreeRef, arg2: CTypeTreeRef) -> bool {
215-
unimplemented!()
215+
unsafe { unimplemented!() }
216216
}
217217

218218
pub(crate) fn EnzymeTypeTreeOnlyEq(arg1: CTypeTreeRef, pos: i64) {
219-
unimplemented!()
219+
unsafe { unimplemented!() }
220220
}
221221

222222
pub(crate) fn EnzymeTypeTreeData0Eq(arg1: CTypeTreeRef) {
223-
unimplemented!()
223+
unsafe { unimplemented!() }
224224
}
225225

226226
pub(crate) fn EnzymeTypeTreeShiftIndiciesEq(
@@ -230,15 +230,15 @@ pub(crate) mod Fallback_AD {
230230
max_size: i64,
231231
add_offset: u64,
232232
) {
233-
unimplemented!()
233+
unsafe { unimplemented!() }
234234
}
235235

236236
pub(crate) fn EnzymeTypeTreeToString(arg1: CTypeTreeRef) -> *const c_char {
237-
unimplemented!()
237+
unsafe { unimplemented!() }
238238
}
239239

240240
pub(crate) fn EnzymeTypeTreeToStringFree(arg1: *const c_char) {
241-
unimplemented!()
241+
unsafe { unimplemented!() }
242242
}
243243

244244
pub(crate) fn set_inline(val: bool) {

0 commit comments

Comments
 (0)