Skip to content
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

Make Box<dyn FnOnce> respect self alignment #71170

Merged
merged 2 commits into from
Apr 21, 2020

Conversation

spastorino
Copy link
Member

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 15, 2020
@spastorino spastorino force-pushed the dyn-fnonce-alignment branch from f630df3 to da12757 Compare April 15, 2020 16:06
Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, needs a test!

src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
@spastorino spastorino force-pushed the dyn-fnonce-alignment branch from da12757 to d8549c0 Compare April 15, 2020 16:54
@spastorino
Copy link
Member Author

spastorino commented Apr 15, 2020

Also, needs a test!

oh, test was left untracked on my computer.

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch 3 times, most recently from 733373a to cb22781 Compare April 15, 2020 21:15
@spastorino
Copy link
Member Author

This is still not working :/

@rust-highfive
Copy link
Collaborator

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-04-15T21:16:32.4484256Z ========================== Starting Command Output ===========================
2020-04-15T21:16:32.4550740Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/92b00161-4851-4df6-8c60-fd17a38669f8.sh
2020-04-15T21:16:32.4553309Z 
2020-04-15T21:16:32.4562346Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-15T21:16:32.4583077Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-15T21:16:32.4585861Z Task         : Get sources
2020-04-15T21:16:32.4586306Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-15T21:16:32.4586695Z Version      : 1.0.0
2020-04-15T21:16:32.4586843Z Author       : Microsoft
---
2020-04-15T21:16:33.4408060Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-15T21:16:33.4412564Z ##[command]git config gc.auto 0
2020-04-15T21:16:33.4416121Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-15T21:16:33.4419677Z ##[command]git config --get-all http.proxy
2020-04-15T21:16:33.4426293Z ##[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/71170/merge:refs/remotes/pull/71170/merge
---
2020-04-15T21:18:34.8312984Z  ---> f58a2bb1e753
2020-04-15T21:18:34.8316408Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-7       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-15T21:18:34.8321163Z  ---> Using cache
2020-04-15T21:18:34.8323001Z  ---> d079cc6b6db8
2020-04-15T21:18:34.8323765Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-15T21:18:34.8332694Z  ---> 4183ca46ee56
2020-04-15T21:18:34.8332879Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-15T21:18:34.8380474Z  ---> Using cache
2020-04-15T21:18:34.8380872Z  ---> 69e7f8a2a2fb
---
2020-04-15T21:18:34.8730971Z Looks like docker image is the same as before, not uploading
2020-04-15T21:18:42.4137230Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-15T21:18:42.4434621Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-15T21:18:42.4462550Z == clock drift check ==
2020-04-15T21:18:42.4485839Z   local time: Wed Apr 15 21:18:42 UTC 2020
2020-04-15T21:18:42.6422040Z   network time: Wed, 15 Apr 2020 21:18:42 GMT
2020-04-15T21:18:42.6436431Z Starting sccache server...
2020-04-15T21:18:42.7214299Z configure: processing command line
2020-04-15T21:18:42.7217820Z configure: 
2020-04-15T21:18:42.7218691Z configure: rust.dist-src        := False
---
2020-04-15T21:23:49.0078359Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-15T21:23:50.4616184Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-15T21:23:51.9763497Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-15T21:23:53.7591695Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-15T21:24:02.2814653Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-15T21:24:05.4758783Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-15T21:24:09.8722951Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-15T21:24:13.9218850Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-15T21:24:22.6513773Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-15T21:46:55.8159550Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-15T21:46:57.5416599Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-15T21:46:59.5577811Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-15T21:47:02.3368778Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-15T21:47:11.9459459Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-15T21:47:16.2540371Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-15T21:47:21.5172060Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-15T21:47:27.1160520Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-15T21:47:37.1726650Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-15T22:12:53.3465005Z .................................................................................................... 1700/9897
2020-04-15T22:12:57.5003123Z .................................................................................................... 1800/9897
2020-04-15T22:13:05.5350267Z .................................................................................................... 1900/9897
2020-04-15T22:13:13.1033335Z ......i............................................................................................. 2000/9897
2020-04-15T22:13:19.0450669Z ................................................................................................iiii 2100/9897
2020-04-15T22:13:33.5255630Z i................................................................................................... 2200/9897
2020-04-15T22:13:41.0832101Z .................................................................................................... 2400/9897
2020-04-15T22:13:43.0530637Z .................................................................................................... 2500/9897
2020-04-15T22:13:48.2135693Z .................................................................................................... 2600/9897
2020-04-15T22:14:06.8797370Z .................................................................................................... 2700/9897
---
2020-04-15T22:16:38.9876217Z .................................................................................................... 5100/9897
2020-04-15T22:16:46.4006191Z .................................................................................................... 5200/9897
2020-04-15T22:16:50.5081589Z ..................i................................................................................. 5300/9897
2020-04-15T22:16:59.8159524Z ........i........................................................................................... 5400/9897
2020-04-15T22:17:05.0407731Z ........ii.ii........i...i.......................................................................... 5500/9897
2020-04-15T22:17:12.0113681Z ......................................................i............................................. 5700/9897
2020-04-15T22:17:21.0953180Z ..........................................................................ii........................ 5800/9897
2020-04-15T22:17:27.2052855Z .............i...................................................................................... 5900/9897
2020-04-15T22:17:32.3949608Z .................................................................................................... 6000/9897
2020-04-15T22:17:32.3949608Z .................................................................................................... 6000/9897
2020-04-15T22:17:42.4840030Z .................................................................................................... 6100/9897
2020-04-15T22:17:52.8672271Z .......ii...i..ii...........i....................................................................... 6200/9897
2020-04-15T22:18:07.7563288Z .................................................................................................... 6400/9897
2020-04-15T22:18:13.8559510Z .................................................................................................... 6500/9897
2020-04-15T22:18:13.8559510Z .................................................................................................... 6500/9897
2020-04-15T22:18:25.5406988Z .....................................i..ii.......................................................... 6600/9897
2020-04-15T22:18:46.4246959Z .................................................................................................... 6800/9897
2020-04-15T22:18:48.4552690Z .....................................i.............................................................. 6900/9897
2020-04-15T22:18:50.4240492Z .................................................................................................... 7000/9897
2020-04-15T22:18:52.4504040Z ............................................................................i....................... 7100/9897
---
2020-04-15T22:20:27.7975373Z .................................................................................................... 7800/9897
2020-04-15T22:20:31.8394437Z .................................................................................................... 7900/9897
2020-04-15T22:20:38.0468814Z .................................................................................................... 8000/9897
2020-04-15T22:20:43.9510500Z ..........................................i......................................................... 8100/9897
2020-04-15T22:20:52.9369367Z ..........................................................................................iiiiii.iii 8200/9897
2020-04-15T22:20:58.7863871Z ii.i................................................................................................ 8300/9897
2020-04-15T22:21:11.0517965Z .................................................................................................... 8500/9897
2020-04-15T22:21:19.9127147Z .................................................................................................... 8600/9897
2020-04-15T22:21:32.5361111Z .................................................................................................... 8700/9897
2020-04-15T22:21:38.6238256Z .................................................................................................... 8800/9897
---
2020-04-15T22:23:24.0537814Z ---- [ui] ui/fn/dyn-fn-alignment.rs stdout ----
2020-04-15T22:23:24.0538293Z 
2020-04-15T22:23:24.0538567Z error: test run failed!
2020-04-15T22:23:24.0539024Z status: exit code: 101
2020-04-15T22:23:24.0540024Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fn/dyn-fn-alignment/a"
2020-04-15T22:23:24.0541012Z ------------------------------------------
2020-04-15T22:23:24.0541319Z 
2020-04-15T22:23:24.0541952Z ------------------------------------------
2020-04-15T22:23:24.0542323Z stderr:
2020-04-15T22:23:24.0542323Z stderr:
2020-04-15T22:23:24.0542848Z ------------------------------------------
2020-04-15T22:23:24.0543544Z thread 'main' panicked at 'assertion failed: `(left == right)`
2020-04-15T22:23:24.0543969Z   left: `48`,
2020-04-15T22:23:24.0544672Z  right: `0`: addr: 0x7ffde875e030', /checkout/src/test/ui/fn/dyn-fn-alignment.rs:23:5
2020-04-15T22:23:24.0545727Z 
2020-04-15T22:23:24.0546233Z ------------------------------------------
2020-04-15T22:23:24.0546533Z 
2020-04-15T22:23:24.0546894Z 
---
2020-04-15T22:23:24.0557000Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-15T22:23:24.0557719Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-04-15T22:23:24.0567145Z 
2020-04-15T22:23:24.0567649Z 
2020-04-15T22:23:24.0571409Z command did not execute successfully: "/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" "--nodejs" "/usr/bin/node" "--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" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-15T22:23:24.0574454Z 
2020-04-15T22:23:24.0574807Z 
2020-04-15T22:23:24.0578923Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-15T22:23:24.0579275Z Build completed unsuccessfully in 1:03:08
2020-04-15T22:23:24.0579275Z Build completed unsuccessfully in 1:03:08
2020-04-15T22:23:24.0626854Z == clock drift check ==
2020-04-15T22:23:24.0645922Z   local time: Wed Apr 15 22:23:24 UTC 2020
2020-04-15T22:23:25.1125313Z   network time: Wed, 15 Apr 2020 22:23:24 GMT
2020-04-15T22:23:25.1172750Z 
2020-04-15T22:23:25.1172750Z 
2020-04-15T22:23:25.1207482Z ##[error]Bash exited with code '1'.
2020-04-15T22:23:25.1219512Z ##[section]Finishing: Run build
2020-04-15T22:23:25.1272073Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-15T22:23:25.1277775Z Task         : Get sources
2020-04-15T22:23:25.1278290Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-15T22:23:25.1278572Z Version      : 1.0.0
2020-04-15T22:23:25.1278928Z Author       : Microsoft
2020-04-15T22:23:25.1278928Z Author       : Microsoft
2020-04-15T22:23:25.1279249Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-15T22:23:25.1279595Z ==============================================================================
2020-04-15T22:23:25.4511513Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-15T22:23:25.4516011Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-15T22:23:25.4619834Z Cleaning up task key
2020-04-15T22:23:25.4620975Z Start cleaning up orphan processes.
2020-04-15T22:23:25.4800272Z Terminate orphan process: pid (3286) (python)
2020-04-15T22:23:25.5022785Z ##[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 @rust-lang/infra. (Feature Requests)

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch 2 times, most recently from a94808a to c8e6669 Compare April 16, 2020 22:35
@rust-highfive
Copy link
Collaborator

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-04-16T22:43:40.1997609Z ========================== Starting Command Output ===========================
2020-04-16T22:43:40.2002676Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/6e6a4f6e-e091-431d-b976-429c012f5aaa.sh
2020-04-16T22:43:40.2003266Z 
2020-04-16T22:43:40.2009849Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-16T22:43:40.2031961Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-16T22:43:40.2036459Z Task         : Get sources
2020-04-16T22:43:40.2036763Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-16T22:43:40.2037060Z Version      : 1.0.0
2020-04-16T22:43:40.2037266Z Author       : Microsoft
---
2020-04-16T22:43:41.1899302Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-16T22:43:41.1905146Z ##[command]git config gc.auto 0
2020-04-16T22:43:41.1909167Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-16T22:43:41.1913140Z ##[command]git config --get-all http.proxy
2020-04-16T22:43:41.1920062Z ##[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/71170/merge:refs/remotes/pull/71170/merge
---
2020-04-16T22:45:49.4059748Z  ---> f58a2bb1e753
2020-04-16T22:45:49.4061041Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-7       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-16T22:45:49.4085090Z  ---> Using cache
2020-04-16T22:45:49.4091165Z  ---> d079cc6b6db8
2020-04-16T22:45:49.4095834Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-16T22:45:49.4098127Z  ---> 4183ca46ee56
2020-04-16T22:45:49.4098383Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-16T22:45:49.4098743Z  ---> Using cache
2020-04-16T22:45:49.4099293Z  ---> 69e7f8a2a2fb
---
2020-04-16T22:45:49.4514749Z Looks like docker image is the same as before, not uploading
2020-04-16T22:45:57.0762263Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-16T22:45:57.1044756Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-16T22:45:57.1076301Z == clock drift check ==
2020-04-16T22:45:57.1086610Z   local time: Thu Apr 16 22:45:57 UTC 2020
2020-04-16T22:45:57.2137627Z   network time: Thu, 16 Apr 2020 22:45:57 GMT
2020-04-16T22:45:57.2165119Z Starting sccache server...
2020-04-16T22:45:57.3093500Z configure: processing command line
2020-04-16T22:45:57.3094724Z configure: 
2020-04-16T22:45:57.3096023Z configure: rust.dist-src        := False
---
2020-04-16T22:51:36.4685856Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-16T22:51:38.1081003Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-16T22:51:39.7874094Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-16T22:51:41.9179355Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-16T22:51:50.6260840Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-16T22:51:54.3815872Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-16T22:51:59.1587705Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-16T22:52:03.8975005Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-16T22:52:12.5885936Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-16T23:16:28.1645139Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-16T23:16:30.0929381Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-16T23:16:32.2804624Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-16T23:16:34.8886472Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-16T23:16:45.8865485Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-16T23:16:49.9253994Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-16T23:16:55.5707019Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-16T23:17:01.3784781Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-16T23:17:12.5591679Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-16T23:44:40.7038072Z .................................................................................................... 1700/9899
2020-04-16T23:44:45.7328024Z .................................................................................................... 1800/9899
2020-04-16T23:44:55.0723054Z .................................................................................................... 1900/9899
2020-04-16T23:45:03.9866548Z .......i............................................................................................ 2000/9899
2020-04-16T23:45:10.9394136Z ................................................................................................iiii 2100/9899
2020-04-16T23:45:26.7679156Z i................................................................................................... 2200/9899
2020-04-16T23:45:36.0332770Z .................................................................................................... 2400/9899
2020-04-16T23:45:37.9267048Z .................................................................................................... 2500/9899
2020-04-16T23:45:43.9893316Z .................................................................................................... 2600/9899
2020-04-16T23:46:04.5721293Z .................................................................................................... 2700/9899
---
2020-04-16T23:48:53.6294138Z .................................................................................................... 5100/9899
2020-04-16T23:49:01.8213298Z .................................................................................................... 5200/9899
2020-04-16T23:49:06.5745492Z ..................i................................................................................. 5300/9899
2020-04-16T23:49:16.9925050Z ........i........................................................................................... 5400/9899
2020-04-16T23:49:22.7100043Z ........ii.ii........i...i.......................................................................... 5500/9899
2020-04-16T23:49:30.4519480Z ......................................................i............................................. 5700/9899
2020-04-16T23:49:40.5730519Z ..........................................................................ii........................ 5800/9899
2020-04-16T23:49:47.6332362Z .............i...................................................................................... 5900/9899
2020-04-16T23:49:53.0675384Z .................................................................................................... 6000/9899
2020-04-16T23:49:53.0675384Z .................................................................................................... 6000/9899
2020-04-16T23:50:04.3377647Z .................................................................................................... 6100/9899
2020-04-16T23:50:15.5690584Z .......ii...i...ii..........i....................................................................... 6200/9899
2020-04-16T23:50:31.5367954Z .................................................................................................... 6400/9899
2020-04-16T23:50:37.9947511Z .................................................................................................... 6500/9899
2020-04-16T23:50:37.9947511Z .................................................................................................... 6500/9899
2020-04-16T23:50:55.8691920Z .....................................i..ii.......................................................... 6600/9899
2020-04-16T23:51:18.7770243Z .................................................................................................... 6800/9899
2020-04-16T23:51:20.8842790Z ......................................i............................................................. 6900/9899
2020-04-16T23:51:23.0814376Z .................................................................................................... 7000/9899
2020-04-16T23:51:25.2213647Z ..............................................................................i..................... 7100/9899
---
2020-04-16T23:53:07.5344167Z .................................................................................................... 7800/9899
2020-04-16T23:53:11.8811977Z .................................................................................................... 7900/9899
2020-04-16T23:53:18.8064066Z .................................................................................................... 8000/9899
2020-04-16T23:53:25.2186285Z ............................................i....................................................... 8100/9899
2020-04-16T23:53:35.4749158Z ............................................................................................iiiiii.i 8200/9899
2020-04-16T23:53:41.9113941Z iiii.i.............................................................................................. 8300/9899
2020-04-16T23:53:56.2098374Z .................................................................................................... 8500/9899
2020-04-16T23:54:06.4537336Z .................................................................................................... 8600/9899
2020-04-16T23:54:21.7142720Z .................................................................................................... 8700/9899
2020-04-16T23:54:29.0591153Z .................................................................................................... 8800/9899
---
2020-04-16T23:56:26.5979229Z ---- [ui] ui/object-safety/object-safety-by-value-self-use.rs stdout ----
2020-04-16T23:56:26.5979776Z 
2020-04-16T23:56:26.5980109Z error: ui test compiled successfully!
2020-04-16T23:56:26.5980461Z status: exit code: 0
2020-04-16T23:56:26.5983502Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/object-safety/object-safety-by-value-self-use.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/object-safety/object-safety-by-value-self-use" "-A" "unused" "-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/object-safety/object-safety-by-value-self-use/auxiliary"
2020-04-16T23:56:26.5986509Z ------------------------------------------
2020-04-16T23:56:26.5986699Z 
2020-04-16T23:56:26.5987092Z ------------------------------------------
2020-04-16T23:56:26.5987326Z stderr:
---
2020-04-16T23:56:26.5989448Z 
2020-04-16T23:56:26.5989670Z 45 error[E0382]: borrow of moved value: `x`
2020-04-16T23:56:26.5990168Z 46   --> $DIR/borrow-after-move.rs:39:24
2020-04-16T23:56:26.5990405Z 47    |
2020-04-16T23:56:26.5990868Z + LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.5991825Z +    |             - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
2020-04-16T23:56:26.5992273Z 48 LL |         x.foo();
2020-04-16T23:56:26.5992730Z 49    |         - value moved here
2020-04-16T23:56:26.5992975Z 50 LL |         println!("{}", &x);
2020-04-16T23:56:26.5993623Z -    |                        ^^ value borrowed here after partial move
2020-04-16T23:56:26.5994025Z -    |
2020-04-16T23:56:26.5994025Z -    |
2020-04-16T23:56:26.5994574Z -    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.5995003Z +    |                        ^^ value borrowed here after move
2020-04-16T23:56:26.5995447Z 55 error: aborting due to 5 previous errors
2020-04-16T23:56:26.5995672Z 56 
2020-04-16T23:56:26.5995779Z 
2020-04-16T23:56:26.5995880Z 
2020-04-16T23:56:26.5995880Z 
2020-04-16T23:56:26.5996094Z The actual stderr differed from the expected stderr.
2020-04-16T23:56:26.5996846Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/unsized-locals/borrow-after-move/borrow-after-move.stderr
2020-04-16T23:56:26.5997519Z To update references, rerun the tests and pass the `--bless` flag
2020-04-16T23:56:26.5998152Z To only update this specific test, also pass `--test-args unsized-locals/borrow-after-move.rs`
2020-04-16T23:56:26.5998634Z error: 1 errors occurred comparing output.
2020-04-16T23:56:26.5998876Z status: exit code: 1
2020-04-16T23:56:26.5998876Z status: exit code: 1
2020-04-16T23:56:26.6000969Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/unsized-locals/borrow-after-move.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/unsized-locals/borrow-after-move" "-A" "unused" "-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/unsized-locals/borrow-after-move/auxiliary"
2020-04-16T23:56:26.6002622Z ------------------------------------------
2020-04-16T23:56:26.6002801Z 
2020-04-16T23:56:26.6003176Z ------------------------------------------
2020-04-16T23:56:26.6003405Z stderr:
---
2020-04-16T23:56:26.6005917Z LL |         drop_unsized(y);
2020-04-16T23:56:26.6006143Z LL |         println!("{}", &x);
2020-04-16T23:56:26.6006457Z    |                        ^^ value borrowed here after partial move
2020-04-16T23:56:26.6006705Z    |
2020-04-16T23:56:26.6007002Z    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6007502Z error[E0382]: borrow of moved value: `y`
2020-04-16T23:56:26.6008066Z   --> /checkout/src/test/ui/unsized-locals/borrow-after-move.rs:22:24
2020-04-16T23:56:26.6008328Z    |
2020-04-16T23:56:26.6008516Z LL |         let y = *x;
---
2020-04-16T23:56:26.6014700Z LL |         y.foo();
2020-04-16T23:56:26.6015063Z LL |         println!("{}", &x);
2020-04-16T23:56:26.6015365Z    |                        ^^ value borrowed here after partial move
2020-04-16T23:56:26.6015629Z    |
2020-04-16T23:56:26.6016055Z    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6016703Z error[E0382]: borrow of moved value: `y`
2020-04-16T23:56:26.6017473Z   --> /checkout/src/test/ui/unsized-locals/borrow-after-move.rs:32:24
2020-04-16T23:56:26.6017745Z    |
2020-04-16T23:56:26.6017935Z LL |         let y = *x;
---
2020-04-16T23:56:26.6020822Z 
2020-04-16T23:56:26.6021033Z error[E0382]: borrow of moved value: `x`
2020-04-16T23:56:26.6021953Z   --> /checkout/src/test/ui/unsized-locals/borrow-after-move.rs:39:24
2020-04-16T23:56:26.6022242Z    |
2020-04-16T23:56:26.6022653Z LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6023582Z    |             - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6024142Z LL |         x.foo();
2020-04-16T23:56:26.6024579Z    |         - value moved here
2020-04-16T23:56:26.6024977Z LL |         println!("{}", &x);
2020-04-16T23:56:26.6025280Z    |                        ^^ value borrowed here after move
2020-04-16T23:56:26.6025823Z error: aborting due to 5 previous errors
2020-04-16T23:56:26.6025997Z 
2020-04-16T23:56:26.6026708Z For more information about this error, try `rustc --explain E0382`.
2020-04-16T23:56:26.6026929Z 
---
2020-04-16T23:56:26.6029102Z 
2020-04-16T23:56:26.6029288Z 38 LL |         y.foo();
2020-04-16T23:56:26.6029697Z 39    |         ^ value used here after move
2020-04-16T23:56:26.6029901Z 40 
2020-04-16T23:56:26.6030569Z - error[E0382]: use of moved value: `*x`
2020-04-16T23:56:26.6031698Z + error[E0382]: use of moved value: `x`
2020-04-16T23:56:26.6032440Z 42   --> $DIR/double-move.rs:45:9
2020-04-16T23:56:26.6032652Z 43    |
2020-04-16T23:56:26.6032857Z 44 LL |         let _y = *x;
2020-04-16T23:56:26.6033410Z 45    |                  -- value moved here
2020-04-16T23:56:26.6033672Z 46 LL |         x.foo();
2020-04-16T23:56:26.6034094Z -    |         ^ value used here after move
2020-04-16T23:56:26.6034094Z -    |         ^ value used here after move
2020-04-16T23:56:26.6034381Z +    |         ^ value used here after partial move
2020-04-16T23:56:26.6034601Z 48    |
2020-04-16T23:56:26.6034928Z 49    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6035331Z 
2020-04-16T23:56:26.6035331Z 
2020-04-16T23:56:26.6035569Z 51 error[E0382]: use of moved value: `*x`
2020-04-16T23:56:26.6036039Z 52   --> $DIR/double-move.rs:51:18
2020-04-16T23:56:26.6036242Z 53    |
2020-04-16T23:56:26.6036494Z + LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6037218Z +    |             - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6037627Z 54 LL |         x.foo();
2020-04-16T23:56:26.6038050Z 55    |         - value moved here
2020-04-16T23:56:26.6038408Z 56 LL |         let _y = *x;
2020-04-16T23:56:26.6038784Z 57    |                  ^^ value used here after move
2020-04-16T23:56:26.6039215Z -    |
2020-04-16T23:56:26.6039215Z -    |
2020-04-16T23:56:26.6039762Z -    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6104459Z 61 error: aborting due to 6 previous errors
2020-04-16T23:56:26.6104683Z 62 
2020-04-16T23:56:26.6104996Z 
2020-04-16T23:56:26.6105116Z 
2020-04-16T23:56:26.6105116Z 
2020-04-16T23:56:26.6105354Z The actual stderr differed from the expected stderr.
2020-04-16T23:56:26.6106241Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/unsized-locals/double-move/double-move.stderr
2020-04-16T23:56:26.6106903Z To update references, rerun the tests and pass the `--bless` flag
2020-04-16T23:56:26.6107542Z To only update this specific test, also pass `--test-args unsized-locals/double-move.rs`
2020-04-16T23:56:26.6107999Z error: 1 errors occurred comparing output.
2020-04-16T23:56:26.6108261Z status: exit code: 1
2020-04-16T23:56:26.6108261Z status: exit code: 1
2020-04-16T23:56:26.6113612Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/unsized-locals/double-move.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/unsized-locals/double-move" "-A" "unused" "-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/unsized-locals/double-move/auxiliary"
2020-04-16T23:56:26.6115463Z ------------------------------------------
2020-04-16T23:56:26.6115646Z 
2020-04-16T23:56:26.6116061Z ------------------------------------------
2020-04-16T23:56:26.6116275Z stderr:
2020-04-16T23:56:26.6116275Z stderr:
2020-04-16T23:56:26.6116679Z ------------------------------------------
2020-04-16T23:56:26.6116980Z error[E0382]: use of moved value: `y`
2020-04-16T23:56:26.6117524Z   --> /checkout/src/test/ui/unsized-locals/double-move.rs:20:22
2020-04-16T23:56:26.6117775Z    |
2020-04-16T23:56:26.6117967Z LL |         let y = *x;
2020-04-16T23:56:26.6118550Z    |             - move occurs because `y` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6118897Z LL |         drop_unsized(y);
2020-04-16T23:56:26.6119577Z    |                      - value moved here
2020-04-16T23:56:26.6119881Z LL |         drop_unsized(y); //~ERROR use of moved value
2020-04-16T23:56:26.6120194Z    |                      ^ value used here after move
2020-04-16T23:56:26.6120614Z error[E0382]: use of moved value: `x`
2020-04-16T23:56:26.6121152Z   --> /checkout/src/test/ui/unsized-locals/double-move.rs:26:22
2020-04-16T23:56:26.6121402Z    |
2020-04-16T23:56:26.6121402Z    |
2020-04-16T23:56:26.6121593Z LL |         let _y = *x;
2020-04-16T23:56:26.6122019Z    |                  -- value moved here
2020-04-16T23:56:26.6122314Z LL |         drop_unsized(x); //~ERROR use of moved value
2020-04-16T23:56:26.6122658Z    |                      ^ value used here after partial move
2020-04-16T23:56:26.6122892Z    |
2020-04-16T23:56:26.6123190Z    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6123479Z 
2020-04-16T23:56:26.6123686Z error[E0382]: use of moved value: `*x`
2020-04-16T23:56:26.6124495Z    |
2020-04-16T23:56:26.6124722Z LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6124722Z LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6125439Z    |             - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6125866Z LL |         drop_unsized(x);
2020-04-16T23:56:26.6126300Z    |                      - value moved here
2020-04-16T23:56:26.6126686Z LL |         let _y = *x; //~ERROR use of moved value
2020-04-16T23:56:26.6127018Z    |                  ^^ value used here after move
2020-04-16T23:56:26.6127412Z error[E0382]: use of moved value: `y`
2020-04-16T23:56:26.6127979Z   --> /checkout/src/test/ui/unsized-locals/double-move.rs:39:9
2020-04-16T23:56:26.6128245Z    |
2020-04-16T23:56:26.6128417Z LL |         let y = *x;
2020-04-16T23:56:26.6128417Z LL |         let y = *x;
2020-04-16T23:56:26.6128996Z    |             - move occurs because `y` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6129354Z LL |         y.foo();
2020-04-16T23:56:26.6129746Z    |         - value moved here
2020-04-16T23:56:26.6130011Z LL |         y.foo(); //~ERROR use of moved value
2020-04-16T23:56:26.6130305Z    |         ^ value used here after move
2020-04-16T23:56:26.6130680Z error[E0382]: use of moved value: `x`
2020-04-16T23:56:26.6131433Z   --> /checkout/src/test/ui/unsized-locals/double-move.rs:45:9
2020-04-16T23:56:26.6131729Z    |
2020-04-16T23:56:26.6131729Z    |
2020-04-16T23:56:26.6131909Z LL |         let _y = *x;
2020-04-16T23:56:26.6132578Z    |                  -- value moved here
2020-04-16T23:56:26.6133052Z LL |         x.foo(); //~ERROR use of moved value
2020-04-16T23:56:26.6133338Z    |         ^ value used here after partial move
2020-04-16T23:56:26.6133539Z    |
2020-04-16T23:56:26.6133980Z    = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6134255Z 
2020-04-16T23:56:26.6134585Z error[E0382]: use of moved value: `*x`
2020-04-16T23:56:26.6135470Z    |
2020-04-16T23:56:26.6135697Z LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6135697Z LL |         let x = "hello".to_owned().into_boxed_str();
2020-04-16T23:56:26.6136635Z    |             - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6137235Z LL |         x.foo();
2020-04-16T23:56:26.6137835Z    |         - value moved here
2020-04-16T23:56:26.6138126Z LL |         let _y = *x; //~ERROR use of moved value
2020-04-16T23:56:26.6138447Z    |                  ^^ value used here after move
2020-04-16T23:56:26.6138829Z error: aborting due to 6 previous errors
2020-04-16T23:56:26.6139002Z 
2020-04-16T23:56:26.6145202Z For more information about this error, try `rustc --explain E0382`.
2020-04-16T23:56:26.6145438Z 
2020-04-16T23:56:26.6145438Z 
2020-04-16T23:56:26.6146253Z ------------------------------------------
2020-04-16T23:56:26.6147184Z 
2020-04-16T23:56:26.6147437Z 
2020-04-16T23:56:26.6147962Z ---- [ui] ui/unsized-locals/unsized-exprs2.rs stdout ----
2020-04-16T23:56:26.6148197Z diff of stderr:
2020-04-16T23:56:26.6148320Z 
2020-04-16T23:56:26.6148754Z 1 error[E0508]: cannot move out of type `[u8]`, a non-copy slice
2020-04-16T23:56:26.6149605Z +   --> $DIR/unsized-exprs2.rs:22:5
2020-04-16T23:56:26.6149810Z 3    |
2020-04-16T23:56:26.6149810Z 3    |
2020-04-16T23:56:26.6149992Z 4 LL |     udrop::<[u8]>(foo()[..]);
2020-04-16T23:56:26.6151006Z -    |                   |
2020-04-16T23:56:26.6151413Z -    |                   cannot move out of here
2020-04-16T23:56:26.6151991Z -    |                   move occurs because value has type `[u8]`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6152343Z +    |     ^^^^^^^^^^^^^^^^^^^^^^^^
---
2020-04-16T23:56:26.6154232Z 11 
2020-04-16T23:56:26.6154329Z 
2020-04-16T23:56:26.6154419Z 
2020-04-16T23:56:26.6154608Z The actual stderr differed from the expected stderr.
2020-04-16T23:56:26.6155502Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/unsized-locals/unsized-exprs2/unsized-exprs2.stderr
2020-04-16T23:56:26.6156156Z To update references, rerun the tests and pass the `--bless` flag
2020-04-16T23:56:26.6156720Z To only update this specific test, also pass `--test-args unsized-locals/unsized-exprs2.rs`
2020-04-16T23:56:26.6157327Z error: 1 errors occurred comparing output.
2020-04-16T23:56:26.6157544Z status: exit code: 1
2020-04-16T23:56:26.6157544Z status: exit code: 1
2020-04-16T23:56:26.6159639Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/unsized-locals/unsized-exprs2.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/unsized-locals/unsized-exprs2" "-A" "unused" "-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/unsized-locals/unsized-exprs2/auxiliary"
2020-04-16T23:56:26.6162119Z ------------------------------------------
2020-04-16T23:56:26.6162284Z 
2020-04-16T23:56:26.6162624Z ------------------------------------------
2020-04-16T23:56:26.6162831Z stderr:
2020-04-16T23:56:26.6162831Z stderr:
2020-04-16T23:56:26.6163181Z ------------------------------------------
2020-04-16T23:56:26.6163638Z error[E0508]: cannot move out of type `[u8]`, a non-copy slice
2020-04-16T23:56:26.6164403Z    |
2020-04-16T23:56:26.6164403Z    |
2020-04-16T23:56:26.6164579Z LL |     udrop::<[u8]>(foo()[..]);
2020-04-16T23:56:26.6164991Z    |     |
2020-04-16T23:56:26.6165164Z    |     cannot move out of here
2020-04-16T23:56:26.6165481Z    |     move occurs because value has type `[u8]`, which does not implement the `Copy` trait
2020-04-16T23:56:26.6165715Z 
---
2020-04-16T23:56:26.6171448Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-16T23:56:26.6171854Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-04-16T23:56:26.6172064Z 
2020-04-16T23:56:26.6172153Z 
2020-04-16T23:56:26.6175681Z command did not execute successfully: "/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" "--nodejs" "/usr/bin/node" "--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" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-16T23:56:26.6178054Z 
2020-04-16T23:56:26.6178147Z 
2020-04-16T23:56:26.6178668Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-16T23:56:26.6179007Z Build completed unsuccessfully in 1:08:42
2020-04-16T23:56:26.6179007Z Build completed unsuccessfully in 1:08:42
2020-04-16T23:56:26.6179232Z == clock drift check ==
2020-04-16T23:56:26.6179472Z   local time: Thu Apr 16 23:56:26 UTC 2020
2020-04-16T23:56:26.7486369Z   network time: Thu, 16 Apr 2020 23:56:26 GMT
2020-04-16T23:56:27.2081528Z 
2020-04-16T23:56:27.2081528Z 
2020-04-16T23:56:27.2178984Z ##[error]Bash exited with code '1'.
2020-04-16T23:56:27.2197023Z ##[section]Finishing: Run build
2020-04-16T23:56:27.2254501Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-16T23:56:27.2259943Z Task         : Get sources
2020-04-16T23:56:27.2260290Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-16T23:56:27.2260641Z Version      : 1.0.0
2020-04-16T23:56:27.2260865Z Author       : Microsoft
2020-04-16T23:56:27.2260865Z Author       : Microsoft
2020-04-16T23:56:27.2261223Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-16T23:56:27.2261650Z ==============================================================================
2020-04-16T23:56:27.5869672Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-16T23:56:27.5920119Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-16T23:56:27.6022971Z Cleaning up task key
2020-04-16T23:56:27.6024265Z Start cleaning up orphan processes.
2020-04-16T23:56:27.6262478Z Terminate orphan process: pid (3439) (python)
2020-04-16T23:56:27.6502866Z ##[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 @rust-lang/infra. (Feature Requests)

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch 3 times, most recently from 4755471 to b285807 Compare April 17, 2020 01:32
@spastorino spastorino marked this pull request as ready for review April 17, 2020 01:35
@spastorino spastorino force-pushed the dyn-fnonce-alignment branch from b285807 to b3d4262 Compare April 17, 2020 12:58
@spastorino
Copy link
Member Author

