File tree 3 files changed +74
-4
lines changed
3 files changed +74
-4
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( decl_macro, use_extern_macros) ]
2
2
pub struct Item ;
3
3
4
+ pub macro foo ( ) { Item }
5
+
4
6
#[ macro_export]
5
7
macro_rules! bar {
6
8
( ) => {
7
9
Item
8
10
}
9
11
}
10
12
11
- #[ allow( dead_code) ]
12
- fn abc ( ) -> Item {
13
+ pub macro baz ( ) { Item }
14
+
15
+ pub macro quux1 ( ) { Item }
16
+
17
+ #[ macro_export]
18
+ macro_rules! quux2 {
19
+ ( ) => {
20
+ Item
21
+ }
22
+ }
23
+
24
+ pub fn abc ( ) -> Item {
13
25
bar ! ( )
14
26
}
Original file line number Diff line number Diff line change 1
1
#![ feature( decl_macro, use_extern_macros) ]
2
2
pub struct Item ;
3
3
4
+ pub macro foo ( ) { Item }
5
+
4
6
pub macro bar ( ) { Item }
5
7
6
- fn abc ( ) -> Item {
8
+ #[ macro_export]
9
+ macro_rules! baz {
10
+ ( ) => {
11
+ Item
12
+ }
13
+ }
14
+
15
+ pub macro qux1 ( ) { Item }
16
+
17
+ #[ macro_export]
18
+ macro_rules! qux2 {
19
+ ( ) => {
20
+ Item
21
+ }
22
+ }
23
+
24
+ pub fn abc ( ) -> Item {
7
25
bar ! ( )
8
26
}
Original file line number Diff line number Diff line change 1
- version bump: 1.0.0 -> (patch) -> 1.0.1
1
+ version bump: 1.0.0 -> (breaking) -> 2.0.0
2
+ warning: path changes to `qux1`
3
+ --> $REPO_PATH/tests/cases/macros/old.rs:15:5
4
+ |
5
+ 15 | pub macro qux1() { Item }
6
+ | ^^^^^^^^^^^^^^^^^^^^^
7
+ |
8
+ = note: removed definition (breaking)
9
+
10
+ warning: path changes to `qux2`
11
+ --> $REPO_PATH/tests/cases/macros/old.rs:18:1
12
+ |
13
+ 18 | / macro_rules! qux2 {
14
+ 19 | | () => {
15
+ 20 | | Item
16
+ 21 | | }
17
+ 22 | | }
18
+ | |_^
19
+ |
20
+ = note: removed definition (breaking)
21
+
22
+ warning: path changes to `quux1`
23
+ --> $REPO_PATH/tests/cases/macros/new.rs:15:5
24
+ |
25
+ 15 | pub macro quux1() { Item }
26
+ | ^^^^^^^^^^^^^^^^^^^^^^
27
+ |
28
+ = note: added definition (technically breaking)
29
+
30
+ warning: path changes to `quux2`
31
+ --> $REPO_PATH/tests/cases/macros/new.rs:18:1
32
+ |
33
+ 18 | / macro_rules! quux2 {
34
+ 19 | | () => {
35
+ 20 | | Item
36
+ 21 | | }
37
+ 22 | | }
38
+ | |_^
39
+ |
40
+ = note: added definition (technically breaking)
41
+
You can’t perform that action at this time.
0 commit comments