Since all warnings are denyed when cfg(test), new warnings in rustc make tests fail. A new warning was added to rustc, so they fail with warnings like this:
error: panic message is not a string literal
--> src/terminfo/parm.rs:682:34
|
682 | assert!(res.is_ok(), res.err().unwrap());
| ^^^^^^^^^^^^^^^^^^
|
= note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
|
682 | assert!(res.is_ok(), "{}", res.err().unwrap());
| ^^^^^
This fixes that by correcting the warnings, and tests now pass.
Since all warnings are
deny
ed whencfg(test)
, new warnings in rustc make tests fail. A new warning was added to rustc, so they fail with warnings like this:This fixes that by correcting the warnings, and tests now pass.