11error[E0658]: attributes on expressions are experimental
2- --> $DIR/autodiff_illegal.rs:54 :5
2+ --> $DIR/autodiff_illegal.rs:53 :5
33 |
44LL | #[autodiff(df7, Forward, Dual)]
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,25 +53,25 @@ LL | pub fn f6(x: f64) {
5353 | ^^^
5454
5555error: autodiff must be applied to function
56- --> $DIR/autodiff_illegal.rs:51 :5
56+ --> $DIR/autodiff_illegal.rs:50 :5
5757 |
5858LL | let mut x = 5;
5959 | ^^^^^^^^^^^^^^
6060
6161error: autodiff must be applied to function
62- --> $DIR/autodiff_illegal.rs:55 :5
62+ --> $DIR/autodiff_illegal.rs:54 :5
6363 |
6464LL | x = x + 3;
6565 | ^
6666
6767error: autodiff must be applied to function
68- --> $DIR/autodiff_illegal.rs:60 :5
68+ --> $DIR/autodiff_illegal.rs:59 :5
6969 |
7070LL | let add_one_v2 = |x: u32| -> u32 { x + 1 };
7171 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7272
7373error: autodiff must be applied to function
74- --> $DIR/autodiff_illegal.rs:66 :1
74+ --> $DIR/autodiff_illegal.rs:65 :1
7575 |
7676LL | / pub fn f7(x: f64) {
7777LL | |
@@ -80,7 +80,7 @@ LL | | }
8080 | |_^
8181
8282error: autodiff requires at least a name and mode
83- --> $DIR/autodiff_illegal.rs:73 :1
83+ --> $DIR/autodiff_illegal.rs:72 :1
8484 |
8585LL | / pub fn f8(x: f64) {
8686LL | |
@@ -89,7 +89,7 @@ LL | | }
8989 | |_^
9090
9191error: autodiff must be applied to function
92- --> $DIR/autodiff_illegal.rs:80 :1
92+ --> $DIR/autodiff_illegal.rs:79 :1
9393 |
9494LL | / pub fn f9(x: f64) {
9595LL | |
@@ -98,7 +98,7 @@ LL | | }
9898 | |_^
9999
100100error[E0428]: the name `fn_exists` is defined multiple times
101- --> $DIR/autodiff_illegal.rs:88 :1
101+ --> $DIR/autodiff_illegal.rs:87 :1
102102 |
103103LL | fn fn_exists() {}
104104 | -------------- previous definition of the value `fn_exists` here
@@ -110,7 +110,7 @@ LL | #[autodiff(fn_exists, Reverse, Active)]
110110 = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
111111
112112error: autodiff requires at least a name and mode
113- --> $DIR/autodiff_illegal.rs:96 :1
113+ --> $DIR/autodiff_illegal.rs:95 :1
114114 |
115115LL | / pub fn f11() {
116116LL | |
@@ -119,34 +119,58 @@ LL | | }
119119 | |_^
120120
121121error: unknown Mode: `Debug`. Use `Forward` or `Reverse`
122- --> $DIR/autodiff_illegal.rs:102 :18
122+ --> $DIR/autodiff_illegal.rs:101 :18
123123 |
124124LL | #[autodiff(df12, Debug)]
125125 | ^^^^^
126126
127127error: did not recognize Activity: `Reverse`
128- --> $DIR/autodiff_illegal.rs:110 :27
128+ --> $DIR/autodiff_illegal.rs:109 :27
129129 |
130130LL | #[autodiff(df13, Forward, Reverse)]
131131 | ^^^^^^^
132132
133+ error: invalid return activity Active in Forward Mode
134+ --> $DIR/autodiff_illegal.rs:161:1
135+ |
136+ LL | #[autodiff(df19, Forward, Dual, Active)]
137+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138+ |
139+ = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
140+
141+ error: invalid return activity Dual in Reverse Mode
142+ --> $DIR/autodiff_illegal.rs:167:1
143+ |
144+ LL | #[autodiff(df20, Reverse, Active, Dual)]
145+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146+ |
147+ = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
148+
149+ error: invalid return activity Duplicated in Reverse Mode
150+ --> $DIR/autodiff_illegal.rs:174:1
151+ |
152+ LL | #[autodiff(df21, Reverse, Active, Duplicated)]
153+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154+ |
155+ = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
156+
133157error[E0433]: failed to resolve: use of undeclared type `MyFloat`
134- --> $DIR/autodiff_illegal.rs:131 :1
158+ --> $DIR/autodiff_illegal.rs:130 :1
135159 |
136160LL | #[autodiff(df15, Reverse, Active, Active)]
137161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyFloat`
138162 |
139163 = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
140164
141165error[E0433]: failed to resolve: use of undeclared type `F64Trans`
142- --> $DIR/autodiff_illegal.rs:153 :1
166+ --> $DIR/autodiff_illegal.rs:154 :1
143167 |
144168LL | #[autodiff(df18, Reverse, Active, Active)]
145169 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `F64Trans`
146170 |
147171 = note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
148172
149- error: aborting due to 19 previous errors
173+ error: aborting due to 22 previous errors
150174
151175Some errors have detailed explanations: E0428, E0433, E0658.
152176For more information about an error, try `rustc --explain E0428`.
0 commit comments