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

Add late name resolution pass #2620

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8c6d4da
immutable nrctx: new
CohenArthur Aug 24, 2023
ab87d01
sesh: [wip][from here tests don't work] Add late name resolution 2.0
CohenArthur Aug 4, 2023
12e8a39
tests: [wip] [fmeup] delete failing tests for now
CohenArthur Nov 14, 2023
22115df
session-manager: [fix me] Start dumping name resolution pass
CohenArthur Aug 23, 2023
af8c0bd
session manager: Init Immutable name resolver
CohenArthur Aug 24, 2023
7da69cb
nrctx: add resolved lookup
CohenArthur Aug 24, 2023
5a19a7c
typecheck: [tests fail from here] [needs f'ed up commits] Fetch Immut…
CohenArthur Aug 24, 2023
62f1371
typecheck: Start using nr2.0 properly
CohenArthur Aug 25, 2023
29b7c5d
backend: Use new name resolver where necessary [needs f'ed up commits]
CohenArthur Aug 25, 2023
f49671c
nr2.0: Start using newtype pattern for Usage and Declaration
CohenArthur Sep 14, 2023
c04726a
late: Setup builtin types properly, change Rib API
CohenArthur Aug 28, 2023
67f1b28
typecheck path: wip
CohenArthur Aug 29, 2023
df77f79
toplevel: Add note about resolving glob imports
CohenArthur Aug 29, 2023
230a037
default: Visit external functions properly
CohenArthur Aug 29, 2023
1719fb3
add more name res test casaes
CohenArthur Aug 23, 2023
ee4ac05
Fix duplicate detection
P-E-P Sep 14, 2023
723cc17
Change to new resolution 2.0
P-E-P Sep 15, 2023
5ba2a90
Change to name resolution 2.0
P-E-P Sep 15, 2023
4783b1f
Emit error on identical use declarations
P-E-P Sep 15, 2023
fbfca21
Change unresolved import error text
P-E-P Sep 15, 2023
cae4a70
Change name resolution version in test
P-E-P Sep 15, 2023
d60af27
Change name resolution algorithm in one test
P-E-P Sep 15, 2023
825b224
Change name resolution algorithm in test
P-E-P Sep 15, 2023
966932c
Prevent error emission on resolver reentry
P-E-P Sep 18, 2023
15afef4
late: Add bool builtin type
CohenArthur Nov 8, 2023
022d75c
tests: Re-add macro nr2.0 test cases
CohenArthur Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change name resolution algorithm in one test
Change name resolution algorithm in name resolution test 18 to the new
name resolution 2.0.

gcc/testsuite/ChangeLog:

	* rust/compile/name_resolution17.rs: Add flag to use new name
	resolution algorithm.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
P-E-P authored and CohenArthur committed Dec 14, 2023
commit d60af27297b5c8e2de206d43cf01e1ee7c8479a3
2 changes: 2 additions & 0 deletions gcc/testsuite/rust/compile/name_resolution17.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// { dg-options "-frust-name-resolution-2.0" }

struct Foo;
fn Foo() {} // { dg-error ".Foo. defined multiple times" }