Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | crates/hir-ty/src/lang_items.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/crates/hir-ty/src/lang_items.rs b/crates/hir-ty/src/lang_items.rs index ae53276f56..c8e15e2f9c 100644 --- a/crates/hir-ty/src/lang_items.rs +++ b/crates/hir-ty/src/lang_items.rs @@ -1,19 +1,8 @@ //! Functions to detect special lang items -use hir_def::{ - AdtId, TraitId, - lang_item::LangItems, - signatures::{StructFlags, StructSignature}, -}; +use hir_def::{TraitId, lang_item::LangItems}; use intern::{Symbol, sym}; -use crate::db::HirDatabase; - -pub fn is_box(db: &dyn HirDatabase, adt: AdtId) -> bool { - let AdtId::StructId(id) = adt else { return false }; - StructSignature::of(db, id).flags.contains(StructFlags::IS_BOX) -} - pub fn lang_items_for_bin_op( lang_items: &LangItems, op: syntax::ast::BinaryOp, |