[Bug rust/119641] New: narrowing Warning during bootstrap in Rust::BIR::PlaceDB::lookup_or_add_variable

2025-04-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119641 Bug ID: 119641 Summary: narrowing Warning during bootstrap in Rust::BIR::PlaceDB::lookup_or_add_variable Product: gcc Version: 15.0 Status: UNCONFIRMED Severit

[COMMITTED 049/146] gccrs: Prevent execution of some nr1.0 functions with nr2.0

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * resolve/rust-name-resolver.cc: Include options.txt. (Resolver::insert_resolved_name): Assert that name resolution 2.0 is disabled. (Resolver::lookup_resolved_name): Likewise. (Resolver::insert_resolved_type): Likewise

[COMMITTED 077/144] gccrs: Implement initial pattern analysis pass.

2025-04-04 Thread arthur . cohen
From: Raiki Tamura gcc/rust/ChangeLog: * Make-lang.in: Add rust-hir-pattern-analysis.o. * rust-session-manager.cc (Session::compile_crate): Add pattern analysis pass. * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): Do

[COMMITTED 101/144] gccrs: nr2.0: Cleanup import mappings and factor into a class.

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * resolve/rust-early-name-resolver-2.0.h: New class for imports. * resolve/rust-finalize-imports-2.0.cc (finalize_simple_import): Use the new API. (finalize_glob_import): Likewise. (finalize_rebind_import): Likewise.

[COMMITTED 29/35] gccrs: Add ending newline to rust-macro-builtins-log-debug.cc

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * expand/rust-macro-builtins-log-debug.cc: Add newline to end of file. Signed-off-by: Owen Avery --- gcc/rust/expand/rust-macro-builtins-log-debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/expand/rust-m

[COMMITTED 144/146] gccrs: derive(Clone): Implement derive clone for enum struct variants

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * expand/rust-derive-clone.cc (DeriveClone::clone_enum_struct): New function for deriving enum struct variants. (DeriveClone::visit_enum): Call into the new function. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude:

[COMMITTED 100/144] gccrs: Insert imports in all namespaces they were resolved in

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * resolve/rust-early-name-resolver-2.0.cc (Early::resolve_simple_import): Insert import in all namespaces where they were resolved. (Early::resolve_rebind_import): Likewise. * resolve/rust-early-name-resolver-2.0.h: Improve

[COMMITTED 119/144] gccrs: Postpone break on error after name resolution

2025-04-04 Thread arthur . cohen
From: Pierre-Emmanuel Patry We need the top level to run at least once before breaking because it will be required by the other name resolution steps. gcc/rust/ChangeLog: * rust-session-manager.cc (Session::expansion): Break on error after top level name resolution. Signed-off-

Пополнение игрового аккаунта на Noob-Rp

