Skip to content

gccrs: Function node links should be unnamed - #4807

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

gccrs: Function node links should be unnamed#4807
powerboat9 wants to merge 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-ns

Conversation

@powerboat9

@powerboat9 powerboat9 commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Functions shouldn't be usable as named node links.

Fixes #4806

Functions shouldn't be usable as named node links.

gcc/rust/ChangeLog:

	* resolve/rust-default-resolver.cc
	(DefaultResolver::visit (Function)): Don't pass a path parameter
	to function NameResolutionContext::scoped.

gcc/testsuite/ChangeLog:

	* rust/compile/mod_fn_conflict.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.

Function resolved instead of glob-imported module

1 participant