Skip to content

gccrs: Fix deriving with generic const args#4715

Open
powerboat9 wants to merge 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-derive
Open

gccrs: Fix deriving with generic const args#4715
powerboat9 wants to merge 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-derive

Conversation

@powerboat9

Copy link
Copy Markdown
Collaborator

This doesn't fix an issue with the typechecker, so the included test only compiles up to the typechecking phase.

@philberty everything look good? This PR shouldn't be causing issues with the typechecker?

This doesn't fix an issue with the typechecker, so the included test
only compiles up to the typechecking phase.

gcc/rust/ChangeLog:

	* expand/rust-derive.cc (DeriveVisitor::setup_impl_generics):
	Create a constant generic argument from a constant generic
	parameter.

gcc/testsuite/ChangeLog:

	* rust/compile/derive_macro9.rs: New test.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant