Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/lang_item.rs')
-rw-r--r--crates/hir-def/src/lang_item.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir-def/src/lang_item.rs b/crates/hir-def/src/lang_item.rs
index 07b27659ab..a09fd658ae 100644
--- a/crates/hir-def/src/lang_item.rs
+++ b/crates/hir-def/src/lang_item.rs
@@ -5,7 +5,6 @@
use hir_expand::name::Name;
use intern::{sym, Symbol};
use rustc_hash::FxHashMap;
-use syntax::SmolStr;
use triomphe::Arc;
use crate::{
@@ -253,9 +252,9 @@ macro_rules! language_item_table {
}
impl LangItem {
- pub fn name(self) -> SmolStr {
+ pub fn name(self) -> &'static str {
match self {
- $( LangItem::$variant => SmolStr::new(stringify!($name)), )*
+ $( LangItem::$variant => stringify!($name), )*
}
}