diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-11-05 22:27:44 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-08 21:10:20 +0800 |
commit | 1271b772038d1e01cfed35ea5c764ceedc9842f9 (patch) | |
tree | 7a79b1fc23c33a0bb5f7916ac3a8973fb3387ed1 /gcc/rust/ast/rust-ast-full-test.cc | |
parent | 69048af1878e95e26b57febb701f884f513c7b93 (diff) | |
download | gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.zip gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.tar.gz gcc-1271b772038d1e01cfed35ea5c764ceedc9842f9.tar.bz2 |
Added more trait item stripping
Fixed lack of AST:: prepending in rust-parse-impl.h - should prevent compilation error
Fixed expr renaming in Method as_string, should prevent compile error
Fixed issue with changing location accessibility for AST nodes
Fixed rust-compile.cc not using get_locus() instead of .locus
Diffstat (limited to 'gcc/rust/ast/rust-ast-full-test.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast-full-test.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/rust/ast/rust-ast-full-test.cc b/gcc/rust/ast/rust-ast-full-test.cc index 1e95e47..8071226 100644 --- a/gcc/rust/ast/rust-ast-full-test.cc +++ b/gcc/rust/ast/rust-ast-full-test.cc @@ -678,33 +678,23 @@ Method::as_string () const else { for (const auto ¶m : function_params) - { str += "\n " + param.as_string (); - } } str += "\n Return type: "; if (has_return_type ()) - { str += return_type->as_string (); - } else - { str += "none (void)"; - } str += "\n Where clause: "; if (has_where_clause ()) - { str += where_clause.as_string (); - } else - { str += "none"; - } str += "\n Block expr (body): \n "; - str += expr->as_string (); + str += function_body->as_string (); return str; } |