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,
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ fn get_index_type_id(
|
|||
}
|
||||
}
|
||||
// Not supported yet
|
||||
clean::Generic(_) | clean::ImplTrait(_) | clean::Infer => None,
|
||||
clean::Type::Pat(..) | clean::Generic(_) | clean::ImplTrait(_) | clean::Infer => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue