Skip to content

Document that Unique<T> and Shared<T> are non-null #31450

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
merged 1 commit into from
Feb 7, 2016

Conversation

bluss
Copy link
Member

@bluss bluss commented Feb 6, 2016

Document that Unique and Shared are non-null

@rust-highfive
Copy link
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@bluss
Copy link
Member Author

bluss commented Feb 6, 2016

r? @gankro

@rust-highfive rust-highfive assigned Gankra and unassigned brson Feb 6, 2016
///
/// # Safety
///
/// `ptr` must be non-null.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you emphasize it's Undefined Behaviour if it's not?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scratch that, we don't do that elsewhere.

@Gankra
Copy link
Contributor

Gankra commented Feb 6, 2016

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Feb 6, 2016

📌 Commit 70650f8 has been approved by Gankro

bors added a commit that referenced this pull request Feb 7, 2016
Document that Unique<T> and Shared<T> are non-null
@bors
Copy link
Collaborator

bors commented Feb 7, 2016

⌛ Testing commit 70650f8 with merge e548d6c...

@bors bors merged commit 70650f8 into rust-lang:master Feb 7, 2016
@bluss bluss deleted the no-null-markers branch February 7, 2016 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants