Skip to content

Fix macro invocation in impl trait type bound#3450

Merged
CohenArthur merged 3 commits into
Rust-GCC:masterfrom
CohenArthur:fix-issue-2015
Feb 25, 2025
Merged

Fix macro invocation in impl trait type bound#3450
CohenArthur merged 3 commits into
Rust-GCC:masterfrom
CohenArthur:fix-issue-2015

Conversation

@CohenArthur

Copy link
Copy Markdown
Member

Fixes #2015

gcc/rust/ChangeLog:

	* hir/rust-ast-lower-base.cc (ASTLoweringBase::visit): Add base implementation
	for visitor.
Some empty overrides were incorrectly being set-up instead of using the correct behavior
from DefaultASTVisitor.

gcc/rust/ChangeLog:

	* resolve/rust-early-name-resolver.cc: Remove definitions.
	* resolve/rust-early-name-resolver.h: Remove declarations.
gcc/rust/ChangeLog:

	* expand/rust-expand-visitor.cc (ExpandVisitor::visit): Correctly visit the generic args
	of a generic type path segment.

gcc/testsuite/ChangeLog:

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

@philberty philberty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM can you make an issue to update this testcase once i finish the opaque types implementation in typechecking and codegen

@CohenArthur CohenArthur added this pull request to the merge queue Feb 25, 2025
Merged via the queue into Rust-GCC:master with commit 9075c99 Feb 25, 2025
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.

ICE when using associated types

3 participants