1
1
error[E0658]: attributes on expressions are experimental
2
- --> $DIR/autodiff_illegal.rs:54 :5
2
+ --> $DIR/autodiff_illegal.rs:53 :5
3
3
|
4
4
LL | #[autodiff(df7, Forward, Dual)]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,25 +53,25 @@ LL | pub fn f6(x: f64) {
53
53
| ^^^
54
54
55
55
error: autodiff must be applied to function
56
- --> $DIR/autodiff_illegal.rs:51 :5
56
+ --> $DIR/autodiff_illegal.rs:50 :5
57
57
|
58
58
LL | let mut x = 5;
59
59
| ^^^^^^^^^^^^^^
60
60
61
61
error: autodiff must be applied to function
62
- --> $DIR/autodiff_illegal.rs:55 :5
62
+ --> $DIR/autodiff_illegal.rs:54 :5
63
63
|
64
64
LL | x = x + 3;
65
65
| ^
66
66
67
67
error: autodiff must be applied to function
68
- --> $DIR/autodiff_illegal.rs:60 :5
68
+ --> $DIR/autodiff_illegal.rs:59 :5
69
69
|
70
70
LL | let add_one_v2 = |x: u32| -> u32 { x + 1 };
71
71
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
72
73
73
error: autodiff must be applied to function
74
- --> $DIR/autodiff_illegal.rs:66 :1
74
+ --> $DIR/autodiff_illegal.rs:65 :1
75
75
|
76
76
LL | / pub fn f7(x: f64) {
77
77
LL | |
@@ -80,7 +80,7 @@ LL | | }
80
80
| |_^
81
81
82
82
error: autodiff requires at least a name and mode
83
- --> $DIR/autodiff_illegal.rs:73 :1
83
+ --> $DIR/autodiff_illegal.rs:72 :1
84
84
|
85
85
LL | / pub fn f8(x: f64) {
86
86
LL | |
@@ -89,7 +89,7 @@ LL | | }
89
89
| |_^
90
90
91
91
error: autodiff must be applied to function
92
- --> $DIR/autodiff_illegal.rs:80 :1
92
+ --> $DIR/autodiff_illegal.rs:79 :1
93
93
|
94
94
LL | / pub fn f9(x: f64) {
95
95
LL | |
@@ -98,7 +98,7 @@ LL | | }
98
98
| |_^
99
99
100
100
error[E0428]: the name `fn_exists` is defined multiple times
101
- --> $DIR/autodiff_illegal.rs:88 :1
101
+ --> $DIR/autodiff_illegal.rs:87 :1
102
102
|
103
103
LL | fn fn_exists() {}
104
104
| -------------- previous definition of the value `fn_exists` here
@@ -110,7 +110,7 @@ LL | #[autodiff(fn_exists, Reverse, Active)]
110
110
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
111
111
112
112
error: autodiff requires at least a name and mode
113
- --> $DIR/autodiff_illegal.rs:96 :1
113
+ --> $DIR/autodiff_illegal.rs:95 :1
114
114
|
115
115
LL | / pub fn f11() {
116
116
LL | |
@@ -119,34 +119,58 @@ LL | | }
119
119
| |_^
120
120
121
121
error: unknown Mode: `Debug`. Use `Forward` or `Reverse`
122
- --> $DIR/autodiff_illegal.rs:102 :18
122
+ --> $DIR/autodiff_illegal.rs:101 :18
123
123
|
124
124
LL | #[autodiff(df12, Debug)]
125
125
| ^^^^^
126
126
127
127
error: did not recognize Activity: `Reverse`
128
- --> $DIR/autodiff_illegal.rs:110 :27
128
+ --> $DIR/autodiff_illegal.rs:109 :27
129
129
|
130
130
LL | #[autodiff(df13, Forward, Reverse)]
131
131
| ^^^^^^^
132
132
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
+
133
157
error[E0433]: failed to resolve: use of undeclared type `MyFloat`
134
- --> $DIR/autodiff_illegal.rs:131 :1
158
+ --> $DIR/autodiff_illegal.rs:130 :1
135
159
|
136
160
LL | #[autodiff(df15, Reverse, Active, Active)]
137
161
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyFloat`
138
162
|
139
163
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
140
164
141
165
error[E0433]: failed to resolve: use of undeclared type `F64Trans`
142
- --> $DIR/autodiff_illegal.rs:153 :1
166
+ --> $DIR/autodiff_illegal.rs:154 :1
143
167
|
144
168
LL | #[autodiff(df18, Reverse, Active, Active)]
145
169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `F64Trans`
146
170
|
147
171
= note: this error originates in the attribute macro `autodiff` (in Nightly builds, run with -Z macro-backtrace for more info)
148
172
149
- error: aborting due to 19 previous errors
173
+ error: aborting due to 22 previous errors
150
174
151
175
Some errors have detailed explanations: E0428, E0433, E0658.
152
176
For more information about an error, try `rustc --explain E0428`.
0 commit comments