Work around tidy check

This commit is contained in:
Jonas Schievink 2021-09-30 17:27:09 +02:00
parent b994469a13
commit 4465685878
2 changed files with 4 additions and 4 deletions

View file

@ -478,7 +478,7 @@ macro_rules! panic {}
#[rustc_builtin_macro]
macro_rules! assert {}
macro_rules! todo {
macro_rules! toho {
() => ($crate::panic!("not yet implemented"));
($($arg:tt)+) => ($crate::panic!("not yet implemented: {}", $crate::format_args!($($arg)+)));
}
@ -536,7 +536,7 @@ fn main() {
panic!("more {}", 1);
assert!(true, "{}", 1);
assert!(true, "{} asdasd", 1);
todo!("{}fmt", 0);
toho!("{}fmt", 0);
}"#
.trim(),
expect_file!["./test_data/highlight_strings.html"],