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

Hint use of use crate:: on invalid mod #71288

Closed
wants to merge 1 commit into from

Conversation

kornelski
Copy link
Contributor

Next step in #69492

It's not feasible to know at this stage of parsing what other modules exists, so the help string is speculative unfortunately.

The goal is to help users who assumed mod foo; works the same way as #include "foo" or require("foo"), and should have used use crate::foo instead.

@rust-highfive
Copy link
Collaborator

r? @cramertj

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 18, 2020
@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2020-04-18T16:19:00.6570812Z ========================== Starting Command Output ===========================
2020-04-18T16:19:00.6573865Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/d1aa127b-d5f7-4a40-adb7-fa3889df2788.sh
2020-04-18T16:19:00.6574254Z 
2020-04-18T16:19:00.6578843Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-18T16:19:00.6597279Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T16:19:00.6601695Z Task         : Get sources
2020-04-18T16:19:00.6601982Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T16:19:00.6602251Z Version      : 1.0.0
2020-04-18T16:19:00.6602436Z Author       : Microsoft
---
2020-04-18T16:19:01.6436623Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-18T16:19:01.6446032Z ##[command]git config gc.auto 0
2020-04-18T16:19:01.6452063Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-18T16:19:01.6457664Z ##[command]git config --get-all http.proxy
2020-04-18T16:19:01.6468374Z ##[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/71288/merge:refs/remotes/pull/71288/merge
---
2020-04-18T16:21:56.5121056Z  ---> 318032b5f0e2
2020-04-18T16:21:56.5121741Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-18T16:21:56.5122290Z  ---> Using cache
2020-04-18T16:21:56.5122602Z  ---> d44a858fd1ce
2020-04-18T16:21:56.5123453Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-18T16:21:56.5127336Z  ---> 58b910f50f5a
2020-04-18T16:21:56.5127548Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-18T16:21:56.5127868Z  ---> Using cache
2020-04-18T16:21:56.5128166Z  ---> ee7702aadba1
---
2020-04-18T16:21:57.1930059Z Looks like docker image is the same as before, not uploading
2020-04-18T16:22:02.8642646Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-18T16:22:02.8989508Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-18T16:22:02.9016480Z == clock drift check ==
2020-04-18T16:22:02.9026118Z   local time: Sat Apr 18 16:22:02 UTC 2020
2020-04-18T16:22:03.2276940Z   network time: Sat, 18 Apr 2020 16:22:03 GMT
2020-04-18T16:22:03.2298088Z Starting sccache server...
2020-04-18T16:22:03.3009912Z configure: processing command line
2020-04-18T16:22:03.3018767Z configure: 
2020-04-18T16:22:03.3019849Z configure: rust.dist-src        := False
---
2020-04-18T16:26:36.8380098Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T16:26:38.0822781Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T16:26:39.4462453Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T16:26:40.0825897Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T16:26:48.1725645Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T16:26:49.8923457Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T16:26:53.7344833Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T16:26:57.4141630Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T16:27:05.8684768Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T16:47:34.8670117Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T16:47:36.3499505Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T16:47:38.0420382Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T16:47:38.0684538Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T16:47:47.9455491Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T16:47:49.8610743Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T16:47:54.2746495Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T16:47:58.4447825Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T16:48:08.3679740Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T17:09:01.3688370Z .................................................................................................... 1700/9905
2020-04-18T17:09:05.0962560Z .................................................................................................... 1800/9905
2020-04-18T17:09:13.4253143Z .................................................................................................i.. 1900/9905
2020-04-18T17:09:20.4642862Z .................................................................................................... 2000/9905
2020-04-18T17:09:26.2717064Z .......................................................................................iiiii........ 2100/9905
2020-04-18T17:09:43.9944702Z .................................................................................................... 2300/9905
2020-04-18T17:09:45.9666005Z .................................................................................................... 2400/9905
2020-04-18T17:09:48.0416602Z .................................................................................................... 2500/9905
2020-04-18T17:09:53.5381249Z .................................................................................................... 2600/9905
---
2020-04-18T17:12:25.2173069Z .................................................................................................... 4900/9905
2020-04-18T17:12:29.7910625Z ...............................................................i...............i.................... 5000/9905
2020-04-18T17:12:36.5737824Z .................................................................................................... 5100/9905
2020-04-18T17:12:42.9109452Z .................................................................................................... 5200/9905
2020-04-18T17:12:47.6385182Z .........i.........................................................................................i 5300/9905
2020-04-18T17:12:56.6867802Z ...................................................................................................i 5400/9905
2020-04-18T17:13:01.1546307Z i.ii........i...i................................................................................... 5500/9905
2020-04-18T17:13:08.3450269Z .............................................i...................................................... 5700/9905
2020-04-18T17:13:16.6752312Z .............................................................................ii..................... 5800/9905
2020-04-18T17:13:22.9854874Z ................i................................................................................... 5900/9905
2020-04-18T17:13:27.9564527Z .................................................................................................... 6000/9905
2020-04-18T17:13:27.9564527Z .................................................................................................... 6000/9905
2020-04-18T17:13:37.5829497Z .................................................................................................... 6100/9905
2020-04-18T17:13:47.4140251Z ..........ii...i..ii...........i.................................................................... 6200/9905
2020-04-18T17:14:01.8145416Z .................................................................................................... 6400/9905
2020-04-18T17:14:04.9357949Z .................................................................................................... 6500/9905
2020-04-18T17:14:04.9357949Z .................................................................................................... 6500/9905
2020-04-18T17:14:14.9840678Z ........................................i..ii....................................................... 6600/9905
2020-04-18T17:14:34.4483708Z .................................................................................................... 6800/9905
2020-04-18T17:14:36.3419944Z .........................................i.......................................................... 6900/9905
2020-04-18T17:14:38.2209266Z .................................................................................................... 7000/9905
2020-04-18T17:14:40.1588775Z .................................................................................i.F................ 7100/9905
---
2020-04-18T17:16:05.2913930Z .................................................................................................... 7800/9905
2020-04-18T17:16:09.3542892Z .................................................................................................... 7900/9905
2020-04-18T17:16:15.4094598Z .................................................................................................... 8000/9905
2020-04-18T17:16:20.8092639Z ...............................................i.................................................... 8100/9905
2020-04-18T17:16:29.8741004Z ................................................................................................iiii 8200/9905
2020-04-18T17:16:35.0668551Z ii.iiiii.i.......................................................................................... 8300/9905
2020-04-18T17:16:47.3047893Z .................................................................................................... 8500/9905
2020-04-18T17:16:54.9608629Z .................................................................................................... 8600/9905
2020-04-18T17:17:08.0696402Z .................................................................................................... 8700/9905
2020-04-18T17:17:14.9884394Z .................................................................................................... 8800/9905
---
2020-04-18T17:18:56.7909090Z failures:
2020-04-18T17:18:56.7942676Z 
2020-04-18T17:18:56.7943518Z ---- [ui] ui/parser/mod_file_not_exist.rs stdout ----
2020-04-18T17:18:56.7943825Z 
2020-04-18T17:18:56.7944774Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:3: unexpected help message: '3:1: 3:21: to create the module `not_a_real_file` here, create file "/checkout/src/test/ui/parser/not_a_real_file.rs"'
2020-04-18T17:18:56.7945322Z 
2020-04-18T17:18:56.7946279Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:3: unexpected help message: '3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead'
2020-04-18T17:18:56.7946852Z 
2020-04-18T17:18:56.8013729Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:3: expected help message not found: to create the module `not_a_real_file`, create file
2020-04-18T17:18:56.8014258Z error: 2 unexpected errors found, 1 expected errors not found
2020-04-18T17:18:56.8021215Z status: exit code: 1
2020-04-18T17:18:56.8021215Z status: exit code: 1
2020-04-18T17:18:56.8023385Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/parser/mod_file_not_exist.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist/auxiliary"
2020-04-18T17:18:56.8024726Z     Error {
2020-04-18T17:18:56.8024914Z         line_num: 3,
2020-04-18T17:18:56.8025096Z         kind: Some(
2020-04-18T17:18:56.8025265Z             Help,
2020-04-18T17:18:56.8025265Z             Help,
2020-04-18T17:18:56.8025431Z         ),
2020-04-18T17:18:56.8025774Z         msg: "3:1: 3:21: to create the module `not_a_real_file` here, create file \"/checkout/src/test/ui/parser/not_a_real_file.rs\"",
2020-04-18T17:18:56.8026456Z     Error {
2020-04-18T17:18:56.8026619Z         line_num: 3,
2020-04-18T17:18:56.8026800Z         kind: Some(
2020-04-18T17:18:56.8026986Z             Help,
2020-04-18T17:18:56.8026986Z             Help,
2020-04-18T17:18:56.8027136Z         ),
2020-04-18T17:18:56.8027510Z         msg: "3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead",
2020-04-18T17:18:56.8028013Z ]
2020-04-18T17:18:56.8028108Z 
2020-04-18T17:18:56.8028482Z not found errors (from test file): [
2020-04-18T17:18:56.8028687Z     Error {
2020-04-18T17:18:56.8028687Z     Error {
2020-04-18T17:18:56.8028840Z         line_num: 3,
2020-04-18T17:18:56.8029008Z         kind: Some(
2020-04-18T17:18:56.8029180Z             Help,
2020-04-18T17:18:56.8029320Z         ),
2020-04-18T17:18:56.8029532Z         msg: "to create the module `not_a_real_file`, create file",
2020-04-18T17:18:56.8029870Z ]
2020-04-18T17:18:56.8029957Z 
2020-04-18T17:18:56.8030505Z thread '[ui] ui/parser/mod_file_not_exist.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:1460:13
2020-04-18T17:18:56.8030909Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---
2020-04-18T17:18:56.8032308Z 
2020-04-18T17:18:56.8032752Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-18T17:18:56.8032963Z 
2020-04-18T17:18:56.8033048Z 
2020-04-18T17:18:56.8036173Z 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-8/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "8.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-18T17:18:56.8039990Z 
2020-04-18T17:18:56.8040079Z 
2020-04-18T17:18:56.8040612Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-18T17:18:56.8040924Z Build completed unsuccessfully in 0:55:28
2020-04-18T17:18:56.8040924Z Build completed unsuccessfully in 0:55:28
2020-04-18T17:18:56.8041662Z == clock drift check ==
2020-04-18T17:18:56.8057786Z   local time: Sat Apr 18 17:18:56 UTC 2020
2020-04-18T17:18:56.9731589Z   network time: Sat, 18 Apr 2020 17:18:56 GMT
2020-04-18T17:18:57.4470788Z 
2020-04-18T17:18:57.4470788Z 
2020-04-18T17:18:57.4546688Z ##[error]Bash exited with code '1'.
2020-04-18T17:18:57.4560917Z ##[section]Finishing: Run build
2020-04-18T17:18:57.4612722Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T17:18:57.4617641Z Task         : Get sources
2020-04-18T17:18:57.4617969Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T17:18:57.4618255Z Version      : 1.0.0
2020-04-18T17:18:57.4618459Z Author       : Microsoft
2020-04-18T17:18:57.4618459Z Author       : Microsoft
2020-04-18T17:18:57.4618804Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-18T17:18:57.4619162Z ==============================================================================
2020-04-18T17:18:57.7832089Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-18T17:18:57.7887810Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T17:18:57.8017675Z Cleaning up task key
2020-04-18T17:18:57.8018912Z Start cleaning up orphan processes.
2020-04-18T17:18:57.8193907Z Terminate orphan process: pid (3682) (python)
2020-04-18T17:18:57.8348934Z ##[section]Finishing: Finalize Job

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

@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2020-04-18T17:43:16.9573217Z ========================== Starting Command Output ===========================
2020-04-18T17:43:16.9575186Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/3c59b34f-0fb1-4a0f-8c67-163c32790bd3.sh
2020-04-18T17:43:16.9575366Z 
2020-04-18T17:43:16.9579127Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-18T17:43:16.9598119Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T17:43:16.9602118Z Task         : Get sources
2020-04-18T17:43:16.9602336Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T17:43:16.9602549Z Version      : 1.0.0
2020-04-18T17:43:16.9602739Z Author       : Microsoft
---
2020-04-18T17:43:18.2216267Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-18T17:43:18.2223560Z ##[command]git config gc.auto 0
2020-04-18T17:43:18.2229513Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-18T17:43:18.2234650Z ##[command]git config --get-all http.proxy
2020-04-18T17:43:18.2245119Z ##[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/71288/merge:refs/remotes/pull/71288/merge
---
2020-04-18T17:45:21.4662255Z  ---> 318032b5f0e2
2020-04-18T17:45:21.4663670Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-18T17:45:21.4667013Z  ---> Using cache
2020-04-18T17:45:21.4667519Z  ---> d44a858fd1ce
2020-04-18T17:45:21.4668980Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-18T17:45:21.4671316Z  ---> 58b910f50f5a
2020-04-18T17:45:21.4671468Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-18T17:45:21.4674509Z  ---> Using cache
2020-04-18T17:45:21.4674794Z  ---> ee7702aadba1
---
2020-04-18T17:45:21.5020709Z Looks like docker image is the same as before, not uploading
2020-04-18T17:45:29.2952176Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-18T17:45:29.3235679Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-18T17:45:29.3264450Z == clock drift check ==
2020-04-18T17:45:29.3271716Z   local time: Sat Apr 18 17:45:29 UTC 2020
2020-04-18T17:45:29.4047118Z   network time: Sat, 18 Apr 2020 17:45:29 GMT
2020-04-18T17:45:29.4071606Z Starting sccache server...
2020-04-18T17:45:29.4807510Z configure: processing command line
2020-04-18T17:45:29.4808073Z configure: 
2020-04-18T17:45:29.4809012Z configure: rust.dist-src        := False
---
2020-04-18T17:50:18.2560601Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T17:50:19.6538212Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T17:50:21.1133967Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T17:50:22.9051344Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T17:50:30.4267587Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T17:50:33.8473383Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T17:50:38.0268575Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T17:50:42.0295393Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T17:50:49.8682598Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T18:11:30.2312804Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T18:11:31.6928437Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T18:11:33.3379302Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T18:11:34.2889461Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T18:11:43.2610959Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T18:11:46.1636071Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T18:11:50.4126520Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T18:11:54.5534328Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T18:12:03.6122227Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T18:32:54.1359959Z .................................................................................................... 1700/9906
2020-04-18T18:32:57.7421683Z .................................................................................................... 1800/9906
2020-04-18T18:33:05.4283800Z .................................................................................................i.. 1900/9906
2020-04-18T18:33:12.6659070Z .................................................................................................... 2000/9906
2020-04-18T18:33:18.5090779Z .......................................................................................iiiii........ 2100/9906
2020-04-18T18:33:36.0050128Z .................................................................................................... 2300/9906
2020-04-18T18:33:37.9955929Z .................................................................................................... 2400/9906
2020-04-18T18:33:40.0805159Z .................................................................................................... 2500/9906
2020-04-18T18:33:45.4072613Z .................................................................................................... 2600/9906
---
2020-04-18T18:36:12.5516222Z .................................................................................................... 4900/9906
2020-04-18T18:36:17.0396521Z ...............................................................i...............i.................... 5000/9906
2020-04-18T18:36:23.5853676Z .................................................................................................... 5100/9906
2020-04-18T18:36:29.7422666Z .................................................................................................... 5200/9906
2020-04-18T18:36:34.2696549Z .........i.........................................................................................i 5300/9906
2020-04-18T18:36:42.8577397Z ...................................................................................................i 5400/9906
2020-04-18T18:36:47.0911421Z i.ii........i...i................................................................................... 5500/9906
2020-04-18T18:36:53.9520424Z ..............................................i..................................................... 5700/9906
2020-04-18T18:37:01.8899006Z ..............................................................................ii.................... 5800/9906
2020-04-18T18:37:08.0869220Z .................i.................................................................................. 5900/9906
2020-04-18T18:37:12.8981134Z .................................................................................................... 6000/9906
2020-04-18T18:37:12.8981134Z .................................................................................................... 6000/9906
2020-04-18T18:37:22.8236420Z .................................................................................................... 6100/9906
2020-04-18T18:37:32.5411918Z ...........ii...i..ii...........i................................................................... 6200/9906
2020-04-18T18:37:46.8793583Z .................................................................................................... 6400/9906
2020-04-18T18:37:52.6778908Z .................................................................................................... 6500/9906
2020-04-18T18:37:52.6778908Z .................................................................................................... 6500/9906
2020-04-18T18:38:09.0487255Z .........................................i..ii...................................................... 6600/9906
2020-04-18T18:38:28.3789567Z .................................................................................................... 6800/9906
2020-04-18T18:38:30.2414915Z ..........................................i......................................................... 6900/9906
2020-04-18T18:38:32.1007425Z .................................................................................................... 7000/9906
2020-04-18T18:38:33.9443297Z ..................................................................................i.F............... 7100/9906
---
2020-04-18T18:39:56.6638720Z .................................................................................................... 7800/9906
2020-04-18T18:40:00.5566380Z .................................................................................................... 7900/9906
2020-04-18T18:40:06.5203127Z .................................................................................................... 8000/9906
2020-04-18T18:40:11.7224632Z ................................................i................................................... 8100/9906
2020-04-18T18:40:20.5733538Z .................................................................................................iii 8200/9906
2020-04-18T18:40:25.4748943Z iii.iiiii.i......................................................................................... 8300/9906
2020-04-18T18:40:37.2210373Z .................................................................................................... 8500/9906
2020-04-18T18:40:44.4638799Z .................................................................................................... 8600/9906
2020-04-18T18:40:56.7619527Z .................................................................................................... 8700/9906
2020-04-18T18:41:02.6634747Z .................................................................................................... 8800/9906
---
2020-04-18T18:42:38.7287669Z failures:
2020-04-18T18:42:38.7337770Z 
2020-04-18T18:42:38.7338786Z ---- [ui] ui/parser/mod_file_not_exist.rs stdout ----
2020-04-18T18:42:38.7339337Z 
2020-04-18T18:42:38.7340246Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:3: unexpected help message: '3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead'
2020-04-18T18:42:38.7341226Z error: 1 unexpected errors found, 0 expected errors not found
2020-04-18T18:42:38.7341601Z status: exit code: 1
2020-04-18T18:42:38.7341601Z status: exit code: 1
2020-04-18T18:42:38.7343466Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/parser/mod_file_not_exist.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist/auxiliary"
2020-04-18T18:42:38.7344907Z     Error {
2020-04-18T18:42:38.7345187Z         line_num: 3,
2020-04-18T18:42:38.7345492Z         kind: Some(
2020-04-18T18:42:38.7345769Z             Help,
2020-04-18T18:42:38.7345769Z             Help,
2020-04-18T18:42:38.7346041Z         ),
2020-04-18T18:42:38.7346535Z         msg: "3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead",
2020-04-18T18:42:38.7347489Z ]
2020-04-18T18:42:38.7347799Z 
2020-04-18T18:42:38.7348560Z thread '[ui] ui/parser/mod_file_not_exist.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:1460:13
2020-04-18T18:42:38.7349300Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---
2020-04-18T18:42:38.7351719Z 
2020-04-18T18:42:38.7365730Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-18T18:42:38.7383916Z 
2020-04-18T18:42:38.7385104Z 
2020-04-18T18:42:38.7389556Z 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-8/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "8.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-18T18:42:38.7393858Z 
2020-04-18T18:42:38.7394048Z 
2020-04-18T18:42:38.7394803Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-18T18:42:38.7395368Z Build completed unsuccessfully in 0:55:42
2020-04-18T18:42:38.7395368Z Build completed unsuccessfully in 0:55:42
2020-04-18T18:42:38.7439480Z == clock drift check ==
2020-04-18T18:42:38.7455821Z   local time: Sat Apr 18 18:42:38 UTC 2020
2020-04-18T18:42:38.8578061Z   network time: Sat, 18 Apr 2020 18:42:38 GMT
2020-04-18T18:42:39.2616512Z 
2020-04-18T18:42:39.2616512Z 
2020-04-18T18:42:39.2669042Z ##[error]Bash exited with code '1'.
2020-04-18T18:42:39.2680095Z ##[section]Finishing: Run build
2020-04-18T18:42:39.2722685Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T18:42:39.2727945Z Task         : Get sources
2020-04-18T18:42:39.2728186Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T18:42:39.2728420Z Version      : 1.0.0
2020-04-18T18:42:39.2728575Z Author       : Microsoft
2020-04-18T18:42:39.2728575Z Author       : Microsoft
2020-04-18T18:42:39.2728825Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-18T18:42:39.2729122Z ==============================================================================
2020-04-18T18:42:39.5696642Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-18T18:42:39.5748058Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T18:42:39.5828081Z Cleaning up task key
2020-04-18T18:42:39.5829100Z Start cleaning up orphan processes.
2020-04-18T18:42:39.6212952Z Terminate orphan process: pid (4064) (python)
2020-04-18T18:42:39.6253104Z ##[section]Finishing: Finalize Job

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

@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2020-04-18T21:45:10.0380753Z ========================== Starting Command Output ===========================
2020-04-18T21:45:10.0386027Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/2825a1f4-238d-4556-ae83-43f57a2e6e9b.sh
2020-04-18T21:45:10.0386500Z 
2020-04-18T21:45:10.0391372Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-18T21:45:10.0411901Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T21:45:10.0415454Z Task         : Get sources
2020-04-18T21:45:10.0415756Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T21:45:10.0416049Z Version      : 1.0.0
2020-04-18T21:45:10.0416249Z Author       : Microsoft
---
2020-04-18T21:45:11.6574217Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-18T21:45:11.6586087Z ##[command]git config gc.auto 0
2020-04-18T21:45:11.6592359Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-18T21:45:11.6598890Z ##[command]git config --get-all http.proxy
2020-04-18T21:45:11.6612889Z ##[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/71288/merge:refs/remotes/pull/71288/merge
---
2020-04-18T21:47:41.4947874Z  ---> 78ad2f4d4aca
2020-04-18T21:47:41.4948263Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-18T21:47:41.4948757Z  ---> Using cache
2020-04-18T21:47:41.4949111Z  ---> 4d2dc61c4d00
2020-04-18T21:47:41.4950521Z Step 7/7 : ENV SCRIPT python3 ../x.py test src/tools/expand-yaml-anchors &&            python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python3 ../x.py build --stage 0 src/tools/build-manifest &&            python3 ../x.py test --stage 0 src/tools/compiletest &&            python3 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-18T21:47:41.4951933Z  ---> 776b6266a8b7
2020-04-18T21:47:41.4991570Z Successfully built 776b6266a8b7
2020-04-18T21:47:41.5043526Z Successfully tagged rust-ci:latest
2020-04-18T21:47:41.5382323Z Built container sha256:776b6266a8b7d63e2d3c2b5a784dbf521184a904fb10bf818c6b5c7e1ab74d4a
2020-04-18T21:47:41.5382323Z Built container sha256:776b6266a8b7d63e2d3c2b5a784dbf521184a904fb10bf818c6b5c7e1ab74d4a
2020-04-18T21:47:41.5402889Z Looks like docker image is the same as before, not uploading
2020-04-18T21:47:48.1513417Z [CI_JOB_NAME=mingw-check]
2020-04-18T21:47:48.1793656Z [CI_JOB_NAME=mingw-check]
2020-04-18T21:47:48.1835050Z == clock drift check ==
2020-04-18T21:47:48.1846065Z   local time: Sat Apr 18 21:47:48 UTC 2020
2020-04-18T21:47:48.3771622Z   network time: Sat, 18 Apr 2020 21:47:48 GMT
2020-04-18T21:47:48.3796631Z Starting sccache server...
2020-04-18T21:47:48.5089259Z configure: processing command line
2020-04-18T21:47:48.5089830Z configure: 
2020-04-18T21:47:48.5090748Z configure: rust.parallel-compiler := True
---
2020-04-18T21:51:49.4234409Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T21:51:49.4422688Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T21:51:49.6404985Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T21:51:49.8574616Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T21:51:50.3119355Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T21:51:52.7453893Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T21:51:53.2628699Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T21:51:55.4463234Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T21:51:55.9218960Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T21:53:50.2729617Z configure: rust.debug-assertions := True
2020-04-18T21:53:50.2730113Z configure: rust.codegen-units-std := 1
2020-04-18T21:53:50.2730576Z configure: rust.verify-llvm-ir  := True
2020-04-18T21:53:50.2730864Z configure: build.submodules     := False
2020-04-18T21:53:50.2731503Z configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
2020-04-18T21:53:50.2732062Z configure: writing `config.toml` in current directory
2020-04-18T21:53:50.2732323Z configure: 
2020-04-18T21:53:50.2732745Z configure: run `python /checkout/x.py --help`
2020-04-18T21:53:50.2732968Z configure: 
---
2020-04-18T21:55:27.0029520Z Hugepagesize:       2048 kB
2020-04-18T21:55:27.0029745Z DirectMap4k:      139200 kB
2020-04-18T21:55:27.0029969Z DirectMap2M:     4055040 kB
2020-04-18T21:55:27.0030210Z DirectMap1G:     5242880 kB
2020-04-18T21:55:27.0046507Z + python3 ../x.py test src/tools/expand-yaml-anchors
2020-04-18T21:55:28.5253114Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-18T21:55:28.5253114Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-18T21:55:28.5259122Z Building stage0 tool expand-yaml-anchors (x86_64-unknown-linux-gnu)
2020-04-18T21:55:28.7604030Z    Compiling unicode-xid v0.2.0
2020-04-18T21:55:28.8805013Z    Compiling syn v1.0.11
2020-04-18T21:55:29.7936421Z    Compiling linked-hash-map v0.5.2
2020-04-18T21:55:29.8399362Z    Compiling lazy_static v1.4.0
2020-04-18T21:55:29.8399362Z    Compiling lazy_static v1.4.0
2020-04-18T21:55:30.0524435Z    Compiling yaml-rust v0.4.3
2020-04-18T21:55:34.7350369Z    Compiling quote v1.0.2
2020-04-18T21:55:50.4377022Z    Compiling thiserror-impl v1.0.5
2020-04-18T21:55:55.5440668Z    Compiling thiserror v1.0.5
2020-04-18T21:55:55.6017525Z    Compiling yaml-merge-keys v0.4.0
2020-04-18T21:55:56.8634947Z    Compiling expand-yaml-anchors v0.1.0 (/checkout/src/tools/expand-yaml-anchors)
2020-04-18T21:55:58.5758725Z Build completed successfully in 0:00:31
2020-04-18T21:55:58.5843605Z + python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu
2020-04-18T21:55:58.8742381Z     Finished dev [unoptimized] target(s) in 0.20s
2020-04-18T21:56:00.0458686Z Checking rustdoc artifacts (x86_64-unknown-linux-gnu -> i686-pc-windows-gnu)
---
2020-04-18T21:58:15.4778155Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-18T21:58:15.8985075Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-18T21:58:15.9613439Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-18T21:58:16.1090360Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-18T21:58:16.6182420Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-18T21:58:19.2050391Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-18T21:58:19.7141828Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-18T21:58:21.8685613Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-18T21:58:22.3544964Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-18T22:02:16.7992666Z    Compiling cargo_metadata v0.9.1
2020-04-18T22:02:21.5498945Z    Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
2020-04-18T22:02:32.7803176Z     Finished release [optimized] target(s) in 26.47s
2020-04-18T22:02:32.7893286Z tidy check
2020-04-18T22:02:38.7122584Z tidy error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:5: line longer than 100 chars
2020-04-18T22:02:38.8647130Z tidy error: /checkout/src/test/ui/parser/mod_file_not_exist_windows.rs:5: line longer than 100 chars
2020-04-18T22:02:41.9727585Z some tidy checks failed
2020-04-18T22:02:41.9731387Z Found 490 error codes
2020-04-18T22:02:41.9731925Z Found 0 error codes with no tests
2020-04-18T22:02:41.9732339Z Done!
2020-04-18T22:02:41.9732339Z Done!
2020-04-18T22:02:41.9732697Z 
2020-04-18T22:02:41.9733029Z 
2020-04-18T22:02:41.9737419Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo"
2020-04-18T22:02:41.9738902Z 
2020-04-18T22:02:41.9739220Z 
2020-04-18T22:02:41.9742390Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2020-04-18T22:02:41.9743087Z Build completed unsuccessfully in 0:00:37
2020-04-18T22:02:41.9743087Z Build completed unsuccessfully in 0:00:37
2020-04-18T22:02:41.9851081Z == clock drift check ==
2020-04-18T22:02:41.9871074Z   local time: Sat Apr 18 22:02:41 UTC 2020
2020-04-18T22:02:42.1072659Z   network time: Sat, 18 Apr 2020 22:02:42 GMT
2020-04-18T22:02:43.6519225Z 
2020-04-18T22:02:43.6519225Z 
2020-04-18T22:02:43.6604611Z ##[error]Bash exited with code '1'.
2020-04-18T22:02:43.6628852Z ##[section]Finishing: Run build
2020-04-18T22:02:43.6709377Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T22:02:43.6715763Z Task         : Get sources
2020-04-18T22:02:43.6716120Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-18T22:02:43.6716443Z Version      : 1.0.0
2020-04-18T22:02:43.6716701Z Author       : Microsoft
2020-04-18T22:02:43.6716701Z Author       : Microsoft
2020-04-18T22:02:43.6717056Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-18T22:02:43.6717450Z ==============================================================================
2020-04-18T22:02:44.0401199Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-18T22:02:44.0444185Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-18T22:02:44.0539256Z Cleaning up task key
2020-04-18T22:02:44.0540557Z Start cleaning up orphan processes.
2020-04-18T22:02:44.0740786Z Terminate orphan process: pid (4392) (python)
2020-04-18T22:02:44.0979776Z ##[section]Finishing: Finalize Job

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

@kornelski kornelski force-pushed the E0583 branch 2 times, most recently from ec54700 to 5e89c5c Compare April 19, 2020 11:32
@rust-highfive
Copy link
Collaborator

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

Click to expand the log.
2020-04-19T11:33:05.0231226Z ========================== Starting Command Output ===========================
2020-04-19T11:33:05.0233385Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/c7b1ab29-8d2e-490b-add6-af916723a244.sh
2020-04-19T11:33:05.0233601Z 
2020-04-19T11:33:05.0238861Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-19T11:33:05.0262413Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-19T11:33:05.0266459Z Task         : Get sources
2020-04-19T11:33:05.0266837Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-19T11:33:05.0267228Z Version      : 1.0.0
2020-04-19T11:33:05.0267479Z Author       : Microsoft
---
2020-04-19T11:33:06.2922614Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-19T11:33:06.2929563Z ##[command]git config gc.auto 0
2020-04-19T11:33:06.2932530Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-19T11:33:06.2935091Z ##[command]git config --get-all http.proxy
2020-04-19T11:33:06.2941267Z ##[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/71288/merge:refs/remotes/pull/71288/merge
---
2020-04-19T11:35:01.6518189Z  ---> 318032b5f0e2
2020-04-19T11:35:01.6519161Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-19T11:35:01.6519764Z  ---> Using cache
2020-04-19T11:35:01.6520083Z  ---> d44a858fd1ce
2020-04-19T11:35:01.6521147Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-19T11:35:01.6522155Z  ---> 58b910f50f5a
2020-04-19T11:35:01.6522488Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-19T11:35:01.6522842Z  ---> Using cache
2020-04-19T11:35:01.6523157Z  ---> ee7702aadba1
---
2020-04-19T11:35:01.6861714Z Looks like docker image is the same as before, not uploading
2020-04-19T11:35:09.5937395Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-19T11:35:09.6278147Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-19T11:35:09.6310474Z == clock drift check ==
2020-04-19T11:35:09.6341790Z   local time: Sun Apr 19 11:35:09 UTC 2020
2020-04-19T11:35:09.9006046Z   network time: Sun, 19 Apr 2020 11:35:09 GMT
2020-04-19T11:35:09.9029610Z Starting sccache server...
2020-04-19T11:35:09.9781913Z configure: processing command line
2020-04-19T11:35:09.9782141Z configure: 
2020-04-19T11:35:09.9786193Z configure: rust.dist-src        := False
---
2020-04-19T11:39:45.5589754Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-19T11:39:46.8313420Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-19T11:39:48.2149065Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-19T11:39:49.0663639Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-19T11:39:56.9382093Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-19T11:39:59.0512462Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-19T11:40:02.8490865Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-19T11:40:06.4900798Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-19T11:40:14.8953016Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-19T11:59:44.8041298Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-19T11:59:46.2181268Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-19T11:59:47.8582158Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-19T11:59:48.0163756Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-19T11:59:57.2966718Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-19T11:59:59.2595732Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-19T12:00:03.3704588Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-19T12:00:07.3401343Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-19T12:00:16.4791691Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-19T12:20:35.6906386Z .................................................................................................... 1700/9907
2020-04-19T12:20:39.2699864Z .................................................................................................... 1800/9907
2020-04-19T12:20:46.8138642Z ..................................................................................................i. 1900/9907
2020-04-19T12:20:53.6770989Z .................................................................................................... 2000/9907
2020-04-19T12:20:59.2302365Z ........................................................................................iiiii....... 2100/9907
2020-04-19T12:21:16.4836825Z .................................................................................................... 2300/9907
2020-04-19T12:21:18.4434129Z .................................................................................................... 2400/9907
2020-04-19T12:21:20.4422175Z .................................................................................................... 2500/9907
2020-04-19T12:21:25.8678554Z .................................................................................................... 2600/9907
---
2020-04-19T12:23:55.9592616Z ................................................................i...............i................... 5000/9907
2020-04-19T12:24:02.6617010Z .................................................................................................... 5100/9907
2020-04-19T12:24:08.6902517Z .................................................................................................... 5200/9907
2020-04-19T12:24:13.2057244Z ..........i......................................................................................... 5300/9907
2020-04-19T12:24:21.7552630Z i................................................................................................... 5400/9907
2020-04-19T12:24:26.0542145Z ii.ii........i...i.................................................................................. 5500/9907
2020-04-19T12:24:32.8396617Z ...............................................i.................................................... 5700/9907
2020-04-19T12:24:40.7094754Z ...............................................................................ii................... 5800/9907
2020-04-19T12:24:46.9306548Z ..................i................................................................................. 5900/9907
2020-04-19T12:24:51.6648421Z .................................................................................................... 6000/9907
2020-04-19T12:24:51.6648421Z .................................................................................................... 6000/9907
2020-04-19T12:25:01.2161028Z .................................................................................................... 6100/9907
2020-04-19T12:25:10.8548824Z ............ii...i..i.i..........i.................................................................. 6200/9907
2020-04-19T12:25:24.3851897Z .................................................................................................... 6400/9907
2020-04-19T12:25:27.6115830Z .................................................................................................... 6500/9907
2020-04-19T12:25:27.6115830Z .................................................................................................... 6500/9907
2020-04-19T12:25:37.6577470Z ..........................................i..ii..................................................... 6600/9907
2020-04-19T12:25:58.4106976Z .................................................................................................... 6800/9907
2020-04-19T12:26:00.5442164Z ...........................................i........................................................ 6900/9907
2020-04-19T12:26:02.6039859Z .................................................................................................... 7000/9907
2020-04-19T12:26:04.7597383Z ...................................................................................i.F.............. 7100/9907
---
2020-04-19T12:27:31.3799814Z .................................................................................................... 7800/9907
2020-04-19T12:27:35.6371108Z .................................................................................................... 7900/9907
2020-04-19T12:27:41.6349471Z .................................................................................................... 8000/9907
2020-04-19T12:27:46.8404615Z .................................................i.................................................. 8100/9907
2020-04-19T12:27:56.0934420Z ..................................................................................................ii 8200/9907
2020-04-19T12:28:01.0271813Z iiii.iiiii.i........................................................................................ 8300/9907
2020-04-19T12:28:13.1802133Z .................................................................................................... 8500/9907
2020-04-19T12:28:20.4415962Z .................................................................................................... 8600/9907
2020-04-19T12:28:32.5932160Z .................................................................................................... 8700/9907
2020-04-19T12:28:38.5431893Z .................................................................................................... 8800/9907
---
2020-04-19T12:30:13.4302387Z failures:
2020-04-19T12:30:13.4328523Z 
2020-04-19T12:30:13.4329057Z ---- [ui] ui/parser/mod_file_not_exist.rs stdout ----
2020-04-19T12:30:13.4329315Z 
2020-04-19T12:30:13.4329921Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:3: unexpected help message: '3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead'
2020-04-19T12:30:13.4330266Z 
2020-04-19T12:30:13.4330531Z error: /checkout/src/test/ui/parser/mod_file_not_exist.rs:4: expected help message not found: if there is `mod not_a_real_file` elsewhere in the crate already
2020-04-19T12:30:13.4330933Z error: 1 unexpected errors found, 1 expected errors not found
2020-04-19T12:30:13.4331103Z status: exit code: 1
2020-04-19T12:30:13.4331103Z status: exit code: 1
2020-04-19T12:30:13.4332367Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/parser/mod_file_not_exist.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/parser/mod_file_not_exist/auxiliary"
2020-04-19T12:30:13.4333605Z     Error {
2020-04-19T12:30:13.4333743Z         line_num: 3,
2020-04-19T12:30:13.4333891Z         kind: Some(
2020-04-19T12:30:13.4334029Z             Help,
2020-04-19T12:30:13.4334029Z             Help,
2020-04-19T12:30:13.4334165Z         ),
2020-04-19T12:30:13.4334468Z         msg: "3:1: 3:21: if there is `mod not_a_real_file` elsewhere in the crate already, import it with `use crate::` instead",
2020-04-19T12:30:13.4334878Z ]
2020-04-19T12:30:13.4334954Z 
2020-04-19T12:30:13.4335103Z not found errors (from test file): [
2020-04-19T12:30:13.4335273Z     Error {
2020-04-19T12:30:13.4335273Z     Error {
2020-04-19T12:30:13.4335406Z         line_num: 4,
2020-04-19T12:30:13.4335555Z         kind: Some(
2020-04-19T12:30:13.4335704Z             Help,
2020-04-19T12:30:13.4335826Z         ),
2020-04-19T12:30:13.4336029Z         msg: "if there is `mod not_a_real_file` elsewhere in the crate already",
2020-04-19T12:30:13.4336339Z ]
2020-04-19T12:30:13.4336413Z 
2020-04-19T12:30:13.4336875Z thread '[ui] ui/parser/mod_file_not_exist.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:1460:13
2020-04-19T12:30:13.4337225Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---
2020-04-19T12:30:13.4338655Z 
2020-04-19T12:30:13.4350704Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-19T12:30:13.4362880Z 
2020-04-19T12:30:13.4363849Z 
2020-04-19T12:30:13.4367700Z 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-8/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "8.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-19T12:30:13.4370024Z 
2020-04-19T12:30:13.4370132Z 
2020-04-19T12:30:13.4378409Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-19T12:30:13.4378792Z Build completed unsuccessfully in 0:53:40
2020-04-19T12:30:13.4378792Z Build completed unsuccessfully in 0:53:40
2020-04-19T12:30:13.4439945Z == clock drift check ==
2020-04-19T12:30:13.4466263Z   local time: Sun Apr 19 12:30:13 UTC 2020
2020-04-19T12:30:13.5656868Z   network time: Sun, 19 Apr 2020 12:30:13 GMT
2020-04-19T12:30:13.9960299Z 
2020-04-19T12:30:13.9960299Z 
2020-04-19T12:30:14.0019325Z ##[error]Bash exited with code '1'.
2020-04-19T12:30:14.0035713Z ##[section]Finishing: Run build
2020-04-19T12:30:14.0092267Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-19T12:30:14.0096948Z Task         : Get sources
2020-04-19T12:30:14.0097235Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-19T12:30:14.0097498Z Version      : 1.0.0
2020-04-19T12:30:14.0097709Z Author       : Microsoft
2020-04-19T12:30:14.0097709Z Author       : Microsoft
2020-04-19T12:30:14.0098020Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-19T12:30:14.0098356Z ==============================================================================
2020-04-19T12:30:14.3184112Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-19T12:30:14.3227689Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71288/merge to s
2020-04-19T12:30:14.3319517Z Cleaning up task key
2020-04-19T12:30:14.3320691Z Start cleaning up orphan processes.
2020-04-19T12:30:14.3478857Z Terminate orphan process: pid (5855) (python)
2020-04-19T12:30:14.3682182Z ##[section]Finishing: Finalize Job

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

@kornelski
Copy link
Contributor Author

I've rebased it. It's ready to merge.

@joelpalmer joelpalmer added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 30, 2020
@Dylan-DPC-zz
Copy link

r? @dtolnay

@rust-highfive rust-highfive assigned dtolnay and unassigned cramertj Apr 30, 2020
@Dylan-DPC-zz
Copy link

oops this is compiler..
r? @estebank

@rust-highfive rust-highfive assigned estebank and unassigned dtolnay Apr 30, 2020
Comment on lines +287 to +290
err.help(&format!(
"if there is `mod {}` elsewhere in the crate already, import it with `use crate::` instead",
mod_name,
));
Copy link
Contributor

Choose a reason for hiding this comment

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

You can do the following instead

err.span_suggestion_verbose(
    span,
    "if the module exists elsewhere in the crate already, you can import instead",
    format!("use crate::{};", mod_name),
    Applicability::MaybeIncorrect,
)

That being said, it'd be nice to actually check that the module exists in the crate and provide the suggestion with higher certainty. Do not have the time to check what the code would have to be to verify that crate::mod_name exists, but @petrochenkov might know of the top of their head. Otherwise, would you mind exploring how to do that, @kornelski? We want to minimize the cases where we provide incorrect suggestions, as those can be worse than terse ones. If we can make that check, then we can provide the help to create the file exclusively if the mod doesn't exist alredy.

Copy link
Contributor Author

@kornelski kornelski May 2, 2020

Choose a reason for hiding this comment

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

I'm happy to dig in further, but I'd prefer to land this change in the meantime.
The message starts with a disclaimer, it intentionally only suggests use instead of showing a potentially-incorrect path. So I think risk of confusion is low, and mentioning use is an important improvement.

This check currently happens very early in the parsing, so a naive mod existence checks at this stage would be unreliable and sensitive to order of definitions. A proper fix may be quite involved, e.g. create a "broken mod" AST node for a later pass to pick it up and scan modules after they're all parsed. That might take longer to implement, so the current PR is IMHO good to have in the meantime.

@Dylan-DPC-zz
Copy link

@estebank you happy with this?

@joelpalmer joelpalmer added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 19, 2020
@Elinvynia Elinvynia added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 27, 2020
@kornelski kornelski closed this Jun 4, 2020
@kornelski kornelski deleted the E0583 branch November 6, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants