Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/signature_help.rs')
-rw-r--r--crates/ide/src/signature_help.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/signature_help.rs b/crates/ide/src/signature_help.rs
index c5eaacdb10..fe6688c053 100644
--- a/crates/ide/src/signature_help.rs
+++ b/crates/ide/src/signature_help.rs
@@ -19,7 +19,7 @@ use syntax::{
algo,
ast::{self, AstChildren, HasArgList},
match_ast, AstNode, Direction, NodeOrToken, SyntaxElementChildren, SyntaxNode, SyntaxToken,
- TextRange, TextSize, T,
+ TextRange, TextSize, ToSmolStr, T,
};
use crate::RootDatabase;
@@ -379,7 +379,7 @@ fn add_assoc_type_bindings(
for item in tr.items_with_supertraits(db) {
if let AssocItem::TypeAlias(ty) = item {
- let name = ty.name(db).to_smol_str();
+ let name = ty.name(db).display_no_db().to_smolstr();
if !present_bindings.contains(&*name) {
buf.clear();
format_to!(buf, "{} = …", name);