File tree 3 files changed +5
-5
lines changed
compiler/rustc_builtin_macros/src
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ mod llvm_enzyme {
234
234
let meta_item_vec: ThinVec < MetaItemInner > = match meta_item. kind {
235
235
ast:: MetaItemKind :: List ( ref vec) => vec. clone ( ) ,
236
236
_ => {
237
- dcx. emit_err ( errors:: AutoDiffInvalidApplication { span : item. span ( ) } ) ;
237
+ dcx. emit_err ( errors:: AutoDiffMissingConfig { span : item. span ( ) } ) ;
238
238
return vec ! [ item] ;
239
239
}
240
240
} ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ fn dummy() {
63
63
// Malformed, where args?
64
64
#[ autodiff]
65
65
pub fn f7 ( x : f64 ) {
66
- //~^ ERROR autodiff must be applied to function
66
+ //~^ ERROR autodiff requires at least a name and mode
67
67
unimplemented ! ( )
68
68
}
69
69
@@ -77,7 +77,7 @@ pub fn f8(x: f64) {
77
77
// Invalid attribute syntax
78
78
#[ autodiff = "" ]
79
79
pub fn f9 ( x : f64 ) {
80
- //~^ ERROR autodiff must be applied to function
80
+ //~^ ERROR autodiff requires at least a name and mode
81
81
unimplemented ! ( )
82
82
}
83
83
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ error: autodiff must be applied to function
62
62
LL | let add_one_v2 = |x: u32| -> u32 { x + 1 };
63
63
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
64
65
- error: autodiff must be applied to function
65
+ error: autodiff requires at least a name and mode
66
66
--> $DIR/autodiff_illegal.rs:65:1
67
67
|
68
68
LL | / pub fn f7(x: f64) {
@@ -80,7 +80,7 @@ LL | | unimplemented!()
80
80
LL | | }
81
81
| |_^
82
82
83
- error: autodiff must be applied to function
83
+ error: autodiff requires at least a name and mode
84
84
--> $DIR/autodiff_illegal.rs:79:1
85
85
|
86
86
LL | / pub fn f9(x: f64) {
You can’t perform that action at this time.
0 commit comments