mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
More symbol usage
This commit is contained in:
parent
c30bdfcc84
commit
df5f1777b8
50 changed files with 388 additions and 303 deletions
|
@ -1935,7 +1935,7 @@ impl HirDisplay for TypeRef {
|
|||
}
|
||||
if let Some(abi) = abi {
|
||||
f.write_str("extern \"")?;
|
||||
f.write_str(abi)?;
|
||||
f.write_str(abi.as_str())?;
|
||||
f.write_str("\" ")?;
|
||||
}
|
||||
write!(f, "fn(")?;
|
||||
|
@ -2044,7 +2044,7 @@ impl HirDisplay for Path {
|
|||
.display_name
|
||||
.as_ref()
|
||||
.map(|name| name.canonical_name())
|
||||
.unwrap_or("$crate");
|
||||
.unwrap_or(&sym::dollar_crate);
|
||||
write!(f, "{name}")?
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue