Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/attr.rs')
-rw-r--r--crates/hir-def/src/attr.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir-def/src/attr.rs b/crates/hir-def/src/attr.rs
index b4fcfa11ae..6d3005e01c 100644
--- a/crates/hir-def/src/attr.rs
+++ b/crates/hir-def/src/attr.rs
@@ -27,7 +27,6 @@ use crate::{
VariantId,
db::DefDatabase,
item_tree::block_item_tree_query,
- lang_item::LangItem,
nameres::{ModuleOrigin, ModuleSource},
src::{HasChildSource, HasSource},
};
@@ -209,8 +208,8 @@ impl Attrs {
}
#[inline]
- pub fn lang_item(&self) -> Option<LangItem> {
- self.by_key(sym::lang).string_value().and_then(LangItem::from_symbol)
+ pub fn lang_item(&self) -> Option<&Symbol> {
+ self.by_key(sym::lang).string_value()
}
#[inline]