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

rustdoc: attempt full build for compile_fail test #68664

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

tspiteri
Copy link
Contributor

@tspiteri tspiteri commented Jan 30, 2020

Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

Fixes #67771.

@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-01-30T08:13:19.7469671Z ========================== Starting Command Output ===========================
2020-01-30T08:13:19.7471901Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d0ad34a7-fc34-4824-a304-68cee50cdee0.sh
2020-01-30T08:13:19.7471951Z 
2020-01-30T08:13:19.7474802Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-30T08:13:19.7481859Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T08:13:19.7483725Z Task         : Get sources
2020-01-30T08:13:19.7483758Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T08:13:19.7483790Z Version      : 1.0.0
2020-01-30T08:13:19.7483820Z Author       : Microsoft
---
2020-01-30T08:13:20.7312147Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-30T08:13:20.7327243Z ##[command]git config gc.auto 0
2020-01-30T08:13:20.7329776Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-30T08:13:20.7332719Z ##[command]git config --get-all http.proxy
2020-01-30T08:13:20.7344070Z ##[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/68664/merge:refs/remotes/pull/68664/merge
---
2020-01-30T09:13:34.0370666Z .................................................................................................... 1700/9558
2020-01-30T09:13:39.1885485Z .................................................................................................... 1800/9558
2020-01-30T09:13:52.5958347Z .........................i.......................................................................... 1900/9558
2020-01-30T09:13:59.9419443Z .................................................................................................... 2000/9558
2020-01-30T09:14:15.6123583Z ...............iiiii................................................................................ 2100/9558
2020-01-30T09:14:25.9322177Z .................................................................................................... 2300/9558
2020-01-30T09:14:28.4670428Z .................................................................................................... 2400/9558
2020-01-30T09:14:33.7748092Z .................................................................................................... 2500/9558
2020-01-30T09:14:55.6997719Z .................................................................................................... 2600/9558
---
2020-01-30T09:17:38.5660049Z .................................................................................................... 4800/9558
2020-01-30T09:17:43.8821460Z ...........................................................i...............i........................ 4900/9558
2020-01-30T09:17:51.9358531Z .................................................................................................... 5000/9558
2020-01-30T09:18:00.5394753Z .................................................................................................... 5100/9558
2020-01-30T09:18:05.5944757Z ..i................................................................................................. 5200/9558
2020-01-30T09:18:17.2694767Z ...........................................................................ii.ii........i...i....... 5300/9558
2020-01-30T09:18:26.0871121Z .............i...................................................................................... 5500/9558
2020-01-30T09:18:36.5727358Z .................................................................................................... 5600/9558
2020-01-30T09:18:43.2110705Z ..............................................................i..................................... 5700/9558
2020-01-30T09:18:50.7607327Z .................................................................................................... 5800/9558
2020-01-30T09:18:50.7607327Z .................................................................................................... 5800/9558
2020-01-30T09:18:58.9888079Z .................................................................................................... 5900/9558
2020-01-30T09:19:08.2984736Z .....................................................ii...i..ii...........i......................... 6000/9558
2020-01-30T09:19:31.2792762Z .................................................................................................... 6200/9558
2020-01-30T09:19:39.1811988Z .................................................................................................... 6300/9558
2020-01-30T09:19:39.1811988Z .................................................................................................... 6300/9558
2020-01-30T09:19:48.3518051Z .................................................................................i..ii.............. 6400/9558
2020-01-30T09:20:19.0193518Z .................................................................................................... 6600/9558
2020-01-30T09:20:24.7487735Z .........................................................i.......................................... 6700/9558
2020-01-30T09:20:26.9563540Z .................................................................................................... 6800/9558
2020-01-30T09:20:29.3403445Z ........................................................i........................................... 6900/9558
---
2020-01-30T09:22:16.9076340Z .................................................................................................... 7600/9558
2020-01-30T09:22:22.4572763Z .................................................................................................... 7700/9558
2020-01-30T09:22:29.5406310Z .................................................................................................... 7800/9558
2020-01-30T09:22:40.7965252Z .................................................................................................... 7900/9558
2020-01-30T09:22:47.2050690Z ............iiiiiii.i............................................................................... 8000/9558
2020-01-30T09:23:02.4350134Z .................................................................................................... 8200/9558
2020-01-30T09:23:13.7827333Z .................................................................................................... 8300/9558
2020-01-30T09:23:27.7729001Z .................................................................................................... 8400/9558
2020-01-30T09:23:34.8925469Z .................................................................................................... 8500/9558
---
2020-01-30T09:26:05.8811568Z  finished in 7.761
2020-01-30T09:26:05.9008357Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:06.0737998Z 
2020-01-30T09:26:06.0738269Z running 169 tests
2020-01-30T09:26:09.2855263Z iiii......i........ii..iiii...i....i...........i............i..i..................i....i............ 100/169
2020-01-30T09:26:11.7388761Z i.i.i...iii..iiiiiiiiii.......................iii............ii......
2020-01-30T09:26:11.7393682Z 
2020-01-30T09:26:11.7395043Z  finished in 5.838
2020-01-30T09:26:11.7611613Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:11.9395724Z 
---
2020-01-30T09:26:13.9894117Z  finished in 2.228
2020-01-30T09:26:14.0108254Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:14.1753563Z 
2020-01-30T09:26:14.1754269Z running 9 tests
2020-01-30T09:26:14.1755240Z iiiiiiiii
2020-01-30T09:26:14.1755932Z 
2020-01-30T09:26:14.1756069Z  finished in 0.164
2020-01-30T09:26:14.1946896Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:14.3856032Z 
---
2020-01-30T09:26:35.6920684Z  finished in 21.497
2020-01-30T09:26:35.7143174Z Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:35.8840762Z 
2020-01-30T09:26:35.8842012Z running 116 tests
2020-01-30T09:26:50.1840534Z iiiii..i.....i..i...i..i.i.i..i..i..ii....i.i....ii..........iiii..........i.....i..i.......ii.i.ii. 100/116
2020-01-30T09:26:52.1045887Z ....iiii.....ii.
2020-01-30T09:26:52.1048853Z 
2020-01-30T09:26:52.1049553Z  finished in 16.390
2020-01-30T09:26:52.1051955Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T09:26:52.1052625Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2020-01-30T09:41:44.3114849Z 
2020-01-30T09:41:44.3115763Z    Doc-tests core
2020-01-30T09:41:49.5731104Z 
2020-01-30T09:41:49.5773394Z running 2467 tests
2020-01-30T09:41:59.3217661Z ......iiiii......................................................................................... 100/2467
2020-01-30T09:42:08.8378373Z ..................................................................................ii................ 200/2467
2020-01-30T09:42:31.3827700Z .................i.................................................................................. 400/2467
2020-01-30T09:42:31.3827700Z .................i.................................................................................. 400/2467
2020-01-30T09:42:41.5759328Z ..................................................................i..i..................iiii........ 500/2467
2020-01-30T09:42:59.7554894Z .................................................................................................... 700/2467
2020-01-30T09:43:08.9226660Z .................................................................................................... 800/2467
2020-01-30T09:43:18.0665543Z .................................................................................................... 900/2467
2020-01-30T09:43:27.4395244Z .................................................................................................... 1000/2467
---
2020-01-30T09:45:47.6348847Z 
2020-01-30T09:45:47.6355993Z ---- mem/maybe_uninit.rs - mem::maybe_uninit::MaybeUninit<T>::uninit_array (line 284) stdout ----
2020-01-30T09:45:47.6357235Z error: linking with `cc` failed: exit code: 1
2020-01-30T09:45:47.6357341Z   |
2020-01-30T09:45:47.6361569Z   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/rustdoctestzyUnH4/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "-o" "/tmp/rustdoctestzyUnH4/rust_out" "/tmp/rustdoctestzyUnH4/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/build/compiler_builtins-686cd589743c8de5/out" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-std/release/deps" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e34b8244493923e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-aff87ebc14fc020c.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-35d239109055c8b8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-135192bd363a62a4.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-2decdcb6b844f610.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-36ee4ed23acf0084.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f9cf51caaec13be2.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-46929bfe1b9f8b9c.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5dc6f2e5c79e6f96.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10f56598b3a21111.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-474fe4de1474a75e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-55f711ff26b657ae.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-e4a683674a4cc7b7.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-204a0f4bffc76d4c.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
2020-01-30T09:45:47.6362612Z   = note: /tmp/rustdoctestzyUnH4/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o: In function `rust_out::main::read':
2020-01-30T09:45:47.6363470Z           rust_out.7rcbfp3g-cgu.0:(.text._ZN8rust_out4main4read17he3ddaf4376e44093E+0x38): undefined reference to `read_into_buffer'
2020-01-30T09:45:47.6363590Z           collect2: error: ld returned 1 exit status
2020-01-30T09:45:47.6363690Z 
2020-01-30T09:45:47.6363734Z error: aborting due to previous error
2020-01-30T09:45:47.6363763Z 
2020-01-30T09:45:47.6364090Z Couldn't compile the test.
---
2020-01-30T09:45:47.6647136Z   local time: Thu Jan 30 09:45:47 UTC 2020
2020-01-30T09:45:48.2140333Z   network time: Thu, 30 Jan 2020 09:45:48 GMT
2020-01-30T09:45:48.2140447Z == end clock drift check ==
2020-01-30T09:45:48.6712449Z 
2020-01-30T09:45:48.6821979Z ##[error]Bash exited with code '1'.
2020-01-30T09:45:48.6837026Z ##[section]Finishing: Run build
2020-01-30T09:45:48.6865574Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T09:45:48.6867701Z Task         : Get sources
2020-01-30T09:45:48.6867768Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T09:45:48.6867820Z Version      : 1.0.0
2020-01-30T09:45:48.6867867Z Author       : Microsoft
2020-01-30T09:45:48.6867867Z Author       : Microsoft
2020-01-30T09:45:48.6867933Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-30T09:45:48.6868370Z ==============================================================================
2020-01-30T09:45:49.1492469Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-30T09:45:49.1534813Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T09:45:49.1655906Z Cleaning up task key
2020-01-30T09:45:49.1656692Z Start cleaning up orphan processes.
2020-01-30T09:45:49.1771294Z Terminate orphan process: pid (4099) (python)
2020-01-30T09:45:49.2039604Z ##[section]Finishing: Finalize Job

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@tspiteri
Copy link
Contributor Author

