Skip to content

doc: reword iter module example and mention other methods - #65960

Merged
bors merged 1 commit into
rust-lang:masterfrom
tesuji:doc-iter-example
Nov 1, 2019
Merged

doc: reword iter module example and mention other methods#65960
bors merged 1 commit into
rust-lang:masterfrom
tesuji:doc-iter-example

Conversation

@tesuji

@tesujitesuji commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 30, 2019
Comment threadsrc/libcore/iter/mod.rs Outdated
Comment threadsrc/libcore/iter/mod.rs Outdated
@rust-highfive

Copy link
Copy Markdown
Contributor

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-10-30T12:18:02.7276546Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-30T12:18:02.7483401Z ##[command]git config gc.auto 0
2019-10-30T12:18:02.7548777Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-30T12:18:02.7580841Z ##[command]git config --get-all http.proxy
2019-10-30T12:18:02.7752975Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/65960/merge:refs/remotes/pull/65960/merge
---
2019-10-30T13:17:31.3907310Z .................................................................................................... 1600/9263
2019-10-30T13:17:37.1742491Z .................................................................................................... 1700/9263
2019-10-30T13:17:49.4257518Z ..........................................................i...............i......................... 1800/9263
2019-10-30T13:17:57.3867097Z .................................................................................................... 1900/9263
2019-10-30T13:18:12.0482453Z ................................................iiiii............................................... 2000/9263
2019-10-30T13:18:22.7070557Z .................................................................................................... 2200/9263
2019-10-30T13:18:25.2850220Z .................................................................................................... 2300/9263
2019-10-30T13:18:29.0469725Z .................................................................................................... 2400/9263
2019-10-30T13:18:52.0144135Z .................................................................................................... 2500/9263
---
2019-10-30T13:21:41.7384840Z .................................................i...............i.................................. 4800/9263
2019-10-30T13:21:50.5865368Z .................................................................................................... 4900/9263
2019-10-30T13:21:59.0734661Z .................................................................................................... 5000/9263
2019-10-30T13:22:05.2858451Z .................................................................................................... 5100/9263
2019-10-30T13:22:15.5310559Z ..................................................ii.ii...........i................................. 5200/9263
2019-10-30T13:22:25.5794332Z .................................................................................................... 5400/9263
2019-10-30T13:22:35.5996425Z .................................................................................................... 5500/9263
2019-10-30T13:22:42.8964367Z .......................i............................................................................ 5600/9263
2019-10-30T13:22:49.3206007Z .................................................................................................... 5700/9263
2019-10-30T13:22:49.3206007Z .................................................................................................... 5700/9263
2019-10-30T13:23:01.0548891Z .................................................................................................... 5800/9263
2019-10-30T13:23:12.9509440Z ........ii...i..ii...........i...................................................................... 5900/9263
2019-10-30T13:23:34.5392886Z .................................................................................................... 6100/9263
2019-10-30T13:23:42.3603673Z .................................................................................................... 6200/9263
2019-10-30T13:23:42.3603673Z .................................................................................................... 6200/9263
2019-10-30T13:23:56.3637113Z ...........................i..ii.................................................................... 6300/9263
2019-10-30T13:24:16.4963041Z .............................................................................................i...... 6500/9263
2019-10-30T13:24:18.7343384Z .................................................................................................... 6600/9263
2019-10-30T13:24:21.0103555Z ....................................................................i............................... 6700/9263
2019-10-30T13:24:23.9961508Z .................................................................................................... 6800/9263
---
2019-10-30T13:29:37.9282136Z finished in 5.549
2019-10-30T13:29:37.9467815Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:29:38.1055064Z 2019-10-30T13:29:38.1056890Z running 158 tests
2019-10-30T13:29:41.1370521Z iiiiii....iii......iii..iiii...i.............................i..i..................i....i........... 100/158
2019-10-30T13:29:43.1291714Z ii.i.i..iiii..............i.........iii.i.........ii......
2019-10-30T13:29:43.1292319Z 2019-10-30T13:29:43.1301375Z finished in 5.183
2019-10-30T13:29:43.1480033Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:29:43.3069512Z ---
2019-10-30T13:29:45.2858219Z finished in 2.137
2019-10-30T13:29:45.3048060Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:29:45.4646943Z 2019-10-30T13:29:45.4647066Z running 9 tests
2019-10-30T13:29:45.4648242Z iiiiiiiii
2019-10-30T13:29:45.4648634Z 2019-10-30T13:29:45.4652163Z finished in 0.160
2019-10-30T13:29:45.4830131Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:29:46.3239361Z ---
2019-10-30T13:30:05.3909629Z finished in 19.907
2019-10-30T13:30:05.4111693Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:30:05.5861408Z 2019-10-30T13:30:05.5863220Z running 123 tests
2019-10-30T13:30:30.9781710Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....ii..........iiii..........i...ii...i.......ii. 100/123
2019-10-30T13:30:35.7641779Z i.i.i......iii.i.....ii
2019-10-30T13:30:35.7642384Z 2019-10-30T13:30:35.7642951Z finished in 30.353
2019-10-30T13:30:35.7653155Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-10-30T13:30:35.7653533Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-10-30T13:42:56.8975278Z 2019-10-30T13:42:56.8976037Z Doc-tests core
2019-10-30T13:43:02.0331937Z 2019-10-30T13:43:02.0332731Z running 2410 tests
2019-10-30T13:43:13.1498430Z ......iiiii......................................................................................... 100/2410
2019-10-30T13:43:23.9650932Z ................................................................................ii.................. 200/2410
2019-10-30T13:43:49.2789847Z ..i.......F......................................................................................... 400/2410
2019-10-30T13:43:49.2789847Z ..i.......F......................................................................................... 400/2410
2019-10-30T13:43:59.8156539Z ..................................................i..i.................iiii......................... 500/2410
2019-10-30T13:44:20.1261145Z .................................................................................................... 700/2410
2019-10-30T13:44:30.6024566Z .................................................................................................... 800/2410
2019-10-30T13:44:40.9289742Z .................................................................................................... 900/2410
2019-10-30T13:44:51.2450860Z .................................................................................................... 1000/2410
---
2019-10-30T13:47:23.9353415Z ---- iter/mod.rs - iter (line 80) stdout ----
2019-10-30T13:47:23.9354286Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9354838Z --> iter/mod.rs:121:20
2019-10-30T13:47:23.9355078Z |
2019-10-30T13:47:23.9355331Z 7 | struct Counter {
2019-10-30T13:47:23.9355799Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9355963Z ...
2019-10-30T13:47:23.9356097Z 44 | assert_eq!(counter.nex(), Some(1));
2019-10-30T13:47:23.9356475Z 2019-10-30T13:47:23.9356605Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9356951Z --> iter/mod.rs:122:20
2019-10-30T13:47:23.9357120Z |
2019-10-30T13:47:23.9357120Z |
2019-10-30T13:47:23.9357241Z 7 | struct Counter {
2019-10-30T13:47:23.9357599Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9357769Z ...
2019-10-30T13:47:23.9357895Z 45 | assert_eq!(counter.nex(), Some(2));
2019-10-30T13:47:23.9358264Z 2019-10-30T13:47:23.9358399Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9359484Z --> iter/mod.rs:123:20
2019-10-30T13:47:23.9359740Z |
2019-10-30T13:47:23.9359740Z |
2019-10-30T13:47:23.9360098Z 7 | struct Counter {
2019-10-30T13:47:23.9360616Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9360693Z ...
2019-10-30T13:47:23.9360765Z 46 | assert_eq!(counter.nex(), Some(3));
2019-10-30T13:47:23.9360846Z 2019-10-30T13:47:23.9360914Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9361162Z --> iter/mod.rs:124:20
2019-10-30T13:47:23.9361211Z |
2019-10-30T13:47:23.9361211Z |
2019-10-30T13:47:23.9361262Z 7 | struct Counter {
2019-10-30T13:47:23.9361497Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9380533Z ...
2019-10-30T13:47:23.9380589Z 47 | assert_eq!(counter.nex(), Some(4));
2019-10-30T13:47:23.9380693Z 2019-10-30T13:47:23.9380786Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9381181Z --> iter/mod.rs:125:20
2019-10-30T13:47:23.9381240Z |
2019-10-30T13:47:23.9381240Z |
2019-10-30T13:47:23.9381581Z 7 | struct Counter {
2019-10-30T13:47:23.9381984Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9382029Z ...
2019-10-30T13:47:23.9382083Z 48 | assert_eq!(counter.nex(), Some(5));
2019-10-30T13:47:23.9382276Z 2019-10-30T13:47:23.9382330Z error[E0599]: no method named `nex` found for type `main::Counter` in the current scope
2019-10-30T13:47:23.9382549Z --> iter/mod.rs:126:20
2019-10-30T13:47:23.9382592Z |
2019-10-30T13:47:23.9382592Z |
2019-10-30T13:47:23.9382633Z 7 | struct Counter {
2019-10-30T13:47:23.9382875Z | -------------- method `nex` not found for this
2019-10-30T13:47:23.9382920Z ...
2019-10-30T13:47:23.9382962Z 49 | assert_eq!(counter.nex(), None);
2019-10-30T13:47:23.9383183Z 2019-10-30T13:47:23.9383225Z error: aborting due to 6 previous errors
2019-10-30T13:47:23.9383253Z 2019-10-30T13:47:23.9383548Z For more information about this error, try `rustc --explain E0599`.
---
2019-10-30T13:47:23.9384168Z 2019-10-30T13:47:23.9522962Z error: test failed, to rerun pass '--doc'
2019-10-30T13:47:23.9544620Z 2019-10-30T13:47:23.9544702Z 2019-10-30T13:47:23.9545599Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "-Zconfig-profile" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "-p" "core" "--" "--quiet"
2019-10-30T13:47:23.9545747Z 2019-10-30T13:47:23.9545789Z 2019-10-30T13:47:23.9554488Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-10-30T13:47:23.9554571Z Build completed unsuccessfully in 1:22:43
2019-10-30T13:47:23.9554571Z Build completed unsuccessfully in 1:22:43
2019-10-30T13:47:23.9611251Z == clock drift check ==
2019-10-30T13:47:23.9628257Z local time: Wed Oct 30 13:47:23 UTC 2019
2019-10-30T13:47:24.0498228Z network time: Wed, 30 Oct 2019 13:47:24 GMT
2019-10-30T13:47:24.0501390Z == end clock drift check ==
2019-10-30T13:47:24.6078221Z 2019-10-30T13:47:24.6179637Z ##[error]Bash exited with code '1'.
2019-10-30T13:47:24.6216384Z ##[section]Starting: Checkout
2019-10-30T13:47:24.6218108Z ==============================================================================
2019-10-30T13:47:24.6218177Z Task : Get sources
2019-10-30T13:47:24.6218239Z Description : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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 @TimNN. (Feature Requests)

Comment threadsrc/libcore/iter/mod.rs Outdated
@Centril

Copy link
Copy Markdown
Contributor

r=me with green CI and suggestion applied.

@tesuji

Copy link
Copy Markdown
ContributorAuthor

Ping

@Centril

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Oct 31, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit bb1f4c4 has been approved by Centril

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 31, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 31, 2019
doc: reword iter module example and mention other methods
@tmandrytmandry mentioned this pull request Oct 31, 2019
bors added a commit that referenced this pull request Oct 31, 2019
Rollup of 14 pull requests
Successful merges:
- #65112 (Add lint and tests for unnecessary parens around types)
- #65459 (Fix `-Zunpretty=mir-cfg` to render multiple items)
- #65471 (Add long error explanation for E0578)
- #65857 (rustdoc: Resolve module-level doc references more locally)
- #65914 (Use structured suggestion for unnecessary bounds in type aliases)
- #65945 (Optimize long-linker-command-line test)
- #65946 (Make `promote_consts` emit the errors when required promotion fails)
- #65960 (doc: reword iter module example and mention other methods)
- #65963 (update submodules to rust-lang)
- #65972 (Fix libunwind build: Define __LITTLE_ENDIAN__ for LE targets)
- #65977 (Fix incorrect diagnostics for expected type in E0271 with an associated type)
- #65995 (Add error code E0743 for "C-variadic has been used on a non-foreign function")
- #65997 (Fix outdated rustdoc of Once::init_locking function)
- #66005 (vxWorks: remove code related unix socket)
Failed merges:
r? @ghost
tmandry added a commit to tmandry/rust that referenced this pull request Nov 1, 2019
doc: reword iter module example and mention other methods
@tmandrytmandry mentioned this pull request Nov 1, 2019
bors added a commit that referenced this pull request Nov 1, 2019
Rollup of 16 pull requests
Successful merges:
- #65112 (Add lint and tests for unnecessary parens around types)
- #65470 (Don't hide ICEs from previous incremental compiles)
- #65471 (Add long error explanation for E0578)
- #65857 (rustdoc: Resolve module-level doc references more locally)
- #65902 (Make ItemContext available for better diagnositcs)
- #65914 (Use structured suggestion for unnecessary bounds in type aliases)
- #65946 (Make `promote_consts` emit the errors when required promotion fails)
- #65960 (doc: reword iter module example and mention other methods)
- #65963 (update submodules to rust-lang)
- #65972 (Fix libunwind build: Define __LITTLE_ENDIAN__ for LE targets)
- #65977 (Fix incorrect diagnostics for expected type in E0271 with an associated type)
- #65995 (Add error code E0743 for "C-variadic has been used on a non-foreign function")
- #65997 (Fix outdated rustdoc of Once::init_locking function)
- #66002 (Stabilize float_to_from_bytes feature)
- #66005 (vxWorks: remove code related unix socket)
- #66018 (Revert PR 64324: dylibs export generics again (for now))
Failed merges:
r? @ghost
@bors
bors merged commit bb1f4c4 into rust-lang:masterNov 1, 2019
@tesuji
tesuji deleted the doc-iter-example branch November 2, 2019 02:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tesuji@rust-highfive@Centril@bors