Make SEMICOLON_IN_EXPRESSIONS_FROM_MACROS warn by default

This commit is contained in:
Aaron Hill
2021-07-22 14:28:02 -05:00
parent 3bc9dd0dd2
commit 886dea2bcd
16 changed files with 91 additions and 28 deletions

View File

@@ -290,7 +290,7 @@ macro_rules! dbg {
// `$val` expression could be a block (`{ .. }`), in which case the `eprintln!`
// will be malformed.
() => {
$crate::eprintln!("[{}:{}]", $crate::file!(), $crate::line!());
$crate::eprintln!("[{}:{}]", $crate::file!(), $crate::line!())
};
($val:expr $(,)?) => {
// Use of `match` here is intentional because it affects the lifetimes