This is an automated email from the git hooks/post-receive script.
unknown user pushed a change to branch master in repository gcc.
from 6dce8a479a2 gccrs: Change return type of lookup trait defid functions. new 16bf7555b6f gccrs: Change lookup_hir_extern_item return type new d75c82ef175 gccrs: Change lookup_module function return type new f7031e6a2ce gccrs: Change return type to optional in get_lang_item new 01e2a53cb84 gccrs: Change lookup_hir_implitem return type new 4dd34b1fd12 gccrs: Change lookup_hir_expr return type to optional new 2fc05741bbf gccrs: Change lookup_hir_path_expr_seg return type new c0b38c2aa57 gccrs: Change lookup_hir_generic_param return type new ffa5f60ad90 gccrs: Change lookup_hir_type return type with an optional new 8f8d6d1a03e gccrs: Change lookup_hir_smt's return type with optional new bcc66efaf14 gccrs: Change lookup_hir_param return type with optional new 2c08ad6c41c gccrs: Change lookup_hir_self_param return type new 058d76b9a84 gccrs: Change lookup_hir_struct_field return type new 19ed0a94fa4 gccrs: Change lookup_hir_pattern return type new 80c44d211c0 gccrs: Change lookup_canonical_path's return path new e4778eceb42 gccrs: Change lookup_macro_def return type new 1d7d56aab77 gccrs: Change lookup_macro_invocation's return type new 3c1653b7b01 gccrs: Change lookup_visibility's return type new ba56cdb5271 gccrs: Change lookup_ast_item's return type new a739da61d30 gccrs: mingw: Fix build with patch from Liu Hao new a8f468bbc9f gccrs: Remove useless cstddef header from rust-fmt new 9039c25357e gccrs: Add call and method call default visitors new 8fb6d2c3e55 gccrs: Add system include to `gcc/rust/rust-system.h` new 47ef813d849 gccrs: Make gccrs recognize negative_impls new 3cf827ad4b9 gccrs: Corrected access specifiers new d602f4694c6 gccrs: Allow rustc_const_stable and rustc_const_unstable new 4ed53c58b4c gccrs: Improve handling of ConstantItem during name resolution 2.0 new 813a1e617bd gccrs: Parse box expressions new 1e430a7957e gccrs: Add feature gate for box syntax new bb555badd4e gccrs: Add new test for box syntax new f092edae965 gccrs: Fix generic parameter parsing new 6fef5bc4975 gccrs: Allow multiple outer attributes on generic params new 8cd5487f441 gccrs: Add dropck_eyepatch feature gate for may_dangle new 997fa94b527 gccrs: Add two new tests related to may_dangle attribute new fc1712be9ff gccrs: Add outer attributes to struct expr fields new 949892cb959 gccrs: Add a new regression test over struct expr field new a0f4c30e52a gccrs: Parse raw ref operator new a2a66257457 gccrs: Prevent raw reference from being lowered silently new 4395d689347 gccrs: Add raw_ref_op feature gate new ea32c9b17fa gccrs: Add some test for raw_ref_op to prevent regressions new cc7ec3925c3 gccrs: Parse exclusive range pattern new ab89ab377d8 gccrs: Add exclusive_range_pattern feature gate new 9e9be0f396e gccrs: Add regression tests for exclusive range pattern new ab988c156f9 gccrs: Almost done with top level parsing new 2695feddfda gccrs: Working on parseAsmArg new 2ea6a697d74 gccrs: Introduce first implementation of parse_clobber_abi new fe6dd9ac6ae gccrs: Working on parse_options for a bit more new 1445be19b12 gccrs: Fix clobber_api brackets new 7fb49cb14a3 gccrs: First draft of parse_option finished new db7903e17fc gccrs: Introduced is_global_asm to InlineAsm AST new ca10fe5f2a6 gccrs: Make InlineAsm non-abstract for usage in parsing. new 7f6fd8db487 gccrs: Replace scaffolded InlineAsm with real InlineAsm. new d273b3a78a1 gccrs: Add a simple no-op test for asm! new f5c832e2f75 gccrs: Top level parsing test for asm! new 68a0a2cd79c gccrs: Add tests parsing with trailing commas inline asm new ae0ae911c43 gccrs: Added faulty tests for inline asm cloberring new 26c50996efd gccrs: Implemented parse_clobber_abi to pass new tests new c02891fd841 gccrs: Parsing of options(...) done. new 16e2b3e5595 gccrs: Wraps inline_asm tests in unsafe {} new 63da1346b05 gccrs: Add checks for duplicate options in inline asm new 3d99542a870 gccrs: Resolve static decl warning new ec5104296ca gccrs: Scaffolding parse_reg new 939b1262faf gccrs: Rename InlineAsmOptions to InlineAsmOption new bcd7de43808 gccrs: Safegaurd InlineAsm's clone_expr_... new c3d566ec7b3 gccrs: Remove global_asm and non_global_asm handler new 07fb0f1e3dc gccrs: Big Refactor after meeting new af786adccd9 gccrs: Renamed parseAsmArg to conform to other function names new 5d2d1a2d981 gccrs: Working towards parse_reg and parse_reg_operand new 256bb62f995 gccrs: Got AST::Fragment to be created from InlineAsm new f0c9a6e73d2 gccrs: Refactoring for inline asm pr new a030a5295ea gccrs: Slim down the test cases new bfc249cc179 gccrs: Add support for AST to HIR inline asm translation new d7f480b7693 gccrs: Partial unsafe support for inline asm new c3c045746ec gccrs: Fix warnings new fe3dd57b568 gccrs: Scaffolding ast visitor for InlineAsm new 7039e95a67c gccrs: Scaffolding HIRFullVisitor for inline asm new 58a5a14875e gccrs: Successful parse of in and inout, albeit with str new afc905c2d7b gccrs: Add potentially_nonpromoted_keywords set str new e0eb48c3a91 gccrs: Fix visitor-related warnings new 83465864dbd gccrs: Refactoring and supporting more parse_reg_operand new c1662670f70 gccrs: Partial support for operand new 2e62553cb02 gccrs: Scaffolding validation of asm! new b731ef4ec2f gccrs: Update parser to parse strings in the first stage new 9cde9ec5686 gccrs: Move parser and last_token_id to InlineAsmCtx new 3c14514dbcb gccrs: Expected first layer done new 2658b0642b7 gccrs: Partial second layer of expected in parsing asm new a3e002aa61e gccrs: Fix optional trait parsing new d129c4ed804 gccrs: expand: Keep track of semicoloned builtin macros new 92418978e8a gccrs: expand: Switch semicolon boolean to an enum instead. new 10ba2fdca79 gccrs: Add test case for using asm! outside of unsafe {} new a9c95b82781 gccrs: Added ExprType::InlineAsm new 908a4f88c6b gccrs: Add RAW_STRING_LITERAL new f443b80b20e gccrs: Finish incorporating expected of parse_reg_operand new f506ca07e1c gccrs: Finish expected parse_reg_operand new e780a09bd81 gccrs: Scaffold expected on parse_options and asm_arg new 95c31e91eab gccrs: Added tl::expected to parse_operand new bad8b19ced1 gccrs: Added a test that is expected to fail new 719870217a8 gccrs: Add WARN_UNUSED_RESULT parse error new c75e5339497 gccrs: Addresses warning, put warn unused in right place new e3db0b39198 gccrs: Clean up monadic operations on expected<> new 2f80f40a25f gccrs: Store parse result of parse_format_string(s) new 4d34ed8aaa3 gccrs: Safe-guard InlineAsm structs new dbdb6e3cd2a gccrs: [gccrs#3051] Remove unnecessary #include from rust-expr.h new e50983a7563 rust: fix HIR dump for MatchExpr new 29f847e8b8c gccrs: Added FFIVector to get Polonius output on C++ side new d9167a76f4d gccrs: Fix nightly rustc warnings new 8a83c569101 gccrs: Introduce new class to handle borrow errors new 57d12c683b3 gccrs: Improve error messages for operator expressions new f89b07d3589 gccrs: Update pattern with \r* for dg-output tests new 75dce4d6292 gccrs: [gccrs#3046] ICE on failing to find enum variant new af969f521be gccrs: Change assertion of constructor new 29873023edd gccrs: Added options for ParseMode new 9afadf56ca5 gccrs: Fix ffi and enum conventions new c7cdae718c2 gccrs: [gccrs#2987] Patch ICE when deriving Clone and Copy new f9a8ce88cb3 gccrs: [E0576] Associated `item` not found in given `type`
The 114 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: gcc/rust/Make-lang.in | 8 + gcc/rust/ast/rust-ast-builder.cc | 5 +- gcc/rust/ast/rust-ast-collector.cc | 48 +- gcc/rust/ast/rust-ast-collector.h | 3 +- gcc/rust/ast/rust-ast-fragment.h | 15 +- gcc/rust/ast/rust-ast-full-decls.h | 2 +- gcc/rust/ast/rust-ast-visitor.cc | 17 +- gcc/rust/ast/rust-ast-visitor.h | 5 + gcc/rust/ast/rust-ast.cc | 54 +- gcc/rust/ast/rust-ast.h | 15 +- gcc/rust/ast/rust-expr.h | 445 ++++++++++- gcc/rust/ast/rust-fmt.cc | 6 +- gcc/rust/ast/rust-fmt.h | 12 +- gcc/rust/ast/rust-item.h | 14 +- gcc/rust/ast/rust-macro.h | 2 +- gcc/rust/ast/rust-path.h | 10 +- gcc/rust/ast/rust-pattern.cc | 31 +- gcc/rust/ast/rust-pattern.h | 32 +- gcc/rust/backend/rust-compile-base.cc | 10 +- gcc/rust/backend/rust-compile-base.h | 4 +- gcc/rust/backend/rust-compile-extern.h | 6 +- gcc/rust/backend/rust-compile-implitem.cc | 16 +- gcc/rust/backend/rust-compile-item.cc | 33 +- gcc/rust/backend/rust-compile-resolve-path.cc | 20 +- gcc/rust/backend/rust-mangle-v0.cc | 16 +- .../errors/borrowck/ffi-polonius/src/gccrs_ffi.rs | 5 + .../ffi-polonius/src/gccrs_ffi_generated.rs | 6 +- .../checks/errors/borrowck/ffi-polonius/src/lib.rs | 76 +- .../errors/borrowck/polonius/rust-polonius-ffi.h | 71 +- .../errors/borrowck/polonius/rust-polonius.cc | 66 ++ .../errors/borrowck/polonius/rust-polonius.h | 24 + .../errors/borrowck/rust-bir-builder-struct.h | 1 + .../borrowck/rust-borrow-checker-diagnostics.cc | 67 ++ .../borrowck/rust-borrow-checker-diagnostics.h | 70 ++ .../checks/errors/borrowck/rust-borrow-checker.cc | 54 +- .../errors/borrowck/rust-function-collector.h | 1 + .../checks/errors/privacy/rust-privacy-reporter.cc | 8 +- .../errors/privacy/rust-pub-restricted-visitor.cc | 6 +- .../errors/privacy/rust-visibility-resolver.cc | 16 +- gcc/rust/checks/errors/rust-const-checker.cc | 13 +- gcc/rust/checks/errors/rust-const-checker.h | 2 + gcc/rust/checks/errors/rust-feature-gate.cc | 73 ++ gcc/rust/checks/errors/rust-feature-gate.h | 18 +- gcc/rust/checks/errors/rust-feature.cc | 23 +- gcc/rust/checks/errors/rust-feature.h | 7 +- gcc/rust/checks/errors/rust-unsafe-checker.cc | 35 +- gcc/rust/checks/errors/rust-unsafe-checker.h | 1 + gcc/rust/checks/lints/rust-lint-marklive.cc | 33 +- gcc/rust/expand/rust-derive.h | 2 + gcc/rust/expand/rust-expand-visitor.cc | 22 +- gcc/rust/expand/rust-macro-builtins-asm.cc | 837 ++++++++++++++++++++- gcc/rust/expand/rust-macro-builtins-asm.h | 164 ++++ gcc/rust/expand/rust-macro-builtins-format-args.cc | 8 +- gcc/rust/expand/rust-macro-builtins-include.cc | 17 +- gcc/rust/expand/rust-macro-builtins-location.cc | 10 +- gcc/rust/expand/rust-macro-builtins-log-debug.cc | 4 +- gcc/rust/expand/rust-macro-builtins-utility.cc | 15 +- gcc/rust/expand/rust-macro-builtins.cc | 28 +- gcc/rust/expand/rust-macro-builtins.h | 56 +- gcc/rust/expand/rust-macro-expand.cc | 48 +- gcc/rust/expand/rust-macro-expand.h | 7 +- gcc/rust/expand/rust-proc-macro.cc | 36 +- gcc/rust/hir/rust-ast-lower-base.cc | 13 + gcc/rust/hir/rust-ast-lower-base.h | 2 + gcc/rust/hir/rust-ast-lower-expr.cc | 35 +- gcc/rust/hir/rust-ast-lower-expr.h | 2 + gcc/rust/hir/rust-ast-lower-pattern.cc | 3 + gcc/rust/hir/rust-hir-dump.cc | 48 +- gcc/rust/hir/rust-hir-dump.h | 3 + gcc/rust/hir/tree/rust-hir-expr.h | 65 +- gcc/rust/hir/tree/rust-hir-visitor.h | 3 + gcc/rust/hir/tree/rust-hir.cc | 30 +- gcc/rust/hir/tree/rust-hir.h | 1 + gcc/rust/lex/rust-lex.cc | 2 +- gcc/rust/lex/rust-token.cc | 3 + gcc/rust/lex/rust-token.h | 8 + gcc/rust/metadata/rust-export-metadata.cc | 15 +- gcc/rust/parse/rust-parse-impl.h | 140 +++- gcc/rust/parse/rust-parse.cc | 2 +- gcc/rust/parse/rust-parse.h | 3 + gcc/rust/resolve/rust-ast-resolve-base.cc | 8 + gcc/rust/resolve/rust-ast-resolve-base.h | 2 + gcc/rust/resolve/rust-ast-resolve-type.cc | 3 +- gcc/rust/resolve/rust-default-resolver.cc | 32 +- gcc/rust/resolve/rust-default-resolver.h | 2 + gcc/rust/resolve/rust-early-name-resolver-2.0.cc | 33 +- gcc/rust/resolve/rust-early-name-resolver.cc | 20 +- .../resolve/rust-toplevel-name-resolver-2.0.cc | 8 +- gcc/rust/rust-system.h | 1 + gcc/rust/typecheck/rust-autoderef.cc | 5 +- gcc/rust/typecheck/rust-hir-type-check-enumitem.cc | 24 +- gcc/rust/typecheck/rust-hir-type-check-expr.cc | 57 +- gcc/rust/typecheck/rust-hir-type-check-implitem.cc | 7 +- gcc/rust/typecheck/rust-hir-type-check-item.cc | 67 +- gcc/rust/typecheck/rust-hir-type-check-path.cc | 2 +- gcc/rust/typecheck/rust-hir-type-check-type.cc | 14 +- gcc/rust/typecheck/rust-hir-type-check.cc | 6 +- gcc/rust/typecheck/rust-type-util.cc | 27 +- gcc/rust/typecheck/rust-tyty-bounds.cc | 6 +- gcc/rust/typecheck/rust-tyty.cc | 12 +- gcc/rust/util/rust-attribute-values.h | 3 + gcc/rust/util/rust-attributes.cc | 5 +- gcc/rust/util/rust-hir-map.cc | 133 ++-- gcc/rust/util/rust-hir-map.h | 63 +- gcc/testsuite/rust/compile/box_syntax.rs | 6 + .../rust/compile/box_syntax_feature_gate.rs | 5 + .../rust/compile/dropck_eyepatch_feature_gate.rs | 8 + .../rust/compile/exclusive_range_pattern.rs | 17 + .../exclusive_range_pattern_feature_gate.rs | 8 + .../rust/compile/inline_asm_faulty_clobber.rs | 14 + .../rust/compile/inline_asm_ident_first.rs | 12 + .../rust/compile/inline_asm_illegal_operands.rs | 24 + .../rust/compile/inline_asm_illegal_options.rs | 16 + .../rust/compile/inline_asm_legal_options.rs | 12 + gcc/testsuite/rust/compile/inline_asm_nop.rs | 13 + .../rust/compile/inline_asm_outside_unsafe.rs | 11 + .../rust/compile/inline_asm_parse_operand.rs | 37 + gcc/testsuite/rust/compile/issue-2725.rs | 3 + gcc/testsuite/rust/compile/issue-2987.rs | 17 + gcc/testsuite/rust/compile/issue-3046.rs | 23 + gcc/testsuite/rust/compile/may_dangle.rs | 10 + gcc/testsuite/rust/compile/negative_impls.rs | 8 + gcc/testsuite/rust/compile/negative_impls_2.rs | 16 + gcc/testsuite/rust/compile/not_raw_ref_op.rs | 9 + gcc/testsuite/rust/compile/raw_ref_op.rs | 11 + .../rust/compile/raw_ref_op_feature_gate.rs | 8 + gcc/testsuite/rust/compile/raw_ref_op_invalid.rs | 12 + gcc/testsuite/rust/compile/rustc_const_stable.rs | 4 +- gcc/testsuite/rust/compile/rustc_const_unstable.rs | 4 + gcc/testsuite/rust/compile/shadow1.rs | 2 +- .../rust/compile/struct_expr_field_attributes.rs | 22 + .../rust/compile/unknown-associated-item.rs | 10 + gcc/testsuite/rust/execute/torture/issue-2187.rs | 3 +- gcc/testsuite/rust/execute/xfail/macro1.rs | 2 +- libgrust/libformat_parser/Cargo.toml | 2 +- .../generic_format_parser/src/lib.rs | 16 - libgrust/libformat_parser/src/bin.rs | 3 +- libgrust/libformat_parser/src/lib.rs | 52 +- 138 files changed, 3349 insertions(+), 748 deletions(-) create mode 100644 gcc/rust/checks/errors/borrowck/polonius/rust-polonius.cc create mode 100644 gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.cc create mode 100644 gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.h create mode 100644 gcc/rust/expand/rust-macro-builtins-asm.h create mode 100644 gcc/testsuite/rust/compile/box_syntax.rs create mode 100644 gcc/testsuite/rust/compile/box_syntax_feature_gate.rs create mode 100644 gcc/testsuite/rust/compile/dropck_eyepatch_feature_gate.rs create mode 100644 gcc/testsuite/rust/compile/exclusive_range_pattern.rs create mode 100644 gcc/testsuite/rust/compile/exclusive_range_pattern_feature_gate.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_ident_first.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_illegal_operands.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_illegal_options.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_legal_options.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_nop.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_outside_unsafe.rs create mode 100644 gcc/testsuite/rust/compile/inline_asm_parse_operand.rs create mode 100644 gcc/testsuite/rust/compile/issue-2725.rs create mode 100644 gcc/testsuite/rust/compile/issue-2987.rs create mode 100644 gcc/testsuite/rust/compile/issue-3046.rs create mode 100644 gcc/testsuite/rust/compile/may_dangle.rs create mode 100644 gcc/testsuite/rust/compile/negative_impls.rs create mode 100644 gcc/testsuite/rust/compile/negative_impls_2.rs create mode 100644 gcc/testsuite/rust/compile/not_raw_ref_op.rs create mode 100644 gcc/testsuite/rust/compile/raw_ref_op.rs create mode 100644 gcc/testsuite/rust/compile/raw_ref_op_feature_gate.rs create mode 100644 gcc/testsuite/rust/compile/raw_ref_op_invalid.rs create mode 100644 gcc/testsuite/rust/compile/rustc_const_unstable.rs create mode 100644 gcc/testsuite/rust/compile/struct_expr_field_attributes.rs create mode 100644 gcc/testsuite/rust/compile/unknown-associated-item.rs