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

Display name of crate requiring rustc_private in error messages. #62819

Closed
wants to merge 7 commits into from

Conversation

crlf0710
Copy link
Member

@crlf0710 crlf0710 commented Jul 20, 2019

This is extraction and rebase of one part of #59440 that doesn't involve external things.

r? @oli-obk

@crlf0710 crlf0710 changed the title Update libtest Display name of crate requiring rustc_private in error messages. Jul 20, 2019
@crlf0710 crlf0710 marked this pull request as ready for review July 20, 2019 06:26
@rust-highfive
Copy link
Collaborator

The job mingw-check of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-07-20T06:20:51.2814242Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-20T06:20:51.2987049Z ##[command]git config gc.auto 0
2019-07-20T06:20:51.3064125Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-20T06:20:51.3123775Z ##[command]git config --get-all http.proxy
2019-07-20T06:20:51.3272688Z ##[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/62819/merge:refs/remotes/pull/62819/merge
---
2019-07-20T06:21:24.9015811Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-20T06:21:24.9016356Z 
2019-07-20T06:21:24.9016905Z   git checkout -b <new-branch-name>
2019-07-20T06:21:24.9017190Z 
2019-07-20T06:21:24.9017462Z HEAD is now at c287158e4 Merge 3f05394f6599bb3de1e0fd746a2c00a2d4073c16 into e9d22273283dce210b26362aa0dcc3fc10bf7e81
2019-07-20T06:21:24.9169771Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-20T06:21:24.9173529Z ==============================================================================
2019-07-20T06:21:24.9173597Z Task         : Bash
2019-07-20T06:21:24.9173668Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-20T06:27:20.9554623Z     Checking term v0.0.0 (/checkout/src/libterm)
2019-07-20T06:27:21.0641105Z     Checking proc_macro v0.0.0 (/checkout/src/libproc_macro)
2019-07-20T06:27:21.3535377Z     Checking getopts v0.2.19
2019-07-20T06:27:24.2694006Z     Checking test v0.0.0 (/checkout/src/libtest)
2019-07-20T06:27:24.9811828Z error[E0636]: the feature `rustc_private` has already been declared
2019-07-20T06:27:24.9812216Z   --> src/libtest/lib.rs:32:12
2019-07-20T06:27:24.9812471Z    |
2019-07-20T06:27:24.9812794Z 32 | #![feature(rustc_private)]
2019-07-20T06:27:24.9813189Z 
2019-07-20T06:27:24.9937686Z error: aborting due to previous error
2019-07-20T06:27:24.9937814Z 
2019-07-20T06:27:24.9938144Z For more information about this error, try `rustc --explain E0636`.
2019-07-20T06:27:24.9938144Z For more information about this error, try `rustc --explain E0636`.
2019-07-20T06:27:25.0103158Z error: Could not compile `test`.
2019-07-20T06:27:25.0103296Z 
2019-07-20T06:27:25.0103564Z To learn more, run the command again with --verbose.
2019-07-20T06:27:25.0121386Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-j" "2" "--release" "--color" "always" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json"
2019-07-20T06:27:25.0121571Z expected success, got: exit code: 101
2019-07-20T06:27:25.0132425Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2019-07-20T06:27:25.0132580Z Build completed unsuccessfully in 0:02:58
2019-07-20T06:27:27.0767439Z ##[error]Bash exited with code '1'.
2019-07-20T06:27:27.0802158Z ##[section]Starting: Checkout
2019-07-20T06:27:27.0804299Z ==============================================================================
2019-07-20T06:27:27.0804378Z Task         : Get sources
2019-07-20T06:27:27.0804434Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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

@rust-highfive
Copy link
Collaborator

The job mingw-check of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-07-20T06:38:17.8343577Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-20T06:38:17.8519663Z ##[command]git config gc.auto 0
2019-07-20T06:38:17.8582682Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-20T06:38:17.8632619Z ##[command]git config --get-all http.proxy
2019-07-20T06:38:17.8750341Z ##[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/62819/merge:refs/remotes/pull/62819/merge
---
2019-07-20T06:38:51.6387780Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-20T06:38:51.6387989Z 
2019-07-20T06:38:51.6388355Z   git checkout -b <new-branch-name>
2019-07-20T06:38:51.6388572Z 
2019-07-20T06:38:51.6388758Z HEAD is now at 51d791d4c Merge b8d4c7762099a3cce0a1046db0556a848f9fdf9d into e9d22273283dce210b26362aa0dcc3fc10bf7e81
2019-07-20T06:38:51.6508838Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-20T06:38:51.6511640Z ==============================================================================
2019-07-20T06:38:51.6511700Z Task         : Bash
2019-07-20T06:38:51.6511747Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-20T06:44:12.3601960Z     Checking test v0.0.0 (/checkout/src/libtest)
2019-07-20T06:44:12.3913690Z error: unexpected close delimiter: `]`
2019-07-20T06:44:12.3920123Z   --> src/libtest/lib.rs:25:33
2019-07-20T06:44:12.3922337Z    |
2019-07-20T06:44:12.3925900Z 25 | #![feature(libc, rustc_private))]
2019-07-20T06:44:12.3927295Z    |                                 ^ unexpected close delimiter
2019-07-20T06:44:12.3930468Z error: incorrect close delimiter: `)`
2019-07-20T06:44:12.3932746Z   --> src/libtest/lib.rs:25:32
2019-07-20T06:44:12.3934768Z    |
2019-07-20T06:44:12.3934768Z    |
2019-07-20T06:44:12.3938527Z 25 | #![feature(libc, rustc_private))]
2019-07-20T06:44:12.3942284Z    |   - un-closed delimiter        ^ incorrect close delimiter
2019-07-20T06:44:12.3947000Z error: aborting due to 2 previous errors
2019-07-20T06:44:12.3950239Z 
2019-07-20T06:44:12.3992398Z error: Could not compile `test`.
2019-07-20T06:44:12.3992718Z 
2019-07-20T06:44:12.3992718Z 
2019-07-20T06:44:12.3993180Z To learn more, run the command again with --verbose.
2019-07-20T06:44:12.4011801Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-j" "2" "--release" "--color" "always" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json"
2019-07-20T06:44:12.4011945Z expected success, got: exit code: 101
2019-07-20T06:44:12.4022657Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2019-07-20T06:44:12.4022960Z Build completed unsuccessfully in 0:02:22
2019-07-20T06:44:14.4302616Z ##[error]Bash exited with code '1'.
2019-07-20T06:44:14.4333794Z ##[section]Starting: Checkout
2019-07-20T06:44:14.4335297Z ==============================================================================
2019-07-20T06:44:14.4335339Z Task         : Get sources
2019-07-20T06:44:14.4335375Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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

