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

@ -2660,11 +2660,10 @@ impl<'a> State<'a> {
s.print_type(ty);
s.print_type_bounds(":", &param.bounds);
// FIXME(const_generic_defaults)
if let Some(ref _default) = default {
// FIXME(const_generics_defaults): print the `default` value here
if let Some(ref default) = default {
s.s.space();
s.word_space("=");
// s.print_anon_const(&default);
s.print_expr(&default.value);
}
}
}