]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Refactor marker builtin trait assembly
authorPhilip Herron <herron.philip@googlemail.com>
Sat, 21 Jun 2025 14:40:50 +0000 (15:40 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:50 +0000 (16:36 +0200)
commit72c83626309b40ce327350d1ddf70bcf998a26c7
tree7d10a4efda9df1e6502864621aab6222a40753a7
parente59986b5230ec1a7309bb3e4cf0631c4e03e877b
gccrs: Refactor marker builtin trait assembly

Rename assemble_sized_builtin to assemble_marker_builtins and reorganize
the type matching to properly handle function pointers and closures with
their associated traits (Fn, FnMut, FnOnce).

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-bounds.h: Rename method.
* typecheck/rust-tyty-bounds.cc: Refactor marker trait assembly
and add proper Fn trait handling for function types.
gcc/rust/typecheck/rust-hir-type-bounds.h
gcc/rust/typecheck/rust-tyty-bounds.cc