pub fn compare_tokenstreams(
first_tokenstream: &impl Display,
second_tokenstream: &impl Display,
)Expand description
ยงPanics
This function will panic if:
- The token streams are not equal.
- Either token stream is not valid Rust code.
rustfmtis not installed or is configured incorrectly.- It was not possible to create a child process to run
rustfmt. - The output of
rustfmtcould not be converted to UTF-8.