File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
124131add_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
150157add_custom_target ("check"
151- DEPENDS check-libcc2rs check-unit
158+ DEPENDS check-libcc2rs check-libcc2rs-macros check- unit
152159 )
153160
154161add_custom_target ("check-all"
Original file line number Diff line number Diff line change 11error: 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
99error[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)
You can’t perform that action at this time.
0 commit comments