aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-02-10 10:17:07 +0000
committerGitHub <noreply@github.com>2023-02-10 10:17:07 +0000
commit0d5d7a66ac7753f04e882d57388ca060f567d0a0 (patch)
tree89ed53c37b1c90b33583a4f069bc55fe0cab0c2c /gcc/rust/expand/rust-macro-builtins.cc
parentbceb118bc2f542382591803d9727b8c199a44ddd (diff)
parentc02a518fab792e5a8656cc7dfb0b88bb0de8a00f (diff)
parentd60022770403ee3799644fb3832cbdd0d721e0f7 (diff)
parent38bad2bf21ef0649b3e89bcccfe7e8f7c366de68 (diff)
parent7179562ff2854bdd128a2a4ddcd5da5ac59c4512 (diff)
parent9762350b8cac09e8f6671c42edc5cc4398b33753 (diff)
downloadgcc-0d5d7a66ac7753f04e882d57388ca060f567d0a0.zip
gcc-0d5d7a66ac7753f04e882d57388ca060f567d0a0.tar.gz
gcc-0d5d7a66ac7753f04e882d57388ca060f567d0a0.tar.bz2
Merge #1810 #1823 #1824 #1837 #1839
1810: fixed indentation in AST pretty printed expanded dump of trait. r=CohenArthur a=00AR fixes #1785 Signed-off-by: Abdul Rafey <abdulrafeyq@gmail.com> --- In Dump::visit (TraitImpl), the for loop adds indentation before calling visit () on every iteration. I think when Dump::visit (Method) is executed it adds extra indentation on top of it. 1823: parser: Improve parsing of complex generic arguments r=CohenArthur a=CohenArthur The parser was missing code for handling complex type arguments such as type paths or nested generics. gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_generic_arg): Handle type paths and nested generics properly. gcc/testsuite/ChangeLog: * rust/compile/parse_complex_generic_application.rs: New test. * rust/compile/parse_complex_generic_application2.rs: New test. 1824: parser: Fix parsing of closure param list r=CohenArthur a=CohenArthur gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_closure_expr): Advance tokens properly when parsing closure param list. gcc/testsuite/ChangeLog: * rust/compile/closure_move_expr.rs: New test. 1837: typecheck: Refactor rust-hir-trait-reference.h r=CohenArthur a=P-E-P Move function body to their own cc file instead of keeping them in the header file. gcc/rust/ChangeLog: * Make-lang.in: Add `rust-hir-trait-reference.o`. * typecheck/rust-hir-trait-reference.h: Remove multiple function body. * typecheck/rust-hir-trait-reference.cc: Add multiple function body. Fixes #1835 1839: cli: Update safety warning message r=CohenArthur a=P-E-P The compiler's warning message about the safety flag did not match cargo-gccrs environment variable name anymore. gcc/rust/ChangeLog: * rust-session-manager.cc (Session::compile_crate): Update the environment variable name. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> Fixes #1829 Co-authored-by: Abdul Rafey <abdulrafeyq@gmail.com> Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com> Co-authored-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>