mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
chore: reposition comment
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
parent
192b6f5a78
commit
7abd7b80f3
@ -779,12 +779,8 @@ fn get_replacements_for_visibilty_change(
|
||||
ast::Item::Enum(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
ast::Item::ExternCrate(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
ast::Item::Fn(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
ast::Item::Impl(it) => {
|
||||
//Associated item's visibility should not be changed
|
||||
if let None = it.for_token() {
|
||||
impls.push(it);
|
||||
}
|
||||
}
|
||||
//Associated item's visibility should not be changed
|
||||
ast::Item::Impl(it) if it.for_token().is_none() => impls.push(it),
|
||||
ast::Item::MacroRules(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
ast::Item::MacroDef(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
ast::Item::Module(it) => replacements.push((it.visibility(), it.syntax().clone())),
|
||||
|
Loading…
Reference in New Issue
Block a user