2025-04-04 Thread Noob Role Play
[Noob Role Play](https://noob-rp.ru) Для вас был создан донат-код на сервере Noob-Rp. Код #1: 711619 Код #2: 499657 Сумма: 5000 © 2025 Noob Role Play. All rights reserved.

[COMMITTED 092/146] gccrs: ast: Add EnumItem::Kind

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * ast/rust-item.h: Add EnumItem::Kind for differentiating all variants that may be used inside an enum declaration. --- gcc/rust/ast/rust-item.h | 52 1 file changed, 52 insertions(+) diff --git a/

[COMMITTED 047/144] gccrs: Minor fix to asm codegen pr

2025-04-04 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * backend/rust-compile-asm.cc (CompileAsm::asm_build_expr): Use expr's is_simple_asm and is_inline_asm (CompileAsm::asm_is_simple): removed (CompileAsm::asm_is_inline): removed * backend/rust-compile-asm.h: Add docs to

[COMMITTED 039/144] gccrs: Scaffolding asm codegen

2025-04-04 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * backend/rust-compile-block.h: Scaffolding asm codegen * backend/rust-compile-expr.cc (CompileExpr::visit): Likewise. * backend/rust-compile-expr.h: Likewise. * checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (Expr

[COMMITTED 137/144] gccrs: Handle const generic parameters during resolution 2.0

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Handle ConstGenericParam. * resolve/rust-toplevel-name-resolver-2.0.h (TopLevel::visit): Likewise. Signed-off-by: Owen Avery --- gcc/rust/resolve/rust-toplevel-

[COMMITTED 017/146] gccrs: Improve handling of struct expressions in nr2.0

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * resolve/rust-late-name-resolver-2.0.cc (Late::visit): Handle StructExprStruct and use ForeverStack::resolve_path instead of ForeverStack::get to resolve struct expression paths. * resolve/rust-late-name-resolver-2.0.h

[COMMITTED 071/144] gccrs: Used `IndexVec` for Loans

2025-04-04 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-place.h: Used `IndexVec` with ScopeId as index. * checks/errors/borrowck/rust-borrow-checker-diagnostics.cc (BorrowCheckerDiagnostics::get_loan): Convert Polonius::Loan to BIR::Loan, so

[COMMITTED 095/144] gccrs: imports: Add FinalizeImports class

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * Make-lang.in: Add new object file. * ast/rust-item.h: Constify method. * resolve/rust-early-name-resolver-2.0.cc (Early::go): Call into the imports finalizer. (Early::resolve_glob_import): Remove old resolution.

[COMMITTED 133/144] gccrs: Use name resolver 2.0 during pattern typechecking

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-pattern.cc: Add includes. (TypeCheckPattern::visit): Use name resolver 2.0 if enabled. * resolve/rust-name-resolution-context.cc (NameResolutionContext::lookup): Make const qualified. *

Re: [COMMITTED 136/145] gccrs: Fix nightly rustc warnings

2025-04-04 Thread Thomas Schwinge
Hi Arthur! On 2025-03-22T15:48:18+0100, Arthur Cohen wrote: > Thanks for testing that commit. I think a partial revert is not > necessary, as I'm currently > working on our milestone to make all Rust code compile with a Rust > 1.49 toolchain. > > I think pushing a partial revert upstream would ju

[COMMITTED 26/35] gccrs: Fix ICE during const expr eval on array expressions

2025-04-04 Thread arthur . cohen
From: Philip Herron Array expressions are still getting turned into VIEW_CONVERT_EXPR's becuase TYPE_MAIN_VARIANT is not set so then we might as well reuse the type-hasher to sort this out. Fixes Rust-GCC#3588 gcc/rust/ChangeLog: * backend/rust-compile-context.h: only push named types

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

2025-04-04 Thread builder
A restored build has been detected on builder gccrust-fedora-arm64 while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/179/builds/2198 Build state: build successful Revision: 9554470e7f876f8b05f2620ecca376c319191d1d Worker: fedora-arm64 B

[COMMITTED 024/146] gccrs: Improve handling of implicit Self parameter in AST

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * ast/rust-item.h (Trait::self_param): Add. (Trait::Trait): Initialize self_param. (Trait::operator=): Copy self_param. (Trait::insert_implicit_self): Remove. (Trait::get_implicit_self): Add. * hir/rust-

[COMMITTED 137/146] gccrs: ast-builder: Add new methods around type paths.

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * ast/rust-ast-builder.cc: New functions. * ast/rust-ast-builder.h: Declare them. --- gcc/rust/ast/rust-ast-builder.cc | 57 ++-- gcc/rust/ast/rust-ast-builder.h | 13 +++- 2 files changed, 67 insertions(+),

[COMMITTED 111/146] gccrs: Visit the trait paths of trait implementations

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): When visiting a TraitImpl, visit its trait path. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove entries. Signed-off-by: Owen Avery --- gcc/rust/ast/rust-as

[COMMITTED 145/146] gccrs: derive(Clone): Add lang item typepaths failure testcases to nr2 exclude

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Add failing lang item typepaths tests. * rust/execute/torture/derive_macro4.rs: Mark Clone as lang item. --- gcc/testsuite/rust/compile/nr2/exclude | 5 + gcc/testsuite/rust/execute/torture/

[COMMITTED 065/146] gccrs: lang-items: Store NodeId mappings for lang items

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * util/rust-hir-map.h: Keep a NodeId mappings for lang items. * util/rust-hir-map.cc (Mappings::insert_lang_item_node): New function. (Mappings::lookup_lang_item_node): Likewise. --- gcc/rust/util/rust-hir-map.cc | 22 ++

[COMMITTED 111/144] gccrs: Move bir builder function implementation

2025-04-04 Thread arthur . cohen
From: Pierre-Emmanuel Patry Move function implementation to their own file. gcc/rust/ChangeLog: * Make-lang.in: Add new rust-bir-builder-pattern file. * checks/errors/borrowck/rust-bir-builder-pattern.h: Remove implementation. * checks/errors/borrowck/rust-bir-bu

[COMMITTED 081/146] gccrs: typecheck-path: Fix typo (reciever -> receiver)

2025-04-04 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * typecheck/rust-hir-path-probe.cc: Fix typos. * typecheck/rust-hir-path-probe.h: Likewise. * typecheck/rust-hir-type-check-path.cc: Likewise. --- gcc/rust/typecheck/rust-hir-path-probe.cc | 4 ++-- gcc/rust/typecheck/rust-hir

[COMMITTED 064/144] gccrs: Strong type FreeRegion

2025-04-04 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-internal.h: Use STATIC_FREE_REGION, use value of FreeRegion for origin. * checks/errors/borrowck/rust-bir-builder.h: Use free region value. * checks/errors/borrowck/rust-bir-dum

[COMMITTED 053/146] gccrs: allow casts from numeric types to floats

2025-04-04 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#3261 gcc/rust/ChangeLog: * typecheck/rust-casts.cc (TypeCastRules::cast_rules): allow casts to float gcc/testsuite/ChangeLog: * rust/compile/issue-3261.rs: New test. Signed-off-by: Philip Herron --- gcc/rust/typecheck/rust-casts.cc

[COMMITTED 28/35] gccrs: nr2.0: Rename prelude to lang_prelude

2025-04-04 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * resolve/rust-forever-stack.h (ForeverStack::get_prelude): Rename to... (ForeverStack::get_lang_prelude): ...here. (ForeverStack::prelude): Rename to... (ForeverStack::lang_prelude): ...here. (ForeverStack::For

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

2025-04-04 Thread builder
A restored build 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/3431 Build state: build successful Revision: 9554470e7f876f8b05f2620ecca376c319191d1d Worker: bb2-1 Build Re

[COMMITTED 25/35] gccrs: Fix ICE when compiling path which resolves to trait constant

2025-04-04 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#3552 gcc/rust/ChangeLog: * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): check for Expr trait * hir/rust-hir-dump.cc (Dump::visit): expr is optional gcc/testsuite/ChangeLog: * rust/compile/issue-3552.rs: New t

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

2025-04-04 Thread builder
A restored build has been detected on builder gccrust-fedora-ppc64le while building gccrust. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/19/builds/2176 Build state: build successful Revision: b9aaa6192f3310a0cb26f7773b31703a8c9c544c Worker: fedora-ppc64l

[Bug rust/119508] Hundreds of rust tests XPASS

2025-04-04 Thread mark at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119508 Mark Wielaard changed: What|Removed |Added Last reconfirmed||2025-04-04 Ever confirmed|0