impl HirDisplay for next_solver::Ty

This commit is contained in:
jackh726 2025-08-09 23:28:48 +00:00
parent b2f107cb8b
commit eeaefa4b9d
24 changed files with 580 additions and 388 deletions

View file

@ -912,7 +912,7 @@ pub(super) fn literal(
};
let ty = ty.display(sema.db, display_target);
let mut s = format!("```rust\n{ty}\n```\n___\n\n");
let mut s = salsa::attach(sema.db, || format!("```rust\n{ty}\n```\n___\n\n"));
match value {
Ok(value) => {
let backtick_len = value.chars().filter(|c| *c == '`').count();