We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c56ea3 commit 9c33ab8Copy full SHA for 9c33ab8
library/core/src/macros/mod.rs
@@ -647,8 +647,8 @@ macro_rules! unimplemented {
647
#[macro_export]
648
#[stable(feature = "todo_macro", since = "1.40.0")]
649
macro_rules! todo {
650
- () => ($crate::panic!("not yet implemented"));
651
- ($($arg:tt)+) => ($crate::panic!("not yet implemented: {}", $crate::format_args!($($arg)+)));
+ () => (#![allow(unused_variables)] $crate::panic!("not yet implemented"));
+ ($($arg:tt)+) => (#![allow(unused_variables)] $crate::panic!("not yet implemented: {}", $crate::format_args!($($arg)+)));
652
}
653
654
/// Definitions of built-in macros.
0 commit comments