Thread pattern types through the HIR
This commit is contained in:
parent
c340e67dec
commit
c4efc25bfa
15 changed files with 48 additions and 5 deletions
|
|
@ -1071,6 +1071,10 @@ fn fmt_type<'cx>(
|
|||
write!(f, "]")
|
||||
}
|
||||
},
|
||||
clean::Type::Pat(ref t, ref pat) => {
|
||||
fmt::Display::fmt(&t.print(cx), f)?;
|
||||
write!(f, " is {pat}")
|
||||
}
|
||||
clean::Array(ref t, ref n) => match **t {
|
||||
clean::Generic(name) if !f.alternate() => primitive_link(
|
||||
f,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue