[COMMITTED 102/146] gccrs: add support for lang_item eq and PartialEq trait

2025-03-27 Thread arthur . cohen
From: Philip Herron The Eq and Partial Ord are very similar to the operator overloads we support for add/sub/etc... but they differ in that usually the function call name matches the name of the lang item. This time we need to have support to send in a new path for the method call on the lang ite

[COMMITTED 106/146] gccrs: Allow float type to be casted as integer type

2025-03-27 Thread arthur . cohen
From: Nobel gccrs now should be able to cast float types as numeric. gcc/rust/ChangeLog: * typecheck/rust-casts.cc (TypeCastRules::cast_rules): Add rule. gcc/testsuite/ChangeLog: * rust/compile/cast_float_as_integer.rs: New test. Signed-off-by: Nobel Singh --- gcc/rust/type

e621 password reset

2025-03-27 Thread noreply
Password Reset Request Someone has requested that the password for "gcc-rust" for the website e621 be reset. If you did not request this, then you can ignore this email. To reset your password, please visit this link.

[COMMITTED 061/144] gccrs: Fix v0-mangle1.rs test when run with ASAN

2025-03-27 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * util/rust-canonical-path.h (CanonicalPath::CanonicalPath): Properly initialize crate_num with copy constructor. gcc/testsuite/ChangeLog: * rust/compile/v0-mangle1.rs: Make v0-mangle test more crate_num agnostic. Si

[COMMITTED 056/146] gccrs: mappings: Move lang_item definitions to .cc

2025-03-27 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * util/rust-hir-map.h: Move definitions from header... * util/rust-hir-map.cc: ...to source file. --- gcc/rust/util/rust-hir-map.cc | 19 +++ gcc/rust/util/rust-hir-map.h | 18 ++ 2 files changed, 21 inserti

[COMMITTED 013/146] gccrs: add test case to show method resolution is working

2025-03-27 Thread arthur . cohen
From: Philip Herron The issue here was that the impl block for Cell defines that T must have the bound of Copy implemented. But simultaneously if you do an deref you get direct access to the unsafe cell which also defines a get method so these are two valid ways of accessing the method in questio

[COMMITTED 140/144] gccrs: Load unloaded modules during toplevel resolution 2.0

2025-03-27 Thread arthur . cohen
From: Owen Avery This may load conditionally compiled modules too eagerly. gcc/rust/ChangeLog: * resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit): Load unloaded modules before attempting to visit their items. gcc/testsuite/ChangeLog: * rust/compile/