-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add is_empty() for PathBuf (fixes #30259), Overide methods in iterator implementation for EscapeDefault (#24214), Add help note for E0514, Improve internal docs in librustc #30520
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (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. Due to 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. |
Remove tabs
Lots of cruft to remove!
It's been awhile since we last updated jemalloc, and there's likely some bugs that have been fixed since the last version we're using, so let's try to update again.
Checks for a `10.` prefix on the subfolder Signed-off-by: Peter Atashian <retep998@gmail.com>
All these definitions can now be written in Rust, so do so!
Remove tabs
@@ -1 +1 @@ | |||
Subproject commit b6087e82ba1384c4af3adf2dc68e92316f0d4caf |
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.
Looks like a git accident
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've updated the submodules.
/// ``` | ||
#[unstable(feature = "path_extras", reason = "recently added", issue = "30259")] | ||
pub fn is_empty(&self) -> bool { | ||
if let Some(b) = self.inner.to_bytes() { |
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 think it's better to use os_str_as_u8_slice
and check if it is empty. It's not fallible and it's simple.
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.
@bluss Check out the latest commit.
…ough the unicode validity checking on Windows
66cb5a6
to
7db394a
Compare
I refactored this patch a bit, by adding a |
yep, travis failed to build jemalloc for some reason (so not related to this PR). Can you put the information in the PR title into the PR message itself? Probably give the PR a shorter title too. Adding OsStr::is_empty() seems logical, and Path::is_empty looks good too |
It looks like there's quite a few changes going on here, namely:
This is touching quite a few components which will be easier to review if split apart (as different reviewers are most applicable for the various areas here). |
Right, I'll downgrade them.
Yeah, will add some tests.
Yeah, I'll fix the points above and then seperate them into multiple PRs. Sorry for that. |
The submodules are now downgraded. |
This is somewhere in the log.
|
Yeah, I realized that I forgot to push the latest commit. |
Still seems to be a mess? |
Yes. I'll organize this better when I get time. |
I've now parted this into multiple PRs. Will close. |
See also #30259, #24214 and #30363.