Skip to content

Document DST parameters on std::marker::Sized #29140

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
Oct 20, 2015

Conversation

sorear
Copy link
Contributor

@sorear sorear commented Oct 18, 2015

This is for discoverability. If someone wants to know what ?Sized means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@@ -36,6 +36,17 @@ impl<T> !Send for *const T { }
impl<T> !Send for *mut T { }

/// Types with a constant size known at compile-time.
///
/// All type parameters which can be bounded have an implicit bound of Sized. The special syntax
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 put Sized in backticks and change to one space after the period?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no objection to that.

@apasel422
Copy link
Contributor

Thanks! Could you also squash these down into a single commit?

@sorear
Copy link
Contributor Author

sorear commented Oct 18, 2015

@apasel422 Alright, but would somebody please update @rust-highfive to stop telling people to make separate commits for everything?

This is for discoverability.  If someone wants to know what ?Sized means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.
@sorear sorear force-pushed the dst-document-on-sized branch from e532f1d to dc61d0f Compare October 18, 2015 19:29
@alexcrichton
Copy link
Member

@bors: r+ dc61d0f

Thanks @sorear! @rust-highfive is actually accurate in the sense that it's easier to review incremental changes as new commits, we just like to typically squash small PRs like this down to one commit before merging.

@bors
Copy link
Collaborator

bors commented Oct 19, 2015

⌛ Testing commit dc61d0f with merge 853adf8...

@alexcrichton
Copy link
Member

@bors: retry force

@bors
Copy link
Collaborator

bors commented Oct 20, 2015

⌛ Testing commit dc61d0f with merge bd5697c...

@alexcrichton
Copy link
Member

@bors: retry force

@bors
Copy link
Collaborator

bors commented Oct 20, 2015

⌛ Testing commit dc61d0f with merge fdcdd60...

@bors
Copy link
Collaborator

bors commented Oct 20, 2015

💔 Test failed - auto-mac-32-opt

@alexcrichton
Copy link
Member

@bors: retry

On Mon, Oct 19, 2015 at 8:24 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-32-opt
http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/6836


Reply to this email directly or view it on GitHub
#29140 (comment).

bors added a commit that referenced this pull request Oct 20, 2015
This is for discoverability.  If someone wants to know what `?Sized` means, then
Sized will be the only keyword they can use to search; so even though this is
technically a language matter, it makes sense to document it where it will be
looked for.
@bors
Copy link
Collaborator

bors commented Oct 20, 2015

⌛ Testing commit dc61d0f with merge 2e86485...

@bors bors merged commit dc61d0f into rust-lang:master Oct 20, 2015
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.

6 participants