Skip to content
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

libcore: remove fails from slice.rs and remove duplicated length checking #14150

Closed
wants to merge 1 commit into from

Conversation

Ryman
Copy link
Contributor

@Ryman Ryman commented May 12, 2014

No description provided.

@@ -1214,11 +1224,12 @@ pub mod raw {
* slice so it no longer contains that element. Fails if
* slice is empty. O(1).
Copy link
Member

Choose a reason for hiding this comment

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

This documentation will need to be updated

@alexcrichton
Copy link
Member

Can you re-word the commit message with respect to the breaking change of raw::pop_ptr? More info can be found at https://mail.mozilla.org/pipermail/rust-dev/2014-April/009543.html

…king

core::slice::raw::{shift_ptr,pop_ptr} now returns Option<*T> rather than
*T. They no longer fail on empty slices.

[breaking-change]
@Ryman
Copy link
Contributor Author

Ryman commented May 12, 2014

@alexcrichton Updated (also fixed a docstring for ImmutableVector)

@lilyball
Copy link
Contributor

LGTM. r=me if @alexcrichton is happy with the commit message.

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 20, 2023
internal: Don't allocate the generic_args vec in `hir_def::Path` if it consists only of `None` args

Saves roughly 5mb on self
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.

3 participants