Closed minhuw closed 2 years ago
According to bf98356081b52ad3d74f04584c0d9d205ad52c18 any compiler newer than 2021-10-17 would not be including the semicolon in the span.
Thank you for your help, I update my rustc to 2021-11-29
and it gives expected error message.
I use
rustc 1.54.0 (a178d0322 2021-07-26)
, inseq/tests/03-expand-four-errors.rs
, span in the expected error message doesn't include the ending;
as shown below.However, my solution gives an almost equal version except that the span
^
includes the ending ';'.I try to add
compile_error!
explicitly, and the error message also includes the ending;
.I wonder whether it's just an compiler version issue or it's intended to be so and I should figure out how to control the span in error meesage generated by
compile_error!
?