Skip to content

Insert imports in types NS#4434

Draft
CohenArthur wants to merge 3 commits intoRust-GCC:masterfrom
CohenArthur:insert-imports-in-types-ns
Draft

Insert imports in types NS#4434
CohenArthur wants to merge 3 commits intoRust-GCC:masterfrom
CohenArthur:insert-imports-in-types-ns

Conversation

@CohenArthur
Copy link
Member

This currently causes a bunch of regressions but also makes the compiler more correct. There are two tests with errors that were previously not emitted, and a bunch of regressions that I noticed to be failing with these changes. This is a very rough draft and is missing a lot, and the code is hot garbage.

Test collisions between an import and a type, and an import and a module definition.

gcc/testsuite/ChangeLog:

	* rust/compile/import_in_type_ns1.rs: New test.
	* rust/compile/import_in_type_ns2.rs: New test.
gcc/testsuite/ChangeLog:

	* rust/compile/import_in_type_ns3.rs: New test.
	* rust/compile/import_in_type_ns4.rs: New test.
	* rust/compile/import_in_type_ns5.rs: New test.
@CohenArthur CohenArthur marked this pull request as draft February 11, 2026 23:52
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.

1 participant