Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_ty/src/chalk_ext.rs')
| -rw-r--r-- | crates/hir_ty/src/chalk_ext.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/hir_ty/src/chalk_ext.rs b/crates/hir_ty/src/chalk_ext.rs index 653c4d5ec8..97d1ad0f9c 100644 --- a/crates/hir_ty/src/chalk_ext.rs +++ b/crates/hir_ty/src/chalk_ext.rs @@ -6,6 +6,7 @@ use hir_def::{ type_ref::Rawness, FunctionId, GenericDefId, HasModule, ItemContainerId, Lookup, TraitId, }; +use syntax::SmolStr; use crate::{ db::HirDatabase, from_assoc_type_id, from_chalk_trait_id, from_foreign_def_id, @@ -187,7 +188,7 @@ impl TyExt for Ty { ImplTraitId::AsyncBlockTypeImplTrait(def, _expr) => { let krate = def.module(db.upcast()).krate(); if let Some(future_trait) = db - .lang_item(krate, "future_trait".into()) + .lang_item(krate, SmolStr::new_inline("future_trait")) .and_then(|item| item.as_trait()) { // This is only used by type walking. |