mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Remove Name::to_smol_str
This commit is contained in:
parent
df5f1777b8
commit
2346a80ab4
54 changed files with 288 additions and 190 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue