@@ -32,7 +32,7 @@ use crate::utils::{count_newlines, extra_offset, first_line_width, last_line_wid
32
32
/// Organized as a list of `(&str, usize)` tuples, giving the name of the macro and the number of
33
33
/// arguments before the format string (none for `format!("format", ...)`, one for `assert!(result,
34
34
/// "format", ...)`, two for `assert_eq!(left, right, "format", ...)`).
35
- const SPECIAL_MACRO_WHITELIST : & [ ( & str , usize ) ] = & [
35
+ const SPECIAL_CASE_MACROS : & [ ( & str , usize ) ] = & [
36
36
// format! like macros
37
37
// From the Rust Standard Library.
38
38
( "eprint!" , 0 ) ,
@@ -60,7 +60,7 @@ const SPECIAL_MACRO_WHITELIST: &[(&str, usize)] = &[
60
60
( "debug_assert_ne!" , 2 ) ,
61
61
] ;
62
62
63
- const SPECIAL_ATTR_WHITELIST : & [ ( & str , usize ) ] = & [
63
+ const SPECIAL_CASE_ATTR : & [ ( & str , usize ) ] = & [
64
64
// From the `failure` crate.
65
65
( "fail" , 0 ) ,
66
66
] ;
@@ -182,10 +182,10 @@ impl<'a> OverflowableItem<'a> {
182
182
}
183
183
}
184
184
185
- fn whitelist ( & self ) -> & ' static [ ( & ' static str , usize ) ] {
185
+ fn special_cases ( & self ) -> & ' static [ ( & ' static str , usize ) ] {
186
186
match self {
187
- OverflowableItem :: MacroArg ( ..) => SPECIAL_MACRO_WHITELIST ,
188
- OverflowableItem :: NestedMetaItem ( ..) => SPECIAL_ATTR_WHITELIST ,
187
+ OverflowableItem :: MacroArg ( ..) => SPECIAL_CASE_MACROS ,
188
+ OverflowableItem :: NestedMetaItem ( ..) => SPECIAL_CASE_ATTR ,
189
189
_ => & [ ] ,
190
190
}
191
191
}
@@ -770,7 +770,7 @@ pub(crate) fn maybe_get_args_offset(
770
770
) -> Option < ( bool , usize ) > {
771
771
if let Some ( & ( _, num_args_before) ) = args
772
772
. get ( 0 ) ?
773
- . whitelist ( )
773
+ . special_cases ( )
774
774
. iter ( )
775
775
. find ( |& & ( s, _) | s == callee_str)
776
776
{
0 commit comments