@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2019-07-20T06:48:21.7817723Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-20T06:48:21.8022153Z ##[command]git config gc.auto 0
2019-07-20T06:48:21.8108143Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-20T06:48:21.8169588Z ##[command]git config --get-all http.proxy
2019-07-20T06:48:21.8317208Z ##[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/62819/merge:refs/remotes/pull/62819/merge
---
2019-07-20T06:48:55.0246163Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-20T06:48:55.0246194Z 
2019-07-20T06:48:55.0246827Z   git checkout -b <new-branch-name>
2019-07-20T06:48:55.0246865Z 
2019-07-20T06:48:55.0246939Z HEAD is now at 951e597e2 Merge 37edd4d8eb8872a128cec22f6577ca012303a4f8 into e9d22273283dce210b26362aa0dcc3fc10bf7e81
2019-07-20T06:48:55.0395416Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-20T06:48:55.0398501Z ==============================================================================
2019-07-20T06:48:55.0398563Z Task         : Bash
2019-07-20T06:48:55.0398632Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-20T07:46:59.2472302Z .................................................................................................... 200/5842
2019-07-20T07:47:03.1405555Z .................................................................................................... 300/5842
2019-07-20T07:47:06.4807077Z .................................................................................................... 400/5842
2019-07-20T07:47:09.8542931Z .................................................................................................... 500/5842
2019-07-20T07:47:13.2724177Z ........................................................................i........................... 600/5842
2019-07-20T07:47:21.3040041Z .................................................................................................... 800/5842
2019-07-20T07:47:26.3963617Z .................................................................................................... 900/5842
2019-07-20T07:47:30.9634089Z ...................................................................................................i 1000/5842
2019-07-20T07:47:30.9634089Z ...................................................................................................i 1000/5842
2019-07-20T07:47:35.9936567Z ...........i........................................................................................ 1100/5842
2019-07-20T07:47:39.6147094Z .............................iiiii.................................................................. 1200/5842
2019-07-20T07:47:44.9836393Z .................................................................................................... 1400/5842
2019-07-20T07:47:47.4559608Z .................................................................................................... 1500/5842
2019-07-20T07:47:50.8807212Z .................................................................................................... 1600/5842
2019-07-20T07:47:53.2425057Z .................................................................................................... 1700/5842
2019-07-20T07:47:53.2425057Z .................................................................................................... 1700/5842
2019-07-20T07:47:56.3644679Z ....................F.........F......................................i.............................. 1800/5842
2019-07-20T07:48:04.2151617Z .................................................................................................... 2000/5842
2019-07-20T07:48:08.0795632Z .................................................................................................... 2100/5842
2019-07-20T07:48:11.4855733Z .................................................................................................... 2200/5842
2019-07-20T07:48:11.4855733Z .................................................................................................... 2200/5842
2019-07-20T07:48:15.0472368Z ....................................................i............................................... 2300/5842
2019-07-20T07:48:24.1020607Z .................................................................................................... 2500/5842
2019-07-20T07:48:27.9035750Z .................................................................................................... 2600/5842
2019-07-20T07:48:32.6184778Z .................................................................................................... 2700/5842
2019-07-20T07:48:36.1576418Z .................................................................................................... 2800/5842
2019-07-20T07:48:36.1576418Z .................................................................................................... 2800/5842
2019-07-20T07:48:40.1749379Z .........F.......................................................................................... 2900/5842
2019-07-20T07:48:45.0252778Z .................................................................................................... 3000/5842
2019-07-20T07:48:49.1318652Z .................................................................................................... 3100/5842
2019-07-20T07:48:54.0135403Z .................................................................................................... 3200/5842
2019-07-20T07:48:57.2376904Z .................................................................................................... 3300/5842
2019-07-20T07:49:00.6257035Z .................................................................................................... 3400/5842
2019-07-20T07:49:05.2680978Z .................................................................................................... 3500/5842
2019-07-20T07:49:08.6065958Z ..................i................................................................................. 3600/5842
2019-07-20T07:49:12.3803983Z ............................................................................................ii...i.. 3700/5842
2019-07-20T07:49:15.9385083Z ii.................................................................................................. 3800/5842
2019-07-20T07:49:23.7882591Z .................................................................................................... 4000/5842
2019-07-20T07:49:23.7882591Z .................................................................................................... 4000/5842
2019-07-20T07:49:27.1241801Z ......ii............................................................................................ 4100/5842
2019-07-20T07:49:28.9569604Z ...........................i........................................................................ 4200/5842
2019-07-20T07:49:30.7362622Z .............................................................................................i...... 4300/5842
2019-07-20T07:49:37.0963142Z .................................................................................................... 4500/5842
2019-07-20T07:49:53.0695298Z .................................................................................................... 4600/5842
2019-07-20T07:49:56.2194693Z .................................................................................................... 4700/5842
2019-07-20T07:49:59.6775653Z .................................................................................................... 4800/5842
---
2019-07-20T07:50:31.3080756Z .................................................................................................... 5400/5842
2019-07-20T07:50:34.9336131Z .................................................................................................... 5500/5842
2019-07-20T07:50:38.7392068Z .................................................................................................... 5600/5842
2019-07-20T07:50:41.5952277Z .................................................................................................... 5700/5842
2019-07-20T07:50:44.2323275Z ..................................................................................i................. 5800/5842
2019-07-20T07:50:45.5865410Z failures:
2019-07-20T07:50:45.5898496Z 
2019-07-20T07:50:45.5899389Z ---- [ui] ui/feature-gates/feature-gate-rustc_private-libc.rs stdout ----
2019-07-20T07:50:45.5899670Z diff of stderr:
2019-07-20T07:50:45.5899670Z diff of stderr:
2019-07-20T07:50:45.5899709Z 
2019-07-20T07:50:45.5899756Z 4 LL |     use libc::*;
2019-07-20T07:50:45.5899827Z 5    |         ^^^^ maybe a missing `extern crate libc;`?
2019-07-20T07:50:45.5899875Z 6 
2019-07-20T07:50:45.5900362Z - error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
2019-07-20T07:50:45.5900787Z + error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T07:50:45.5901224Z 8   --> $DIR/feature-gate-rustc_private-libc.rs:2:5
2019-07-20T07:50:45.5901350Z 10 LL |     extern crate libc;
2019-07-20T07:50:45.5901383Z 
2019-07-20T07:50:45.5901428Z 11    |     ^^^^^^^^^^^^^^^^^^
2019-07-20T07:50:45.5901493Z 12    |
2019-07-20T07:50:45.5901493Z 12    |
2019-07-20T07:50:45.5901749Z -    = help: add #![feature(rustc_private)] to the crate attributes to enable
2019-07-20T07:50:45.5902146Z +    = note: for more information, see ***/issues/27812
2019-07-20T07:50:45.5902233Z +    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T07:50:45.5902529Z 15 error: aborting due to 2 previous errors
2019-07-20T07:50:45.5902612Z 16 
2019-07-20T07:50:45.5902642Z 
2019-07-20T07:50:45.5903245Z - Some errors occurred: E0432, E0658.
2019-07-20T07:50:45.5903245Z - Some errors occurred: E0432, E0658.
2019-07-20T07:50:45.5903289Z + Some errors have detailed explanations: E0432, E0658.
2019-07-20T07:50:45.5903496Z 18 For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5903542Z 19 
2019-07-20T07:50:45.5903563Z 
2019-07-20T07:50:45.5903584Z 
2019-07-20T07:50:45.5903639Z The actual stderr differed from the expected stderr.
2019-07-20T07:50:45.5903894Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-rustc_private-libc/feature-gate-rustc_private-libc.stderr
2019-07-20T07:50:45.5904083Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T07:50:45.5904315Z To only update this specific test, also pass `--test-args feature-gates/feature-gate-rustc_private-libc.rs`
2019-07-20T07:50:45.5904387Z error: 1 errors occurred comparing output.
2019-07-20T07:50:45.5904440Z status: exit code: 1
2019-07-20T07:50:45.5904440Z status: exit code: 1
2019-07-20T07:50:45.5905221Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-rustc_private-libc" "-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/feature-gates/feature-gate-rustc_private-libc/auxiliary" "-A" "unused"
2019-07-20T07:50:45.5905492Z ------------------------------------------
2019-07-20T07:50:45.5905520Z 
2019-07-20T07:50:45.5905704Z ------------------------------------------
2019-07-20T07:50:45.5905743Z stderr:
2019-07-20T07:50:45.5905743Z stderr:
2019-07-20T07:50:45.5905913Z ------------------------------------------
2019-07-20T07:50:45.5905954Z error[E0432]: unresolved import `libc`
2019-07-20T07:50:45.5906171Z   --> /checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs:3:9
2019-07-20T07:50:45.5906214Z    |
2019-07-20T07:50:45.5906255Z LL |     use libc::*; //~ ERROR unresolved import
2019-07-20T07:50:45.5906416Z    |         ^^^^ maybe a missing `extern crate libc;`?
2019-07-20T07:50:45.5906441Z 
2019-07-20T07:50:45.5906768Z error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T07:50:45.5907000Z   --> /checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs:2:5
2019-07-20T07:50:45.5907043Z    |
2019-07-20T07:50:45.5907081Z LL |     extern crate libc; //~ ERROR use of unstable
2019-07-20T07:50:45.5907172Z    |
2019-07-20T07:50:45.5907172Z    |
2019-07-20T07:50:45.5907412Z    = note: for more information, see ***/issues/27812
2019-07-20T07:50:45.5907479Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T07:50:45.5907542Z error: aborting due to 2 previous errors
2019-07-20T07:50:45.5907566Z 
2019-07-20T07:50:45.5907620Z Some errors have detailed explanations: E0432, E0658.
2019-07-20T07:50:45.5907830Z For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5907830Z For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5907858Z 
2019-07-20T07:50:45.5908042Z ------------------------------------------
2019-07-20T07:50:45.5908068Z 
2019-07-20T07:50:45.5908089Z 
2019-07-20T07:50:45.5908266Z ---- [ui] ui/feature-gates/feature-gate-test.rs stdout ----
2019-07-20T07:50:45.5908324Z diff of stderr:
2019-07-20T07:50:45.5908348Z 
2019-07-20T07:50:45.5908383Z 4 LL |     use test::*;
2019-07-20T07:50:45.5908422Z 5    |         ^^^^ maybe a missing `extern crate test;`?
2019-07-20T07:50:45.5908474Z 6 
2019-07-20T07:50:45.5908740Z - error[E0658]: use of unstable library feature 'test' (see issue #27812)
2019-07-20T07:50:45.5908964Z + error[E0658]: use of unstable library feature 'test'
2019-07-20T07:50:45.5909641Z 9    |
2019-07-20T07:50:45.5909691Z 10 LL |     extern crate test;
2019-07-20T07:50:45.5909723Z 
2019-07-20T07:50:45.5909795Z 11    |     ^^^^^^^^^^^^^^^^^^
2019-07-20T07:50:45.5909795Z 11    |     ^^^^^^^^^^^^^^^^^^
2019-07-20T07:50:45.5909842Z 12    |
2019-07-20T07:50:45.5910093Z -    = help: add #![feature(test)] to the crate attributes to enable
2019-07-20T07:50:45.5910412Z +    = note: for more information, see ***/issues/27812
2019-07-20T07:50:45.5910481Z +    = help: add `#![feature(test)]` to the crate attributes to enable
2019-07-20T07:50:45.5910603Z 15 error: aborting due to 2 previous errors
2019-07-20T07:50:45.5910652Z 16 
2019-07-20T07:50:45.5910684Z 
2019-07-20T07:50:45.5910954Z - Some errors occurred: E0432, E0658.
2019-07-20T07:50:45.5910954Z - Some errors occurred: E0432, E0658.
2019-07-20T07:50:45.5911039Z + Some errors have detailed explanations: E0432, E0658.
2019-07-20T07:50:45.5911317Z 18 For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5911370Z 19 
2019-07-20T07:50:45.5911420Z 
2019-07-20T07:50:45.5911451Z 
2019-07-20T07:50:45.5911502Z The actual stderr differed from the expected stderr.
2019-07-20T07:50:45.5911836Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-test/feature-gate-test.stderr
2019-07-20T07:50:45.5912142Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T07:50:45.5912433Z To only update this specific test, also pass `--test-args feature-gates/feature-gate-test.rs`
2019-07-20T07:50:45.5912541Z error: 1 errors occurred comparing output.
2019-07-20T07:50:45.5912592Z status: exit code: 1
2019-07-20T07:50:45.5912592Z status: exit code: 1
2019-07-20T07:50:45.5913557Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-test.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-test" "-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/feature-gates/feature-gate-test/auxiliary" "-A" "unused"
2019-07-20T07:50:45.5913933Z ------------------------------------------
2019-07-20T07:50:45.5913961Z 
2019-07-20T07:50:45.5914142Z ------------------------------------------
2019-07-20T07:50:45.5914178Z stderr:
2019-07-20T07:50:45.5914178Z stderr:
2019-07-20T07:50:45.5914333Z ------------------------------------------
2019-07-20T07:50:45.5914389Z error[E0432]: unresolved import `test`
2019-07-20T07:50:45.5914570Z   --> /checkout/src/test/ui/feature-gates/feature-gate-test.rs:3:9
2019-07-20T07:50:45.5914609Z    |
2019-07-20T07:50:45.5914664Z LL |     use test::*; //~ ERROR unresolved import
2019-07-20T07:50:45.5914708Z    |         ^^^^ maybe a missing `extern crate test;`?
2019-07-20T07:50:45.5914732Z 
2019-07-20T07:50:45.5914905Z error[E0658]: use of unstable library feature 'test'
2019-07-20T07:50:45.5915142Z    |
2019-07-20T07:50:45.5915142Z    |
2019-07-20T07:50:45.5915176Z LL |     extern crate test; //~ ERROR use of unstable
2019-07-20T07:50:45.5915269Z    |
2019-07-20T07:50:45.5915269Z    |
2019-07-20T07:50:45.5915483Z    = note: for more information, see ***/issues/27812
2019-07-20T07:50:45.5915544Z    = help: add `#![feature(test)]` to the crate attributes to enable
2019-07-20T07:50:45.5915604Z error: aborting due to 2 previous errors
2019-07-20T07:50:45.5915626Z 
2019-07-20T07:50:45.5915678Z Some errors have detailed explanations: E0432, E0658.
2019-07-20T07:50:45.5915869Z For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5915869Z For more information about an error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5915895Z 
2019-07-20T07:50:45.5916142Z ------------------------------------------
2019-07-20T07:50:45.5916173Z 
2019-07-20T07:50:45.5916193Z 
2019-07-20T07:50:45.5916389Z ---- [ui] ui/issues/issue-37887.rs stdout ----
2019-07-20T07:50:45.5916445Z diff of stderr:
2019-07-20T07:50:45.5916469Z 
2019-07-20T07:50:45.5916500Z 4 LL |     use libc::*;
2019-07-20T07:50:45.5916544Z 5    |         ^^^^ maybe a missing `extern crate libc;`?
2019-07-20T07:50:45.5916595Z 6 
2019-07-20T07:50:45.5916884Z - error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
2019-07-20T07:50:45.5917176Z + error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T07:50:45.5917369Z 8   --> $DIR/issue-37887.rs:2:5
2019-07-20T07:50:45.5917445Z 10 LL |     extern crate libc;
2019-07-20T07:50:45.5917487Z 
2019-07-20T07:50:45.5917507Z 
2019-07-20T07:50:45.5917541Z The actual stderr differed from the expected stderr.
2019-07-20T07:50:45.5917541Z The actual stderr differed from the expected stderr.
2019-07-20T07:50:45.5917761Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-37887/issue-37887.stderr
2019-07-20T07:50:45.5917969Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T07:50:45.5918159Z To only update this specific test, also pass `--test-args issues/issue-37887.rs`
2019-07-20T07:50:45.5918237Z error: 1 errors occurred comparing output.
2019-07-20T07:50:45.5918272Z status: exit code: 1
2019-07-20T07:50:45.5918272Z status: exit code: 1
2019-07-20T07:50:45.5922703Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-37887.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-37887" "-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/issues/issue-37887/auxiliary" "-A" "unused"
2019-07-20T07:50:45.5923382Z ------------------------------------------
2019-07-20T07:50:45.5923549Z 
2019-07-20T07:50:45.5923752Z ------------------------------------------
2019-07-20T07:50:45.5923788Z stderr:
2019-07-20T07:50:45.5923788Z stderr:
2019-07-20T07:50:45.5923945Z ------------------------------------------
2019-07-20T07:50:45.5924184Z error[E0432]: unresolved import `libc`
2019-07-20T07:50:45.5924375Z   --> /checkout/src/test/ui/issues/issue-37887.rs:3:9
2019-07-20T07:50:45.5924416Z    |
2019-07-20T07:50:45.5924472Z LL |     use libc::*; //~ ERROR unresolved import
2019-07-20T07:50:45.5924514Z    |         ^^^^ maybe a missing `extern crate libc;`?
2019-07-20T07:50:45.5924542Z 
2019-07-20T07:50:45.5924868Z error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T07:50:45.5925070Z   --> /checkout/src/test/ui/issues/issue-37887.rs:2:5
2019-07-20T07:50:45.5925112Z    |
2019-07-20T07:50:45.5925168Z LL |     extern crate libc; //~ ERROR use of unstable
2019-07-20T07:50:45.5925250Z    |
2019-07-20T07:50:45.5925250Z    |
2019-07-20T07:50:45.5925523Z    = note: for more information, see ***/issues/27812
2019-07-20T07:50:45.5925572Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T07:50:45.5925654Z error: aborting due to 2 previous errors
2019-07-20T07:50:45.5925679Z 
2019-07-20T07:50:45.5925716Z Some errors have detailed explanations: E0432, E0658.
2019-07-20T07:50:45.5925927Z For more information about an error, try `rustc --explain E0432`.
---
2019-07-20T07:50:45.5926574Z diff of stderr:
2019-07-20T07:50:45.5926598Z 
2019-07-20T07:50:45.5926775Z - error[E0432]: unresolved import `libtest`
2019-07-20T07:50:45.5926978Z -   --> $DIR/rustc_private-libtest.rs:3:9
2019-07-20T07:50:45.5927158Z + error[E0463]: can't find crate for `libtest`
2019-07-20T07:50:45.5927673Z +   --> $DIR/rustc_private-libtest.rs:2:5
2019-07-20T07:50:45.5927874Z - LL |     use libtest::*;
2019-07-20T07:50:45.5927874Z - LL |     use libtest::*;
2019-07-20T07:50:45.5928049Z -    |         ^^^^^^^ maybe a missing `extern crate libtest;`?
2019-07-20T07:50:45.5928088Z + LL |     extern crate libtest;
2019-07-20T07:50:45.5928307Z 6 
2019-07-20T07:50:45.5928343Z 7 error: aborting due to previous error
2019-07-20T07:50:45.5928390Z 8 
2019-07-20T07:50:45.5928418Z 
2019-07-20T07:50:45.5928418Z 
2019-07-20T07:50:45.5928599Z - For more information about this error, try `rustc --explain E0432`.
2019-07-20T07:50:45.5928781Z + For more information about this error, try `rustc --explain E0463`.
2019-07-20T07:50:45.5928834Z 10 
2019-07-20T07:50:45.5928856Z 
2019-07-20T07:50:45.5928876Z 
2019-07-20T07:50:45.5929091Z The actual stderr differed from the expected stderr.
2019-07-20T07:50:45.5929621Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rustc_private-libtest/rustc_private-libtest.stderr
2019-07-20T07:50:45.5929873Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T07:50:45.5930133Z To only update this specific test, also pass `--test-args rustc_private-libtest.rs`
2019-07-20T07:50:45.5930236Z error: 1 errors occurred comparing output.
2019-07-20T07:50:45.5930284Z status: exit code: 1
2019-07-20T07:50:45.5930284Z status: exit code: 1
2019-07-20T07:50:45.5931036Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/rustc_private-libtest.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rustc_private-libtest" "-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/rustc_private-libtest/auxiliary" "-A" "unused"
2019-07-20T07:50:45.5931502Z ------------------------------------------
2019-07-20T07:50:45.5931538Z 
2019-07-20T07:50:45.5932394Z ------------------------------------------
2019-07-20T07:50:45.5932465Z stderr:
---
2019-07-20T07:50:45.5941267Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:535:22
2019-07-20T07:50:45.5941338Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-07-20T07:50:45.5941396Z 
2019-07-20T07:50:45.5941424Z 
2019-07-20T07:50:45.5943068Z 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-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-07-20T07:50:45.5943324Z 
2019-07-20T07:50:45.5943347Z 
2019-07-20T07:50:45.5983438Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-07-20T07:50:45.5983529Z Build completed unsuccessfully in 0:55:31
2019-07-20T07:50:45.5983529Z Build completed unsuccessfully in 0:55:31
2019-07-20T07:50:46.7261482Z ##[error]Bash exited with code '1'.
2019-07-20T07:50:46.7294415Z ##[section]Starting: Checkout
2019-07-20T07:50:46.7295817Z ==============================================================================
2019-07-20T07:50:46.7295861Z Task         : Get sources
2019-07-20T07:50:46.7295918Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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

@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2019-07-20T08:48:39.1063339Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-20T08:48:39.1231286Z ##[command]git config gc.auto 0
2019-07-20T08:48:39.8544219Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-20T08:48:39.8552048Z ##[command]git config --get-all http.proxy
2019-07-20T08:48:39.8557820Z ##[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/62819/merge:refs/remotes/pull/62819/merge
---
2019-07-20T08:49:12.5073030Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-20T08:49:12.5073874Z 
2019-07-20T08:49:12.5074406Z   git checkout -b <new-branch-name>
2019-07-20T08:49:12.5074558Z 
2019-07-20T08:49:12.5074702Z HEAD is now at bdba43467 Merge 70d9041cce29a27cc370f8d9763c03a36e9f7fa3 into e9d22273283dce210b26362aa0dcc3fc10bf7e81
2019-07-20T08:49:12.5201523Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-20T08:49:12.5203720Z ==============================================================================
2019-07-20T08:49:12.5203763Z Task         : Bash
2019-07-20T08:49:12.5203813Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-20T09:43:49.9736024Z .................................................................................................... 200/5841
2019-07-20T09:43:53.9704762Z .................................................................................................... 300/5841
2019-07-20T09:43:57.4198426Z .................................................................................................... 400/5841
2019-07-20T09:44:00.9677633Z .................................................................................................... 500/5841
2019-07-20T09:44:04.5103864Z ........................................................................i........................... 600/5841
2019-07-20T09:44:12.6175868Z .................................................................................................... 800/5841
2019-07-20T09:44:17.6450117Z .................................................................................................... 900/5841
2019-07-20T09:44:22.1523822Z ...................................................................................................i 1000/5841
2019-07-20T09:44:22.1523822Z ...................................................................................................i 1000/5841
2019-07-20T09:44:27.1259576Z ...........i........................................................................................ 1100/5841
2019-07-20T09:44:30.7051253Z .............................iiiii.................................................................. 1200/5841
2019-07-20T09:44:36.0363743Z .................................................................................................... 1400/5841
2019-07-20T09:44:38.4436846Z .................................................................................................... 1500/5841
2019-07-20T09:44:41.8129216Z .................................................................................................... 1600/5841
2019-07-20T09:44:44.1374012Z .................................................................................................... 1700/5841
2019-07-20T09:44:44.1374012Z .................................................................................................... 1700/5841
2019-07-20T09:44:47.2145207Z ....................F.........F......................................i.............................. 1800/5841
2019-07-20T09:44:55.0355081Z .................................................................................................... 2000/5841
2019-07-20T09:44:58.9571618Z .................................................................................................... 2100/5841
2019-07-20T09:45:02.3729306Z .................................................................................................... 2200/5841
2019-07-20T09:45:02.3729306Z .................................................................................................... 2200/5841
2019-07-20T09:45:05.9262255Z .....................................................i.............................................. 2300/5841
2019-07-20T09:45:14.9051517Z .................................................................................................... 2500/5841
2019-07-20T09:45:18.5872205Z .................................................................................................... 2600/5841
2019-07-20T09:45:23.2180913Z .................................................................................................... 2700/5841
2019-07-20T09:45:26.8030368Z .................................................................................................... 2800/5841
2019-07-20T09:45:26.8030368Z .................................................................................................... 2800/5841
2019-07-20T09:45:30.7737282Z .................................................................................................... 2900/5841
2019-07-20T09:45:35.4423736Z .................................................................................................... 3000/5841
2019-07-20T09:45:39.4808667Z .................................................................................................... 3100/5841
2019-07-20T09:45:44.2462489Z .................................................................................................... 3200/5841
2019-07-20T09:45:47.4204561Z .................................................................................................... 3300/5841
2019-07-20T09:45:50.7781906Z .................................................................................................... 3400/5841
2019-07-20T09:45:55.4322525Z .................................................................................................... 3500/5841
2019-07-20T09:45:58.8150448Z ..................i................................................................................. 3600/5841
2019-07-20T09:46:02.6290490Z ............................................................................................ii...i.. 3700/5841
2019-07-20T09:46:06.2537303Z ii.................................................................................................. 3800/5841
2019-07-20T09:46:14.2201000Z .................................................................................................... 4000/5841
2019-07-20T09:46:14.2201000Z .................................................................................................... 4000/5841
2019-07-20T09:46:17.6497165Z ......ii............................................................................................ 4100/5841
2019-07-20T09:46:19.5243567Z ...........................i........................................................................ 4200/5841
2019-07-20T09:46:21.4351575Z .............................................................................................i...... 4300/5841
2019-07-20T09:46:28.0688956Z .................................................................................................... 4500/5841
2019-07-20T09:46:44.5418710Z .................................................................................................... 4600/5841
2019-07-20T09:46:47.8631767Z .................................................................................................... 4700/5841
2019-07-20T09:46:51.4713785Z .................................................................................................... 4800/5841
---
2019-07-20T09:47:22.4156812Z .................................................................................................... 5400/5841
2019-07-20T09:47:26.7085022Z .................................................................................................... 5500/5841
2019-07-20T09:47:30.4741819Z .................................................................................................... 5600/5841
2019-07-20T09:47:33.2922765Z .................................................................................................... 5700/5841
2019-07-20T09:47:35.8778652Z .................................................................................i.................. 5800/5841
2019-07-20T09:47:37.1825886Z failures:
2019-07-20T09:47:37.1862538Z 
2019-07-20T09:47:37.1865105Z ---- [ui] ui/feature-gates/feature-gate-rustc_private-libc.rs stdout ----
2019-07-20T09:47:37.1865161Z diff of stderr:
2019-07-20T09:47:37.1865161Z diff of stderr:
2019-07-20T09:47:37.1865190Z 
2019-07-20T09:47:37.1865224Z 11    |     ^^^^^^^^^^^^^^^^^^
2019-07-20T09:47:37.1865275Z 12    |
2019-07-20T09:47:37.1865613Z 13    = note: for more information, see ***/issues/27812
2019-07-20T09:47:37.1865856Z -    = help: add #![feature(rustc_private)] to the crate attributes to enable
2019-07-20T09:47:37.1865907Z +    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T09:47:37.1866187Z 16 error: aborting due to 2 previous errors
2019-07-20T09:47:37.1866221Z 17 
2019-07-20T09:47:37.1866244Z 
2019-07-20T09:47:37.1866457Z - Some errors occurred: E0432, E0658.
2019-07-20T09:47:37.1866457Z - Some errors occurred: E0432, E0658.
2019-07-20T09:47:37.1866525Z + Some errors have detailed explanations: E0432, E0658.
2019-07-20T09:47:37.1866732Z 19 For more information about an error, try `rustc --explain E0432`.
2019-07-20T09:47:37.1866770Z 20 
2019-07-20T09:47:37.1866792Z 
2019-07-20T09:47:37.1866829Z 
2019-07-20T09:47:37.1866866Z The actual stderr differed from the expected stderr.
2019-07-20T09:47:37.1867143Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-rustc_private-libc/feature-gate-rustc_private-libc.stderr
2019-07-20T09:47:37.1867365Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T09:47:37.1867600Z To only update this specific test, also pass `--test-args feature-gates/feature-gate-rustc_private-libc.rs`
2019-07-20T09:47:37.1867690Z error: 1 errors occurred comparing output.
2019-07-20T09:47:37.1867727Z status: exit code: 1
2019-07-20T09:47:37.1867727Z status: exit code: 1
2019-07-20T09:47:37.1868451Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-rustc_private-libc" "-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/feature-gates/feature-gate-rustc_private-libc/auxiliary" "-A" "unused"
2019-07-20T09:47:37.1868763Z ------------------------------------------
2019-07-20T09:47:37.1868807Z 
2019-07-20T09:47:37.1868996Z ------------------------------------------
2019-07-20T09:47:37.1869034Z stderr:
2019-07-20T09:47:37.1869034Z stderr:
2019-07-20T09:47:37.1869203Z ------------------------------------------
2019-07-20T09:47:37.1869258Z error[E0432]: unresolved import `libc`
2019-07-20T09:47:37.1869471Z   --> /checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs:3:9
2019-07-20T09:47:37.1869513Z    |
2019-07-20T09:47:37.1869569Z LL |     use libc::*; //~ ERROR unresolved import
2019-07-20T09:47:37.1869609Z    |         ^^^^ maybe a missing `extern crate libc;`?
2019-07-20T09:47:37.1869633Z 
2019-07-20T09:47:37.1869954Z error[E0658]: use of unstable library feature 'rustc_private': crate "libc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T09:47:37.1870173Z   --> /checkout/src/test/ui/feature-gates/feature-gate-rustc_private-libc.rs:2:5
2019-07-20T09:47:37.1870215Z    |
2019-07-20T09:47:37.1870267Z LL |     extern crate libc; //~ ERROR use of unstable
2019-07-20T09:47:37.1870345Z    |
2019-07-20T09:47:37.1870345Z    |
2019-07-20T09:47:37.1871216Z    = note: for more information, see ***/issues/27812
2019-07-20T09:47:37.1871280Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T09:47:37.1871387Z error: aborting due to 2 previous errors
2019-07-20T09:47:37.1871417Z 
2019-07-20T09:47:37.1871462Z Some errors have detailed explanations: E0432, E0658.
2019-07-20T09:47:37.1871727Z For more information about an error, try `rustc --explain E0432`.
---
2019-07-20T09:47:37.1872348Z diff of stderr:
2019-07-20T09:47:37.1872376Z 
2019-07-20T09:47:37.1872419Z 11    |     ^^^^^^^^^^^^^^^^^^
2019-07-20T09:47:37.1872479Z 12    |
2019-07-20T09:47:37.1872898Z 13    = note: for more information, see ***/issues/27812
2019-07-20T09:47:37.1873158Z -    = help: add #![feature(test)] to the crate attributes to enable
2019-07-20T09:47:37.1873232Z +    = help: add `#![feature(test)]` to the crate attributes to enable
2019-07-20T09:47:37.1873333Z 16 error: aborting due to 2 previous errors
2019-07-20T09:47:37.1873395Z 17 
2019-07-20T09:47:37.1873422Z 
2019-07-20T09:47:37.1873642Z - Some errors occurred: E0432, E0658.
2019-07-20T09:47:37.1873642Z - Some errors occurred: E0432, E0658.
2019-07-20T09:47:37.1873695Z + Some errors have detailed explanations: E0432, E0658.
2019-07-20T09:47:37.1873960Z 19 For more information about an error, try `rustc --explain E0432`.
2019-07-20T09:47:37.1874165Z 20 
2019-07-20T09:47:37.1874190Z 
2019-07-20T09:47:37.1874439Z 
2019-07-20T09:47:37.1874498Z The actual stderr differed from the expected stderr.
2019-07-20T09:47:37.1875127Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-test/feature-gate-test.stderr
2019-07-20T09:47:37.1875720Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T09:47:37.1875955Z To only update this specific test, also pass `--test-args feature-gates/feature-gate-test.rs`
2019-07-20T09:47:37.1876021Z error: 1 errors occurred comparing output.
2019-07-20T09:47:37.1876138Z status: exit code: 1
2019-07-20T09:47:37.1876138Z status: exit code: 1
2019-07-20T09:47:37.1876777Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/feature-gates/feature-gate-test.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-test" "-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/feature-gates/feature-gate-test/auxiliary" "-A" "unused"
2019-07-20T09:47:37.1877062Z ------------------------------------------
2019-07-20T09:47:37.1877090Z 
2019-07-20T09:47:37.1877286Z ------------------------------------------
2019-07-20T09:47:37.1877323Z stderr:
2019-07-20T09:47:37.1877323Z stderr:
2019-07-20T09:47:37.1877498Z ------------------------------------------
2019-07-20T09:47:37.1877547Z error[E0432]: unresolved import `test`
2019-07-20T09:47:37.1877765Z   --> /checkout/src/test/ui/feature-gates/feature-gate-test.rs:3:9
2019-07-20T09:47:37.1877807Z    |
2019-07-20T09:47:37.1877847Z LL |     use test::*; //~ ERROR unresolved import
2019-07-20T09:47:37.1877904Z    |         ^^^^ maybe a missing `extern crate test;`?
2019-07-20T09:47:37.1877929Z 
2019-07-20T09:47:37.1878120Z error[E0658]: use of unstable library feature 'test'
2019-07-20T09:47:37.1878371Z    |
2019-07-20T09:47:37.1878371Z    |
2019-07-20T09:47:37.1878408Z LL |     extern crate test; //~ ERROR use of unstable
2019-07-20T09:47:37.1878505Z    |
2019-07-20T09:47:37.1878505Z    |
2019-07-20T09:47:37.1880425Z    = note: for more information, see ***/issues/27812
2019-07-20T09:47:37.1881467Z    = help: add `#![feature(test)]` to the crate attributes to enable
2019-07-20T09:47:37.1881594Z error: aborting due to 2 previous errors
2019-07-20T09:47:37.1881625Z 
2019-07-20T09:47:37.1881669Z Some errors have detailed explanations: E0432, E0658.
2019-07-20T09:47:37.1882085Z For more information about an error, try `rustc --explain E0432`.
---
2019-07-20T09:47:37.1887133Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:535:22
2019-07-20T09:47:37.1887194Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-07-20T09:47:37.1892681Z 
2019-07-20T09:47:37.1892881Z 
2019-07-20T09:47:37.1901724Z 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-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-07-20T09:47:37.1902090Z 
2019-07-20T09:47:37.1902125Z 
2019-07-20T09:47:37.1905818Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-07-20T09:47:37.1905917Z Build completed unsuccessfully in 0:52:17
2019-07-20T09:47:37.1905917Z Build completed unsuccessfully in 0:52:17
2019-07-20T09:47:38.2124784Z ##[error]Bash exited with code '1'.
2019-07-20T09:47:38.2177800Z ##[section]Starting: Checkout
2019-07-20T09:47:38.2179760Z ==============================================================================
2019-07-20T09:47:38.2179820Z Task         : Get sources
2019-07-20T09:47:38.2179861Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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

@@ -12,4 +12,5 @@ use rustc_macros::HashStable;

#[derive(HashStable)]
//~^ use of unstable library feature 'rustc_private'
//~| use of unstable library feature 'rustc_private'
Copy link

Choose a reason for hiding this comment

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

is there a reason for this duplicate line?

Copy link
Member

Choose a reason for hiding this comment

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

Those directives match the start of an error message. Both error messages start the same, but then contain a different crate being loaded from the sysroot: crate "rustc_data_structures" is being from the sysroot, [...] and crate "rustc" is being from the sysroot, [...].

@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2019-07-20T10:43:44.1068299Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-07-20T10:43:44.1253621Z ##[command]git config gc.auto 0
2019-07-20T10:43:44.1334064Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-07-20T10:43:44.1380392Z ##[command]git config --get-all http.proxy
2019-07-20T10:43:44.1519672Z ##[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/62819/merge:refs/remotes/pull/62819/merge
---
2019-07-20T10:44:16.3519557Z do so (now or later) by using -b with the checkout command again. Example:
2019-07-20T10:44:16.3520023Z 
2019-07-20T10:44:16.3520488Z   git checkout -b <new-branch-name>
2019-07-20T10:44:16.3520726Z 
2019-07-20T10:44:16.3520954Z HEAD is now at 2496988c2 Merge 6ef6bd6cfb84919c77522032f7d79bccf78a86d6 into f69b07144a151f46aaee1b6230ba4160e9394562
2019-07-20T10:44:16.3666555Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-07-20T10:44:16.3670019Z ==============================================================================
2019-07-20T10:44:16.3670079Z Task         : Bash
2019-07-20T10:44:16.3670126Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-07-20T11:46:50.9560414Z .................................................................................................... 200/5841
2019-07-20T11:46:55.4597148Z .................................................................................................... 300/5841
2019-07-20T11:46:59.4098393Z .................................................................................................... 400/5841
2019-07-20T11:47:03.4129673Z .................................................................................................... 500/5841
2019-07-20T11:47:07.4474659Z ........................................................................i........................... 600/5841
2019-07-20T11:47:16.7127880Z .................................................................................................... 800/5841
2019-07-20T11:47:22.3980319Z .................................................................................................... 900/5841
2019-07-20T11:47:27.6876970Z ...................................................................................................i 1000/5841
2019-07-20T11:47:27.6876970Z ...................................................................................................i 1000/5841
2019-07-20T11:47:33.4729900Z ...........i........................................................................................ 1100/5841
2019-07-20T11:47:37.5488604Z .............................iiiii.................................................................. 1200/5841
2019-07-20T11:47:43.5460621Z .................................................................................................... 1400/5841
2019-07-20T11:47:46.2849340Z .................................................................................................... 1500/5841
2019-07-20T11:47:50.2277184Z .................................................................................................... 1600/5841
2019-07-20T11:47:52.8967197Z .................................................................................................... 1700/5841
2019-07-20T11:47:52.8967197Z .................................................................................................... 1700/5841
2019-07-20T11:47:56.4460707Z .....................................................................i.............................. 1800/5841
2019-07-20T11:48:05.4712658Z .................................................................................................... 2000/5841
2019-07-20T11:48:09.9294911Z .................................................................................................... 2100/5841
2019-07-20T11:48:13.7931246Z .................................................................................................... 2200/5841
2019-07-20T11:48:13.7931246Z .................................................................................................... 2200/5841
2019-07-20T11:48:17.7929415Z ....................................................i............................................... 2300/5841
2019-07-20T11:48:27.9188985Z .................................................................................................... 2500/5841
2019-07-20T11:48:32.1414433Z .................................................................................................... 2600/5841
2019-07-20T11:48:37.4943189Z .................................................................................................... 2700/5841
2019-07-20T11:48:41.4138395Z .................................................................................................... 2800/5841
2019-07-20T11:48:41.4138395Z .................................................................................................... 2800/5841
2019-07-20T11:48:45.9414144Z .................................................................................................... 2900/5841
2019-07-20T11:48:51.2962798Z .................................................................................................... 3000/5841
2019-07-20T11:48:55.8910995Z .................................................................................................... 3100/5841
2019-07-20T11:49:01.3217749Z .................................................................................................... 3200/5841
2019-07-20T11:49:04.9237412Z .................................................................................................... 3300/5841
2019-07-20T11:49:08.6739683Z .................................................................................................... 3400/5841
2019-07-20T11:49:13.9274267Z .................................................................................................... 3500/5841
2019-07-20T11:49:17.7560237Z ..................i................................................................................. 3600/5841
2019-07-20T11:49:21.8962203Z ............................................................................................ii...i.. 3700/5841
2019-07-20T11:49:25.9023602Z ii.................................................................................................. 3800/5841
2019-07-20T11:49:35.0466661Z .................................................................................................... 4000/5841
2019-07-20T11:49:35.0466661Z .................................................................................................... 4000/5841
2019-07-20T11:49:39.0295179Z ......ii............................................................................................ 4100/5841
2019-07-20T11:49:41.1137015Z ...........................i........................................................................ 4200/5841
2019-07-20T11:49:43.1940951Z .............................................................................................i...... 4300/5841
2019-07-20T11:49:50.4619987Z .................................................................................................... 4500/5841
2019-07-20T11:50:09.2222467Z .................................................................................................... 4600/5841
2019-07-20T11:50:12.9591277Z .................................................................................................... 4700/5841
2019-07-20T11:50:16.9922165Z .................................................................................................... 4800/5841
---
2019-07-20T11:50:52.5488208Z .................................................................................................... 5400/5841
2019-07-20T11:50:56.8073391Z .................................................................................................... 5500/5841
2019-07-20T11:51:01.1324100Z .................................................................................................... 5600/5841
2019-07-20T11:51:04.4304367Z .................................................................................................... 5700/5841
2019-07-20T11:51:07.4305903Z .................................................................................i.................. 5800/5841
2019-07-20T11:51:08.9637792Z test result: ok. 5820 passed; 0 failed; 21 ignored; 0 measured; 0 filtered out
2019-07-20T11:51:08.9637827Z 
2019-07-20T11:51:08.9702606Z  finished in 274.625
2019-07-20T11:51:08.9872532Z Check compiletest suite=run-pass mode=run-pass (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T11:51:08.9872532Z Check compiletest suite=run-pass mode=run-pass (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T11:51:09.2178889Z 
2019-07-20T11:51:09.2179143Z running 2906 tests
2019-07-20T11:51:24.8663119Z .................................................................................................... 100/2906
2019-07-20T11:51:41.1482933Z ............................................................................i....................... 200/2906
2019-07-20T11:52:07.9773061Z .................................................................................................... 400/2906
2019-07-20T11:52:20.5317830Z .................................................................................................... 500/2906
2019-07-20T11:52:35.8287235Z .................................................................................................... 600/2906
2019-07-20T11:52:58.9362553Z .................................................................................................... 700/2906
2019-07-20T11:52:58.9362553Z .................................................................................................... 700/2906
2019-07-20T11:53:14.4327882Z .................................................................................................... 800/2906
2019-07-20T11:53:26.1552169Z .................................................................................................... 900/2906
2019-07-20T11:53:45.1756499Z .................................................................................................... 1000/2906
2019-07-20T11:54:00.3242234Z .................................................................................................... 1100/2906
2019-07-20T11:54:12.3166060Z .................................................................................................... 1200/2906
2019-07-20T11:54:25.7380962Z .................................................................................................... 1300/2906
2019-07-20T11:54:43.1127384Z ........ii.......................................................................................... 1400/2906
2019-07-20T11:54:56.4036387Z .................................................................................................... 1500/2906
2019-07-20T11:55:09.8123371Z ............................................................i.......i............................... 1600/2906
2019-07-20T11:55:44.3430231Z .................................................................................................... 1800/2906
2019-07-20T11:55:44.3430231Z .................................................................................................... 1800/2906
2019-07-20T11:56:00.3003502Z ............................................................................................i....... 1900/2906
2019-07-20T11:56:20.6032876Z ................................................................i................................... 2000/2906
2019-07-20T11:57:06.5654335Z .................................................................................................... 2200/2906
2019-07-20T11:57:21.6861203Z ...................................................................................................i 2300/2906
2019-07-20T11:57:42.0605382Z i................................................................................................... 2400/2906
2019-07-20T11:57:56.7517484Z .................................................................................................... 2500/2906
---
2019-07-20T12:00:23.5423557Z  finished in 33.897
2019-07-20T12:00:23.5428814Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:00:23.5428905Z 
2019-07-20T12:00:23.5429127Z running 146 tests
2019-07-20T12:00:27.5360866Z i....iii......iii..iiii....i............................i..i................i....i.........ii.i.i..i 100/146
2019-07-20T12:00:28.8873385Z iii..............i.........iii.i......ii......
2019-07-20T12:00:28.8873938Z 
2019-07-20T12:00:28.8876430Z  finished in 5.907
2019-07-20T12:00:28.9076015Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:00:29.0780377Z 
2019-07-20T12:00:29.0780377Z 
2019-07-20T12:00:29.0780558Z running 39 tests
2019-07-20T12:00:31.3472159Z i.........i......................i.....
2019-07-20T12:00:31.3472882Z 
2019-07-20T12:00:31.3476242Z  finished in 2.440
2019-07-20T12:00:31.3674274Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:00:31.5528117Z 
2019-07-20T12:00:31.5528117Z 
2019-07-20T12:00:31.5528366Z running 9 tests
2019-07-20T12:00:31.5529256Z iiiiiiiii
2019-07-20T12:00:31.5529832Z 
2019-07-20T12:00:31.5529877Z  finished in 0.185
2019-07-20T12:00:31.5743430Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:00:31.7457603Z 
---
2019-07-20T12:00:52.0422088Z  finished in 20.122
2019-07-20T12:00:52.0422473Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:00:52.0422518Z 
2019-07-20T12:00:52.0422566Z running 122 tests
2019-07-20T12:01:18.5811554Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....i..........iiii..........i...ii...i.......ii.i 100/122
2019-07-20T12:01:23.6586886Z .i.i......iii.i.....ii
2019-07-20T12:01:23.6589736Z 
2019-07-20T12:01:23.6591992Z  finished in 31.941
2019-07-20T12:01:23.6602407Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-07-20T12:01:23.6603066Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-07-20T12:01:31.1733487Z 
2019-07-20T12:01:31.1733555Z 53 LL | #[derive(HashStable)]
2019-07-20T12:01:31.1733629Z 54    |          ^^^^^^^^^^
2019-07-20T12:01:31.1733673Z 55    |
2019-07-20T12:01:31.1734089Z +    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1734151Z 56    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1734264Z 58 error: aborting due to 7 previous errors
2019-07-20T12:01:31.1734311Z 
2019-07-20T12:01:31.1734337Z 
2019-07-20T12:01:31.1734384Z The actual stderr differed from the expected stderr.
2019-07-20T12:01:31.1734384Z The actual stderr differed from the expected stderr.
2019-07-20T12:01:31.1734745Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/hash-stable-is-unstable/hash-stable-is-unstable.stderr
2019-07-20T12:01:31.1734990Z To update references, rerun the tests and pass the `--bless` flag
2019-07-20T12:01:31.1735246Z To only update this specific test, also pass `--test-args hash-stable-is-unstable.rs`
2019-07-20T12:01:31.1735346Z error: 1 errors occurred comparing output.
2019-07-20T12:01:31.1735587Z status: exit code: 1
2019-07-20T12:01:31.1735587Z status: exit code: 1
2019-07-20T12:01:31.1736415Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui-fulldeps/hash-stable-is-unstable.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/hash-stable-is-unstable" "-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-fulldeps/hash-stable-is-unstable/auxiliary" "-A" "unused"
2019-07-20T12:01:31.1736766Z ------------------------------------------
2019-07-20T12:01:31.1736801Z 
2019-07-20T12:01:31.1737012Z ------------------------------------------
2019-07-20T12:01:31.1737057Z stderr:
2019-07-20T12:01:31.1737057Z stderr:
2019-07-20T12:01:31.1737285Z ------------------------------------------
2019-07-20T12:01:31.1737346Z error[E0601]: `main` function not found in crate `hash_stable_is_unstable`
2019-07-20T12:01:31.1737396Z    |
2019-07-20T12:01:31.1737698Z    = note: consider adding a `main` function to `/checkout/src/test/ui-fulldeps/hash-stable-is-unstable.rs`
2019-07-20T12:01:31.1737737Z 
2019-07-20T12:01:31.1738118Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_data_structures" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1738465Z    |
2019-07-20T12:01:31.1738528Z LL | extern crate rustc_data_structures;
2019-07-20T12:01:31.1738578Z    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-07-20T12:01:31.1738620Z    |
2019-07-20T12:01:31.1738620Z    |
2019-07-20T12:01:31.1738926Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1738985Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1739018Z 
2019-07-20T12:01:31.1739795Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1740215Z    |
2019-07-20T12:01:31.1741310Z LL | extern crate rustc;
2019-07-20T12:01:31.1742029Z    | ^^^^^^^^^^^^^^^^^^^
2019-07-20T12:01:31.1742076Z    |
2019-07-20T12:01:31.1742076Z    |
2019-07-20T12:01:31.1742536Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1742598Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1742633Z 
2019-07-20T12:01:31.1743020Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_macros" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1743356Z    |
2019-07-20T12:01:31.1743400Z LL | extern crate rustc_macros;
2019-07-20T12:01:31.1743464Z    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-07-20T12:01:31.1743506Z    |
2019-07-20T12:01:31.1743506Z    |
2019-07-20T12:01:31.1743784Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1743849Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1743915Z 
2019-07-20T12:01:31.1744298Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_macros" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1744615Z    |
2019-07-20T12:01:31.1744660Z LL | use rustc_macros::HashStable;
2019-07-20T12:01:31.1744707Z    |     ^^^^^^^^^^^^^^^^^^^^^^^^
2019-07-20T12:01:31.1744750Z    |
2019-07-20T12:01:31.1744750Z    |
2019-07-20T12:01:31.1745175Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1745248Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1745285Z 
2019-07-20T12:01:31.1745769Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc_data_structures" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1746114Z    |
2019-07-20T12:01:31.1746178Z LL | #[derive(HashStable)]
2019-07-20T12:01:31.1746227Z    |          ^^^^^^^^^^
2019-07-20T12:01:31.1746270Z    |
2019-07-20T12:01:31.1746270Z    |
2019-07-20T12:01:31.1747491Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1747562Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1747598Z 
2019-07-20T12:01:31.1748673Z error[E0658]: use of unstable library feature 'rustc_private': crate "rustc" is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
2019-07-20T12:01:31.1749066Z    |
2019-07-20T12:01:31.1749129Z LL | #[derive(HashStable)]
2019-07-20T12:01:31.1749174Z    |          ^^^^^^^^^^
2019-07-20T12:01:31.1749224Z    |
2019-07-20T12:01:31.1749224Z    |
2019-07-20T12:01:31.1749542Z    = note: for more information, see ***/issues/27812
2019-07-20T12:01:31.1749602Z    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
2019-07-20T12:01:31.1749698Z error: aborting due to 7 previous errors
2019-07-20T12:01:31.1749729Z 
2019-07-20T12:01:31.1749775Z Some errors have detailed explanations: E0601, E0658.
2019-07-20T12:01:31.1750027Z For more information about an error, try `rustc --explain E0601`.
---
2019-07-20T12:01:31.1752561Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:535:22
2019-07-20T12:01:31.1752628Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-07-20T12:01:31.1755739Z 
2019-07-20T12:01:31.1756509Z 
2019-07-20T12:01:31.1758650Z 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-fulldeps" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps" "--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-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-07-20T12:01:31.1759077Z 
2019-07-20T12:01:31.1759282Z 
2019-07-20T12:01:31.1760050Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-07-20T12:01:31.1760125Z Build completed unsuccessfully in 1:10:42
2019-07-20T12:01:31.1760125Z Build completed unsuccessfully in 1:10:42
2019-07-20T12:01:32.9348663Z ##[error]Bash exited with code '1'.
2019-07-20T12:01:32.9388961Z ##[section]Starting: Checkout
2019-07-20T12:01:32.9390541Z ==============================================================================
2019-07-20T12:01:32.9390595Z Task         : Get sources
2019-07-20T12:01:32.9390655Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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

@crlf0710
Copy link
Member Author

r? @oli-obk

src/libtest/lib.rs Outdated Show resolved Hide resolved
Co-Authored-By: Igor Matuszewski <Xanewok@gmail.com>
@oli-obk
Copy link
Contributor

oli-obk commented Jul 23, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Jul 23, 2019

📌 Commit 6a26b80 has been approved by oli-obk

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 23, 2019
@crlf0710
Copy link
Member Author

@oli-obk Mind roll up this too?

Centril added a commit to Centril/rust that referenced this pull request Jul 24, 2019
Display name of crate requiring rustc_private in error messages.

This is extraction and rebase of one part of rust-lang#59440 that doesn't involve external things.

r? @oli-obk
Centril added a commit to Centril/rust that referenced this pull request Jul 24, 2019
Rollup of 10 pull requests

Successful merges:

 - rust-lang#60938 (rustdoc: make #[doc(include)] relative to the containing file)
 - rust-lang#61890 (Fix some sanity checks)
 - rust-lang#62261 (Take substs into account in `conservative_is_privately_uninhabited`)
 - rust-lang#62528 (Add joining slices of slices with a slice separator, not just a single item)
 - rust-lang#62735 (Turn `#[global_allocator]` into a regular attribute macro)
 - rust-lang#62801 (Remove support for -Zlower-128bit-ops)
 - rust-lang#62808 (Revert "Disable stack probing for gnux32.")
 - rust-lang#62819 (Display name of crate requiring rustc_private in error messages.)
 - rust-lang#62904 (Disable d32 on armv6 hf targets)
 - rust-lang#62907 (Initialize the MSP430 AsmParser)

Failed merges:

r? @ghost
@jonas-schievink
Copy link
Contributor

jonas-schievink commented Jul 24, 2019

@bors r-

This needs a rebase and changes to the error message here: https://github.com/rust-lang/rust/blob/master/src/test/ui/feature-gate/rustc-private.rs

EDIT: Ah, just a --bless should be enough

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 24, 2019
@hdhoang
Copy link
Contributor

hdhoang commented Aug 2, 2019

ping from triage @crlf0710, could you address the reviewer's comment?

@crlf0710
Copy link
Member Author

crlf0710 commented Aug 2, 2019

According to recent plans for stablizing test_case etc, i think actually i'll just close this.

@crlf0710 crlf0710 closed this Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants