-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Separate function bodies from their signatures in HIR #37918
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
069a244
Add exprs map to crate, collect item blocks there
flodiebold f55482e
rustc: replace body exprs by their ids
flodiebold 8e75473
rustc_const_eval: fix compilation
flodiebold 8f6bb85
rustc_mir: fix compilation
flodiebold 8c8257a
rustc_borrowck: fix compilation
flodiebold b7a6cf8
rustc_typeck: fix compilation
flodiebold 490c23f
rustc_incremental: fix compilation
flodiebold 2f6976e
rustc_incremental: fix compilation
flodiebold 8f63b41
rustc_trans: fix compilation
flodiebold dd6a57c
rustc_trans: fix compilation
flodiebold 0cdd1d4
rustc_privacy: fix compilation
flodiebold 441e099
rustc_metadata: fix compilation
flodiebold 2b790f7
rustc_plugin: fix compilation
flodiebold 37e7541
rustc_plugin: fix compilation
flodiebold 0389cc6
rustc_passes: fix compilation
flodiebold 1ac338c
rustc_driver: fix compilation
flodiebold 16eedd2
Save bodies of functions for inlining into other crates
flodiebold 936dbbc
Give function bodies their own dep graph node
flodiebold c91037b
Fix cross-crate associated constant evaluation
flodiebold fb968d2
rustc_typeck: Make CollectItemTypesVisitor descend into bodies as well
flodiebold 7b02129
Fix new tests
flodiebold 78b54c0
Make hello_world test work again
flodiebold 8d5ca62
Fix some comments
flodiebold 23a8c7d
Remove unused import
flodiebold f75c8a9
Add make tidy fixes
flodiebold 688946d
restructure `CollectItem` dep-node to separate fn sigs from bodies
nikomatsakis dd1491c
WIP: update tests to pass -- not complete
nikomatsakis d0ae2c8
Refactor inlined items some more
flodiebold d5a501d
Fix remaining SVH tests
flodiebold 725cffb
Address remaining review comments
flodiebold f0ce5bb
Split nested_visit_mode function off from nested_visit_map
flodiebold b10bbde
Fix SVH tests some more
flodiebold bf298ae
Fix doc test collection
flodiebold 8575184
Fix rebase breakage
flodiebold 104125d
revamp `Visitor` with a single method for controlling nested visits
nikomatsakis 9457497
update comments
nikomatsakis 593b273
librustdoc: Fix compilation after visitor change
flodiebold 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 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 comment should specify that
D
is the def-id of the fn/method, as opposed to the id of the body itself.As an alternative, we could get rid of this variant and give expression bodies their own def-id. Not yet sure which approach I prefer, have to read more.