File tree 2 files changed +14
-15
lines changed
2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 6
6
#![ feature( autodiff) ]
7
7
8
8
#[ cfg( std_autodiff) ]
9
- use std:: autodiff:: autodiff;
10
-
9
+ use std:: autodiff:: autodiff_forward;
11
10
extern crate my_macro;
12
- use my_macro:: autodiff ; // bring `autodiff` in scope
11
+ use my_macro:: autodiff_forward ; // bring `autodiff` in scope
13
12
14
- #[ autodiff ]
13
+ #[ autodiff_forward ]
15
14
//[std_autodiff]~^^^ ERROR the name `autodiff` is defined multiple times
16
15
//[std_autodiff]~^^ ERROR this rustc version does not support autodiff
17
16
fn foo ( ) { }
Original file line number Diff line number Diff line change 1
- error[E0252]: the name `autodiff ` is defined multiple times
1
+ error[E0252]: the name `autodiff_forward ` is defined multiple times
2
2
--> $DIR/visibility.rs:12:5
3
3
|
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
6
6
...
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
9
9
|
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
11
11
help: you can use `as` to change the binding name of the import
12
12
|
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
+ | +++++ +++++++++++++++++
15
15
16
- error: this rustc version does not support autodiff
16
+ error: this rustc version does not support autodiff_forward
17
17
--> $DIR/visibility.rs:14:1
18
18
|
19
- LL | #[autodiff ]
20
- | ^^^^^^^^^^^
19
+ LL | #[autodiff_forward ]
20
+ | ^^^^^^^^^^^^^^^^^^^
21
21
22
22
error: aborting due to 2 previous errors
23
23
You can’t perform that action at this time.
0 commit comments