mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Remove Substs from Ty::ForeignType
This commit is contained in:
parent
0e995adcf6
commit
a3fd2faba5
5 changed files with 9 additions and 18 deletions
|
@ -471,14 +471,9 @@ impl HirDisplay for Ty {
|
|||
projection_ty.hir_fmt(f)?;
|
||||
}
|
||||
}
|
||||
Ty::ForeignType(type_alias, parameters) => {
|
||||
Ty::ForeignType(type_alias) => {
|
||||
let type_alias = f.db.type_alias_data(*type_alias);
|
||||
write!(f, "{}", type_alias.name)?;
|
||||
if parameters.len() > 0 {
|
||||
write!(f, "<")?;
|
||||
f.write_joined(&*parameters.0, ", ")?;
|
||||
write!(f, ">")?;
|
||||
}
|
||||
}
|
||||
Ty::OpaqueType(opaque_ty_id, parameters) => {
|
||||
match opaque_ty_id {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue