dtolnay / proc-macro-workshop

Learn to write Rust procedural macros  [Rust Latam conference, Montevideo Uruguay, March 2019]
Apache License 2.0
4.13k stars 1.04k forks source link

Unused code warning in sorted 04 #54

Closed robamu closed 2 years ago

robamu commented 2 years ago

I received unused import warnings which lead to a compile error missmatch for an otherwise correct test 04. I solved this issue by adding #![allow(unused_imports)] to the 04 code and adapting the line numbers in the *.stderr file.

dtolnay commented 2 years ago

Which import is unused?

robamu commented 2 years ago

Okay, I actually did a mistake and emitted a compile error instead of the input stream. I appended the compile error to the input now and the warnings disappear.