diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index f2ea5088e7a..45e3dd2d3e4 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs @@ -407,7 +407,7 @@ pub fn kind(&self) -> VisibilityKind { } else if self.super_token().is_some() { VisibilityKind::PubSuper } else if self.self_token().is_some() { - VisibilityKind::PubSuper + VisibilityKind::PubSelf } else { VisibilityKind::Pub }