File tree 1 file changed +6
-8
lines changed
compiler/rustc_builtin_macros/src
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -217,14 +217,12 @@ mod llvm_enzyme {
217
217
ast:: StmtKind :: Item ( iitem) => extract_item_info ( iitem) ,
218
218
_ => None ,
219
219
} ,
220
- Annotatable :: AssocItem ( assoc_item, Impl { of_trait : false } ) => {
221
- match & assoc_item. kind {
222
- ast:: AssocItemKind :: Fn ( box ast:: Fn { sig, ident, .. } ) => {
223
- Some ( ( assoc_item. vis . clone ( ) , sig. clone ( ) , ident. clone ( ) ) )
224
- }
225
- _ => None ,
220
+ Annotatable :: AssocItem ( assoc_item, Impl { .. } ) => match & assoc_item. kind {
221
+ ast:: AssocItemKind :: Fn ( box ast:: Fn { sig, ident, .. } ) => {
222
+ Some ( ( assoc_item. vis . clone ( ) , sig. clone ( ) , ident. clone ( ) ) )
226
223
}
227
- }
224
+ _ => None ,
225
+ } ,
228
226
_ => None ,
229
227
} ) else {
230
228
dcx. emit_err ( errors:: AutoDiffInvalidApplication { span : item. span ( ) } ) ;
@@ -365,7 +363,7 @@ mod llvm_enzyme {
365
363
}
366
364
Annotatable :: Item ( iitem. clone ( ) )
367
365
}
368
- Annotatable :: AssocItem ( ref mut assoc_item, i @ Impl { of_trait : false } ) => {
366
+ Annotatable :: AssocItem ( ref mut assoc_item, i @ Impl { .. } ) => {
369
367
if !assoc_item. attrs . iter ( ) . any ( |a| same_attribute ( & a. kind , & attr. kind ) ) {
370
368
assoc_item. attrs . push ( attr) ;
371
369
}
You can’t perform that action at this time.
0 commit comments