Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
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

Generator Resume Arguments #68524

Open
wants to merge 17 commits into
base: master
from

Conversation

@jonas-schievink
Copy link
Member

jonas-schievink commented Jan 24, 2020

cc #43122 and #56974

Blockers:

Follow-up work:

  • Change async/await desugaring to make use of this feature
  • Rewrite box_region.rs to use resume arguments
@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Jan 24, 2020

r? @petrochenkov

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Jan 24, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-24T21:43:48.3705936Z ========================== Starting Command Output ===========================
2020-01-24T21:43:48.3708304Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/485d0d2f-2e2e-4090-a49d-b19aa5c328b7.sh
2020-01-24T21:43:48.3708344Z 
2020-01-24T21:43:48.3711141Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-24T21:43:48.3716855Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T21:43:48.3718371Z Task         : Get sources
2020-01-24T21:43:48.3718444Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T21:43:48.3718480Z Version      : 1.0.0
2020-01-24T21:43:48.3718517Z Author       : Microsoft
---
2020-01-24T21:43:49.1073640Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-24T21:43:49.1179369Z ##[command]git config gc.auto 0
2020-01-24T21:43:49.1280255Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-24T21:43:49.1352252Z ##[command]git config --get-all http.proxy
2020-01-24T21:43:49.1482368Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-24T21:48:47.8631386Z    Compiling serde_json v1.0.40
2020-01-24T21:48:49.2310243Z    Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
2020-01-24T21:48:57.3531078Z     Finished release [optimized] target(s) in 1m 08s
2020-01-24T21:48:57.3642273Z tidy check
2020-01-24T21:48:58.2955833Z tidy error: /checkout/src/test/ui/generator/issue-44197.rs:31: line longer than 100 chars
2020-01-24T21:48:59.8878136Z Found 487 error codes
2020-01-24T21:48:59.8878921Z Found 1 error codes with no tests
2020-01-24T21:48:59.8881918Z Done!
2020-01-24T21:48:59.8882392Z Error code E0628 needs to have at least one UI test!
2020-01-24T21:48:59.8882392Z Error code E0628 needs to have at least one UI test!
2020-01-24T21:48:59.8882671Z some tidy checks failed
2020-01-24T21:48:59.8882959Z 
2020-01-24T21:48:59.8883184Z 
2020-01-24T21:48:59.8884684Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor"
2020-01-24T21:48:59.8885249Z 
2020-01-24T21:48:59.8885454Z 
2020-01-24T21:48:59.8890814Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2020-01-24T21:48:59.8891161Z Build completed unsuccessfully in 0:01:18
2020-01-24T21:48:59.8891161Z Build completed unsuccessfully in 0:01:18
2020-01-24T21:48:59.8943600Z == clock drift check ==
2020-01-24T21:48:59.8950767Z   local time: Fri Jan 24 21:48:59 UTC 2020
2020-01-24T21:49:00.1824835Z   network time: Fri, 24 Jan 2020 21:49:00 GMT
2020-01-24T21:49:00.1829125Z == end clock drift check ==
2020-01-24T21:49:00.9283555Z 
2020-01-24T21:49:00.9338549Z ##[error]Bash exited with code '1'.
2020-01-24T21:49:00.9349650Z ##[section]Finishing: Run build
2020-01-24T21:49:00.9362232Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T21:49:00.9364134Z Task         : Get sources
2020-01-24T21:49:00.9364203Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T21:49:00.9364254Z Version      : 1.0.0
2020-01-24T21:49:00.9364300Z Author       : Microsoft
2020-01-24T21:49:00.9364300Z Author       : Microsoft
2020-01-24T21:49:00.9364366Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-24T21:49:00.9364419Z ==============================================================================
2020-01-24T21:49:01.3187854Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-24T21:49:01.3227071Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T21:49:01.3333408Z Cleaning up task key
2020-01-24T21:49:01.3334278Z Start cleaning up orphan processes.
2020-01-24T21:49:01.3491820Z Terminate orphan process: pid (3761) (python)
2020-01-24T21:49:01.3669825Z ##[section]Finishing: Finalize Job

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)

@petrochenkov

This comment has been minimized.

Copy link
Contributor

petrochenkov commented Jan 24, 2020

Glad to see this implemented, but it is not my area of expertise.

r? @Zoxc for review or further reassignment.

@rust-highfive rust-highfive assigned Zoxc and unassigned petrochenkov Jan 24, 2020
@rust-highfive

This comment was marked as outdated.

Copy link
Collaborator

rust-highfive commented Jan 24, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-24T22:01:33.9330209Z ========================== Starting Command Output ===========================
2020-01-24T22:01:33.9332118Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/7e0d1fea-1894-429e-ab17-80cbcb4e68f0.sh
2020-01-24T22:01:33.9332159Z 
2020-01-24T22:01:33.9335061Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-24T22:01:33.9341789Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T22:01:33.9343411Z Task         : Get sources
2020-01-24T22:01:33.9343441Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T22:01:33.9343471Z Version      : 1.0.0
2020-01-24T22:01:33.9343516Z Author       : Microsoft
---
2020-01-24T22:01:34.9093274Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-24T22:01:34.9104973Z ##[command]git config gc.auto 0
2020-01-24T22:01:34.9107091Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-24T22:01:34.9108835Z ##[command]git config --get-all http.proxy
2020-01-24T22:01:34.9115205Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-24T22:32:33.7371424Z    Compiling measureme v0.7.1
2020-01-24T22:32:40.6997121Z    Compiling rustc-rayon v0.3.0
2020-01-24T22:32:40.9884708Z    Compiling rustc_macros v0.1.0 (/checkout/src/librustc_macros)
2020-01-24T22:32:46.3380500Z    Compiling rustc_data_structures v0.0.0 (/checkout/src/librustc_data_structures)
2020-01-24T22:32:46.6131958Z error[E0191]: the value of the associated type `Resume` (from trait `std::ops::Generator`) must be specified
2020-01-24T22:32:46.6132282Z   --> src/librustc_data_structures/box_region.rs:24:28
2020-01-24T22:32:46.6132530Z    |
2020-01-24T22:32:46.6132823Z 24 |     generator: Pin<Box<dyn Generator<Yield = YieldType<I, A>, Return = R>>>,
2020-01-24T22:32:46.6133213Z    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: specify the associated type: `Generator<Yield = YieldType<I, A>, Return = R, Resume = Type>`
2020-01-24T22:32:46.6374797Z error: aborting due to previous error
2020-01-24T22:32:46.6378499Z 
2020-01-24T22:32:46.6388385Z For more information about this error, try `rustc --explain E0191`.
2020-01-24T22:32:46.6451330Z error: could not compile `rustc_data_structures`.
---
2020-01-24T22:32:55.8823146Z   local time: Fri Jan 24 22:32:55 UTC 2020
2020-01-24T22:32:56.1496931Z   network time: Fri, 24 Jan 2020 22:32:56 GMT
2020-01-24T22:32:56.1504464Z == end clock drift check ==
2020-01-24T22:32:56.9333947Z 
2020-01-24T22:32:56.9415769Z ##[error]Bash exited with code '1'.
2020-01-24T22:32:56.9426748Z ##[section]Finishing: Run build
2020-01-24T22:32:56.9449749Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T22:32:56.9453219Z Task         : Get sources
2020-01-24T22:32:56.9453283Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T22:32:56.9453326Z Version      : 1.0.0
2020-01-24T22:32:56.9453366Z Author       : Microsoft
2020-01-24T22:32:56.9453366Z Author       : Microsoft
2020-01-24T22:32:56.9453426Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-24T22:32:56.9453473Z ==============================================================================
2020-01-24T22:32:57.4425044Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-24T22:32:57.4465578Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T22:32:57.4582996Z Cleaning up task key
2020-01-24T22:32:57.4583791Z Start cleaning up orphan processes.
2020-01-24T22:32:57.4732435Z Terminate orphan process: pid (7106) (python)
2020-01-24T22:32:57.4985275Z ##[section]Finishing: Finalize Job

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)

src/libcore/ops/generator.rs Outdated Show resolved Hide resolved
@rust-highfive

This comment was marked as outdated.

Copy link
Collaborator

