Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Self prefix PathInExpression with nr2 #3391

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

P-E-P
Copy link
Member

@P-E-P P-E-P commented Jan 28, 2025

Fixing resolution of some path with Self prefix.

@P-E-P P-E-P force-pushed the self_path_resolution branch from f106351 to 0900c94 Compare January 28, 2025 15:39
@P-E-P P-E-P changed the title Resolve path starting with Self with nr2 Resolve Self prefix PathInExpression with nr2 Jan 28, 2025
@P-E-P P-E-P marked this pull request as draft January 28, 2025 16:04
gcc/rust/ChangeLog:

	* ast/rust-path.h:
	* resolve/rust-forever-stack.h:
	* resolve/rust-forever-stack.hxx:
	* resolve/rust-late-name-resolver-2.0.cc (Late::visit):
	* resolve/rust-toplevel-name-resolver-2.0.cc (TopLevel::visit):

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
@P-E-P P-E-P force-pushed the self_path_resolution branch from 0900c94 to c167dc7 Compare January 29, 2025 11:40
@powerboat9
Copy link
Collaborator

It seems like path resolution should, if it can't resolve a segment, attempt to resolve that segment as if it was the last segment.

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.

2 participants