We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a25cc82 commit 61238e4Copy full SHA for 61238e4
gcc/rust/hir/rust-hir-dump.cc
@@ -2196,7 +2196,7 @@ Dump::visit (StructPatternFieldIdentPat &e)
2196
auto oa = e.get_outer_attrs ();
2197
do_outer_attrs (oa);
2198
put_field ("ident", e.get_identifier ().as_string ());
2199
- put_field ("ident_pattern", e.get_pattern ().as_string ());
+ visit_field ("ident_pattern", e.get_pattern ());
2200
end ("StructPatternFieldIdentPat");
2201
}
2202
@@ -2314,7 +2314,7 @@ Dump::visit (LetStmt &e)
2314
2315
2316
2317
- put_field ("variable_pattern", e.get_pattern ().as_string ());
+ visit_field ("variable_pattern", e.get_pattern ());
2318
2319
if (e.has_type ())
2320
visit_field ("type", e.get_type ());
0 commit comments