mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-19 03:28:36 +00:00
impl HirDisplay for next_solver::Ty
This commit is contained in:
parent
b2f107cb8b
commit
eeaefa4b9d
24 changed files with 580 additions and 388 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue