Unsafe traits

This commit is contained in:
Diana 2020-05-01 11:49:41 -04:00
parent a5f2b16366
commit 6833183ab4

View File

@ -33,8 +33,12 @@ fn short_label(&self) -> Option<String> {
impl ShortLabel for ast::TraitDef {
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 ")
}
}
}
impl ShortLabel for ast::Module {