Update with comments

A bunch of nits fixed, and a new test for pretty printing the AST.
This commit is contained in:
kadmin 2021-03-18 06:38:11 +00:00
parent 9fe793ae5d
commit ea2af70466
11 changed files with 69 additions and 17 deletions

View file

@ -963,10 +963,11 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
.rev()
.filter_map(|param| match param.kind {
ty::GenericParamDefKind::Lifetime => None,
ty::GenericParamDefKind::Const { has_default }
| ty::GenericParamDefKind::Type { has_default, .. } => {
ty::GenericParamDefKind::Type { has_default, .. } => {
Some((param.def_id, has_default))
}
// FIXME(const_generics:defaults)
ty::GenericParamDefKind::Const { has_default: _has_default } => None,
})
.peekable();
let has_default = {