-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[WIP] Add const qualifier in FnSig (for const fn pointers) #74553
Closed
Closed
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
008daf0
Add constness qualifier to fn pointer
filtsin 855eca0
Add constness qualifier to function signature
filtsin 05f4924
Allow call const function pointer in const methods
filtsin 97d388a
Add feature for const pointers
filtsin 7374ae7
x.py fmt
filtsin 4d9b253
Fix coerce-unify test
filtsin 80ef1af
Add NotConstPointerCast + for unsafe. Add new tests for const fn ptr.…
filtsin d72e63b
Check const_fn_pointer feature in mir context
filtsin 270bf4c
Add example of reifyfnpointer with const drop
filtsin d982864
Resolve conflict...
filtsin bb4ab24
Match coercion
filtsin 55add43
Modified apply_adjustments, add unsafety coercion
filtsin ed42405
Fix typo
filtsin be46b44
Add coercion unsafe
filtsin c772728
Resolve conflict
filtsin 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
Add coercion unsafe
- Loading branch information
commit be46b44283c1936e4cbdc1dd1c346116af4e3c98
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
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.
For this code that compiles on stable:
This code compiles with these changes:
but not in stable