We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c3327 commit 36052ceCopy full SHA for 36052ce
crates/hir_ty/src/traits/chalk.rs
@@ -246,7 +246,8 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
246
}
247
// FIXME: lookup names
248
fn adt_name(&self, struct_id: chalk_ir::AdtId<Interner>) -> String {
249
- format!("Adt_{:?}", struct_id.0).replace("TypeCtorId(", "").replace(")", "")
+ let datum = self.db.struct_datum(self.krate, struct_id);
250
+ format!("{:?}", datum.name(&Interner))
251
252
fn assoc_type_name(&self, assoc_ty_id: chalk_ir::AssocTypeId<Interner>) -> String {
253
format!("Assoc_{}", assoc_ty_id.0)
0 commit comments