Store all generic bounds as where predicates.
This commit is contained in:
parent
05b29f9a92
commit
94449e6101
30 changed files with 770 additions and 953 deletions
|
@ -1267,13 +1267,11 @@ impl<'tcx> Visitor<'tcx> for DumpVisitor<'tcx> {
|
|||
match param.kind {
|
||||
hir::GenericParamKind::Lifetime { .. } => {}
|
||||
hir::GenericParamKind::Type { ref default, .. } => {
|
||||
self.process_bounds(param.bounds);
|
||||
if let Some(ref ty) = default {
|
||||
self.visit_ty(ty);
|
||||
}
|
||||
}
|
||||
hir::GenericParamKind::Const { ref ty, ref default } => {
|
||||
self.process_bounds(param.bounds);
|
||||
self.visit_ty(ty);
|
||||
if let Some(default) = default {
|
||||
self.visit_anon_const(default);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue