summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-03 11:06:08 +0000
committerbors <bors@rust-lang.org>2023-01-03 11:06:08 +0000
commitb435960c4cfd3975651c7051be56d7f5d6c201ab (patch)
tree76104c8ea590a3bd53d9e052545db1d5f957f13c /tests/rustdoc-js-std/parser-errors.js
parent3b1c8a94a4e8a6ba8bc7b39cc3580db9e5b72295 (diff)
parentb458a49f2664c6d8079a221f0710894d96704198 (diff)
downloadrust-b435960c4cfd3975651c7051be56d7f5d6c201ab.tar.gz
Auto merge of #95644 - WaffleLapkin:str_split_as_str_refactor_take2, r=Amanieu
`Split*::as_str` refactor I've made this patch almost a year ago, so the rename and the behavior change are in one commit, sorry 😅 This fixes #84974, as it's required to make other changes work. This PR - Renames `as_str` method of string `Split*` iterators to `remainder` (it seems like the `as_str` name was confusing to users) - Makes `remainder` return `Option<&str>`, to distinguish between "the iterator is exhausted" and "the tail is empty", this was [required on the tracking issue](https://github.com/rust-lang/rust/issues/77998#issuecomment-832696619) r? `@m-ou-se`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions