detects redundant imports that can be eliminated. for #117772 : In order to facilitate review and modification, split the checking code and removing redundant imports code into two PR.
Session::diagnostic
clippy::needless_borrow
rustc_fluent_macro::fluent_messages!
option.map(cond) == Some(true)
option.is_some_and(cond)