mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Rename
This commit is contained in:
parent
81359af733
commit
af53d5f4b0
8 changed files with 12 additions and 15 deletions
|
@ -208,7 +208,7 @@ fn validate_visibility(vis: ast::Visibility, errors: &mut Vec<SyntaxError>) {
|
|||
Some(it) => it,
|
||||
None => return,
|
||||
};
|
||||
if impl_def.target_trait().is_some() {
|
||||
if impl_def.trait_().is_some() {
|
||||
errors.push(SyntaxError::new("Unnecessary visibility qualifier", vis.syntax.text_range()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue