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
|
@ -2660,11 +2660,10 @@ impl<'a> State<'a> {
|
|||
s.print_type(ty);
|
||||
s.print_type_bounds(":", ¶m.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue