-
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
Rollup of 4 pull requests #57982
Rollup of 4 pull requests #57982
Conversation
The functions return a reference to a new object and do not modify in-place as the following code shows: ```` let s = String::from(" hello "); s.trim(); assert_eq!(s, " hello "); ```` The new reference should be bound to a variable as now indicated by #[must_use].
trimmed string is returned as a slice instead of a new allocation Co-Authored-By: matthiaskrgr <matthias.krueger@famsik.de>
mark str::string::String.trim.* functions as #[must_use]. The functions return a reference to a new object and do not modify in-place as the following code shows: ```` let s = String::from(" hello "); s.trim(); assert_eq!(s, " hello "); ```` The new reference should be bound to a variable as now indicated by #[must_use].
…mulacrum use `SOURCE_DATE_EPOCH` for man page time if set Fixes rust-lang#57776.
…alexcrichton Introduce into_raw_non_null on Rc and Arc None
…ichton override `VecDeque`'s `Iter::try_fold` This should improve performance (wherever it is used), but I haven't found the time to benchmark it yet.
@bors r+ p=4 |
📌 Commit 47e0812 has been approved by |
⌛ Testing commit 47e0812 with merge d2db4ead0ff13941d359a071da3f6895476d72f3... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Successful merges:
SOURCE_DATE_EPOCH
for man page time if set #57920 (useSOURCE_DATE_EPOCH
for man page time if set)VecDeque
'sIter::try_fold
#57974 (overrideVecDeque
'sIter::try_fold
)Failed merges:
r? @ghost