Unsafe traits
This commit is contained in:
parent
a5f2b16366
commit
6833183ab4
@ -33,9 +33,13 @@ fn short_label(&self) -> Option<String> {
|
|||||||
|
|
||||||
impl ShortLabel for ast::TraitDef {
|
impl ShortLabel for ast::TraitDef {
|
||||||
fn short_label(&self) -> Option<String> {
|
fn short_label(&self) -> Option<String> {
|
||||||
|
if self.unsafe_token().is_some() {
|
||||||
|
short_label_from_node(self, "unsafe trait ")
|
||||||
|
} else {
|
||||||
short_label_from_node(self, "trait ")
|
short_label_from_node(self, "trait ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ShortLabel for ast::Module {
|
impl ShortLabel for ast::Module {
|
||||||
fn short_label(&self) -> Option<String> {
|
fn short_label(&self) -> Option<String> {
|
||||||
|
Loading…
Reference in New Issue
Block a user