We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f2b16 commit 6833183Copy full SHA for 6833183
crates/ra_ide/src/display/short_label.rs
@@ -33,7 +33,11 @@ impl ShortLabel for ast::EnumDef {
33
34
impl ShortLabel for ast::TraitDef {
35
fn short_label(&self) -> Option<String> {
36
- short_label_from_node(self, "trait ")
+ if self.unsafe_token().is_some() {
37
+ short_label_from_node(self, "unsafe trait ")
38
+ } else {
39
+ short_label_from_node(self, "trait ")
40
+ }
41
}
42
43
0 commit comments