-
Notifications
You must be signed in to change notification settings - Fork 0
Use a type visitor to collect type metadata, remove layout #68
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f0817f1
TyVisitor which uses stable_mir::Visitor
gtrepta fe07f42
Use collected types from TyVisitor
gtrepta 4e6d962
Remove dead code
gtrepta d5b28a6
Rename TyVisitor -> TyCollector
gtrepta 2e27d89
Update golden tests.
gtrepta 5d8fc46
Use "None" for layout
gtrepta 2eae9c6
Revert "Use "None" for layout"
gtrepta af75f9f
Resolve FnDefs
gtrepta 905a5c2
Resolve closures. Check for types that have already been visited.
gtrepta e161f38
Check for already resolved tys (prevent infinite loops)
gtrepta cdb1be6
Visit bottom up. Break on what we don't support yet.
gtrepta 304e0eb
Break on CoroutineWitnesses, because we can't grab the layout on them.
gtrepta f403c59
update golden tests
gtrepta 6919e37
Handling `FnPtr` signature internally to avoid `Binder`s (#71)
dkcumming e652b72
make golden
dkcumming 9262074
Improve normalizing filter
gtrepta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit puzzled by the differences in the expectation files.
The code does not collect any function types any more ? That's OK I guess, we don't use them, but... we also don't get
I8
any more (in this example)? Why not?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also can't understand why
i8
is now removed from the mapUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed functions aren't in the map as well. I think it's because they get inserted by Stephen's code before monomorphization:
The monomorphization gets done inside the
match
statement, but the function is already added to the map! In my code, the argument and return types for the function are added only. But, we should probably figure out how to get the resolved function signature and add it as well.Not sure why the
I8
disappears, idk why it's there in the first place either. The integers in the source don't have any type annotations, rust defaults toI32
(which is in the type map), so there shouldn't be any issue with that.