Skip to content

Commit 5450e7f

Browse files
committed
Update UI tests
1 parent 841ad94 commit 5450e7f

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

tests/ui/autodiff/visibility.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
#![feature(autodiff)]
77

88
#[cfg(std_autodiff)]
9-
use std::autodiff::autodiff;
10-
9+
use std::autodiff::autodiff_forward;
1110
extern crate my_macro;
12-
use my_macro::autodiff; // bring `autodiff` in scope
11+
use my_macro::autodiff_forward; // bring `autodiff` in scope
1312

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

tests/ui/autodiff/visibility.std_autodiff.stderr

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
error[E0252]: the name `autodiff` is defined multiple times
1+
error[E0252]: the name `autodiff_forward` is defined multiple times
22
--> $DIR/visibility.rs:12:5
33
|
4-
LL | use std::autodiff::autodiff;
5-
| ----------------------- previous import of the macro `autodiff` here
4+
LL | use std::autodiff::autodiff_forward;
5+
| ------------------------------- previous import of the macro `autodiff` here
66
...
7-
LL | use my_macro::autodiff; // bring `autodiff` in scope
8-
| ^^^^^^^^^^^^^^^^^^ `autodiff` reimported here
7+
LL | use my_macro::autodiff_forward; // bring `autodiff` in scope
8+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `autodiff` reimported here
99
|
10-
= note: `autodiff` must be defined only once in the macro namespace of this module
10+
= note: `autodiff_forward` must be defined only once in the macro namespace of this module
1111
help: you can use `as` to change the binding name of the import
1212
|
13-
LL | use my_macro::autodiff as other_autodiff; // bring `autodiff` in scope
14-
| +++++++++++++++++
13+
LL | use my_macro::autodiff_forward as other_autodiff_forward; // bring `autodiff_forward` in scope
14+
| ++++++++++++++++++++++
1515

16-
error: this rustc version does not support autodiff
16+
error: this rustc version does not support autodiff_forward
1717
--> $DIR/visibility.rs:14:1
1818
|
19-
LL | #[autodiff]
20-
| ^^^^^^^^^^^
19+
LL | #[autodiff_forward]
20+
| ^^^^^^^^^^^^^^^^^^^
2121

2222
error: aborting due to 2 previous errors
2323

0 commit comments

Comments
 (0)