aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 800101c91..a7c42ca1e 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -1085,6 +1085,10 @@ impl Trait {
1085 pub fn is_auto(self, db: &dyn HirDatabase) -> bool { 1085 pub fn is_auto(self, db: &dyn HirDatabase) -> bool {
1086 db.trait_data(self.id).is_auto 1086 db.trait_data(self.id).is_auto
1087 } 1087 }
1088
1089 pub fn is_unsafe(&self, db: &dyn HirDatabase) -> bool {
1090 db.trait_data(self.id).is_unsafe
1091 }
1088} 1092}
1089 1093
1090impl HasVisibility for Trait { 1094impl HasVisibility for Trait {