-
Notifications
You must be signed in to change notification settings - Fork 61
Requirements on the target platform C implementation #46
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
36fd33e
requirements on the platform C implementation
gnzlbg 7fc7f85
add representation of bool true/false
gnzlbg df2e236
amend float unresolved question
gnzlbg 8e009a1
fix typo: _Bool instead of Bool_
gnzlbg 07f7021
remove non-dereferenceable pointer requirement
gnzlbg aadac80
differentiate platforms w/o NULL
gnzlbg 2e0d82f
clean up unresolved questions
gnzlbg fcfb9c8
cleanup requirements
gnzlbg 612f003
add unresolved questions about targets without conforming C implement…
gnzlbg f89431d
assume that the platform has a C implementation
gnzlbg 25097ac
clarify the behavior if the C implementation does not satisfy our req…
gnzlbg 36d3fb3
reword this all
gnzlbg c508026
typos
gnzlbg e9dbb11
fix section name in summary
gnzlbg 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 unresolved questions about targets without conforming C implement…
…ations
- Loading branch information
commit 612f003549887a4d8b005638b0889a7d00bb4afd
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
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.
The documentation for
NonNull
says "*mut T but non-zero and covariant" (emphasis mine). Later on the documentation says "non-null"; i.e."non-zero" and "non-null" are used interchangeably.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.
The docs might need fixing.
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 agree. However, somebody may have already read the documentation and made the assumption that NULL == 0 based on them, and may then be relying on that, so it should be announced loudly if that change is made. If it isn't too late, it would be good to do it at the same time Rust 2018 edition ships and maybe consider it part of Rust 2018.
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 is unclear at this point what we are going to require about the niches of
&T
, that probably will be part of the discussions about "validity", which are not taking place yet (hence why this is an unresolved question).