This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
compiler/rustc_builtin_macros/src Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ mod llvm_enzyme {
234234 let meta_item_vec: ThinVec < MetaItemInner > = match meta_item. kind {
235235 ast:: MetaItemKind :: List ( ref vec) => vec. clone ( ) ,
236236 _ => {
237- dcx. emit_err ( errors:: AutoDiffInvalidApplication { span : item. span ( ) } ) ;
237+ dcx. emit_err ( errors:: AutoDiffMissingConfig { span : item. span ( ) } ) ;
238238 return vec ! [ item] ;
239239 }
240240 } ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ fn dummy() {
6363// Malformed, where args?
6464#[ autodiff]
6565pub fn f7 ( x : f64 ) {
66- //~^ ERROR autodiff must be applied to function
66+ //~^ ERROR autodiff requires at least a name and mode
6767 unimplemented ! ( )
6868}
6969
@@ -77,7 +77,7 @@ pub fn f8(x: f64) {
7777// Invalid attribute syntax
7878#[ autodiff = "" ]
7979pub fn f9 ( x : f64 ) {
80- //~^ ERROR autodiff must be applied to function
80+ //~^ ERROR autodiff requires at least a name and mode
8181 unimplemented ! ( )
8282}
8383
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ error: autodiff must be applied to function
6262LL | let add_one_v2 = |x: u32| -> u32 { x + 1 };
6363 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6464
65- error: autodiff must be applied to function
65+ error: autodiff requires at least a name and mode
6666 --> $DIR/autodiff_illegal.rs:65:1
6767 |
6868LL | / pub fn f7(x: f64) {
@@ -80,7 +80,7 @@ LL | | unimplemented!()
8080LL | | }
8181 | |_^
8282
83- error: autodiff must be applied to function
83+ error: autodiff requires at least a name and mode
8484 --> $DIR/autodiff_illegal.rs:79:1
8585 |
8686LL | / pub fn f9(x: f64) {
You can’t perform that action at this time.
0 commit comments