[COMMITTED 13/32] gccrs: nr2.0: Remove duplicate self visit

2025-04-10 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Remove explicit visitation of a function's self parameter, as if it exists it'll be visited as one of the function parameters. gcc/testsuite/ChangeLog: * rust/comp

[COMMITTED 20/32] gccrs: Make loop label truly optional

2025-04-10 Thread arthur . cohen
From: Pierre-Emmanuel Patry A loop label error state was in use to represent missing loop label but this may be easily forgotten and the optional nature of the label was misrepresented. gcc/rust/ChangeLog: * ast/rust-ast-builder.cc (Builder::block): Call with a nullopt instead o

☺ Buildbot (Sourceware): gccrust - build successful (master)

2025-04-10 Thread builder
A restored build has been detected on builder gccrust-debian-i386 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/27/builds/2845 Build state: build successful Revision: a179c05f228cace7bcaba8c550e0550993ff5a46 Worker: debian-i386 Buil

[COMMITTED 25/32] gccrs: Resolve labels within break or continue expressions

2025-04-10 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::visit): Add call to label resolution if there is one label. (Late::resolve_label): Look for labels and emit an error message on failure. * resolve/rust-late-nam

[COMMITTED 01/32] gccrs: Evaluate the enum's discriminant in a const context

2025-04-10 Thread arthur . cohen
From: Ryutaro Okada <1015ry...@gmail.com> gcc/rust/ChangeLog: * backend/rust-compile-resolve-path.cc: Evaluate the enum's discriminant in a const context gcc/testsuite/ChangeLog: * rust/compile/enum_discriminant1.rs: New test. Signed-off-by: Ryutaro Okada <1015ry...@gmail.com>

[Bug rust/119508] Hundreds of rust tests XPASS

2025-04-10 Thread sjames at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119508 --- Comment #9 from Sam James --- It is, as r15-9287-g89ca1e3cb697a8. -- You are receiving this mail because: You are on the CC list for the bug.

[COMMITTED 29/32] gccrs: Rename label getter to unchecked

2025-04-10 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Update label getter call. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. * ast/rust-ast.cc (BreakExpr::as_string): Likewise. * hir/rust-as

☠ Buildbot (Sourceware): gccrust - failed '! grep ...' (failure) (master)

2025-04-10 Thread builder
A new failure has been detected on builder gccrust-fedora-x86_64 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/16/builds/3441 Build state: failed '! grep ...' (failure) Revision: 429897c851b460b9256d96e3e504dfe15342d125 Worker: bb1-

[COMMITTED 15/32] gccrs: refactoring rust_error_at "redefined multiple times"

2025-04-10 Thread arthur . cohen
From: Sri Ganesh Thota gcc/rust/ChangeLog: * resolve/rust-ast-resolve-base.h (redefined_error): created a function for rust_error_at for redefined at multiple times. * resolve/rust-ast-resolve-implitem.h: changed rust_error_at to redefined_error. * resolve/rust-

[COMMITTED 30/32] gccrs: fix ICE segfault with empty feature gate

2025-04-10 Thread arthur . cohen
From: Matty Kuhn This patch fixes an issue where an empty feature gate would segfault, instead of reporting a syntax error to the user. gcc/rust/ChangeLog: * ast/rust-ast.h: (AST::Attribute): add empty_input function * checks/errors/rust-feature-gate.cc: (FeatureGate::visit): ch