rust-highfive commented Jan 24, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-24T22:56:41.4393298Z ========================== Starting Command Output ===========================
2020-01-24T22:56:41.4633253Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/fcf6e515-16cb-471f-bbb7-863f981935d7.sh
2020-01-24T22:56:41.4634937Z 
2020-01-24T22:56:41.4638368Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-24T22:56:41.4645223Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T22:56:41.4647064Z Task         : Get sources
2020-01-24T22:56:41.4647158Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T22:56:41.4647200Z Version      : 1.0.0
2020-01-24T22:56:41.4647240Z Author       : Microsoft
---
2020-01-24T22:56:42.2690080Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-24T22:56:42.2698576Z ##[command]git config gc.auto 0
2020-01-24T22:56:42.2700213Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-24T22:56:42.2701524Z ##[command]git config --get-all http.proxy
2020-01-24T22:56:42.2705885Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-24T23:20:04.4074261Z    Compiling rustc_data_structures v0.0.0 (/checkout/src/librustc_data_structures)
2020-01-24T23:20:04.8217282Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-24T23:20:04.8221216Z   --> src/librustc_data_structures/box_region.rs:53:58
2020-01-24T23:20:04.8221469Z    |
2020-01-24T23:20:04.8221729Z 53 |         let init = match Pin::new(&mut result.generator).resume() {
2020-01-24T23:20:04.8222210Z    |
2020-01-24T23:20:04.8222210Z    |
2020-01-24T23:20:04.8222436Z help: expected the unit value `()`; create it with empty parentheses
2020-01-24T23:20:04.8222631Z    |
2020-01-24T23:20:04.8223054Z 53 |         let init = match Pin::new(&mut result.generator).resume(()) {
2020-01-24T23:20:04.8223377Z 
2020-01-24T23:20:04.8267270Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-24T23:20:04.8267566Z   --> src/librustc_data_structures/box_region.rs:67:76
2020-01-24T23:20:04.8267778Z    |
2020-01-24T23:20:04.8267778Z    |
2020-01-24T23:20:04.8268071Z 67 |         if let GeneratorState::Complete(_) = Pin::new(&mut self.generator).resume() {
2020-01-24T23:20:04.8268734Z    |
2020-01-24T23:20:04.8268734Z    |
2020-01-24T23:20:04.8268971Z help: expected the unit value `()`; create it with empty parentheses
2020-01-24T23:20:04.8269154Z    |
2020-01-24T23:20:04.8269647Z 67 |         if let GeneratorState::Complete(_) = Pin::new(&mut self.generator).resume(()) {
2020-01-24T23:20:04.8269998Z 
2020-01-24T23:20:04.8306927Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-24T23:20:04.8307225Z   --> src/librustc_data_structures/box_region.rs:76:52
2020-01-24T23:20:04.8307415Z    |
2020-01-24T23:20:04.8307415Z    |
2020-01-24T23:20:04.8307703Z 76 |         let result = Pin::new(&mut self.generator).resume();
2020-01-24T23:20:04.8308170Z    |
2020-01-24T23:20:04.8308170Z    |
2020-01-24T23:20:04.8308400Z help: expected the unit value `()`; create it with empty parentheses
2020-01-24T23:20:04.8308580Z    |
2020-01-24T23:20:04.8308829Z 76 |         let result = Pin::new(&mut self.generator).resume(());
2020-01-24T23:20:04.8309136Z 
2020-01-24T23:20:05.2904145Z error: aborting due to 3 previous errors
2020-01-24T23:20:05.2904240Z 
2020-01-24T23:20:05.2904486Z For more information about this error, try `rustc --explain E0061`.
---
2020-01-24T23:20:12.7986935Z   local time: Fri Jan 24 23:20:12 UTC 2020
2020-01-24T23:20:13.3516644Z   network time: Fri, 24 Jan 2020 23:20:13 GMT
2020-01-24T23:20:13.3517419Z == end clock drift check ==
2020-01-24T23:20:14.1024248Z 
2020-01-24T23:20:14.1094568Z ##[error]Bash exited with code '1'.
2020-01-24T23:20:14.1108581Z ##[section]Finishing: Run build
2020-01-24T23:20:14.1127540Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T23:20:14.1129255Z Task         : Get sources
2020-01-24T23:20:14.1129404Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T23:20:14.1129462Z Version      : 1.0.0
2020-01-24T23:20:14.1129497Z Author       : Microsoft
2020-01-24T23:20:14.1129497Z Author       : Microsoft
2020-01-24T23:20:14.1129538Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-24T23:20:14.1129597Z ==============================================================================
2020-01-24T23:20:14.4731705Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-24T23:20:14.4767714Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T23:20:14.4853199Z Cleaning up task key
2020-01-24T23:20:14.4853859Z Start cleaning up orphan processes.
2020-01-24T23:20:14.4937182Z Terminate orphan process: pid (3845) (python)
2020-01-24T23:20:14.5100414Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from 4fa2c0e to a86373f Jan 24, 2020
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Jan 24, 2020

The job mingw-check 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.
2020-01-24T23:31:31.5806338Z ========================== Starting Command Output ===========================
2020-01-24T23:31:31.5808094Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/4c852021-1676-44c1-a5a8-12242c4ae312.sh
2020-01-24T23:31:31.5808267Z 
2020-01-24T23:31:31.5810645Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-24T23:31:31.5815154Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T23:31:31.5816383Z Task         : Get sources
2020-01-24T23:31:31.5816409Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T23:31:31.5816433Z Version      : 1.0.0
2020-01-24T23:31:31.5816458Z Author       : Microsoft
---
2020-01-24T23:31:32.3727156Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-24T23:31:32.3737131Z ##[command]git config gc.auto 0
2020-01-24T23:31:32.3739093Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-24T23:31:32.3740651Z ##[command]git config --get-all http.proxy
2020-01-24T23:31:32.3745878Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-24T23:36:10.4032310Z 
2020-01-24T23:36:10.4057756Z error: could not compile `rustc_data_structures`.
2020-01-24T23:36:10.4069232Z warning: build failed, waiting for other jobs to finish...
2020-01-24T23:36:16.3190379Z error: build failed
2020-01-24T23:36:16.3209526Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "-Zconfig-profile" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--color" "always" "--features" " llvm" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
2020-01-24T23:36:16.3220912Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2020-01-24T23:36:16.3220984Z Build completed unsuccessfully in 0:02:28
2020-01-24T23:36:16.3263549Z == clock drift check ==
2020-01-24T23:36:16.3274475Z   local time: Fri Jan 24 23:36:16 UTC 2020
2020-01-24T23:36:16.3274475Z   local time: Fri Jan 24 23:36:16 UTC 2020
2020-01-24T23:36:16.4823180Z   network time: Fri, 24 Jan 2020 23:36:16 GMT
2020-01-24T23:36:16.4827750Z == end clock drift check ==
2020-01-24T23:36:17.1481592Z 
2020-01-24T23:36:17.1552850Z ##[error]Bash exited with code '1'.
2020-01-24T23:36:17.1561341Z ##[section]Finishing: Run build
2020-01-24T23:36:17.1571776Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T23:36:17.1573170Z Task         : Get sources
2020-01-24T23:36:17.1573206Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-24T23:36:17.1573254Z Version      : 1.0.0
2020-01-24T23:36:17.1573298Z Author       : Microsoft
2020-01-24T23:36:17.1573298Z Author       : Microsoft
2020-01-24T23:36:17.1573333Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-24T23:36:17.1573369Z ==============================================================================
2020-01-24T23:36:17.4443264Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-24T23:36:17.4488446Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-24T23:36:17.4600599Z Cleaning up task key
2020-01-24T23:36:17.4601424Z Start cleaning up orphan processes.
2020-01-24T23:36:17.4679205Z Terminate orphan process: pid (3417) (python)
2020-01-24T23:36:17.4829341Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from a86373f to 7620e7e Jan 24, 2020
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Jan 25, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-25T00:02:47.9515794Z ========================== Starting Command Output ===========================
2020-01-25T00:02:47.9517481Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/b2319394-bd5e-4a8f-94be-a120f7e7f7e3.sh
2020-01-25T00:02:47.9517521Z 
2020-01-25T00:02:47.9522229Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-25T00:02:47.9528338Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T00:02:47.9530348Z Task         : Get sources
2020-01-25T00:02:47.9530380Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T00:02:47.9530411Z Version      : 1.0.0
2020-01-25T00:02:47.9530485Z Author       : Microsoft
---
2020-01-25T00:02:48.7595079Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-25T00:02:48.7697837Z ##[command]git config gc.auto 0
2020-01-25T00:02:48.7802692Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-25T00:02:48.7831709Z ##[command]git config --get-all http.proxy
2020-01-25T00:02:48.7975328Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-25T00:58:37.2792845Z .................................................................................................... 1700/9555
2020-01-25T00:58:43.2199652Z .................................................................................................... 1800/9555
2020-01-25T00:58:54.4548557Z ......................i............................................................................. 1900/9555
2020-01-25T00:59:01.1949979Z .................................................................................................... 2000/9555
2020-01-25T00:59:14.0077808Z ............iiiii................................F.................................................. 2100/9555
2020-01-25T00:59:23.2688396Z .................................................................................................... 2300/9555
2020-01-25T00:59:25.6383867Z .................................................................................................... 2400/9555
2020-01-25T00:59:30.7275746Z .................................................................................................... 2500/9555
2020-01-25T00:59:50.7852781Z .................................................................................................... 2600/9555
---
2020-01-25T01:02:25.7905215Z .............................................................i...............i...................... 4900/9555
2020-01-25T01:02:33.1981325Z .................................................................................................... 5000/9555
2020-01-25T01:02:41.0793607Z .................................................................................................... 5100/9555
2020-01-25T01:02:45.4939532Z ....i............................................................................................... 5200/9555
2020-01-25T01:02:56.5206730Z ............................................................................ii.ii........i...i...... 5300/9555
2020-01-25T01:03:05.2817734Z ..............i..................................................................................... 5500/9555
2020-01-25T01:03:14.9014859Z .................................................................................................... 5600/9555
2020-01-25T01:03:21.3596942Z ...............................................................i.................................... 5700/9555
2020-01-25T01:03:28.3392517Z .................................................................................................... 5800/9555
2020-01-25T01:03:28.3392517Z .................................................................................................... 5800/9555
2020-01-25T01:03:35.7904732Z .................................................................................................... 5900/9555
2020-01-25T01:03:44.3704807Z ......................................................ii...i..ii...........i........................ 6000/9555
2020-01-25T01:04:06.0263879Z .................................................................................................... 6200/9555
2020-01-25T01:04:14.0689062Z ......F............................................................................................. 6300/9555
2020-01-25T01:04:14.0689062Z ......F............................................................................................. 6300/9555
2020-01-25T01:04:22.3836646Z ..................................................................................i..ii............. 6400/9555
2020-01-25T01:04:48.7882481Z .................................................................................................... 6600/9555
2020-01-25T01:04:57.4651713Z ..........................................................i......................................... 6700/9555
2020-01-25T01:04:59.6731545Z .................................................................................................... 6800/9555
2020-01-25T01:05:01.8921002Z .........................................................i.......................................... 6900/9555
---
2020-01-25T01:06:41.5500308Z .................................................................................................... 7600/9555
2020-01-25T01:06:46.7954036Z .................................................................................................... 7700/9555
2020-01-25T01:06:53.5659457Z .................................................................................................... 7800/9555
2020-01-25T01:07:04.0016179Z .................................................................................................... 7900/9555
2020-01-25T01:07:09.9787894Z .............iiiiiii................................................................................ 8000/9555
2020-01-25T01:07:24.1184859Z .................................................................................................... 8200/9555
2020-01-25T01:07:34.5557876Z .................................................................................................... 8300/9555
2020-01-25T01:07:47.4507400Z .................................................................................................... 8400/9555
2020-01-25T01:07:54.1011996Z .................................................................................................... 8500/9555
---
2020-01-25T01:09:47.9824969Z ---- [ui] ui/drop/dynamic-drop.rs stdout ----
2020-01-25T01:09:47.9825328Z 
2020-01-25T01:09:47.9825974Z error: test compilation failed although it shouldn't!
2020-01-25T01:09:47.9826334Z status: exit code: 1
2020-01-25T01:09:47.9827449Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/drop/dynamic-drop.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/drop/dynamic-drop/a" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/drop/dynamic-drop/auxiliary"
2020-01-25T01:09:47.9828468Z ------------------------------------------
2020-01-25T01:09:47.9828790Z 
2020-01-25T01:09:47.9829375Z ------------------------------------------
2020-01-25T01:09:47.9829739Z stderr:
2020-01-25T01:09:47.9829739Z stderr:
2020-01-25T01:09:47.9830286Z ------------------------------------------
2020-01-25T01:09:47.9830632Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-25T01:09:47.9831420Z   --> /checkout/src/test/ui/drop/dynamic-drop.rs:187:28
2020-01-25T01:09:47.9831833Z    |
2020-01-25T01:09:47.9832112Z LL |         Pin::new(&mut gen).resume();
2020-01-25T01:09:47.9833297Z    |
2020-01-25T01:09:47.9833297Z    |
2020-01-25T01:09:47.9833576Z help: expected the unit value `()`; create it with empty parentheses
2020-01-25T01:09:47.9833881Z    |
2020-01-25T01:09:47.9834146Z LL |         Pin::new(&mut gen).resume(());
2020-01-25T01:09:47.9834660Z 
2020-01-25T01:09:47.9834929Z error: aborting due to previous error
2020-01-25T01:09:47.9835156Z 
2020-01-25T01:09:47.9835809Z For more information about this error, try `rustc --explain E0061`.
---
2020-01-25T01:09:47.9839610Z -   --> $DIR/issue-55850.rs:28:9
2020-01-25T01:09:47.9840002Z + error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-25T01:09:47.9840547Z +   --> $DIR/issue-55850.rs:18:37
2020-01-25T01:09:47.9840886Z 3    |
2020-01-25T01:09:47.9841443Z - LL |         yield &s[..]
2020-01-25T01:09:47.9842032Z -    |         ^^^^^^^-^^^^
2020-01-25T01:09:47.9844480Z -    |         |      `s` is borrowed here
2020-01-25T01:09:47.9845130Z -    |         yields a value referencing data owned by the current function
2020-01-25T01:09:47.9845130Z -    |         yields a value referencing data owned by the current function
2020-01-25T01:09:47.9845503Z + LL |         match Pin::new(&mut self.0).resume() {
2020-01-25T01:09:47.9846084Z 9 
2020-01-25T01:09:47.9847361Z - error[E0626]: borrow may still be in use when generator yields
2020-01-25T01:09:47.9848043Z -   --> $DIR/issue-55850.rs:28:16
2020-01-25T01:09:47.9848556Z -    |
2020-01-25T01:09:47.9848556Z -    |
2020-01-25T01:09:47.9849029Z - LL |         yield &s[..]
2020-01-25T01:09:47.9849562Z -    |         -------^---- possible yield occurs here
2020-01-25T01:09:47.9850004Z 15 
2020-01-25T01:09:47.9850479Z - error: aborting due to 2 previous errors
2020-01-25T01:09:47.9850943Z - 
2020-01-25T01:09:47.9851454Z - Some errors have detailed explanations: E0515, E0626.
2020-01-25T01:09:47.9851454Z - Some errors have detailed explanations: E0515, E0626.
2020-01-25T01:09:47.9852004Z - For more information about an error, try `rustc --explain E0515`.
2020-01-25T01:09:47.9852874Z + For more information about this error, try `rustc --explain E0061`.
2020-01-25T01:09:47.9853168Z 20 
2020-01-25T01:09:47.9853354Z 
2020-01-25T01:09:47.9853509Z 
2020-01-25T01:09:47.9853682Z The actual stderr differed from the expected stderr.
2020-01-25T01:09:47.9854215Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850/issue-55850.stderr
2020-01-25T01:09:47.9854765Z To update references, rerun the tests and pass the `--bless` flag
2020-01-25T01:09:47.9855317Z To only update this specific test, also pass `--test-args nll/issue-55850.rs`
2020-01-25T01:09:47.9857764Z error: 1 errors occurred comparing output.
2020-01-25T01:09:47.9857951Z status: exit code: 1
2020-01-25T01:09:47.9857951Z status: exit code: 1
2020-01-25T01:09:47.9859094Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/nll/issue-55850.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850/auxiliary" "-A" "unused"
2020-01-25T01:09:47.9860124Z ------------------------------------------
2020-01-25T01:09:47.9860343Z 
2020-01-25T01:09:47.9860828Z ------------------------------------------
2020-01-25T01:09:47.9861225Z stderr:
2020-01-25T01:09:47.9861225Z stderr:
2020-01-25T01:09:47.9861714Z ------------------------------------------
2020-01-25T01:09:47.9861985Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-25T01:09:47.9862896Z   --> /checkout/src/test/ui/nll/issue-55850.rs:18:37
2020-01-25T01:09:47.9863202Z    |
2020-01-25T01:09:47.9863414Z LL |         match Pin::new(&mut self.0).resume() {
2020-01-25T01:09:47.9863750Z 
2020-01-25T01:09:47.9863958Z error: aborting due to previous error
2020-01-25T01:09:47.9864108Z 
2020-01-25T01:09:47.9864611Z For more information about this error, try `rustc --explain E0061`.
---
2020-01-25T01:09:47.9869439Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:349:22
2020-01-25T01:09:47.9869679Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-01-25T01:09:47.9877425Z 
2020-01-25T01:09:47.9877784Z 
2020-01-25T01:09:47.9879834Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-01-25T01:09:47.9880394Z 
2020-01-25T01:09:47.9880534Z 
2020-01-25T01:09:47.9885466Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-01-25T01:09:47.9886059Z Build completed unsuccessfully in 1:01:27
2020-01-25T01:09:47.9886059Z Build completed unsuccessfully in 1:01:27
2020-01-25T01:09:47.9936253Z == clock drift check ==
2020-01-25T01:09:47.9955246Z   local time: Sat Jan 25 01:09:47 UTC 2020
2020-01-25T01:09:48.1545739Z   network time: Sat, 25 Jan 2020 01:09:48 GMT
2020-01-25T01:09:48.1548149Z == end clock drift check ==
2020-01-25T01:09:48.5175039Z 
2020-01-25T01:09:48.5290410Z ##[error]Bash exited with code '1'.
2020-01-25T01:09:48.5303441Z ##[section]Finishing: Run build
2020-01-25T01:09:48.5325741Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T01:09:48.5327709Z Task         : Get sources
2020-01-25T01:09:48.5327759Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T01:09:48.5327826Z Version      : 1.0.0
2020-01-25T01:09:48.5328024Z Author       : Microsoft
2020-01-25T01:09:48.5328024Z Author       : Microsoft
2020-01-25T01:09:48.5328071Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-25T01:09:48.5328142Z ==============================================================================
2020-01-25T01:09:48.9508505Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-25T01:09:48.9550558Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T01:09:48.9663171Z Cleaning up task key
2020-01-25T01:09:48.9663946Z Start cleaning up orphan processes.
2020-01-25T01:09:48.9772775Z Terminate orphan process: pid (3565) (python)
2020-01-25T01:09:49.0055554Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from 7620e7e to 239e313 Jan 25, 2020
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Jan 25, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-25T01:36:42.4085519Z ========================== Starting Command Output ===========================
2020-01-25T01:36:42.4087413Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/bba19e82-46f8-4821-9d88-94636356daa7.sh
2020-01-25T01:36:42.4087553Z 
2020-01-25T01:36:42.4090406Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-25T01:36:42.4097146Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T01:36:42.4098644Z Task         : Get sources
2020-01-25T01:36:42.4098678Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T01:36:42.4098754Z Version      : 1.0.0
2020-01-25T01:36:42.4098787Z Author       : Microsoft
---
2020-01-25T01:36:43.4091318Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-25T01:36:43.4103105Z ##[command]git config gc.auto 0
2020-01-25T01:36:43.4105715Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-25T01:36:43.4107906Z ##[command]git config --get-all http.proxy
2020-01-25T01:36:43.4114765Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-25T02:18:32.9833701Z .................................................................................................... 1700/9555
2020-01-25T02:18:38.5721889Z .................................................................................................... 1800/9555
2020-01-25T02:18:48.9488290Z ......................i............................................................................. 1900/9555
2020-01-25T02:18:55.2839086Z .................................................................................................... 2000/9555
2020-01-25T02:19:07.9959695Z ............iiiii................................................................................... 2100/9555
2020-01-25T02:19:16.2225492Z .................................................................................................... 2300/9555
2020-01-25T02:19:18.2608670Z .................................................................................................... 2400/9555
2020-01-25T02:19:22.8398220Z .................................................................................................... 2500/9555
2020-01-25T02:19:40.4977469Z .................................................................................................... 2600/9555
---
2020-01-25T02:21:57.0002972Z .............................................................i...............i...................... 4900/9555
2020-01-25T02:22:03.7525386Z .................................................................................................... 5000/9555
2020-01-25T02:22:10.6921549Z .................................................................................................... 5100/9555
2020-01-25T02:22:14.6915999Z ....i............................................................................................... 5200/9555
2020-01-25T02:22:24.2273994Z ............................................................................ii.ii........i...i...... 5300/9555
2020-01-25T02:22:31.8772980Z ..............i..................................................................................... 5500/9555
2020-01-25T02:22:40.7162932Z .................................................................................................... 5600/9555
2020-01-25T02:22:46.3263404Z ...............................................................i.................................... 5700/9555
2020-01-25T02:22:52.3466772Z .................................................................................................... 5800/9555
2020-01-25T02:22:52.3466772Z .................................................................................................... 5800/9555
2020-01-25T02:22:59.0874476Z .................................................................................................... 5900/9555
2020-01-25T02:23:07.3084705Z ......................................................ii...i..ii...........i........................ 6000/9555
2020-01-25T02:23:25.8994249Z .................................................................................................... 6200/9555
2020-01-25T02:23:29.8933342Z ........F........................................................................................... 6300/9555
2020-01-25T02:23:29.8933342Z ........F........................................................................................... 6300/9555
2020-01-25T02:23:33.8507843Z ..................................................................................i..ii............. 6400/9555
2020-01-25T02:23:54.8623917Z .................................................................................................... 6600/9555
2020-01-25T02:24:02.3200444Z ..........................................................i......................................... 6700/9555
2020-01-25T02:24:04.2577405Z .................................................................................................... 6800/9555
2020-01-25T02:24:06.2054620Z .........................................................i.......................................... 6900/9555
---
2020-01-25T02:25:31.9546447Z .................................................................................................... 7600/9555
2020-01-25T02:25:36.5451707Z .................................................................................................... 7700/9555
2020-01-25T02:25:42.1790548Z .................................................................................................... 7800/9555
2020-01-25T02:25:51.1792857Z .................................................................................................... 7900/9555
2020-01-25T02:25:56.4224553Z .............iiiiiii................................................................................ 8000/9555
2020-01-25T02:26:08.4530077Z .................................................................................................... 8200/9555
2020-01-25T02:26:17.4691938Z .................................................................................................... 8300/9555
2020-01-25T02:26:28.6333637Z .................................................................................................... 8400/9555
2020-01-25T02:26:34.2219958Z .................................................................................................... 8500/9555
---
2020-01-25T02:28:09.4936458Z -   --> $DIR/issue-55850.rs:28:9
2020-01-25T02:28:09.4936524Z + error[E0308]: mismatched types
2020-01-25T02:28:09.4936719Z +   --> $DIR/issue-55850.rs:18:44
2020-01-25T02:28:09.4936763Z 3    |
2020-01-25T02:28:09.4936965Z - LL |         yield &s[..]
2020-01-25T02:28:09.4937150Z -    |         ^^^^^^^-^^^^
2020-01-25T02:28:09.4937552Z -    |         |      `s` is borrowed here
2020-01-25T02:28:09.4937786Z -    |         yields a value referencing data owned by the current function
2020-01-25T02:28:09.4938103Z - 
2020-01-25T02:28:09.4939139Z - error[E0626]: borrow may still be in use when generator yields
2020-01-25T02:28:09.4939139Z - error[E0626]: borrow may still be in use when generator yields
2020-01-25T02:28:09.4939608Z -   --> $DIR/issue-55850.rs:28:16
2020-01-25T02:28:09.4939826Z + LL |         match Pin::new(&mut self.0).resume(()) {
2020-01-25T02:28:09.4940042Z +    |                                            ^^ expected associated type, found `()`
2020-01-25T02:28:09.4940229Z 12    |
2020-01-25T02:28:09.4940597Z - LL |         yield &s[..]
2020-01-25T02:28:09.4940987Z -    |         -------^---- possible yield occurs here
2020-01-25T02:28:09.4941202Z +    = note: expected associated type `<G as std::ops::Generator>::Resume`
2020-01-25T02:28:09.4941411Z +                     found unit type `()`
2020-01-25T02:28:09.4941610Z +    = note: consider constraining the associated type `<G as std::ops::Generator>::Resume` to `()` or calling a method that returns `<G as std::ops::Generator>::Resume`
2020-01-25T02:28:09.4942280Z 15 
2020-01-25T02:28:09.4942640Z - error: aborting due to 2 previous errors
2020-01-25T02:28:09.4943054Z + error: aborting due to previous error
2020-01-25T02:28:09.4943258Z 17 
---
2020-01-25T02:28:09.4948672Z 
2020-01-25T02:28:09.4948783Z 
2020-01-25T02:28:09.4948912Z The actual stderr differed from the expected stderr.
2020-01-25T02:28:09.4949311Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850/issue-55850.stderr
2020-01-25T02:28:09.4949849Z To update references, rerun the tests and pass the `--bless` flag
2020-01-25T02:28:09.4950223Z To only update this specific test, also pass `--test-args nll/issue-55850.rs`
2020-01-25T02:28:09.4950474Z error: 1 errors occurred comparing output.
2020-01-25T02:28:09.4950630Z status: exit code: 1
2020-01-25T02:28:09.4950630Z status: exit code: 1
2020-01-25T02:28:09.4951464Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/nll/issue-55850.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/nll/issue-55850/auxiliary" "-A" "unused"
2020-01-25T02:28:09.4951973Z ------------------------------------------
2020-01-25T02:28:09.4952113Z 
2020-01-25T02:28:09.4952410Z ------------------------------------------
2020-01-25T02:28:09.4952545Z stderr:
2020-01-25T02:28:09.4952545Z stderr:
2020-01-25T02:28:09.4952851Z ------------------------------------------
2020-01-25T02:28:09.4952994Z error[E0308]: mismatched types
2020-01-25T02:28:09.4953326Z   --> /checkout/src/test/ui/nll/issue-55850.rs:18:44
2020-01-25T02:28:09.4953480Z    |
2020-01-25T02:28:09.4953607Z LL |         match Pin::new(&mut self.0).resume(()) {
2020-01-25T02:28:09.4953740Z    |                                            ^^ expected associated type, found `()`
2020-01-25T02:28:09.4953881Z    |
2020-01-25T02:28:09.4954011Z    = note: expected associated type `<G as std::ops::Generator>::Resume`
2020-01-25T02:28:09.4954157Z                     found unit type `()`
2020-01-25T02:28:09.4954308Z    = note: consider constraining the associated type `<G as std::ops::Generator>::Resume` to `()` or calling a method that returns `<G as std::ops::Generator>::Resume`
2020-01-25T02:28:09.4956011Z 
2020-01-25T02:28:09.4956094Z error: aborting due to previous error
2020-01-25T02:28:09.4956187Z 
2020-01-25T02:28:09.4956476Z For more information about this error, try `rustc --explain E0308`.
---
2020-01-25T02:28:09.4957728Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:349:22
2020-01-25T02:28:09.4957800Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-01-25T02:28:09.4957834Z 
2020-01-25T02:28:09.4957876Z 
2020-01-25T02:28:09.4959608Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-01-25T02:28:09.4959938Z 
2020-01-25T02:28:09.4959968Z 
2020-01-25T02:28:09.4963763Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-01-25T02:28:09.4963851Z Build completed unsuccessfully in 0:46:33
2020-01-25T02:28:09.4963851Z Build completed unsuccessfully in 0:46:33
2020-01-25T02:28:09.5015170Z == clock drift check ==
2020-01-25T02:28:09.5036563Z   local time: Sat Jan 25 02:28:09 UTC 2020
2020-01-25T02:28:09.8019183Z   network time: Sat, 25 Jan 2020 02:28:09 GMT
2020-01-25T02:28:09.8022853Z == end clock drift check ==
2020-01-25T02:28:10.4444923Z 
2020-01-25T02:28:10.4538708Z ##[error]Bash exited with code '1'.
2020-01-25T02:28:10.4549477Z ##[section]Finishing: Run build
2020-01-25T02:28:10.4567745Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T02:28:10.4569506Z Task         : Get sources
2020-01-25T02:28:10.4569556Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T02:28:10.4569603Z Version      : 1.0.0
2020-01-25T02:28:10.4569659Z Author       : Microsoft
2020-01-25T02:28:10.4569659Z Author       : Microsoft
2020-01-25T02:28:10.4569705Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-25T02:28:10.4569754Z ==============================================================================
2020-01-25T02:28:10.8432744Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-25T02:28:10.8476981Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T02:28:10.8575159Z Cleaning up task key
2020-01-25T02:28:10.8575918Z Start cleaning up orphan processes.
2020-01-25T02:28:10.8667912Z Terminate orphan process: pid (3721) (python)
2020-01-25T02:28:10.8866375Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from 239e313 to 6795f59 Jan 25, 2020
@rust-highfive

This comment was marked as outdated.

Copy link
Collaborator

rust-highfive commented Jan 25, 2020

The job x86_64-gnu-llvm-7 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.
2020-01-25T03:08:19.9312758Z ========================== Starting Command Output ===========================
2020-01-25T03:08:19.9316798Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/207faf66-3293-4036-8f18-c892036ea5e8.sh
2020-01-25T03:08:19.9316841Z 
2020-01-25T03:08:19.9319630Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-25T03:08:19.9326135Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T03:08:19.9327783Z Task         : Get sources
2020-01-25T03:08:19.9327822Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T03:08:19.9327898Z Version      : 1.0.0
2020-01-25T03:08:19.9327938Z Author       : Microsoft
---
2020-01-25T03:08:20.7593026Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-25T03:08:20.7696158Z ##[command]git config gc.auto 0
2020-01-25T03:08:20.7793697Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-25T03:08:20.7843734Z ##[command]git config --get-all http.proxy
2020-01-25T03:08:20.8004540Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-01-25T04:00:15.7495894Z .................................................................................................... 1700/9556
2020-01-25T04:00:21.4428697Z .................................................................................................... 1800/9556
2020-01-25T04:00:32.6201896Z .......................i............................................................................ 1900/9556
2020-01-25T04:00:39.3335822Z .................................................................................................... 2000/9556
2020-01-25T04:00:53.0515162Z .............iiiii.................................................................................. 2100/9556
2020-01-25T04:01:02.2704924Z .................................................................................................... 2300/9556
2020-01-25T04:01:04.6265118Z .................................................................................................... 2400/9556
2020-01-25T04:01:09.7219218Z .................................................................................................... 2500/9556
2020-01-25T04:01:29.2757648Z .................................................................................................... 2600/9556
---
2020-01-25T04:03:59.7071937Z ..............................................................i...............i..................... 4900/9556
2020-01-25T04:04:06.9149233Z .................................................................................................... 5000/9556
2020-01-25T04:04:14.6303437Z .................................................................................................... 5100/9556
2020-01-25T04:04:19.0602967Z .....i.............................................................................................. 5200/9556
2020-01-25T04:04:29.5062129Z .............................................................................ii.ii........i...i..... 5300/9556
2020-01-25T04:04:37.5348278Z ...............i.................................................................................... 5500/9556
2020-01-25T04:04:46.4185140Z .................................................................................................... 5600/9556
2020-01-25T04:04:53.4360792Z ................................................................i................................... 5700/9556
2020-01-25T04:04:59.4673990Z .................................................................................................... 5800/9556
2020-01-25T04:04:59.4673990Z .................................................................................................... 5800/9556
2020-01-25T04:05:06.6011900Z .................................................................................................... 5900/9556
2020-01-25T04:05:15.0516004Z .......................................................ii...i..ii...........i....................... 6000/9556
2020-01-25T04:05:36.3404141Z .................................................................................................... 6200/9556
2020-01-25T04:05:42.1337409Z .................................................................................................... 6300/9556
2020-01-25T04:05:42.1337409Z .................................................................................................... 6300/9556
2020-01-25T04:05:46.1804217Z ...................................................................................i..ii............ 6400/9556
2020-01-25T04:06:08.4748586Z .................................................................................................... 6600/9556
2020-01-25T04:06:16.5435583Z ...........................................................i........................................ 6700/9556
2020-01-25T04:06:18.6752993Z .................................................................................................... 6800/9556
2020-01-25T04:06:20.8118935Z ..........................................................i......................................... 6900/9556
---
2020-01-25T04:07:54.9691210Z .................................................................................................... 7600/9556
2020-01-25T04:08:00.2029784Z .................................................................................................... 7700/9556
2020-01-25T04:08:06.6594955Z .................................................................................................... 7800/9556
2020-01-25T04:08:17.2968033Z .................................................................................................... 7900/9556
2020-01-25T04:08:23.2974084Z ..............iiiiiii............................................................................... 8000/9556
2020-01-25T04:08:37.2646936Z .................................................................................................... 8200/9556
2020-01-25T04:08:47.4538747Z .................................................................................................... 8300/9556
2020-01-25T04:09:00.2532206Z .................................................................................................... 8400/9556
2020-01-25T04:09:06.6937614Z .................................................................................................... 8500/9556
---
2020-01-25T04:11:10.4639800Z ---- [run-fail] run-fail/generator-resume-after-panic.rs stdout ----
2020-01-25T04:11:10.4639949Z 
2020-01-25T04:11:10.4640097Z error: compilation failed!
2020-01-25T04:11:10.4640254Z status: exit code: 1
2020-01-25T04:11:10.4641529Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/run-fail/generator-resume-after-panic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-fail/generator-resume-after-panic/a" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-fail/generator-resume-after-panic/auxiliary"
2020-01-25T04:11:10.4642194Z ------------------------------------------
2020-01-25T04:11:10.4642337Z 
2020-01-25T04:11:10.4642695Z ------------------------------------------
2020-01-25T04:11:10.4642853Z stderr:
---
2020-01-25T04:11:10.4645644Z 
2020-01-25T04:11:10.4645807Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-25T04:11:10.4646176Z   --> /checkout/src/test/run-fail/generator-resume-after-panic.rs:19:34
2020-01-25T04:11:10.4646346Z    |
2020-01-25T04:11:10.4646487Z 19 |         let x = Pin::new(&mut g).resume();
2020-01-25T04:11:10.4646789Z    |
2020-01-25T04:11:10.4646789Z    |
2020-01-25T04:11:10.4646929Z help: expected the unit value `()`; create it with empty parentheses
2020-01-25T04:11:10.4647065Z    |
2020-01-25T04:11:10.4647219Z 19 |         let x = Pin::new(&mut g).resume(());
2020-01-25T04:11:10.4647477Z 
2020-01-25T04:11:10.4647637Z error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2020-01-25T04:11:10.4648015Z   --> /checkout/src/test/run-fail/generator-resume-after-panic.rs:21:22
2020-01-25T04:11:10.4648397Z    |
2020-01-25T04:11:10.4648397Z    |
2020-01-25T04:11:10.4648584Z 21 |     Pin::new(&mut g).resume();
2020-01-25T04:11:10.4649055Z    |
2020-01-25T04:11:10.4649055Z    |
2020-01-25T04:11:10.4649223Z help: expected the unit value `()`; create it with empty parentheses
2020-01-25T04:11:10.4649357Z    |
2020-01-25T04:11:10.4649508Z 21 |     Pin::new(&mut g).resume(());
2020-01-25T04:11:10.4649780Z 
2020-01-25T04:11:10.4649916Z error: aborting due to 2 previous errors
2020-01-25T04:11:10.4650050Z 
2020-01-25T04:11:10.4650468Z For more information about this error, try `rustc --explain E0061`.
---
2020-01-25T04:11:10.4653065Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:349:22
2020-01-25T04:11:10.4653254Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-01-25T04:11:10.4653378Z 
2020-01-25T04:11:10.4653494Z 
2020-01-25T04:11:10.4655406Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/run-fail" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-fail" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "run-fail" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-01-25T04:11:10.4655857Z 
2020-01-25T04:11:10.4655996Z 
2020-01-25T04:11:10.4656137Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-01-25T04:11:10.4656281Z Build completed unsuccessfully in 0:57:22
2020-01-25T04:11:10.4656281Z Build completed unsuccessfully in 0:57:22
2020-01-25T04:11:10.4707584Z == clock drift check ==
2020-01-25T04:11:10.4725215Z   local time: Sat Jan 25 04:11:10 UTC 2020
2020-01-25T04:11:10.7624115Z   network time: Sat, 25 Jan 2020 04:11:10 GMT
2020-01-25T04:11:10.7635485Z == end clock drift check ==
2020-01-25T04:11:11.2206012Z 
2020-01-25T04:11:11.2301952Z ##[error]Bash exited with code '1'.
2020-01-25T04:11:11.2313975Z ##[section]Finishing: Run build
2020-01-25T04:11:11.2335413Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T04:11:11.2337389Z Task         : Get sources
2020-01-25T04:11:11.2337458Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-25T04:11:11.2337509Z Version      : 1.0.0
2020-01-25T04:11:11.2337555Z Author       : Microsoft
2020-01-25T04:11:11.2337555Z Author       : Microsoft
2020-01-25T04:11:11.2337622Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-25T04:11:11.2337677Z ==============================================================================
2020-01-25T04:11:11.6412488Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-25T04:11:11.6454111Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-01-25T04:11:11.6579020Z Cleaning up task key
2020-01-25T04:11:11.6579856Z Start cleaning up orphan processes.
2020-01-25T04:11:11.6683579Z Terminate orphan process: pid (3902) (python)
2020-01-25T04:11:11.7029714Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from 6795f59 to b1944ab Jan 25, 2020
TerminatorKind::Yield { ref value, .. } => {
TerminatorKind::Yield { ref value, resume_arg: ref place, .. } => {
self.create_move_path(place);
self.gather_init(place.as_ref(), InitKind::Deep);

This comment has been minimized.

Copy link
@Zoxc

Zoxc Jan 25, 2020

Contributor

I noticed that the order of gather_init and gather_operand is swapped compared to DropAndReplace, but I'm not sure if it matters.

@Zoxc

This comment has been minimized.

Copy link
Contributor

Zoxc commented Jan 25, 2020

I think I'd prefer to make this PR make the argument be a type parameter instead of a associated type before landing to avoid some unnecessary churn in the compiler and for users of generators.

I also don't know how correct this is with regards to drops and references, but those concerns could be delayed by just adding a 'static + Copy bound to the generator argument in typeck. That would be good enough for async/await.

@bjorn3

This comment has been minimized.

Copy link
Contributor

bjorn3 commented Jan 25, 2020

I think an assocated type makes more sense, as it is very unlikely to ever be overloaded for different resume types.

@matthewjasper

This comment has been minimized.

Copy link
Contributor

matthewjasper commented Jan 25, 2020

Async generators (should) implement for<'a, 'b> Geneator<&'a Context<'b>, Yield = ()>, which needs a type parameter.

Instead of "closure is expected to take 0 arguments"
we now get the expected type mismatch error.
This makes some error messages ungreat, but those seem to be preexisting
bugs that also apply to closures / return position `impl Trait` in
general.
This changes `Yield` from `as_rvalue` to `into` lowering, which could
have a possible performance impact. I could imagine special-casing
some resume types here to use a simpler lowering for them, but it's
unclear if that makes sense at this stage.
The resume arg is passed as argument `_2` and needs to be moved to the
`Yield`s target `Place`
@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from f348be8 to 9fa46fe Feb 2, 2020
@jonas-schievink

This comment has been minimized.

Copy link
Member Author

jonas-schievink commented Feb 2, 2020

@bors try @rust-timer queue

One more run after #68672 has landed

@rust-timer

This comment has been minimized.

Copy link

rust-timer commented Feb 2, 2020

Awaiting bors try build completion

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 2, 2020

⌛️ Trying commit 9fa46fe with merge e1322c9...

bors added a commit that referenced this pull request Feb 2, 2020
…<try>

Generator Resume Arguments

cc #43122 and #56974

Blockers:
* [ ] Fix miscompilation when resume argument is live across a yield point (#68524 (comment))
* [x] Fix 10% compile time regression in `await-call-tree` benchmarks (#68524 (comment))
  * [ ] Fix remaining 1-3% regression (#68524 (comment))
* [x] Make dropck rules account for resume arguments (#68524 (comment))

Follow-up work:
* Change async/await desugaring to make use of this feature
* Rewrite [`box_region.rs`](https://github.com/rust-lang/rust/blob/3d8778d767f0dde6fe2bc9459f21ead8e124d8cb/src/librustc_data_structures/box_region.rs) to use resume arguments
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 2, 2020

☀️ Try build successful - checks-azure
Build commit: e1322c9 (e1322c9577372f3b55980d1bc37221b894196070)

@rust-timer

This comment has been minimized.

Copy link

rust-timer commented Feb 2, 2020

Queued e1322c9 with parent 0cbcb17, future comparison URL.

@jonas-schievink

This comment has been minimized.

Copy link
Member Author

jonas-schievink commented Feb 2, 2020

Aaaand it's gone 🎉

@jonas-schievink

This comment was marked as resolved.

Copy link
Member Author

jonas-schievink commented Feb 2, 2020

I've pushed an attempt at fixing the miscompilation I found above, but it's still there (although the generated MIR does look better now). I don't immediately see what's wrong with this MIR though:

`generator_resume` MIR
// MIR for `main::{{closure}}#0`
// source = MirSource { instance: Item(DefId(0:14 ~ resume_live_across_yield[317d]::main[0]::{{closure}}[0])), promoted: None }
// pass_name = generator_resume
// disambiguator = 0
// generator_layout = GeneratorLayout { field_tys: [Dropper], variant_fields: [[], [], [], [_0]], storage_conflicts: BitMatrix { num_rows: 1, num_columns: 1, words: [1], marker: PhantomData } }

fn  main::{{closure}}#0(_1: std::pin::Pin<&mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}]>, _2: Dropper) -> std::ops::GeneratorState<(), Dropper> {
    debug _d => (((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper); // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:18: 21:24
    let mut _0: std::ops::GeneratorState<(), Dropper>; // return place in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
    let mut _3: Dropper;                 // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
    let mut _4: ();                      // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
    let mut _5: Dropper;                 // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:26: 21:26
    let mut _6: Dropper;                 // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:18: 21:24
    let mut _7: isize;                   // in scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6

    bb0: {
        _7 = discriminant((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}]))); // bb0[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        switchInt(move _7) -> [0u32: bb1, 1u32: bb11, 2u32: bb12, 3u32: bb10, otherwise: bb13]; // bb0[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
    }

    bb1: {
        (((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper) = move _2; // bb1[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        StorageLive(_3);                 // bb1[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
        StorageLive(_4);                 // bb1[2]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
        _4 = ();                         // bb1[3]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
        _0 = std::ops::GeneratorState::<(), Dropper>::Yielded(move _4,); // bb1[4]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
        discriminant((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}]))) = 3; // bb1[5]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
        return;                          // bb1[6]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:14: 22:19
    }

    bb2 (cleanup): {
        discriminant((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}]))) = 2; // bb2[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        resume;                          // bb2[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
    }

    bb3: {
        StorageDead(_4);                 // bb3[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:18: 22:19
        drop((((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper)) -> [return: bb7, unwind: bb6]; // bb3[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:9: 22:11
    }

    bb4 (cleanup): {
        goto -> bb8;                     // bb4[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:5: 24:6
    }

    bb5: {
        _0 = std::ops::GeneratorState::<(), Dropper>::Complete(move _5,); // bb5[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:6: 24:6
        discriminant((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}]))) = 1; // bb5[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:6: 24:6
        return;                          // bb5[2]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:6: 24:6
    }

    bb6 (cleanup): {
        (((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper) = move _3; // bb6[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:9: 22:11
        StorageDead(_3);                 // bb6[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:18: 22:19
        drop((((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper)) -> bb4; // bb6[2]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:5: 24:6
    }

    bb7: {
        (((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper) = move _3; // bb7[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:9: 22:11
        StorageDead(_3);                 // bb7[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:22:18: 22:19
        _5 = move (((*(_1.0: &mut [generator@/home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6 {Dropper, ()}])) as variant#3).0: Dropper); // bb7[2]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:23:9: 23:11
        goto -> bb9;                     // bb7[3]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:5: 24:6
    }

    bb8 (cleanup): {
        goto -> bb2;                     // bb8[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:5: 24:6
    }

    bb9: {
        goto -> bb5;                     // bb9[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:24:5: 24:6
    }

    bb10: {
        StorageLive(_2);                 // bb10[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        StorageLive(_3);                 // bb10[1]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        StorageLive(_4);                 // bb10[2]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        _3 = move _2;                    // bb10[3]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
        goto -> bb3;                     // bb10[4]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
    }

    bb11: {
        assert(const false, "generator resumed after completion") -> bb11; // bb11[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
                                         // ty::Const
                                         // + ty: bool
                                         // + val: Value(Scalar(0x00))
                                         // mir::Constant
                                         // + span: /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
                                         // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
    }

    bb12: {
        assert(const false, "generator resumed after panicking") -> bb12; // bb12[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
                                         // ty::Const
                                         // + ty: bool
                                         // + val: Value(Scalar(0x00))
                                         // mir::Constant
                                         // + span: /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
                                         // + literal: Const { ty: bool, val: Value(Scalar(0x00)) }
    }

    bb13: {
        unreachable;                     // bb13[0]: scope 0 at /home/jonas/dev/rust/src/test/ui/generator/resume-live-across-yield.rs:21:17: 24:6
    }
}
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Feb 2, 2020

The job x86_64-gnu-llvm-7 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.
2020-02-02T21:52:25.5980394Z ========================== Starting Command Output ===========================
2020-02-02T21:52:25.5996835Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/9e44abd8-c575-46f3-9605-8ee6edd42b02.sh
2020-02-02T21:52:25.6171686Z 
2020-02-02T21:52:25.6279048Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-02T21:52:25.6283473Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-02T21:52:25.6284661Z Task         : Get sources
2020-02-02T21:52:25.6284685Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-02T21:52:25.6284716Z Version      : 1.0.0
2020-02-02T21:52:25.6284740Z Author       : Microsoft
---
2020-02-02T21:52:26.5052969Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-02-02T21:52:26.5149786Z ##[command]git config gc.auto 0
2020-02-02T21:52:26.5217030Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-02-02T21:52:26.5277132Z ##[command]git config --get-all http.proxy
2020-02-02T21:52:26.5438508Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-02-02T22:45:29.8634771Z .................................................................................................... 1700/9572
2020-02-02T22:45:34.8576372Z .................................................................................................... 1800/9572
2020-02-02T22:45:47.0270572Z ..........................i......................................................................... 1900/9572
2020-02-02T22:45:54.6870733Z .................................................................................................... 2000/9572
2020-02-02T22:46:07.5068532Z ................iiiii............................................................................... 2100/9572
2020-02-02T22:46:17.0077055Z .................................................................................................... 2300/9572
2020-02-02T22:46:19.3310724Z .................................................................................................... 2400/9572
2020-02-02T22:46:24.2045574Z .................................................................................................... 2500/9572
2020-02-02T22:46:43.9626410Z .................................................................................................... 2600/9572
---
2020-02-02T22:49:12.8810936Z .................................................................i...............i.................. 4900/9572
2020-02-02T22:49:20.0671038Z .................................................................................................... 5000/9572
2020-02-02T22:49:27.5217443Z .................................................................................................... 5100/9572
2020-02-02T22:49:32.0157380Z ........i........................................................................................... 5200/9572
2020-02-02T22:49:42.2188742Z ..................................................................................ii.ii........i...i 5300/9572
2020-02-02T22:49:49.9759153Z ....................i............................................................................... 5500/9572
2020-02-02T22:49:57.4724852Z .................................................................................................... 5600/9572
2020-02-02T22:50:05.4898289Z .....................................................................i.............................. 5700/9572
2020-02-02T22:50:12.7752243Z .................................................................................................... 5800/9572
2020-02-02T22:50:12.7752243Z .................................................................................................... 5800/9572
2020-02-02T22:50:19.7018268Z .................................................................................................... 5900/9572
2020-02-02T22:50:29.3667864Z ............................................................ii...i..ii...........i.................. 6000/9572
2020-02-02T22:50:49.7591464Z .................................................................................................... 6200/9572
2020-02-02T22:50:56.8229271Z .................................................................................................... 6300/9572
2020-02-02T22:50:56.8229271Z .................................................................................................... 6300/9572
2020-02-02T22:51:03.5771055Z ........................................................................................i..ii....... 6400/9572
2020-02-02T22:51:25.0442524Z .................................................................................................... 6600/9572
2020-02-02T22:51:33.9496468Z ................................................................i................................... 6700/9572
2020-02-02T22:51:35.9751401Z .................................................................................................... 6800/9572
2020-02-02T22:51:38.1400894Z .................................................................i.................................. 6900/9572
---
2020-02-02T22:53:12.8691840Z .................................................................................................... 7600/9572
2020-02-02T22:53:17.5977518Z .................................................................................................... 7700/9572
2020-02-02T22:53:23.6787402Z .................................................................................................... 7800/9572
2020-02-02T22:53:33.4752044Z .................................................................................................... 7900/9572
2020-02-02T22:53:39.3920062Z .........................iiiiiii.i.................................................................. 8000/9572
2020-02-02T22:53:52.7894212Z .................................................................................................... 8200/9572
2020-02-02T22:54:00.9639139Z .................................................................................................... 8300/9572
2020-02-02T22:54:14.3269815Z .................................................................................................... 8400/9572
2020-02-02T22:54:21.4418872Z .................................................................................................... 8500/9572
---
2020-02-02T22:56:11.4540524Z 
2020-02-02T22:56:11.4540730Z ------------------------------------------
2020-02-02T22:56:11.4540791Z stderr:
2020-02-02T22:56:11.4540988Z ------------------------------------------
2020-02-02T22:56:11.4541274Z [/checkout/src/test/ui/generator/resume-live-across-yield.rs:33] g.as_mut().resume(Dropper(String::from("Number Two"))) = Yielded(
2020-02-02T22:56:11.4541342Z     (),
2020-02-02T22:56:11.4541553Z )
2020-02-02T22:56:11.4542335Z thread 'main' panicked at 'internal error: entered unreachable code', /checkout/src/test/ui/generator/resume-live-across-yield.rs:40:14
2020-02-02T22:56:11.4542433Z 
2020-02-02T22:56:11.4542618Z ------------------------------------------
2020-02-02T22:56:11.4542655Z 
2020-02-02T22:56:11.4542693Z 
---
2020-02-02T22:56:11.4559593Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-02T22:56:11.4559700Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-02T22:56:11.4569256Z 
2020-02-02T22:56:11.4569533Z 
2020-02-02T22:56:11.4574229Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-02-02T22:56:11.4575006Z 
2020-02-02T22:56:11.4575113Z 
2020-02-02T22:56:11.4582578Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-02T22:56:11.4583166Z Build completed unsuccessfully in 0:58:08
2020-02-02T22:56:11.4583166Z Build completed unsuccessfully in 0:58:08
2020-02-02T22:56:11.4628095Z == clock drift check ==
2020-02-02T22:56:11.4646653Z   local time: Sun Feb  2 22:56:11 UTC 2020
2020-02-02T22:56:11.7499031Z   network time: Sun, 02 Feb 2020 22:56:11 GMT
2020-02-02T22:56:11.7502989Z == end clock drift check ==
2020-02-02T22:56:12.2995578Z 
2020-02-02T22:56:12.3096279Z ##[error]Bash exited with code '1'.
2020-02-02T22:56:12.3129329Z ##[section]Finishing: Run build
2020-02-02T22:56:12.3161624Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-02T22:56:12.3163413Z Task         : Get sources
2020-02-02T22:56:12.3163452Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-02T22:56:12.3163628Z Version      : 1.0.0
2020-02-02T22:56:12.3163662Z Author       : Microsoft
2020-02-02T22:56:12.3163662Z Author       : Microsoft
2020-02-02T22:56:12.3163699Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-02T22:56:12.3163756Z ==============================================================================
2020-02-02T22:56:12.7134448Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-02T22:56:12.7173083Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-02T22:56:12.7287013Z Cleaning up task key
2020-02-02T22:56:12.7288040Z Start cleaning up orphan processes.
2020-02-02T22:56:12.7387356Z Terminate orphan process: pid (4269) (python)
2020-02-02T22:56:12.7641880Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch 2 times, most recently from 0c8395b to c1c9980 Feb 3, 2020
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Feb 3, 2020

The job x86_64-gnu-llvm-7 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.
2020-02-03T11:47:38.9640173Z ========================== Starting Command Output ===========================
2020-02-03T11:47:38.9642156Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/589e24f7-bfd5-464a-bd4f-8f21cf8f7cfe.sh
2020-02-03T11:47:38.9642189Z 
2020-02-03T11:47:38.9644481Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-03T11:47:38.9649799Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-03T11:47:38.9651606Z Task         : Get sources
2020-02-03T11:47:38.9651631Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-03T11:47:38.9651666Z Version      : 1.0.0
2020-02-03T11:47:38.9651693Z Author       : Microsoft
---
2020-02-03T11:47:39.7859253Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-02-03T11:47:39.7965506Z ##[command]git config gc.auto 0
2020-02-03T11:47:39.8049608Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-02-03T11:47:39.8106994Z ##[command]git config --get-all http.proxy
2020-02-03T11:47:39.8245173Z ##[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/68524/merge:refs/remotes/pull/68524/merge
---
2020-02-03T12:39:53.6938356Z .................................................................................................... 1700/9574
2020-02-03T12:39:58.2800573Z .................................................................................................... 1800/9574
2020-02-03T12:40:10.2820061Z ...........................i........................................................................ 1900/9574
2020-02-03T12:40:16.9145442Z .................................................................................................... 2000/9574
2020-02-03T12:40:30.1707134Z .................iiiii.............................................................................. 2100/9574
2020-02-03T12:40:38.6289197Z .................................................................................................... 2300/9574
2020-02-03T12:40:40.6386586Z .................................................................................................... 2400/9574
2020-02-03T12:40:44.9618243Z .................................................................................................... 2500/9574
2020-02-03T12:41:03.6672000Z .................................................................................................... 2600/9574
---
2020-02-03T12:43:23.0639551Z ..................................................................i...............i................. 4900/9574
2020-02-03T12:43:29.5577331Z .................................................................................................... 5000/9574
2020-02-03T12:43:36.8021025Z .................................................................................................... 5100/9574
2020-02-03T12:43:40.9401601Z .........i.......................................................................................... 5200/9574
2020-02-03T12:43:50.7581750Z ...................................................................................ii.ii........i... 5300/9574
2020-02-03T12:43:54.1107218Z i................................................................................................... 5400/9574
2020-02-03T12:44:04.7865582Z .................................................................................................... 5600/9574
2020-02-03T12:44:12.3188646Z ......................................................................i............................. 5700/9574
2020-02-03T12:44:18.5827000Z .................................................................................................... 5800/9574
2020-02-03T12:44:24.6573486Z .................................................................................................... 5900/9574
2020-02-03T12:44:24.6573486Z .................................................................................................... 5900/9574
2020-02-03T12:44:33.3794903Z .............................................................ii...i..ii...........i................. 6000/9574
2020-02-03T12:44:51.9322174Z .................................................................................................... 6200/9574
2020-02-03T12:44:58.2244318Z .................................................................................................... 6300/9574
2020-02-03T12:44:58.2244318Z .................................................................................................... 6300/9574
2020-02-03T12:45:04.9437238Z .........................................................................................i..ii...... 6400/9574
2020-02-03T12:45:25.5703631Z .................................................................................................... 6600/9574
2020-02-03T12:45:34.0079763Z .................................................................i.................................. 6700/9574
2020-02-03T12:45:35.7327294Z .................................................................................................... 6800/9574
2020-02-03T12:45:37.6898356Z ...................................................................i................................ 6900/9574
---
2020-02-03T12:47:06.9683616Z .................................................................................................... 7600/9574
2020-02-03T12:47:11.2746820Z .................................................................................................... 7700/9574
2020-02-03T12:47:16.9903343Z .................................................................................................... 7800/9574
2020-02-03T12:47:25.8871799Z .................................................................................................... 7900/9574
2020-02-03T12:47:31.4550652Z ...........................iiiiiii.i................................................................ 8000/9574
2020-02-03T12:47:44.4657758Z .................................................................................................... 8200/9574
2020-02-03T12:47:52.2180713Z .................................................................................................... 8300/9574
2020-02-03T12:48:05.0825493Z .................................................................................................... 8400/9574
2020-02-03T12:48:11.9421320Z .................................................................................................... 8500/9574
---
2020-02-03T12:50:12.6434032Z running 81 tests
2020-02-03T12:50:19.2039284Z ................................F................................................
2020-02-03T12:50:19.2040607Z failures:
2020-02-03T12:50:19.2041071Z 
2020-02-03T12:50:19.2041694Z ---- [mir-opt] mir-opt/generator-drop-cleanup.rs stdout ----
2020-02-03T12:50:19.2041797Z [ERROR compiletest::runtest] None
2020-02-03T12:50:19.2042231Z thread '[mir-opt] mir-opt/generator-drop-cleanup.rs' panicked at 'Did not find expected line, error: Mismatch in lines
2020-02-03T12:50:19.2042306Z Current block: None
2020-02-03T12:50:19.2042355Z Actual Line: "        _7 = discriminant((*_1));"
2020-02-03T12:50:19.2042403Z Expected Line: "    _6 = discriminant((*_1));"
2020-02-03T12:50:19.2042684Z Test Name: rustc.main-{{closure}}.generator_drop.0.mir
2020-02-03T12:50:19.2042778Z ... (elided)
2020-02-03T12:50:19.2042820Z bb0: {
2020-02-03T12:50:19.2042820Z bb0: {
2020-02-03T12:50:19.2042882Z     _6 = discriminant((*_1));
2020-02-03T12:50:19.2043143Z     switchInt(move _6) -> [0u32: bb4, 3u32: bb7, otherwise: bb8];
2020-02-03T12:50:19.2043249Z bb1: {
2020-02-03T12:50:19.2043292Z     StorageDead(_4);
2020-02-03T12:50:19.2043344Z     StorageDead(_3);
2020-02-03T12:50:19.2043565Z     goto -> bb5;
---
2020-02-03T12:50:19.2045349Z }
2020-02-03T12:50:19.2045376Z bb8: {
2020-02-03T12:50:19.2045406Z     return;
2020-02-03T12:50:19.2045464Z }
2020-02-03T12:50:19.2045493Z Actual:
2020-02-03T12:50:19.2045720Z fn  main::{{closure}}#0(_1: *mut [generator@/checkout/src/test/mir-opt/generator-drop-cleanup.rs:7:15: 9:6 {()}]) -> () {
2020-02-03T12:50:19.2045777Z     let mut _0: ();
2020-02-03T12:50:19.2045808Z     let mut _2: ();
2020-02-03T12:50:19.2045838Z     let _3: ();
2020-02-03T12:50:19.2045868Z     let mut _4: ();
2020-02-03T12:50:19.2045923Z     let mut _5: ();
2020-02-03T12:50:19.2045953Z     let mut _6: ();
2020-02-03T12:50:19.2045984Z     let mut _7: isize;
2020-02-03T12:50:19.2046032Z     bb0: {
2020-02-03T12:50:19.2046069Z         _7 = discriminant((*_1));
2020-02-03T12:50:19.2046263Z         switchInt(move _7) -> [0u32: bb4, 3u32: bb7, otherwise: bb8];
2020-02-03T12:50:19.2046345Z     bb1: {
2020-02-03T12:50:19.2046375Z         StorageDead(_4);
2020-02-03T12:50:19.2046406Z         StorageDead(_3);
2020-02-03T12:50:19.2046571Z         goto -> bb5;
---
2020-02-03T12:50:19.2049060Z test result: FAILED. 80 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
2020-02-03T12:50:19.2049088Z 
2020-02-03T12:50:19.2049108Z 
2020-02-03T12:50:19.2049127Z 
2020-02-03T12:50:19.2051037Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/mir-opt" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/mir-opt" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "mir-opt" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-02-03T12:50:19.2051303Z 
2020-02-03T12:50:19.2051359Z 
2020-02-03T12:50:19.2051674Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-03T12:50:19.2054739Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-03T12:50:19.2054739Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-03T12:50:19.2055199Z Build completed unsuccessfully in 0:57:21
2020-02-03T12:50:19.2107198Z == clock drift check ==
2020-02-03T12:50:19.2126561Z   local time: Mon Feb  3 12:50:19 UTC 2020
2020-02-03T12:50:19.5082552Z   network time: Mon, 03 Feb 2020 12:50:19 GMT
2020-02-03T12:50:19.5091194Z == end clock drift check ==
2020-02-03T12:50:21.6883322Z 
2020-02-03T12:50:21.7002117Z ##[error]Bash exited with code '1'.
2020-02-03T12:50:21.7015202Z ##[section]Finishing: Run build
2020-02-03T12:50:21.7038022Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-03T12:50:21.7039635Z Task         : Get sources
2020-02-03T12:50:21.7039672Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-03T12:50:21.7039723Z Version      : 1.0.0
2020-02-03T12:50:21.7039772Z Author       : Microsoft
2020-02-03T12:50:21.7039772Z Author       : Microsoft
2020-02-03T12:50:21.7039807Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-03T12:50:21.7040015Z ==============================================================================
2020-02-03T12:50:22.1158126Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-03T12:50:22.1193799Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68524/merge to s
2020-02-03T12:50:22.1301985Z Cleaning up task key
2020-02-03T12:50:22.1302732Z Start cleaning up orphan processes.
2020-02-03T12:50:22.1397846Z Terminate orphan process: pid (3623) (python)
2020-02-03T12:50:22.1660881Z ##[section]Finishing: Finalize Job

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)

@jonas-schievink jonas-schievink force-pushed the jonas-schievink:generator-resume-arguments branch from c1c9980 to 392e595 Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.