Update with comments
A bunch of nits fixed, and a new test for pretty printing the AST.
This commit is contained in:
parent
9fe793ae5d
commit
ea2af70466
11 changed files with 69 additions and 17 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue