Skip to content

Commit 6ec2cb3

Browse files
committed
Add check-libcc2rs-macros
1 parent 3d1c579 commit 6ec2cb3

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ add_custom_target("check-libcc2rs"
121121
USES_TERMINAL
122122
)
123123

124+
add_custom_target("check-libcc2rs-macros"
125+
COMMAND cargo +${RUST_STABLE_VERSION} test
126+
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/libcc2rs-macros"
127+
DEPENDS "${RUST_STAMP_FILE}"
128+
USES_TERMINAL
129+
)
130+
124131
add_custom_target("check-unit"
125132
COMMAND ${CMAKE_COMMAND} -E env
126133
"CC=${CMAKE_C_COMPILER}"
@@ -148,7 +155,7 @@ add_custom_target("check-benchmarks"
148155
)
149156

150157
add_custom_target("check"
151-
DEPENDS check-libcc2rs check-unit
158+
DEPENDS check-libcc2rs check-libcc2rs-macros check-unit
152159
)
153160

154161
add_custom_target("check-all"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
error: goto!() can only be used inside goto_block!
2-
--> tests/ui/forbidden.rs:22:5
2+
--> tests/ui/forbidden.rs:18:5
33
|
4-
22 | goto!('nowhere);
4+
18 | goto!('nowhere);
55
| ^^^^^^^^^^^^^^^
66
|
77
= note: this error originates in the macro `goto` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error[E0268]: `continue` outside of a loop
10-
--> tests/ui/forbidden.rs:13:5
10+
--> tests/ui/forbidden.rs:9:5
1111
|
12-
13 | / switch!(match 0 {
13-
14 | | 0 => { v = 1; continue; }
14-
15 | | _ => { v = 2; }
15-
16 | | });
12+
9 | / switch!(match 0 {
13+
10 | | 0 => { v = 1; continue; }
14+
11 | | _ => { v = 2; }
15+
12 | | });
1616
| |______^ cannot `continue` outside of a loop
1717
|
1818
= note: this error originates in the macro `switch` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)