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

Record canonical paths during name resolution 2.0 #3185

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

Conversation

powerboat9
Copy link
Contributor

No description provided.

gcc/rust/ChangeLog:

	* resolve/rust-toplevel-name-resolver-2.0.cc
	(TopLevel::TopLevel): Set canonical_crate_num to
	UNKNOWN_CRATENUM by default.
	(TopLevel::insert_or_error_out): Use
	Analysis::Mappings::insert_canonical_path to record the
	canonical path of any node entered into a namespace.
	(TopLevel::go): Set canonical_crate_num to the current crate.
	(TopLevel::visit): Handle updates to canonical_stack and
	canonical_crate_num (the latter when visiting an ExternCrate).
	* resolve/rust-toplevel-name-resolver-2.0.h
	(TopLevel::canonical_stack): Add.
	(TopLevel::canonical_crate_num): Add.

gcc/testsuite/ChangeLog:

	* rust/compile/nr2/exclude: Remove entries.

Signed-off-by: Owen Avery <[email protected]>
@powerboat9
Copy link
Contributor Author

It looks like this might need some tweaks

@P-E-P
Copy link
Member

P-E-P commented Oct 10, 2024

@powerboat9 should we close this PR?

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