-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move collector to librustc_mir::monomorphize #45525
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
094c021
Move collector to monomorphize
MaikKlein e579b06
Move trans_item and monomorphize to rustc_mir
MaikKlein 1181f45
Rename TransItem to MonoItem
MaikKlein 98b9eba
Rename TransItemCollectionMode to MonoItemCollectionMode
MaikKlein 531c27d
Move common.rs functionality into TyCtxt
MaikKlein b9ab487
Rename TransItemExt to MonoItemExt
MaikKlein 17bfd74
Rename more functions from trans to mono
MaikKlein 28f7d22
Rename as_trans_item to as_mono_item
MaikKlein 09ad6eb
Rename mono_item.rs to item.rs
MaikKlein ae468ab
Move middle::trans.rs to mir::mono.rs
MaikKlein c06e3aa
Refactor paths to middle::trans to mir::mono
MaikKlein d3c4142
Fix some comments to refer to `MonoItem`
MaikKlein dfbb6e8
Move instance related methods from TyCtxt to Instance
MaikKlein 7996f63
Move meta_data into TyS
MaikKlein 1df6f83
Remove duplicated functions from trans::common.rs
MaikKlein ab0f8fc
Test with trans_apply_param_substs
MaikKlein 6e94a7a
Remove branch with has_metadata
MaikKlein 282b231
Move has_metadata back to context.rs
MaikKlein 116e43f
Prefer type_of().substs over instance::ty()
MaikKlein 45f8a3b
Move partitioning.rs to rustc_mir
MaikKlein d4b372d
Rename trans to monomorphize in comments
MaikKlein b48ba02
Rename more functions from trans to monomorphize
MaikKlein 88866b5
Update lockfile
MaikKlein f6fcfa3
normalize the results of `tcx.type_of` after substituting
arielb1 c847cf3
Fix incorrect rebase in collector::find_vtable_types
MaikKlein 6e78b66
Add rustc_data_structures for trans_utils/lib.rs
MaikKlein 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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.
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.
This makes me sad but I guess I'm okay with it for now if it's necessary.
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.
It just feels like less of a footgun than the other option.