-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Promote references to constants instead of statics #67000
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
bors
merged 23 commits into
rust-lang:master
from
spastorino:remove-promoted-from-place
Jan 11, 2020
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
a59abfa
Revert const_eval call to use const_eval_raw to avoid const validatio…
spastorino 1688719
Promote `Ref`s to constants instead of static
spastorino 2508f17
Promote `Repeat`s to constants instead of statics
spastorino 32fe477
Promote `Argument`s to constants instead of statics
spastorino 6aa4b5a
Add promoted_operand closure to reuse code across different
spastorino 6f2c702
Remove StaticKind::Promoted
spastorino b63597d
Remove StaticKind
spastorino fb2f0ec
Use if let instead of match with one meaningful arm
spastorino 9e70c47
Remove unused param_env parameter
spastorino fd5aa32
Remove Static from PlaceBase
spastorino 5d9b399
Remove PlaceBase enum and make Place base field be local: Local
spastorino a9de4f1
Fix print const on librustdoc
spastorino 7f3459a
No need to use local.into here
spastorino a5715a3
Use re_erased instead of re_static
spastorino 8533caa
Make Place Copy
spastorino 1565612
Add span_bug that notes that shuffle indices must be constant
spastorino 36b1756
Do not store lint_root
spastorino 6e1bbff
Promoteds also need param envs.
oli-obk ecd5852
Errors in promoteds may only cause lints not hard errors
oli-obk 050146f
Add regression tests for promotion mir expansion
oli-obk 43313d5
Remove an outdated comment
oli-obk a5d8ab7
Rebase fallout
oli-obk e51eccd
Make codegen tests wordsize independent
oli-obk 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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.