Skip to content

Rollup of 12 pull requests #104836

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

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
85c9985
Allow power10-vector feature in PowerPC
ecnelises Nov 22, 2022
db1cdd4
move 2 candidates into builtin candidate
lcnr Nov 22, 2022
5fc359f
resolve: Don't use constructor def ids in the map for field names
petrochenkov Nov 22, 2022
46b37e2
OpaqueCast projections are always overlapping, they can't possibly be…
oli-obk Nov 23, 2022
f995583
add comment
lcnr Nov 23, 2022
6c2719a
Bump the const eval step limit
oli-obk Nov 23, 2022
2185f49
rustdoc: simplify `.search-results-title` CSS
notriddle Nov 23, 2022
97d95d4
lint: do not warn unused parens around higher-ranked function pointers
notriddle Nov 24, 2022
ecea94e
fix #104513, Use node_ty_opt to avoid ICE in visit_ty
chenyukang Nov 17, 2022
72d8879
make `error_reported` check for delayed bugs
BoxyUwU Nov 24, 2022
1930c77
Remove normalize_projection_type
spastorino Nov 23, 2022
66b4b8b
with_query_mode -> new
spastorino Nov 24, 2022
07ccf67
Document split{_ascii,}_whitespace() for empty strings
vojtechkral Nov 23, 2022
493d8c0
Rollup merge of #104514 - chenyukang:yukang/fix-104513-ice, r=petroch…
matthiaskrgr Nov 24, 2022
0139b46
Rollup merge of #104704 - ecnelises:p10vec, r=jackh726
matthiaskrgr Nov 24, 2022
01baba7
Rollup merge of #104716 - lcnr:selection-candidate, r=lcnr
matthiaskrgr Nov 24, 2022
b9708a4
Rollup merge of #104747 - petrochenkov:ctorfields, r=cjgillot
matthiaskrgr Nov 24, 2022
1a37b44
Rollup merge of #104773 - oli-obk:overlap, r=lcnr
matthiaskrgr Nov 24, 2022
70fe3bc
Rollup merge of #104774 - vojtechkral:doc-str-empty-split-whitespace,…
matthiaskrgr Nov 24, 2022
d3b6e19
Rollup merge of #104780 - BoxyUwU:error_reported_not_be_bad, r=oli-obk
matthiaskrgr Nov 24, 2022
e3f8e9c
Rollup merge of #104782 - oli-obk:const_eval_limit_bump, r=pnkfelix
matthiaskrgr Nov 24, 2022
0a2b8a9
Rollup merge of #104792 - notriddle:notriddle/crate-search-title-disp…
matthiaskrgr Nov 24, 2022
7cb4a21
Rollup merge of #104796 - notriddle:notriddle/unused-issue-104397, r=…
matthiaskrgr Nov 24, 2022
97d71bb
Rollup merge of #104820 - spastorino:remove-normalize_projection_type…
matthiaskrgr Nov 24, 2022
0fd2585
Rollup merge of #104822 - spastorino:selctx-new-instead-of-with_query…
matthiaskrgr Nov 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Document split{_ascii,}_whitespace() for empty strings
  • Loading branch information
vojtechkral committed Nov 24, 2022
commit 07ccf67f59d08bcc12705121fbbed3f844b9689c
12 changes: 12 additions & 0 deletions library/core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,12 @@ impl str {
///
/// assert_eq!(None, iter.next());
/// ```
///
/// If the string is empty or all whitespace, the iterator yields no string slices:
/// ```
/// assert_eq!("".split_whitespace().next(), None);
/// assert_eq!(" ".split_whitespace().next(), None);
/// ```
#[must_use = "this returns the split string as an iterator, \
without modifying the original"]
#[stable(feature = "split_whitespace", since = "1.1.0")]
Expand Down Expand Up @@ -946,6 +952,12 @@ impl str {
///
/// assert_eq!(None, iter.next());
/// ```
///
/// If the string is empty or all ASCII whitespace, the iterator yields no string slices:
/// ```
/// assert_eq!("".split_ascii_whitespace().next(), None);
/// assert_eq!(" ".split_ascii_whitespace().next(), None);
/// ```
#[must_use = "this returns the split string as an iterator, \
without modifying the original"]
#[stable(feature = "split_ascii_whitespace", since = "1.34.0")]
Expand Down