Skip to content

Commit 9c33ab8

Browse files
1 parent 2c56ea3 commit 9c33ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ macro_rules! unimplemented {
647647
#[macro_export]
648648
#[stable(feature = "todo_macro", since = "1.40.0")]
649649
macro_rules! todo {
650-
() => ($crate::panic!("not yet implemented"));
651-
($($arg:tt)+) => ($crate::panic!("not yet implemented: {}", $crate::format_args!($($arg)+)));
650+
() => (#![allow(unused_variables)] $crate::panic!("not yet implemented"));
651+
($($arg:tt)+) => (#![allow(unused_variables)] $crate::panic!("not yet implemented: {}", $crate::format_args!($($arg)+)));
652652
}
653653

654654
/// Definitions of built-in macros.

0 commit comments

Comments
 (0)