aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/inlay_hints.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-10-20 14:38:11 +0100
committerAleksey Kladov <[email protected]>2020-10-20 14:38:11 +0100
commitaf4e75533f2c071330e740e2fa94b131e3a2b538 (patch)
tree6f517a43814751d8b1ea478b5ed03baf57b4f0b5 /crates/ide/src/inlay_hints.rs
parentbe762ccccd5a86632e60351518528d078785a3e2 (diff)
Rename declaration_name -> display_name
Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least).
Diffstat (limited to 'crates/ide/src/inlay_hints.rs')
-rw-r--r--crates/ide/src/inlay_hints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs
index e2079bbcf..f5f366354 100644
--- a/crates/ide/src/inlay_hints.rs
+++ b/crates/ide/src/inlay_hints.rs
@@ -215,7 +215,7 @@ fn hint_iterator(
215 .last() 215 .last()
216 .and_then(|strukt| strukt.as_adt())?; 216 .and_then(|strukt| strukt.as_adt())?;
217 let krate = strukt.krate(db)?; 217 let krate = strukt.krate(db)?;
218 if krate.declaration_name(db).as_deref() != Some("core") { 218 if krate.display_name(db).as_deref() != Some("core") {
219 return None; 219 return None;
220 } 220 }
221 let iter_trait = FamousDefs(sema, krate).core_iter_Iterator()?; 221 let iter_trait = FamousDefs(sema, krate).core_iter_Iterator()?;