Skip to content

gccrs: Handle generic args to traits in paths - #4854

Merged
philberty merged 1 commit into
masterfrom
phil/trait-generic
Sep 7, 2026
Merged

gccrs: Handle generic args to traits in paths#4854
philberty merged 1 commit into
masterfrom
phil/trait-generic

Conversation

@philberty

Copy link
Copy Markdown
Member

Fixes #4853

gcc/rust/ChangeLog:

* typecheck/rust-substitution-mapper.cc (SubstMapper::valid_type): check for dyn object
(SubstMapper::visit): substitution on it
* typecheck/rust-substitution-mapper.h: add impl

gcc/testsuite/ChangeLog:

* rust/compile/issue-4853.rs: New test.

Fixes #4853

gcc/rust/ChangeLog:

	* typecheck/rust-substitution-mapper.cc (SubstMapper::valid_type): check for dyn object
	(SubstMapper::visit): substitution on it
	* typecheck/rust-substitution-mapper.h: add impl

gcc/testsuite/ChangeLog:

	* rust/compile/issue-4853.rs: New test.

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
@philberty philberty added the core Issue related to the compilation of the `core` crate label Sep 6, 2026
@philberty
philberty added this pull request to the merge queue Sep 7, 2026
Merged via the queue into master with commit 8a8099e Sep 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issue related to the compilation of the `core` crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

failed to handle f32 generic thing

1 participant