Skip to content

gccrs: Function node links should be unnamed - #4807

Merged
philberty merged 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-ns
Aug 23, 2026
Merged

gccrs: Function node links should be unnamed#4807
philberty merged 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>
@philberty
philberty added this pull request to the merge queue Aug 23, 2026
Merged via the queue into Rust-GCC:master with commit 8af8460 Aug 23, 2026
13 checks passed
@powerboat9
powerboat9 deleted the fix-ns branch August 23, 2026 13:56
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

2 participants