Thread pattern types through the HIR
This commit is contained in:
parent
c340e67dec
commit
c4efc25bfa
15 changed files with 48 additions and 5 deletions
|
|
@ -573,6 +573,9 @@ impl FromWithTcx<clean::Type> for Type {
|
|||
Tuple(t) => Type::Tuple(t.into_tcx(tcx)),
|
||||
Slice(t) => Type::Slice(Box::new((*t).into_tcx(tcx))),
|
||||
Array(t, s) => Type::Array { type_: Box::new((*t).into_tcx(tcx)), len: s.to_string() },
|
||||
clean::Type::Pat(t, p) => {
|
||||
Type::Pat { type_: Box::new((*t).into_tcx(tcx)), pat: p.to_string() }
|
||||
}
|
||||
ImplTrait(g) => Type::ImplTrait(g.into_tcx(tcx)),
|
||||
Infer => Type::Infer,
|
||||
RawPointer(mutability, type_) => Type::RawPointer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue