Skip to content

gccrs: Record dirty state of GlobbingVisitor#4713

Merged
P-E-P merged 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-glob
Jul 20, 2026
Merged

gccrs: Record dirty state of GlobbingVisitor#4713
P-E-P merged 1 commit into
Rust-GCC:masterfrom
powerboat9:fix-glob

Conversation

@powerboat9

Copy link
Copy Markdown
Collaborator

Addresses @CohenArthur's comments in #4683

gcc/rust/ChangeLog:

	* resolve/rust-early-name-resolver-2.0.cc
	(Early::finalize_glob_import): Check if the globbing visitor was
	marked dirty.
	* resolve/rust-finalize-imports-2.0.cc
	(GlobbingVisitor::glob_definitions): Mark dirty if a definition
	was inserted.
	(GlobbingVisitor::glob_definition): Replace silent failure with
	assertion.
	* resolve/rust-finalize-imports-2.0.h
	(GlobbingVisitor::GlobbingVisitor): Initialize dirty member
	variable.
	(GlobbingVisitor::is_dirty): New member function.
	(GlobbingVisitor::dirty): New member variable.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
@P-E-P
P-E-P requested review from CohenArthur and P-E-P July 20, 2026 09:14
@P-E-P
P-E-P added this pull request to the merge queue Jul 20, 2026
Merged via the queue into Rust-GCC:master with commit 4576cf1 Jul 20, 2026
13 checks passed
@powerboat9
powerboat9 deleted the fix-glob branch July 20, 2026 23:24
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