Skip to content

Commit 12d1e79

Browse files
committed
Update UI tests
1 parent 375005a commit 12d1e79

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tests/ui/autodiff/visibility.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::autodiff::autodiff_forward;
1010
extern crate my_macro;
1111
use my_macro::autodiff_forward; // bring `autodiff_forward` in scope
1212

13-
#[autodiff_forward]
13+
#[autodiff_forward(dfoo)]
1414
//[std_autodiff]~^^^ ERROR the name `autodiff_forward` is defined multiple times
15-
//[std_autodiff]~^^ ERROR this rustc version does not support autodiff
1615
fn foo() {}

tests/ui/autodiff/visibility.std_autodiff.stderr

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error[E0252]: the name `autodiff_forward` is defined multiple times
33
|
44
LL | use std::autodiff::autodiff_forward;
55
| ------------------------------- previous import of the macro `autodiff_forward` here
6-
...
6+
LL | extern crate my_macro;
77
LL | use my_macro::autodiff_forward; // bring `autodiff_forward` in scope
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff_forward` reimported here
99
|
@@ -13,12 +13,6 @@ help: you can use `as` to change the binding name of the import
1313
LL | use my_macro::autodiff_forward as other_autodiff_forward; // bring `autodiff_forward` in scope
1414
| +++++++++++++++++++++++++
1515

16-
error: this rustc version does not support autodiff_forward
17-
--> $DIR/visibility.rs:13:1
18-
|
19-
LL | #[autodiff_forward]
20-
| ^^^^^^^^^^^^^^^^^^^
21-
22-
error: aborting due to 2 previous errors
16+
error: aborting due to 1 previous error
2317

2418
For more information about this error, try `rustc --explain E0252`.

0 commit comments

Comments
 (0)