Hmm, seems like the mem::maybe_uninit::MaybeUninit<T>::uninit_array doc is abusing no_run as if it were no_link. (I say "abusing" because as far as I know, no_run is only documented to not run the test, it isn't documented to not link the test.) There are two ways I see to go around this:

  1. Modify the uninit_array doc to not use no_run as no_link. This is the option I prefer. The downside is that it may cause some churn for external crates that are abusing no_run similarly and would get similar doc test failures.
  2. Only attempt a complete build for compile_fail, not for no_run. This is more conservative and should not affect any tests that already pass: a compile_fail test that passes already compile-fails early and would be unaffected by this change which only gives it another opportunity to compile-fail if it doesn't compile-fail early.

I've added a second commit that does option 1. If the more conservative option 2 is more desirable, I can replace the second commit by another that commit that does that instead.

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 30, 2020
@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-01-30T10:47:47.9328428Z ========================== Starting Command Output ===========================
2020-01-30T10:47:47.9330160Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/3bb738cd-e496-4bd5-80f8-c493c0411ed4.sh
2020-01-30T10:47:47.9330200Z 
2020-01-30T10:47:47.9333245Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-30T10:47:47.9340855Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T10:47:47.9342862Z Task         : Get sources
2020-01-30T10:47:47.9342952Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T10:47:47.9342991Z Version      : 1.0.0
2020-01-30T10:47:47.9343027Z Author       : Microsoft
---
2020-01-30T10:47:48.9907837Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-30T10:47:48.9968714Z ##[command]git config gc.auto 0
2020-01-30T10:47:48.9971397Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-30T10:47:48.9973670Z ##[command]git config --get-all http.proxy
2020-01-30T10:47:48.9984306Z ##[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/68664/merge:refs/remotes/pull/68664/merge
---
2020-01-30T11:45:56.3187257Z .................................................................................................... 1700/9558
2020-01-30T11:46:01.3179809Z .................................................................................................... 1800/9558
2020-01-30T11:46:14.4225888Z .........................i.......................................................................... 1900/9558
2020-01-30T11:46:21.5463168Z .................................................................................................... 2000/9558
2020-01-30T11:46:36.5430342Z ...............iiiii................................................................................ 2100/9558
2020-01-30T11:46:46.4623843Z .................................................................................................... 2300/9558
2020-01-30T11:46:49.3343858Z .................................................................................................... 2400/9558
2020-01-30T11:46:54.8355525Z .................................................................................................... 2500/9558
2020-01-30T11:47:15.3176843Z .................................................................................................... 2600/9558
---
2020-01-30T11:49:51.1469668Z .................................................................................................... 4800/9558
2020-01-30T11:49:56.1969265Z ...........................................................i...............i........................ 4900/9558
2020-01-30T11:50:04.1274710Z .................................................................................................... 5000/9558
2020-01-30T11:50:12.4547831Z .................................................................................................... 5100/9558
2020-01-30T11:50:17.2003332Z ..i................................................................................................. 5200/9558
2020-01-30T11:50:28.5686797Z ...........................................................................ii.ii........i...i....... 5300/9558
2020-01-30T11:50:37.3855472Z .............i...................................................................................... 5500/9558
2020-01-30T11:50:47.1166302Z .................................................................................................... 5600/9558
2020-01-30T11:50:53.4777101Z ..............................................................i..................................... 5700/9558
2020-01-30T11:51:00.6318254Z .................................................................................................... 5800/9558
2020-01-30T11:51:00.6318254Z .................................................................................................... 5800/9558
2020-01-30T11:51:08.4264974Z .................................................................................................... 5900/9558
2020-01-30T11:51:17.8945356Z .....................................................ii...i..ii...........i......................... 6000/9558
2020-01-30T11:51:38.9500279Z .................................................................................................... 6200/9558
2020-01-30T11:51:46.5187216Z .................................................................................................... 6300/9558
2020-01-30T11:51:46.5187216Z .................................................................................................... 6300/9558
2020-01-30T11:51:55.0799533Z .................................................................................i..ii.............. 6400/9558
2020-01-30T11:52:27.6391015Z .................................................................................................... 6600/9558
2020-01-30T11:52:33.2082354Z .........................................................i.......................................... 6700/9558
2020-01-30T11:52:35.3887262Z .................................................................................................... 6800/9558
2020-01-30T11:52:37.6526604Z .........................................................i.......................................... 6900/9558
---
2020-01-30T11:54:21.9343838Z .................................................................................................... 7600/9558
2020-01-30T11:54:27.3349509Z .................................................................................................... 7700/9558
2020-01-30T11:54:34.1655808Z .................................................................................................... 7800/9558
2020-01-30T11:54:45.0416749Z .................................................................................................... 7900/9558
2020-01-30T11:54:51.1505523Z ............iiiiiii.i............................................................................... 8000/9558
2020-01-30T11:55:05.6938871Z .................................................................................................... 8200/9558
2020-01-30T11:55:16.4931800Z .................................................................................................... 8300/9558
2020-01-30T11:55:29.8509775Z .................................................................................................... 8400/9558
2020-01-30T11:55:36.6211932Z .................................................................................................... 8500/9558
---
2020-01-30T11:58:00.9249528Z  finished in 7.504
2020-01-30T11:58:00.9447279Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:01.1127838Z 
2020-01-30T11:58:01.1128106Z running 169 tests
2020-01-30T11:58:04.1676784Z iiii......i........ii..iiii...i....i...........i............i..i..................i....i............ 100/169
2020-01-30T11:58:06.5124517Z i.i.i...iii..iiiiiiiiii.......................iii............ii......
2020-01-30T11:58:06.5125802Z 
2020-01-30T11:58:06.5129986Z  finished in 5.568
2020-01-30T11:58:06.5337151Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:06.6981725Z 
---
2020-01-30T11:58:08.6625940Z  finished in 2.129
2020-01-30T11:58:08.6845091Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:08.8449738Z 
2020-01-30T11:58:08.8451689Z running 9 tests
2020-01-30T11:58:08.8452963Z iiiiiiiii
2020-01-30T11:58:08.8453725Z 
2020-01-30T11:58:08.8454867Z  finished in 0.160
2020-01-30T11:58:08.8652506Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:09.0328361Z 
---
2020-01-30T11:58:29.5398357Z  finished in 20.674
2020-01-30T11:58:29.5597512Z Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:29.7233310Z 
2020-01-30T11:58:29.7233547Z running 116 tests
2020-01-30T11:58:43.5598830Z iiiii..i.....i..i...i..i.i.i..i..i..ii....i.i....ii..........iiii..........i.....i..i.......ii.i.ii. 100/116
2020-01-30T11:58:45.4744849Z ....iiii.....ii.
2020-01-30T11:58:46.0030468Z 
2020-01-30T11:58:46.0030799Z  finished in 15.915
2020-01-30T11:58:46.0031299Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T11:58:46.0031833Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2020-01-30T12:12:55.8319676Z 
2020-01-30T12:12:55.8320610Z    Doc-tests core
2020-01-30T12:13:00.8509315Z 
2020-01-30T12:13:00.8509686Z running 2467 tests
2020-01-30T12:13:10.3225616Z ......iiiii......................................................................................... 100/2467
2020-01-30T12:13:19.4916854Z ..................................................................................ii................ 200/2467
2020-01-30T12:13:41.1499550Z .................i.................................................................................. 400/2467
2020-01-30T12:13:41.1499550Z .................i.................................................................................. 400/2467
2020-01-30T12:13:51.0139247Z ..................................................................i..i..................iiii........ 500/2467
2020-01-30T12:14:08.5028276Z .................................................................................................... 700/2467
2020-01-30T12:14:17.3695818Z .................................................................................................... 800/2467
2020-01-30T12:14:26.1219707Z .................................................................................................... 900/2467
2020-01-30T12:14:34.8314038Z .................................................................................................... 1000/2467
---
2020-01-30T12:18:20.5146831Z 
2020-01-30T12:18:20.5148372Z running 1007 tests
2020-01-30T12:18:39.3127239Z i................................................................................................... 100/1007
2020-01-30T12:18:49.6198159Z .................................................................................................... 200/1007
2020-01-30T12:18:58.9738528Z ..................iii......i......i...i......i...................................................... 300/1007
2020-01-30T12:19:10.7103800Z .................................................................................................... 400/1007
2020-01-30T12:19:20.1187712Z ..........................................i..i.....................................ii............... 500/1007
2020-01-30T12:19:41.4023822Z .................................................................................................... 700/1007
2020-01-30T12:19:41.4023822Z .................................................................................................... 700/1007
2020-01-30T12:19:52.7070432Z .................................iiii............................................................... 800/1007
2020-01-30T12:20:10.5249459Z .................................................................................................... 900/1007
2020-01-30T12:20:21.1302388Z .......................................................iiii......................................... 1000/1007
2020-01-30T12:20:21.7846079Z test result: ok. 987 passed; 0 failed; 20 ignored; 0 measured; 0 filtered out
2020-01-30T12:20:21.7849506Z 
2020-01-30T12:20:21.7982536Z  finished in 207.662
2020-01-30T12:20:21.7994209Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
2020-01-30T12:39:55.9596860Z 
2020-01-30T12:39:55.9597194Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0454 (line 8008) stdout ----
2020-01-30T12:39:55.9597271Z error: linking with `cc` failed: exit code: 1
2020-01-30T12:39:55.9597316Z   |
2020-01-30T12:39:55.9600997Z   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/rustdoctestoWq26P/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "-o" "/tmp/rustdoctestoWq26P/rust_out" "/tmp/rustdoctestoWq26P/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsome_lib" "-Wl,--start-group" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8528e5f4833852aa.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-a0d0566ac62804f5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-6583bdb038f0769e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-68e6ba8672e810f3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-e8e99be55e599058.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-a16f20798c1b905e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1aa22b9d384ca38f.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-43fd232abb4b83a2.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-33644c87047eb298.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-473fe78237295435.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-955c2db7d9774431.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7215cce5c10397e6.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-c21aa0a453978729.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9915cc4411371776.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
2020-01-30T12:39:55.9601826Z   = note: /usr/bin/ld: cannot find -lsome_lib
2020-01-30T12:39:55.9601886Z           collect2: error: ld returned 1 exit status
2020-01-30T12:39:55.9601992Z 
2020-01-30T12:39:55.9602036Z error: aborting due to previous error
2020-01-30T12:39:55.9602082Z 
2020-01-30T12:39:55.9602318Z Couldn't compile the test.
2020-01-30T12:39:55.9602318Z Couldn't compile the test.
2020-01-30T12:39:55.9602640Z ---- /checkout/obj/build/x86_64-unknown-linux-gnu/test/error-index.md - Rust_Compiler_Error_Index::E0459 (line 8058) stdout ----
2020-01-30T12:39:55.9602699Z error: linking with `cc` failed: exit code: 1
2020-01-30T12:39:55.9602764Z   |
2020-01-30T12:39:55.9605840Z   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/rustdoctestooqPEN/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "-o" "/tmp/rustdoctestooqPEN/rust_out" "/tmp/rustdoctestooqPEN/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lsome_lib" "-Wl,--start-group" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8528e5f4833852aa.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-a0d0566ac62804f5.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-6583bdb038f0769e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-68e6ba8672e810f3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-e8e99be55e599058.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-a16f20798c1b905e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-1aa22b9d384ca38f.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-43fd232abb4b83a2.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-33644c87047eb298.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-473fe78237295435.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-955c2db7d9774431.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-7215cce5c10397e6.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-c21aa0a453978729.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9915cc4411371776.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
2020-01-30T12:39:55.9606589Z   = note: /usr/bin/ld: cannot find -lsome_lib
2020-01-30T12:39:55.9606644Z           collect2: error: ld returned 1 exit status
2020-01-30T12:39:55.9606755Z 
2020-01-30T12:39:55.9606800Z error: aborting due to previous error
2020-01-30T12:39:55.9606829Z 
2020-01-30T12:39:55.9607045Z Couldn't compile the test.
---
2020-01-30T12:39:55.9608555Z   local time: Thu Jan 30 12:39:55 UTC 2020
2020-01-30T12:39:56.2177971Z   network time: Thu, 30 Jan 2020 12:39:56 GMT
2020-01-30T12:39:56.2178216Z == end clock drift check ==
2020-01-30T12:39:56.5601748Z 
2020-01-30T12:39:56.5687295Z ##[error]Bash exited with code '1'.
2020-01-30T12:39:56.5702774Z ##[section]Finishing: Run build
2020-01-30T12:39:56.5728120Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T12:39:56.5730478Z Task         : Get sources
2020-01-30T12:39:56.5730529Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T12:39:56.5730591Z Version      : 1.0.0
2020-01-30T12:39:56.5730634Z Author       : Microsoft
2020-01-30T12:39:56.5730634Z Author       : Microsoft
2020-01-30T12:39:56.5730680Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-30T12:39:56.5730748Z ==============================================================================
2020-01-30T12:39:57.0074618Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-30T12:39:57.0123745Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T12:39:57.0246918Z Cleaning up task key
2020-01-30T12:39:57.0247860Z Start cleaning up orphan processes.
2020-01-30T12:39:57.0371648Z Terminate orphan process: pid (3566) (python)
2020-01-30T12:39:57.0635165Z ##[section]Finishing: Finalize Job

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@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-01-30T13:00:39.5483942Z ========================== Starting Command Output ===========================
2020-01-30T13:00:39.5499079Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d295eabf-7c6e-42a1-b978-febe7855a524.sh
2020-01-30T13:00:39.5661618Z 
2020-01-30T13:00:39.5708734Z ##[section]Finishing: Disable git automatic line ending conversion
2020-01-30T13:00:39.5714575Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T13:00:39.5716110Z Task         : Get sources
2020-01-30T13:00:39.5716191Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T13:00:39.5716226Z Version      : 1.0.0
2020-01-30T13:00:39.5716261Z Author       : Microsoft
---
2020-01-30T13:00:40.4108658Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-01-30T13:00:40.4200297Z ##[command]git config gc.auto 0
2020-01-30T13:00:40.4256693Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-01-30T13:00:40.4303974Z ##[command]git config --get-all http.proxy
2020-01-30T13:00:40.4430793Z ##[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/68664/merge:refs/remotes/pull/68664/merge
---
2020-01-30T13:49:01.1902244Z .................................................................................................... 1700/9558
2020-01-30T13:49:05.9109232Z .................................................................................................... 1800/9558
2020-01-30T13:49:17.2635097Z .........................i.......................................................................... 1900/9558
2020-01-30T13:49:23.6585419Z .................................................................................................... 2000/9558
2020-01-30T13:49:36.6548738Z ...............iiiii................................................................................ 2100/9558
2020-01-30T13:49:45.4833288Z .................................................................................................... 2300/9558
2020-01-30T13:49:47.6570384Z .................................................................................................... 2400/9558
2020-01-30T13:49:52.2570536Z .................................................................................................... 2500/9558
2020-01-30T13:50:10.6391387Z .................................................................................................... 2600/9558
---
2020-01-30T13:52:28.9808220Z .................................................................................................... 4800/9558
2020-01-30T13:52:33.5619542Z ..........................................................i...............i......................... 4900/9558
2020-01-30T13:52:40.7563404Z .................................................................................................... 5000/9558
2020-01-30T13:52:48.1506757Z .................................................................................................... 5100/9558
2020-01-30T13:52:52.7482803Z .i.................................................................................................. 5200/9558
2020-01-30T13:53:02.9041830Z ..........................................................................ii.ii........i...i........ 5300/9558
2020-01-30T13:53:10.9663818Z ............i....................................................................................... 5500/9558
2020-01-30T13:53:20.1933013Z .................................................................................................... 5600/9558
2020-01-30T13:53:26.2044264Z .............................................................i...................................... 5700/9558
2020-01-30T13:53:32.9014671Z .................................................................................................... 5800/9558
2020-01-30T13:53:32.9014671Z .................................................................................................... 5800/9558
2020-01-30T13:53:40.4023023Z .................................................................................................... 5900/9558
2020-01-30T13:53:48.3232755Z ....................................................ii...i..ii...........i.......................... 6000/9558
2020-01-30T13:54:07.2561689Z .................................................................................................... 6200/9558
2020-01-30T13:54:10.7854617Z .................................................................................................... 6300/9558
2020-01-30T13:54:10.7854617Z .................................................................................................... 6300/9558
2020-01-30T13:54:14.8457253Z ................................................................................i..ii............... 6400/9558
2020-01-30T13:54:38.9187139Z .................................................................................................... 6600/9558
2020-01-30T13:54:43.8240452Z ........................................................i........................................... 6700/9558
2020-01-30T13:54:45.8099765Z .................................................................................................... 6800/9558
2020-01-30T13:54:47.8098702Z .......................................................i............................................ 6900/9558
---
2020-01-30T13:56:17.4566146Z .................................................................................................... 7600/9558
2020-01-30T13:56:22.2342066Z .................................................................................................... 7700/9558
2020-01-30T13:56:28.2356542Z .................................................................................................... 7800/9558
2020-01-30T13:56:37.7759397Z .................................................................................................... 7900/9558
2020-01-30T13:56:43.2599473Z ............iiiiiiii................................................................................ 8000/9558
2020-01-30T13:56:56.0351968Z .................................................................................................... 8200/9558
2020-01-30T13:57:05.6424260Z .................................................................................................... 8300/9558
2020-01-30T13:57:17.4919132Z .................................................................................................... 8400/9558
2020-01-30T13:57:23.6666564Z .................................................................................................... 8500/9558
---
2020-01-30T13:59:33.6026203Z  finished in 6.778
2020-01-30T13:59:33.6213703Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T13:59:33.8084307Z 
2020-01-30T13:59:33.8085090Z running 169 tests
2020-01-30T13:59:36.5812895Z iiii......i........ii..iiii...i....i...........i............i..i..................i....i............ 100/169
2020-01-30T13:59:38.6109172Z i.i.i...iii..iiiiiiiiii.......................iii............ii......
2020-01-30T13:59:38.6117383Z 
2020-01-30T13:59:38.6122572Z  finished in 4.990
2020-01-30T13:59:38.6306104Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T13:59:38.7921231Z 
---
2020-01-30T13:59:40.7199507Z  finished in 2.089
2020-01-30T13:59:40.7385547Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T13:59:40.8883777Z 
2020-01-30T13:59:40.8884104Z running 9 tests
2020-01-30T13:59:40.8884987Z iiiiiiiii
2020-01-30T13:59:40.8885444Z 
2020-01-30T13:59:40.8889995Z  finished in 0.150
2020-01-30T13:59:40.9074390Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T13:59:41.0850901Z 
---
2020-01-30T13:59:59.3039481Z  finished in 18.396
2020-01-30T13:59:59.3250409Z Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T13:59:59.5023378Z 
2020-01-30T13:59:59.5023915Z running 116 tests
2020-01-30T14:00:12.1155625Z iiiii..i.....i..i...i..i.i.i..i..i..ii....i.i....ii..........iiii..........i.....i..i.......ii.i.ii. 100/116
2020-01-30T14:00:13.8009501Z ....iiii.....ii.
2020-01-30T14:00:13.8010811Z 
2020-01-30T14:00:13.8014641Z  finished in 14.476
2020-01-30T14:00:13.8017702Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T14:00:13.8018266Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2020-01-30T14:12:03.4361324Z 
2020-01-30T14:12:03.4367122Z    Doc-tests core
2020-01-30T14:12:07.7074952Z 
2020-01-30T14:12:07.7123992Z running 2467 tests
2020-01-30T14:12:15.9149126Z ......iiiii......................................................................................... 100/2467
2020-01-30T14:12:23.9358564Z ..................................................................................ii................ 200/2467
2020-01-30T14:12:43.4796631Z .................i.................................................................................. 400/2467
2020-01-30T14:12:43.4796631Z .................i.................................................................................. 400/2467
2020-01-30T14:12:52.2499378Z ..................................................................i..i..................iiii........ 500/2467
2020-01-30T14:13:08.1065718Z .................................................................................................... 700/2467
2020-01-30T14:13:16.0676726Z .................................................................................................... 800/2467
2020-01-30T14:13:23.9165437Z .................................................................................................... 900/2467
2020-01-30T14:13:31.7314808Z .................................................................................................... 1000/2467
---
2020-01-30T14:16:36.9607268Z .................................................................................................... 500/760
2020-01-30T14:16:36.9949406Z .................thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs:2741:22
2020-01-30T14:16:36.9965603Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs:2778:21
2020-01-30T14:16:36.9969501Z thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libstd/sync/mpsc/mod.rs:2766:17
2020-01-30T14:16:36.9983995Z .......thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs:2645:13
2020-01-30T14:16:37.5065790Z ...........................................thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs:1997:22
2020-01-30T14:16:37.5081755Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libstd/sync/mpsc/mod.rs.:2022:17
2020-01-30T14:16:37.5088819Z thread '<unnamed>' panicked at '.called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs.:2034:21
2020-01-30T14:16:37.5097924Z ....thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/libstd/sync/mpsc/mod.rs:1916:13
2020-01-30T14:16:39.9807678Z ....................thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:633:13
2020-01-30T14:16:39.9809653Z ..thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:587:13
2020-01-30T14:16:39.9810754Z ..thread '<unnamed>' panicked at 'test panic in inner thread to poison mutex', src/libstd/sync/mutex.rs:563:13
2020-01-30T14:16:39.9811890Z .thread '<unnamed>' panicked at 'explicit panic', src/libstd/sync/mutex.rs:694:13
---
2020-01-30T14:16:48.4787299Z 
2020-01-30T14:16:48.4787559Z running 1007 tests
2020-01-30T14:17:04.8399160Z i................................................................................................... 100/1007
2020-01-30T14:17:14.3720314Z .................................................................................................... 200/1007
2020-01-30T14:17:22.9906875Z ..................iii......i......i...i......i...................................................... 300/1007
2020-01-30T14:17:33.2199959Z .................................................................................................... 400/1007
2020-01-30T14:17:41.7617761Z ..........................................i..i.....................................ii............... 500/1007
2020-01-30T14:18:00.7312079Z .................................................................................................... 700/1007
2020-01-30T14:18:00.7312079Z .................................................................................................... 700/1007
2020-01-30T14:18:10.6068756Z .................................iiii............................................................... 800/1007
2020-01-30T14:18:26.3451952Z .................................................................................................... 900/1007
2020-01-30T14:18:36.0330841Z .......................................................iiii......................................... 1000/1007
2020-01-30T14:18:36.6807753Z test result: ok. 987 passed; 0 failed; 20 ignored; 0 measured; 0 filtered out
2020-01-30T14:18:36.6809254Z 
2020-01-30T14:18:36.6915312Z  finished in 181.623
2020-01-30T14:18:36.6928776Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
2020-01-30T14:35:04.2056127Z  finished in 36.104
2020-01-30T14:35:04.2326732Z Check compiletest suite=run-make-fulldeps mode=run-make (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-01-30T14:35:04.4317048Z 
2020-01-30T14:35:04.4317934Z running 204 tests
2020-01-30T14:35:33.6252270Z .....................i...ii.....................................................................i... 100/204
2020-01-30T14:36:04.3791991Z ....................................iiiiii......i............iii.................................... 200/204
2020-01-30T14:36:05.6928264Z .i..
2020-01-30T14:36:05.6931960Z 
2020-01-30T14:36:05.6939421Z  finished in 61.461
2020-01-30T14:36:05.6949097Z doc tests for: /checkout/src/doc/rustdoc/src/advanced-features.md
2020-01-30T14:36:05.8374862Z doc tests for: /checkout/src/doc/rustdoc/src/command-line-arguments.md
---
2020-01-30T14:36:10.6153324Z 
2020-01-30T14:36:10.6153676Z ---- /checkout/src/doc/unstable-book/src/language-features/link-args.md - The_tracking_issue_for_this_feature_is__ (line 14) stdout ----
2020-01-30T14:36:10.6153739Z error: linking with `cc` failed: exit code: 1
2020-01-30T14:36:10.6153787Z   |
2020-01-30T14:36:10.6157008Z   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/rustdoctestpT6cxr/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "-o" "/tmp/rustdoctestpT6cxr/rust_out" "/tmp/rustdoctestpT6cxr/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-81583a5b7a5ad442.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-86a48d12ae2b80b8.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-15a3096e587957e3.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-aaadf709eb4c1167.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-c9617cadac1e624a.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-e296433e8c16d1bf.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-86d804f4f73759bf.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-827275225fb6c69e.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-42b5730c476d044c.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-7c557a955a243c5d.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-78ff2f6b94d86e9b.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f2ad661ea834d8d0.rlib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0bce465b43180aad.rlib" "-Wl,--end-group" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9c01b853f2be461c.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" "-foo" "-bar" "-baz"
2020-01-30T14:36:10.6157822Z   = note: cc: error: unrecognized command line option '-foo'; did you mean '-fdoc'?
2020-01-30T14:36:10.6158097Z           cc: error: unrecognized command line option '-bar'
2020-01-30T14:36:10.6158349Z           cc: error: unrecognized command line option '-baz'
2020-01-30T14:36:10.6158430Z 
2020-01-30T14:36:10.6158494Z error: aborting due to previous error
2020-01-30T14:36:10.6158525Z 
2020-01-30T14:36:10.6158734Z Couldn't compile the test.
---
2020-01-30T14:36:10.6238951Z   local time: Thu Jan 30 14:36:10 UTC 2020
2020-01-30T14:36:10.9236035Z   network time: Thu, 30 Jan 2020 14:36:10 GMT
2020-01-30T14:36:10.9239462Z == end clock drift check ==
2020-01-30T14:36:11.8065618Z 
2020-01-30T14:36:11.8157600Z ##[error]Bash exited with code '1'.
2020-01-30T14:36:11.8169572Z ##[section]Finishing: Run build
2020-01-30T14:36:11.8193996Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T14:36:11.8195995Z Task         : Get sources
2020-01-30T14:36:11.8196061Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-01-30T14:36:11.8196110Z Version      : 1.0.0
2020-01-30T14:36:11.8196154Z Author       : Microsoft
2020-01-30T14:36:11.8196154Z Author       : Microsoft
2020-01-30T14:36:11.8196222Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-01-30T14:36:11.8196277Z ==============================================================================
2020-01-30T14:36:12.2030156Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-01-30T14:36:12.2078629Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/68664/merge to s
2020-01-30T14:36:12.2189008Z Cleaning up task key
2020-01-30T14:36:12.2189867Z Start cleaning up orphan processes.
2020-01-30T14:36:12.2287092Z Terminate orphan process: pid (3943) (python)
2020-01-30T14:36:12.2744948Z ##[section]Finishing: Finalize Job

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@tspiteri
Copy link
Contributor Author

Argh, more no_run tests are failing in tests, books, etc. Which probably means that this would cause issues in other crates. So I'm going for option 2, which should not break any succeeding tests: leaving no_run unchanged but improving compile_fail.

Some code fails when doing a full build but does not fail when only
emitting metadata. This commit makes sure compile_fail tests for such
code behave as expected, that is, the test succeeds because the
compilation fails.
@tspiteri tspiteri force-pushed the no_run-complete-build branch from dfdb6ae to 6d768dd Compare January 30, 2020 14:53
@tspiteri tspiteri changed the title rustdoc: compile test completely for no_run and compile_fail rustdoc: attempt full build for compile_fail test Jan 30, 2020
@nikomatsakis
Copy link
Contributor

@bors r+

This seems fine to me! Thanks.

@bors
Copy link
Contributor

bors commented Feb 5, 2020

📌 Commit 6d768dd 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 Feb 5, 2020
@bors
Copy link
Contributor

bors commented Feb 6, 2020

⌛ Testing commit 6d768dd with merge 1f8df25...

bors added a commit that referenced this pull request Feb 6, 2020
rustdoc: attempt full build for compile_fail test

Some code fails when doing a full build but does not fail when only emitting metadata. This commit makes sure compile_fail tests for such code behave as expected, that is, the test succeeds because the compilation fails.

Fixes #67771.
@bors
Copy link
Contributor

bors commented Feb 6, 2020

☀️ Test successful - checks-azure
Approved by: nikomatsakis
Pushing 1f8df25 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 6, 2020
@bors bors merged commit 6d768dd into rust-lang:master Feb 6, 2020
@tspiteri tspiteri deleted the no_run-complete-build branch February 6, 2020 12:15
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 6, 2020
…petrochenkov

error code examples: replace some more ignore with compile_fail

Now that rust-lang#68664 has been merged and `compile_fail` attempts a full build rather than `--emit=metadata`, these errors should be caught by `compile_fail` and do not need to be ignored.
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.

doc test that should not compile still fails compile_fail test
5 participants