@nikomatsakis @eddyb this should be now ready for review.

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch 2 times, most recently from 986b0e2 to 33ceb58 Compare April 17, 2020 13:44
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
let local_scope = self.local_scope();
let expr = self.hir.mirror(expr);

if tcx.features().unsized_locals {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this feature check? I guess that unsized locals, if passed, will get an error elsewhere in the compiler anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I suppose it doesn't hurt.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @eddyb had talked about possibly adding a second feature gate here.. not sure if we want to consider that in this PR? Probably not, since I imagine it may require unrelated changes elsewhere.

src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
src/librustc_mir_build/build/expr/as_operand.rs Outdated Show resolved Hide resolved
--> $DIR/double-move.rs:45:9
|
LL | let _y = *x;
| -- value moved here
LL | x.foo();
| ^ value used here after move
| ^ value used here after partial move
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes seem ok 👍

@@ -45,12 +45,12 @@ LL | println!("{}", &y);
error[E0382]: borrow of moved value: `x`
--> $DIR/borrow-after-move.rs:39:24
|
LL | let x = "hello".to_owned().into_boxed_str();
| - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So... this is a bit suboptimal, in that the move is really occurring because foo was invoked on *x -- i.e., the type str -- but the new IR makes the borrow checker see it otherwise. I'm not sure how easy/hard that would be to fix. Probably not worth worrying about, I think.

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch from 33ceb58 to 683a5fb Compare April 17, 2020 23:03
@rust-highfive
Copy link
Collaborator

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-04-17T23:04:02.3460924Z ========================== Starting Command Output ===========================
2020-04-17T23:04:02.3465927Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/79699dba-cfa6-4d5a-890f-7b310ed2fc95.sh
2020-04-17T23:04:02.3466612Z 
2020-04-17T23:04:02.3471869Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-17T23:04:02.3491350Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-17T23:04:02.3495460Z Task         : Get sources
2020-04-17T23:04:02.3495782Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-17T23:04:02.3496077Z Version      : 1.0.0
2020-04-17T23:04:02.3496280Z Author       : Microsoft
---
2020-04-17T23:04:03.3320308Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-17T23:04:03.3326218Z ##[command]git config gc.auto 0
2020-04-17T23:04:03.3330313Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-17T23:04:03.3334325Z ##[command]git config --get-all http.proxy
2020-04-17T23:04:03.3341500Z ##[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/71170/merge:refs/remotes/pull/71170/merge
---
2020-04-17T23:06:21.4835706Z  ---> f58a2bb1e753
2020-04-17T23:06:21.4836588Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-7       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-17T23:06:21.4837233Z  ---> Using cache
2020-04-17T23:06:21.4837586Z  ---> d079cc6b6db8
2020-04-17T23:06:21.4842037Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-17T23:06:21.4843396Z  ---> 4183ca46ee56
2020-04-17T23:06:21.4843667Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-17T23:06:21.4844069Z  ---> Using cache
2020-04-17T23:06:21.4844423Z  ---> 69e7f8a2a2fb
---
2020-04-17T23:06:21.5333552Z Looks like docker image is the same as before, not uploading
2020-04-17T23:06:29.0231307Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-17T23:06:29.0555419Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-17T23:06:29.0589806Z == clock drift check ==
2020-04-17T23:06:29.0597553Z   local time: Fri Apr 17 23:06:29 UTC 2020
2020-04-17T23:06:29.1616997Z   network time: Fri, 17 Apr 2020 23:06:29 GMT
2020-04-17T23:06:29.1631043Z Starting sccache server...
2020-04-17T23:06:29.2509474Z configure: processing command line
2020-04-17T23:06:29.2510286Z configure: 
2020-04-17T23:06:29.2511604Z configure: rust.dist-src        := False
---
2020-04-17T23:12:05.8990008Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-17T23:12:07.4773666Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-17T23:12:09.1839137Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-17T23:12:10.7507345Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-17T23:12:20.1911918Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-17T23:12:22.8432226Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-17T23:12:27.7519743Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-17T23:12:32.4627496Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-17T23:12:42.6344929Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-17T23:32:38.0585394Z    Compiling autocfg v0.1.7
2020-04-17T23:32:38.8159553Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8160265Z    --> src/libcore/iter/adapters/mod.rs:167:22
2020-04-17T23:32:38.8160686Z     |
2020-04-17T23:32:38.8161344Z 167 |     move |acc, &elt| f(acc, elt)
2020-04-17T23:32:38.8162421Z 
2020-04-17T23:32:38.8181935Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8182603Z    --> src/libcore/iter/adapters/mod.rs:171:22
2020-04-17T23:32:38.8183044Z     |
2020-04-17T23:32:38.8183044Z     |
2020-04-17T23:32:38.8183547Z 171 |     move |acc, &elt| f(acc, elt)
2020-04-17T23:32:38.8184630Z 
2020-04-17T23:32:38.8221422Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8222050Z    --> src/libcore/iter/adapters/mod.rs:313:21
2020-04-17T23:32:38.8222468Z     |
2020-04-17T23:32:38.8222468Z     |
2020-04-17T23:32:38.8222954Z 313 |     move |acc, elt| f(acc, elt.clone())
2020-04-17T23:32:38.8223986Z 
2020-04-17T23:32:38.8230222Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8230824Z    --> src/libcore/iter/adapters/mod.rs:313:28
2020-04-17T23:32:38.8231250Z     |
2020-04-17T23:32:38.8231250Z     |
2020-04-17T23:32:38.8231749Z 313 |     move |acc, elt| f(acc, elt.clone())
2020-04-17T23:32:38.8232768Z 
2020-04-17T23:32:38.8307016Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8307613Z    --> src/libcore/iter/adapters/mod.rs:635:21
2020-04-17T23:32:38.8308025Z     |
2020-04-17T23:32:38.8308025Z     |
2020-04-17T23:32:38.8308513Z 635 |             move || iter.nth(step)
2020-04-17T23:32:38.8309672Z 
2020-04-17T23:32:38.8338554Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8339441Z    --> src/libcore/iter/adapters/mod.rs:695:21
2020-04-17T23:32:38.8339890Z     |
2020-04-17T23:32:38.8339890Z     |
2020-04-17T23:32:38.8340426Z 695 |             move || iter.nth_back(step)
2020-04-17T23:32:38.8341509Z 
2020-04-17T23:32:38.8369326Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8370098Z    --> src/libcore/iter/adapters/mod.rs:786:21
2020-04-17T23:32:38.8370631Z     |
2020-04-17T23:32:38.8370631Z     |
2020-04-17T23:32:38.8371284Z 786 |     move |acc, elt| g(acc, f(elt))
2020-04-17T23:32:38.8372730Z 
2020-04-17T23:32:38.8380497Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8381247Z    --> src/libcore/iter/adapters/mod.rs:786:28
2020-04-17T23:32:38.8381772Z     |
2020-04-17T23:32:38.8381772Z     |
2020-04-17T23:32:38.8382398Z 786 |     move |acc, elt| g(acc, f(elt))
2020-04-17T23:32:38.8383669Z 
2020-04-17T23:32:38.8417510Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8418329Z    --> src/libcore/iter/adapters/mod.rs:793:21
2020-04-17T23:32:38.8418877Z     |
2020-04-17T23:32:38.8418877Z     |
2020-04-17T23:32:38.8419519Z 793 |     move |acc, elt| g(acc, f(elt))
2020-04-17T23:32:38.8420796Z 
2020-04-17T23:32:38.8428008Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8428798Z    --> src/libcore/iter/adapters/mod.rs:793:28
2020-04-17T23:32:38.8429351Z     |
2020-04-17T23:32:38.8429351Z     |
2020-04-17T23:32:38.8429962Z 793 |     move |acc, elt| g(acc, f(elt))
2020-04-17T23:32:38.8431249Z 
2020-04-17T23:32:38.8481489Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8482312Z    --> src/libcore/iter/adapters/mod.rs:928:25
2020-04-17T23:32:38.8482881Z     |
2020-04-17T23:32:38.8482881Z     |
2020-04-17T23:32:38.8483599Z 928 |     move |acc, item| if predicate(&item) { fold(acc, item) } else { acc }
2020-04-17T23:32:38.8484984Z 
2020-04-17T23:32:38.8492250Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8493258Z    --> src/libcore/iter/adapters/mod.rs:928:44
2020-04-17T23:32:38.8493818Z     |
2020-04-17T23:32:38.8493818Z     |
2020-04-17T23:32:38.8494545Z 928 |     move |acc, item| if predicate(&item) { fold(acc, item) } else { acc }
2020-04-17T23:32:38.8496020Z 
2020-04-17T23:32:38.8541112Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8541928Z    --> src/libcore/iter/adapters/mod.rs:935:25
2020-04-17T23:32:38.8542499Z     |
2020-04-17T23:32:38.8542499Z     |
2020-04-17T23:32:38.8543322Z 935 |     move |acc, item| if predicate(&item) { fold(acc, item) } else { R::from_ok(acc) }
2020-04-17T23:32:38.8544994Z 
2020-04-17T23:32:38.8552143Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8552970Z    --> src/libcore/iter/adapters/mod.rs:935:44
2020-04-17T23:32:38.8553506Z     |
2020-04-17T23:32:38.8553506Z     |
2020-04-17T23:32:38.8554329Z 935 |     move |acc, item| if predicate(&item) { fold(acc, item) } else { R::from_ok(acc) }
2020-04-17T23:32:38.8555907Z 
2020-04-17T23:32:38.8565134Z error[E0382]: use of moved value
2020-04-17T23:32:38.8565908Z    --> src/libcore/iter/adapters/mod.rs:935:69
2020-04-17T23:32:38.8566449Z     |
2020-04-17T23:32:38.8566449Z     |
2020-04-17T23:32:38.8567277Z 935 |     move |acc, item| if predicate(&item) { fold(acc, item) } else { R::from_ok(acc) }
2020-04-17T23:32:38.8569585Z     |                                                                     |          | |
2020-04-17T23:32:38.8570846Z     |                                                                     |          | value moved here
2020-04-17T23:32:38.8570846Z     |                                                                     |          | value moved here
2020-04-17T23:32:38.8572224Z     |                                                                     |          move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.8573402Z     |                                                                     value used here after move
2020-04-17T23:32:38.8574629Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.8575141Z     |
2020-04-17T23:32:38.8575141Z     |
2020-04-17T23:32:38.8575864Z 931 | fn filter_try_fold<'a, T, Acc: Copy, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.8577201Z 
2020-04-17T23:32:38.8613095Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8614567Z    --> src/libcore/iter/adapters/mod.rs:971:22
2020-04-17T23:32:38.8615121Z     |
2020-04-17T23:32:38.8615121Z     |
2020-04-17T23:32:38.8615758Z 971 |             move |x| predicate(&x) as usize
2020-04-17T23:32:38.8617081Z 
2020-04-17T23:32:38.8655557Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8656390Z     --> src/libcore/iter/adapters/mod.rs:1059:28
2020-04-17T23:32:38.8656956Z      |
2020-04-17T23:32:38.8656956Z      |
2020-04-17T23:32:38.8657668Z 1059 |     move |acc, item| match f(item) {
2020-04-17T23:32:38.8659135Z 
2020-04-17T23:32:38.8659768Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8660482Z     --> src/libcore/iter/adapters/mod.rs:1060:20
2020-04-17T23:32:38.8661023Z      |
2020-04-17T23:32:38.8661023Z      |
2020-04-17T23:32:38.8661629Z 1060 |         Some(x) => fold(acc, x),
2020-04-17T23:32:38.8662978Z 
2020-04-17T23:32:38.8704893Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8705727Z     --> src/libcore/iter/adapters/mod.rs:1069:28
2020-04-17T23:32:38.8706477Z      |
2020-04-17T23:32:38.8706477Z      |
2020-04-17T23:32:38.8707105Z 1069 |     move |acc, item| match f(item) {
2020-04-17T23:32:38.8708410Z 
2020-04-17T23:32:38.8708974Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8709687Z     --> src/libcore/iter/adapters/mod.rs:1070:20
2020-04-17T23:32:38.8710247Z      |
2020-04-17T23:32:38.8710247Z      |
2020-04-17T23:32:38.8710850Z 1070 |         Some(x) => fold(acc, x),
2020-04-17T23:32:38.8712137Z 
2020-04-17T23:32:38.8720919Z error[E0382]: use of moved value
2020-04-17T23:32:38.8721664Z     --> src/libcore/iter/adapters/mod.rs:1071:17
2020-04-17T23:32:38.8722239Z      |
2020-04-17T23:32:38.8722239Z      |
2020-04-17T23:32:38.8722891Z 1071 |         None => R::from_ok(acc),
2020-04-17T23:32:38.8724717Z      |                 |          | |
2020-04-17T23:32:38.8725943Z      |                 |          | value moved here
2020-04-17T23:32:38.8725943Z      |                 |          | value moved here
2020-04-17T23:32:38.8727093Z      |                 |          move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.8728017Z      |                 value used here after move
2020-04-17T23:32:38.8729163Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.8729677Z      |
2020-04-17T23:32:38.8729677Z      |
2020-04-17T23:32:38.8730442Z 1065 | fn filter_map_try_fold<'a, T, B, Acc: Copy, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.8731609Z 
2020-04-17T23:32:38.8784093Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8784825Z     --> src/libcore/iter/adapters/mod.rs:1123:32
2020-04-17T23:32:38.8785278Z      |
2020-04-17T23:32:38.8785278Z      |
2020-04-17T23:32:38.8785819Z 1123 |             move |(), x| match f(x) {
2020-04-17T23:32:38.8787034Z 
2020-04-17T23:32:38.8821787Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8822520Z     --> src/libcore/iter/adapters/mod.rs:1231:27
2020-04-17T23:32:38.8823018Z      |
2020-04-17T23:32:38.8823018Z      |
2020-04-17T23:32:38.8823591Z 1231 |                 let acc = fold(acc, (*count, item));
2020-04-17T23:32:38.8824817Z 
2020-04-17T23:32:38.8825305Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8825935Z     --> src/libcore/iter/adapters/mod.rs:1233:17
2020-04-17T23:32:38.8826559Z      |
2020-04-17T23:32:38.8826559Z      |
2020-04-17T23:32:38.8827157Z 1233 |                 AddAssign::add_assign(count, 1);
2020-04-17T23:32:38.8828642Z 
2020-04-17T23:32:38.8872906Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8873677Z     --> src/libcore/iter/adapters/mod.rs:1252:27
2020-04-17T23:32:38.8874157Z      |
2020-04-17T23:32:38.8874157Z      |
2020-04-17T23:32:38.8874983Z 1252 |                 let acc = fold(acc, (count, item));
2020-04-17T23:32:38.8876215Z 
2020-04-17T23:32:38.8876732Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8877802Z     --> src/libcore/iter/adapters/mod.rs:1254:17
2020-04-17T23:32:38.8878271Z      |
2020-04-17T23:32:38.8878271Z      |
2020-04-17T23:32:38.8878928Z 1254 |                 AddAssign::add_assign(&mut count, 1);
2020-04-17T23:32:38.8880217Z 
2020-04-17T23:32:38.8907402Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8908116Z     --> src/libcore/iter/adapters/mod.rs:1301:17
2020-04-17T23:32:38.8908581Z      |
2020-04-17T23:32:38.8908581Z      |
2020-04-17T23:32:38.8909140Z 1301 |                 fold(acc, (count, item))
2020-04-17T23:32:38.8910288Z 
2020-04-17T23:32:38.8931391Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8932219Z     --> src/libcore/iter/adapters/mod.rs:1322:17
2020-04-17T23:32:38.8932711Z      |
2020-04-17T23:32:38.8932711Z      |
2020-04-17T23:32:38.8933305Z 1322 |                 fold(acc, (count, item))
2020-04-17T23:32:38.8934480Z 
2020-04-17T23:32:38.8975390Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.8976233Z     --> src/libcore/iter/adapters/mod.rs:1622:30
2020-04-17T23:32:38.8976709Z      |
2020-04-17T23:32:38.8976709Z      |
2020-04-17T23:32:38.8977238Z 1622 |                 if *flag || !pred(x) {
2020-04-17T23:32:38.8978331Z 
2020-04-17T23:32:38.9018267Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9018981Z     --> src/libcore/iter/adapters/mod.rs:1754:20
2020-04-17T23:32:38.9019477Z      |
2020-04-17T23:32:38.9019477Z      |
2020-04-17T23:32:38.9019988Z 1754 |                 if p(&x) {
2020-04-17T23:32:38.9021235Z 
2020-04-17T23:32:38.9032963Z error[E0382]: use of moved value
2020-04-17T23:32:38.9033763Z     --> src/libcore/iter/adapters/mod.rs:1755:21
2020-04-17T23:32:38.9034255Z      |
2020-04-17T23:32:38.9034255Z      |
2020-04-17T23:32:38.9034877Z 1755 |                     LoopState::from_try(fold(acc, x))
2020-04-17T23:32:38.9036620Z      |                     |                   |          |
2020-04-17T23:32:38.9037883Z      |                     |                   |          value moved here
2020-04-17T23:32:38.9038907Z      |                     |                   move occurs because value has type `R`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9039694Z      |                     value used here after move
2020-04-17T23:32:38.9039694Z      |                     value used here after move
2020-04-17T23:32:38.9040178Z      |
2020-04-17T23:32:38.9040640Z help: consider further restricting this bound
2020-04-17T23:32:38.9041063Z      |
2020-04-17T23:32:38.9041676Z 1748 |         fn check<'a, T, Acc, R: Try<Ok = Acc> + Copy>(
2020-04-17T23:32:38.9042650Z 
2020-04-17T23:32:38.9043129Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9043811Z     --> src/libcore/iter/adapters/mod.rs:1755:41
2020-04-17T23:32:38.9044278Z      |
2020-04-17T23:32:38.9044278Z      |
2020-04-17T23:32:38.9044885Z 1755 |                     LoopState::from_try(fold(acc, x))
2020-04-17T23:32:38.9046076Z 
2020-04-17T23:32:38.9046483Z error[E0382]: use of moved value
2020-04-17T23:32:38.9047020Z     --> src/libcore/iter/adapters/mod.rs:1758:38
2020-04-17T23:32:38.9047460Z      |
2020-04-17T23:32:38.9047460Z      |
2020-04-17T23:32:38.9048077Z 1758 |                     LoopState::Break(Try::from_ok(acc))
2020-04-17T23:32:38.9049756Z      |                                      |            | |
2020-04-17T23:32:38.9050685Z      |                                      |            | value moved here
2020-04-17T23:32:38.9050685Z      |                                      |            | value moved here
2020-04-17T23:32:38.9051701Z      |                                      |            move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9052585Z      |                                      value used here after move
2020-04-17T23:32:38.9053572Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.9054002Z      |
2020-04-17T23:32:38.9054002Z      |
2020-04-17T23:32:38.9054597Z 1748 |         fn check<'a, T, Acc: Copy, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.9055509Z 
2020-04-17T23:32:38.9101927Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9102686Z     --> src/libcore/iter/adapters/mod.rs:1998:25
2020-04-17T23:32:38.9103572Z      |
2020-04-17T23:32:38.9103572Z      |
2020-04-17T23:32:38.9104216Z 1998 |                 let r = fold(acc, x);
2020-04-17T23:32:38.9105362Z 
2020-04-17T23:32:38.9111963Z error[E0382]: use of moved value
2020-04-17T23:32:38.9113236Z     --> src/libcore/iter/adapters/mod.rs:1999:58
2020-04-17T23:32:38.9113692Z      |
2020-04-17T23:32:38.9113692Z      |
2020-04-17T23:32:38.9114368Z 1999 |                 if n == 0 { LoopState::Break(r) } else { LoopState::from_try(r) }
2020-04-17T23:32:38.9115428Z      |                                                          ^^^^^^^^^^^^^^^^^^^^-^
2020-04-17T23:32:38.9117704Z      |                                                          |                   value moved here
2020-04-17T23:32:38.9118851Z      |                                                          |                   move occurs because value has type `R`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9120463Z      |                                                          value used here after move
2020-04-17T23:32:38.9121053Z      |
2020-04-17T23:32:38.9121053Z      |
2020-04-17T23:32:38.9121571Z help: consider further restricting this bound
2020-04-17T23:32:38.9122757Z      |
2020-04-17T23:32:38.9123360Z 1992 |         fn check<T, Acc, R: Try<Ok = Acc> + Copy>(
2020-04-17T23:32:38.9124455Z 
2020-04-17T23:32:38.9167046Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9167754Z     --> src/libcore/iter/adapters/mod.rs:2097:25
2020-04-17T23:32:38.9168937Z      |
2020-04-17T23:32:38.9168937Z      |
2020-04-17T23:32:38.9169472Z 2097 |                 let r = fold(acc, x);
2020-04-17T23:32:38.9170586Z 
2020-04-17T23:32:38.9179446Z error[E0382]: use of moved value
2020-04-17T23:32:38.9180217Z     --> src/libcore/iter/adapters/mod.rs:2098:59
2020-04-17T23:32:38.9180713Z      |
2020-04-17T23:32:38.9180713Z      |
2020-04-17T23:32:38.9181467Z 2098 |                 if *n == 0 { LoopState::Break(r) } else { LoopState::from_try(r) }
2020-04-17T23:32:38.9182466Z      |                                                           ^^^^^^^^^^^^^^^^^^^^-^
2020-04-17T23:32:38.9184617Z      |                                                           |                   value moved here
2020-04-17T23:32:38.9186343Z      |                                                           |                   move occurs because value has type `R`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9187398Z      |                                                           value used here after move
2020-04-17T23:32:38.9187979Z      |
2020-04-17T23:32:38.9187979Z      |
2020-04-17T23:32:38.9188477Z help: consider further restricting this bound
2020-04-17T23:32:38.9189036Z      |
2020-04-17T23:32:38.9189654Z 2091 |         fn check<'a, T, Acc, R: Try<Ok = Acc> + Copy>(
2020-04-17T23:32:38.9190671Z 
2020-04-17T23:32:38.9263193Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9263927Z     --> src/libcore/iter/adapters/mod.rs:2231:33
2020-04-17T23:32:38.9264375Z      |
2020-04-17T23:32:38.9264375Z      |
2020-04-17T23:32:38.9264929Z 2231 |             move |acc, x| match f(state, x) {
2020-04-17T23:32:38.9266040Z 
2020-04-17T23:32:38.9266608Z error[E0382]: use of moved value
2020-04-17T23:32:38.9267166Z     --> src/libcore/iter/adapters/mod.rs:2232:42
2020-04-17T23:32:38.9267598Z      |
2020-04-17T23:32:38.9267598Z      |
2020-04-17T23:32:38.9292006Z 2232 |                 None => LoopState::Break(Try::from_ok(acc)),
2020-04-17T23:32:38.9293851Z      |                                          |            | |
2020-04-17T23:32:38.9294797Z      |                                          |            | value moved here
2020-04-17T23:32:38.9294797Z      |                                          |            | value moved here
2020-04-17T23:32:38.9295828Z      |                                          |            move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9296718Z      |                                          value used here after move
2020-04-17T23:32:38.9297700Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.9298130Z      |
2020-04-17T23:32:38.9298130Z      |
2020-04-17T23:32:38.9298743Z 2226 |         fn scan<'a, T, St, B, Acc: Copy, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.9299693Z 
2020-04-17T23:32:38.9300085Z error[E0382]: use of moved value
2020-04-17T23:32:38.9300831Z     --> src/libcore/iter/adapters/mod.rs:2233:28
2020-04-17T23:32:38.9301267Z      |
2020-04-17T23:32:38.9301267Z      |
2020-04-17T23:32:38.9301886Z 2233 |                 Some(x) => LoopState::from_try(fold(acc, x)),
2020-04-17T23:32:38.9303620Z      |                            |                   |          |
2020-04-17T23:32:38.9304560Z      |                            |                   |          value moved here
2020-04-17T23:32:38.9305602Z      |                            |                   move occurs because value has type `R`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9306674Z      |                            value used here after move
2020-04-17T23:32:38.9306674Z      |                            value used here after move
2020-04-17T23:32:38.9307208Z      |
2020-04-17T23:32:38.9307668Z help: consider further restricting this bound
2020-04-17T23:32:38.9308092Z      |
2020-04-17T23:32:38.9308717Z 2226 |         fn scan<'a, T, St, B, Acc, R: Try<Ok = Acc> + Copy>(
2020-04-17T23:32:38.9309711Z 
2020-04-17T23:32:38.9310189Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9310791Z     --> src/libcore/iter/adapters/mod.rs:2233:48
2020-04-17T23:32:38.9311222Z      |
2020-04-17T23:32:38.9311222Z      |
2020-04-17T23:32:38.9311853Z 2233 |                 Some(x) => LoopState::from_try(fold(acc, x)),
2020-04-17T23:32:38.9313088Z 
2020-04-17T23:32:38.9323872Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9324649Z     --> src/libcore/iter/adapters/mod.rs:2290:9
2020-04-17T23:32:38.9347359Z      |
2020-04-17T23:32:38.9347359Z      |
2020-04-17T23:32:38.9347901Z 2290 |         f(&item);
2020-04-17T23:32:38.9348744Z      |         ^^^^^^^^ use of possibly-uninitialized value
2020-04-17T23:32:38.9349161Z 
2020-04-17T23:32:38.9349662Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9350222Z     --> src/libcore/iter/adapters/mod.rs:2291:9
2020-04-17T23:32:38.9350650Z      |
2020-04-17T23:32:38.9351103Z 2291 |         fold(acc, item)
2020-04-17T23:32:38.9352057Z 
2020-04-17T23:32:38.9364135Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9365029Z     --> src/libcore/iter/adapters/mod.rs:2300:9
2020-04-17T23:32:38.9365485Z      |
2020-04-17T23:32:38.9365485Z      |
2020-04-17T23:32:38.9365960Z 2300 |         f(&item);
2020-04-17T23:32:38.9366667Z      |         ^^^^^^^^ use of possibly-uninitialized value
2020-04-17T23:32:38.9366967Z 
2020-04-17T23:32:38.9367443Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9368148Z     --> src/libcore/iter/adapters/mod.rs:2301:9
2020-04-17T23:32:38.9368558Z      |
2020-04-17T23:32:38.9369011Z 2301 |         fold(acc, item)
2020-04-17T23:32:38.9369976Z 
2020-04-17T23:32:38.9523514Z error[E0382]: use of moved value
2020-04-17T23:32:38.9524319Z    --> src/libcore/iter/adapters/flatten.rs:303:31
2020-04-17T23:32:38.9524798Z     |
2020-04-17T23:32:38.9524798Z     |
2020-04-17T23:32:38.9525294Z 303 |                 let mut mid = x.into_iter();
2020-04-17T23:32:38.9525953Z     |                               -^^^^^^^^^^^^
2020-04-17T23:32:38.9527131Z     |                               value moved here
2020-04-17T23:32:38.9527747Z     |                               value used here after move
2020-04-17T23:32:38.9528506Z     |                               move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9529052Z     |
2020-04-17T23:32:38.9529052Z     |
2020-04-17T23:32:38.9529491Z help: consider further restricting this bound
2020-04-17T23:32:38.9529891Z     |
2020-04-17T23:32:38.9530769Z 298 |         fn flatten<'a, T: IntoIterator + Copy, Acc, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.9531912Z 
2020-04-17T23:32:38.9532429Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9533073Z    --> src/libcore/iter/adapters/flatten.rs:304:25
2020-04-17T23:32:38.9533552Z     |
2020-04-17T23:32:38.9533552Z     |
2020-04-17T23:32:38.9534151Z 304 |                 let r = mid.try_fold(acc, &mut *fold);
2020-04-17T23:32:38.9535402Z 
2020-04-17T23:32:38.9535959Z error[E0382]: use of moved value
2020-04-17T23:32:38.9536527Z    --> src/libcore/iter/adapters/flatten.rs:304:25
2020-04-17T23:32:38.9536984Z     |
2020-04-17T23:32:38.9536984Z     |
2020-04-17T23:32:38.9537569Z 304 |                 let r = mid.try_fold(acc, &mut *fold);
2020-04-17T23:32:38.9539445Z     |                         |            | |
2020-04-17T23:32:38.9540317Z     |                         |            | value moved here
2020-04-17T23:32:38.9540317Z     |                         |            | value moved here
2020-04-17T23:32:38.9541307Z     |                         |            move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9542100Z     |                         value used here after move
2020-04-17T23:32:38.9543057Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.9543498Z     |
2020-04-17T23:32:38.9543498Z     |
2020-04-17T23:32:38.9544154Z 298 |         fn flatten<'a, T: IntoIterator, Acc: Copy, R: Try<Ok = Acc>>(
2020-04-17T23:32:38.9545214Z 
2020-04-17T23:32:38.9572125Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9572778Z    --> src/libcore/iter/adapters/flatten.rs:335:30
2020-04-17T23:32:38.9573205Z     |
2020-04-17T23:32:38.9573205Z     |
2020-04-17T23:32:38.9573752Z 335 |             move |acc, iter| iter.fold(acc, &mut *fold)
2020-04-17T23:32:38.9574852Z 
2020-04-17T23:32:38.9580857Z error[E0382]: use of moved value
2020-04-17T23:32:38.9581496Z    --> src/libcore/iter/adapters/flatten.rs:335:30
2020-04-17T23:32:38.9581982Z     |
2020-04-17T23:32:38.9581982Z     |
2020-04-17T23:32:38.9582540Z 335 |             move |acc, iter| iter.fold(acc, &mut *fold)
2020-04-17T23:32:38.9584020Z     |                              |  |
2020-04-17T23:32:38.9584757Z     |                              |  value moved here
2020-04-17T23:32:38.9585483Z     |                              value used here after move
2020-04-17T23:32:38.9586407Z     |                              move occurs because value has type `U`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9586407Z     |                              move occurs because value has type `U`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9587010Z     |
2020-04-17T23:32:38.9587493Z help: consider further restricting this bound
2020-04-17T23:32:38.9587922Z     |
2020-04-17T23:32:38.9588487Z 332 |         fn flatten<U: Iterator + Copy, Acc>(
2020-04-17T23:32:38.9589391Z 
2020-04-17T23:32:38.9629827Z error[E0382]: use of moved value
2020-04-17T23:32:38.9630757Z    --> src/libcore/iter/adapters/flatten.rs:335:30
2020-04-17T23:32:38.9631253Z     |
2020-04-17T23:32:38.9631253Z     |
2020-04-17T23:32:38.9631949Z 335 |             move |acc, iter| iter.fold(acc, &mut *fold)
2020-04-17T23:32:38.9633708Z     |                              |         | |
2020-04-17T23:32:38.9634541Z     |                              |         | value moved here
2020-04-17T23:32:38.9634541Z     |                              |         | value moved here
2020-04-17T23:32:38.9635453Z     |                              |         move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9636322Z     |                              value used here after move
2020-04-17T23:32:38.9637277Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.9637694Z     |
2020-04-17T23:32:38.9637694Z     |
2020-04-17T23:32:38.9638611Z 332 |         fn flatten<U: Iterator, Acc: Copy>(
2020-04-17T23:32:38.9639492Z 
2020-04-17T23:32:38.9656018Z error[E0382]: use of moved value
2020-04-17T23:32:38.9656817Z    --> src/libcore/iter/adapters/flatten.rs:383:31
2020-04-17T23:32:38.9657446Z     |
2020-04-17T23:32:38.9657446Z     |
2020-04-17T23:32:38.9657976Z 383 |                 let mut mid = x.into_iter();
2020-04-17T23:32:38.9658746Z     |                               -^^^^^^^^^^^^
2020-04-17T23:32:38.9659945Z     |                               value moved here
2020-04-17T23:32:38.9660575Z     |                               value used here after move
2020-04-17T23:32:38.9661329Z     |                               move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9661867Z     |
---
2020-04-17T23:32:38.9664255Z 
2020-04-17T23:32:38.9664709Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9665271Z    --> src/libcore/iter/adapters/flatten.rs:384:25
2020-04-17T23:32:38.9665681Z     |
2020-04-17T23:32:38.9666401Z 384 |                 let r = mid.try_rfold(acc, &mut *fold);
2020-04-17T23:32:38.9667708Z 
2020-04-17T23:32:38.9672400Z error[E0382]: use of moved value
2020-04-17T23:32:38.9672951Z    --> src/libcore/iter/adapters/flatten.rs:384:25
2020-04-17T23:32:38.9673442Z     |
2020-04-17T23:32:38.9673442Z     |
2020-04-17T23:32:38.9673970Z 384 |                 let r = mid.try_rfold(acc, &mut *fold);
2020-04-17T23:32:38.9675626Z     |                         |             | |
2020-04-17T23:32:38.9676515Z     |                         |             | value moved here
2020-04-17T23:32:38.9676515Z     |                         |             | value moved here
2020-04-17T23:32:38.9677661Z     |                         |             move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9678511Z     |                         value used here after move
2020-04-17T23:32:38.9679551Z help: consider further restricting type parameter `Acc`
2020-04-17T23:32:38.9679980Z     |
2020-04-17T23:32:38.9680549Z 380 |             T::IntoIter: DoubleEndedIterator, Acc: Copy
2020-04-17T23:32:38.9681231Z     |                                             ^^^^^^^^^^^
2020-04-17T23:32:38.9681231Z     |                                             ^^^^^^^^^^^
2020-04-17T23:32:38.9681489Z 
2020-04-17T23:32:38.9715727Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9716491Z    --> src/libcore/iter/adapters/flatten.rs:415:30
2020-04-17T23:32:38.9717008Z     |
2020-04-17T23:32:38.9717610Z 415 |             move |acc, iter| iter.rfold(acc, &mut *fold)
2020-04-17T23:32:38.9718909Z 
2020-04-17T23:32:38.9749027Z error[E0382]: use of moved value
2020-04-17T23:32:38.9749663Z    --> src/libcore/iter/adapters/flatten.rs:415:30
2020-04-17T23:32:38.9750115Z     |
2020-04-17T23:32:38.9750115Z     |
2020-04-17T23:32:38.9750641Z 415 |             move |acc, iter| iter.rfold(acc, &mut *fold)
2020-04-17T23:32:38.9752013Z     |                              |  |
2020-04-17T23:32:38.9752697Z     |                              |  value moved here
2020-04-17T23:32:38.9753368Z     |                              value used here after move
2020-04-17T23:32:38.9754109Z     |                              move occurs because value has type `U`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9754109Z     |                              move occurs because value has type `U`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9754832Z     |
2020-04-17T23:32:38.9755296Z help: consider further restricting this bound
2020-04-17T23:32:38.9755697Z     |
2020-04-17T23:32:38.9756248Z 412 |         fn flatten<U: DoubleEndedIterator + Copy, Acc>(
2020-04-17T23:32:38.9757149Z 
2020-04-17T23:32:38.9757518Z error[E0382]: use of moved value
2020-04-17T23:32:38.9758050Z    --> src/libcore/iter/adapters/flatten.rs:415:30
2020-04-17T23:32:38.9758458Z     |
2020-04-17T23:32:38.9758458Z     |
2020-04-17T23:32:38.9758969Z 415 |             move |acc, iter| iter.rfold(acc, &mut *fold)
2020-04-17T23:32:38.9760615Z     |                              |          | |
2020-04-17T23:32:38.9761454Z     |                              |          | value moved here
2020-04-17T23:32:38.9761454Z     |                              |          | value moved here
2020-04-17T23:32:38.9762368Z     |                              |          move occurs because value has type `Acc`, which does not implement the `Copy` trait
2020-04-17T23:32:38.9763144Z     |                              value used here after move
2020-04-17T23:32:38.9764040Z help: consider restricting type parameter `Acc`
2020-04-17T23:32:38.9764465Z     |
2020-04-17T23:32:38.9764465Z     |
2020-04-17T23:32:38.9765025Z 412 |         fn flatten<U: DoubleEndedIterator, Acc: Copy>(
2020-04-17T23:32:38.9765942Z 
2020-04-17T23:32:38.9910341Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9911003Z    --> src/libcore/iter/traits/double_ended.rs:231:30
2020-04-17T23:32:38.9911466Z     |
2020-04-17T23:32:38.9911466Z     |
2020-04-17T23:32:38.9912099Z 231 |             move |acc, x| Ok(f(acc, x))
2020-04-17T23:32:38.9913230Z 
2020-04-17T23:32:38.9931322Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9931959Z    --> src/libcore/iter/traits/double_ended.rs:291:20
2020-04-17T23:32:38.9932424Z     |
2020-04-17T23:32:38.9932424Z     |
2020-04-17T23:32:38.9933074Z 291 |                 if predicate(&x) { LoopState::Break(x) } else { LoopState::Continue(()) }
2020-04-17T23:32:38.9934202Z 
2020-04-17T23:32:38.9952943Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9953578Z    --> src/libcore/iter/traits/iterator.rs:655:29
2020-04-17T23:32:38.9954043Z     |
2020-04-17T23:32:38.9954043Z     |
2020-04-17T23:32:38.9954526Z 655 |             move |(), item| f(item)
2020-04-17T23:32:38.9955540Z 
2020-04-17T23:32:38.9994383Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9995199Z     --> src/libcore/iter/traits/iterator.rs:1702:20
2020-04-17T23:32:38.9995707Z      |
2020-04-17T23:32:38.9995707Z      |
2020-04-17T23:32:38.9996223Z 1702 |                 if f(&x) {
2020-04-17T23:32:38.9997315Z 
2020-04-17T23:32:38.9997889Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:38.9998525Z     --> src/libcore/iter/traits/iterator.rs:1703:21
2020-04-17T23:32:38.9998940Z      |
---
2020-04-17T23:32:39.0041145Z 
2020-04-17T23:32:39.0047033Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0047695Z     --> src/libcore/iter/traits/iterator.rs:1760:25
2020-04-17T23:32:39.0048118Z      |
2020-04-17T23:32:39.0048727Z 1760 |                 let p = predicate(&**x);
2020-04-17T23:32:39.0049855Z 
2020-04-17T23:32:39.0066996Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0067609Z     --> src/libcore/iter/traits/iterator.rs:1768:22
2020-04-17T23:32:39.0068083Z      |
2020-04-17T23:32:39.0068083Z      |
2020-04-17T23:32:39.0068595Z 1768 |             move |x| predicate(&**x)
2020-04-17T23:32:39.0069599Z 
2020-04-17T23:32:39.0088071Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0088733Z     --> src/libcore/iter/traits/iterator.rs:1920:26
2020-04-17T23:32:39.0089160Z      |
2020-04-17T23:32:39.0089160Z      |
2020-04-17T23:32:39.0089670Z 1920 |             move |(), x| f(x)
2020-04-17T23:32:39.0090646Z 
2020-04-17T23:32:39.0105227Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0105837Z     --> src/libcore/iter/traits/iterator.rs:2002:30
2020-04-17T23:32:39.0106472Z      |
2020-04-17T23:32:39.0106472Z      |
2020-04-17T23:32:39.0106999Z 2002 |             move |acc, x| Ok(f(acc, x))
2020-04-17T23:32:39.0108017Z 
2020-04-17T23:32:39.0145183Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0146035Z     --> src/libcore/iter/traits/iterator.rs:2092:20
2020-04-17T23:32:39.0146667Z      |
2020-04-17T23:32:39.0146667Z      |
2020-04-17T23:32:39.0147367Z 2092 |                 if f(x) { LoopState::Continue(()) } else { LoopState::Break(()) }
2020-04-17T23:32:39.0148608Z 
2020-04-17T23:32:39.0164382Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0165038Z     --> src/libcore/iter/traits/iterator.rs:2145:20
2020-04-17T23:32:39.0165490Z      |
2020-04-17T23:32:39.0165490Z      |
2020-04-17T23:32:39.0166131Z 2145 |                 if f(x) { LoopState::Break(()) } else { LoopState::Continue(()) }
2020-04-17T23:32:39.0167387Z 
2020-04-17T23:32:39.0187797Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0188412Z     --> src/libcore/iter/traits/iterator.rs:2208:20
2020-04-17T23:32:39.0188905Z      |
2020-04-17T23:32:39.0188905Z      |
2020-04-17T23:32:39.0189563Z 2208 |                 if predicate(&x) { LoopState::Break(x) } else { LoopState::Continue(()) }
2020-04-17T23:32:39.0190714Z 
2020-04-17T23:32:39.0207149Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0207763Z     --> src/libcore/iter/traits/iterator.rs:2239:32
2020-04-17T23:32:39.0208261Z      |
2020-04-17T23:32:39.0208261Z      |
2020-04-17T23:32:39.0208757Z 2239 |             move |(), x| match f(x) {
2020-04-17T23:32:39.0209779Z 
2020-04-17T23:32:39.0231539Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0232229Z     --> src/libcore/iter/traits/iterator.rs:2352:20
2020-04-17T23:32:39.0232657Z      |
2020-04-17T23:32:39.0232657Z      |
2020-04-17T23:32:39.0233357Z 2352 |                 if predicate(x) { LoopState::Break(i) } else { LoopState::Continue(Add::add(i, 1)) }
2020-04-17T23:32:39.0234517Z 
2020-04-17T23:32:39.0234959Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0235541Z     --> src/libcore/iter/traits/iterator.rs:2352:84
2020-04-17T23:32:39.0235956Z      |
2020-04-17T23:32:39.0235956Z      |
2020-04-17T23:32:39.0236632Z 2352 |                 if predicate(x) { LoopState::Break(i) } else { LoopState::Continue(Add::add(i, 1)) }
2020-04-17T23:32:39.0238160Z 
2020-04-17T23:32:39.0256992Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0257668Z     --> src/libcore/iter/traits/iterator.rs:2412:20
2020-04-17T23:32:39.0258104Z      |
2020-04-17T23:32:39.0258104Z      |
2020-04-17T23:32:39.0258778Z 2412 |                 if predicate(x) { LoopState::Break(i) } else { LoopState::Continue(i) }
2020-04-17T23:32:39.0259895Z 
2020-04-17T23:32:39.0280013Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0280984Z     --> src/libcore/iter/traits/iterator.rs:2499:23
2020-04-17T23:32:39.0281497Z      |
2020-04-17T23:32:39.0281497Z      |
2020-04-17T23:32:39.0282006Z 2499 |             move |x| (f(&x), x)
2020-04-17T23:32:39.0283208Z 
2020-04-17T23:32:39.0305619Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0306379Z     --> src/libcore/iter/traits/iterator.rs:2534:25
2020-04-17T23:32:39.0306859Z      |
2020-04-17T23:32:39.0306859Z      |
2020-04-17T23:32:39.0307428Z 2534 |             move |x, y| cmp::max_by(x, y, &mut compare)
2020-04-17T23:32:39.0308786Z 
2020-04-17T23:32:39.0316412Z error[E0382]: use of moved value
2020-04-17T23:32:39.0317511Z     --> src/libcore/iter/traits/iterator.rs:2534:25
2020-04-17T23:32:39.0320687Z      |
2020-04-17T23:32:39.0320687Z      |
2020-04-17T23:32:39.0322348Z 2534 |             move |x, y| cmp::max_by(x, y, &mut compare)
2020-04-17T23:32:39.0323168Z      |                         ^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^^
2020-04-17T23:32:39.0324850Z      |                         |           value moved here
2020-04-17T23:32:39.0325824Z      |                         |           move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0326867Z      |                         value used here after move
2020-04-17T23:32:39.0327288Z      |
2020-04-17T23:32:39.0327288Z      |
2020-04-17T23:32:39.0327718Z help: consider restricting type parameter `T`
2020-04-17T23:32:39.0328131Z      |
2020-04-17T23:32:39.0328778Z 2533 |         fn fold<T: Copy>(mut compare: impl FnMut(&T, &T) -> Ordering) -> impl FnMut(T, T) -> T {
2020-04-17T23:32:39.0329801Z 
2020-04-17T23:32:39.0330207Z error[E0382]: use of moved value
2020-04-17T23:32:39.0335763Z     --> src/libcore/iter/traits/iterator.rs:2534:25
2020-04-17T23:32:39.0336375Z      |
2020-04-17T23:32:39.0336375Z      |
2020-04-17T23:32:39.0337274Z 2534 |             move |x, y| cmp::max_by(x, y, &mut compare)
2020-04-17T23:32:39.0340707Z      |                         ^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^
2020-04-17T23:32:39.0342340Z      |                         |              value moved here
2020-04-17T23:32:39.0343412Z      |                         |              move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0344289Z      |                         value used here after move
2020-04-17T23:32:39.0344798Z      |
2020-04-17T23:32:39.0344798Z      |
2020-04-17T23:32:39.0345233Z help: consider restricting type parameter `T`
2020-04-17T23:32:39.0345627Z      |
2020-04-17T23:32:39.0346572Z 2533 |         fn fold<T: Copy>(mut compare: impl FnMut(&T, &T) -> Ordering) -> impl FnMut(T, T) -> T {
2020-04-17T23:32:39.0347528Z 
2020-04-17T23:32:39.0372726Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0373425Z     --> src/libcore/iter/traits/iterator.rs:2563:23
2020-04-17T23:32:39.0373903Z      |
2020-04-17T23:32:39.0373903Z      |
2020-04-17T23:32:39.0374417Z 2563 |             move |x| (f(&x), x)
2020-04-17T23:32:39.0375559Z 
2020-04-17T23:32:39.0380109Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0380738Z     --> src/libcore/iter/traits/iterator.rs:2598:25
2020-04-17T23:32:39.0381182Z      |
2020-04-17T23:32:39.0381182Z      |
2020-04-17T23:32:39.0381746Z 2598 |             move |x, y| cmp::min_by(x, y, &mut compare)
2020-04-17T23:32:39.0382917Z 
2020-04-17T23:32:39.0387264Z error[E0382]: use of moved value
2020-04-17T23:32:39.0387852Z     --> src/libcore/iter/traits/iterator.rs:2598:25
2020-04-17T23:32:39.0388300Z      |
2020-04-17T23:32:39.0388300Z      |
2020-04-17T23:32:39.0388859Z 2598 |             move |x, y| cmp::min_by(x, y, &mut compare)
2020-04-17T23:32:39.0389622Z      |                         ^^^^^^^^^^^^-^^^^^^^^^^^^^^^^^^
2020-04-17T23:32:39.0391407Z      |                         |           value moved here
2020-04-17T23:32:39.0392360Z      |                         |           move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0393155Z      |                         value used here after move
2020-04-17T23:32:39.0393652Z      |
2020-04-17T23:32:39.0393652Z      |
2020-04-17T23:32:39.0394204Z help: consider restricting type parameter `T`
2020-04-17T23:32:39.0394603Z      |
2020-04-17T23:32:39.0395272Z 2597 |         fn fold<T: Copy>(mut compare: impl FnMut(&T, &T) -> Ordering) -> impl FnMut(T, T) -> T {
2020-04-17T23:32:39.0396155Z 
2020-04-17T23:32:39.0402194Z error[E0382]: use of moved value
2020-04-17T23:32:39.0402918Z     --> src/libcore/iter/traits/iterator.rs:2598:25
2020-04-17T23:32:39.0403392Z      |
2020-04-17T23:32:39.0403392Z      |
2020-04-17T23:32:39.0403995Z 2598 |             move |x, y| cmp::min_by(x, y, &mut compare)
2020-04-17T23:32:39.0404759Z      |                         ^^^^^^^^^^^^^^^-^^^^^^^^^^^^^^^
2020-04-17T23:32:39.0406205Z      |                         |              value moved here
2020-04-17T23:32:39.0407081Z      |                         |              move occurs because value has type `T`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0407858Z      |                         value used here after move
2020-04-17T23:32:39.0408297Z      |
2020-04-17T23:32:39.0408297Z      |
2020-04-17T23:32:39.0408753Z help: consider restricting type parameter `T`
2020-04-17T23:32:39.0409148Z      |
2020-04-17T23:32:39.0409793Z 2597 |         fn fold<T: Copy>(mut compare: impl FnMut(&T, &T) -> Ordering) -> impl FnMut(T, T) -> T {
2020-04-17T23:32:39.0410692Z 
2020-04-17T23:32:39.0434328Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0435114Z     --> src/libcore/iter/traits/iterator.rs:2670:17
2020-04-17T23:32:39.0435603Z      |
---
2020-04-17T23:32:39.0445224Z      |
2020-04-17T23:32:39.0446249Z 2670 |                 ts.extend(Some(t));
2020-04-17T23:32:39.0446906Z      |                 ^^^^^^^^^^-------^
2020-04-17T23:32:39.0447645Z      |                 |         |     |
2020-04-17T23:32:39.0448457Z      |                 |         |     value moved here
2020-04-17T23:32:39.0449431Z      |                 |         move occurs because value has type `option::Option<A>`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0450257Z      |                 value used here after move
2020-04-17T23:32:39.0450938Z error[E0381]: use of possibly-uninitialized variable: `_`
2020-04-17T23:32:39.0451726Z     --> src/libcore/iter/traits/iterator.rs:2671:17
2020-04-17T23:32:39.0452202Z      |
2020-04-17T23:32:39.0452202Z      |
2020-04-17T23:32:39.0452709Z 2671 |                 us.extend(Some(u));
2020-04-17T23:32:39.0453800Z 
2020-04-17T23:32:39.0459235Z error[E0382]: use of moved value
2020-04-17T23:32:39.0459823Z     --> src/libcore/iter/traits/iterator.rs:2671:17
2020-04-17T23:32:39.0460241Z      |
2020-04-17T23:32:39.0460241Z      |
2020-04-17T23:32:39.0460759Z 2671 |                 us.extend(Some(u));
2020-04-17T23:32:39.0462152Z      |                 |         |     |
2020-04-17T23:32:39.0463023Z      |                 |         |     value moved here
2020-04-17T23:32:39.0463023Z      |                 |         |     value moved here
2020-04-17T23:32:39.0463999Z      |                 |         move occurs because value has type `option::Option<B>`, which does not implement the `Copy` trait
2020-04-17T23:32:39.0464825Z      |                 value used here after move
2020-04-17T23:32:39.3342998Z    Compiling std v0.0.0 (/checkout/src/libstd)
2020-04-17T23:32:39.7248383Z    Compiling compiler_builtins v0.1.25
2020-04-17T23:32:41.4824751Z    Compiling backtrace-sys v0.1.35
2020-04-17T23:32:42.3989306Z    Compiling unwind v0.0.0 (/checkout/src/libunwind)
---
2020-04-17T23:32:47.9632755Z expected success, got: exit code: 101
2020-04-17T23:32:47.9644117Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-17T23:32:47.9644509Z Build completed unsuccessfully in 0:24:37
2020-04-17T23:32:47.9702373Z == clock drift check ==
2020-04-17T23:32:47.9728527Z   local time: Fri Apr 17 23:32:47 UTC 2020
2020-04-17T23:32:48.1713229Z   network time: Fri, 17 Apr 2020 23:32:48 GMT
2020-04-17T23:32:49.8420321Z 
2020-04-17T23:32:49.8420321Z 
2020-04-17T23:32:49.8509014Z ##[error]Bash exited with code '1'.
2020-04-17T23:32:49.8553099Z ##[section]Finishing: Run build
2020-04-17T23:32:49.8604879Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-17T23:32:49.8610463Z Task         : Get sources
2020-04-17T23:32:49.8610835Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-17T23:32:49.8611163Z Version      : 1.0.0
2020-04-17T23:32:49.8611394Z Author       : Microsoft
2020-04-17T23:32:49.8611394Z Author       : Microsoft
2020-04-17T23:32:49.8611782Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-17T23:32:49.8612200Z ==============================================================================
2020-04-17T23:32:50.2410696Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-17T23:32:50.2456922Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71170/merge to s
2020-04-17T23:32:50.2560462Z Cleaning up task key
2020-04-17T23:32:50.2561863Z Start cleaning up orphan processes.
2020-04-17T23:32:50.2774346Z Terminate orphan process: pid (3354) (python)
2020-04-17T23:32:50.3006117Z ##[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 @rust-lang/infra. (Feature Requests)

@spastorino spastorino force-pushed the dyn-fnonce-alignment branch from 844a496 to 365807f Compare April 18, 2020 17:38
@nikomatsakis
Copy link
Contributor

@spastorino I pushed the edits to the comments that I made, as requested. I think they're a mild improvement.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Apr 20, 2020

📌 Commit 4e53a9a has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 20, 2020
@RalfJung RalfJung mentioned this pull request Apr 21, 2020
@bors
Copy link
Contributor

bors commented Apr 21, 2020

⌛ Testing commit 4e53a9a with merge 45d050c...

@bors
Copy link
Contributor

bors commented Apr 21, 2020

☀️ Test successful - checks-azure
Approved by: nikomatsakis
Pushing 45d050c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 21, 2020
@bors bors merged commit 45d050c into rust-lang:master Apr 21, 2020
bjorn3 added a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Apr 22, 2020
Remove the `<Box<F> as FnOnce>::call_once` hack now that rust-lang/rust#71170 is merged.
@cramertj
Copy link
Member

Did this also fix #61042?

@matthiaskrgr matthiaskrgr mentioned this pull request Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Box<dyn FnOnce> doesn't respect self alignment
9 participants