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

Use min_specialization in the remaining rustc crates #72707

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

matthewjasper
Copy link
Contributor

This adds a lot of transmute calls to replace the unsound uses of specialization.
It's ugly, but at least it's honest about what's going on.

cc #71420, @RalfJung

@rust-highfive
Copy link
Collaborator

r? @eddyb

(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 May 28, 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.
##[section]Starting: Linux x86_64-gnu-llvm-8
##[section]Starting: Initialize job
Agent name: 'Azure Pipelines 56'
Agent machine name: 'fv-az578'
Current agent version: '2.168.2'
##[group]Operating System
16.04.6
LTS
LTS
##[endgroup]
##[group]Virtual Environment
Environment: ubuntu-16.04
Version: 20200517.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20200517.1/images/linux/Ubuntu1604-README.md
##[endgroup]
Agent running as: 'vsts'
Prepare build directory.
Set build variables.
Download all required tasks.
Download all required tasks.
Downloading task: Bash (3.163.2)
Checking job knob settings.
   Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
   Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
Start tracking orphan processes.
##[section]Finishing: Initialize job
##[section]Starting: Configure Job Name
==============================================================================
---
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/5e00d692-1365-4b98-b0be-7b22d04a6efc.sh

##[section]Finishing: Disable git automatic line ending conversion
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
---
##[command]git remote add origin https://github.com/rust-lang/rust
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
##[command]git config --get-all http.proxy
##[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/72707/merge:refs/remotes/pull/72707/merge
---
 ---> cb2676f08729
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
 ---> Using cache
 ---> df25ce111862
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
 ---> 599b9ac96b27
Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
 ---> Using cache
 ---> 091087e35a36
---
   Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
   Compiling chalk-rust-ir v0.10.0
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-solve v0.10.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
   Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
   Compiling chalk-rust-ir v0.10.0
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-solve v0.10.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
.................................................................................................... 1600/10249
.................................................................................................... 1700/10249
..............................................................................i..................... 1800/10249
.................................................................................................... 1900/10249
.................................................................................................i.. 2000/10249
i.......FF.......................................................................................... 2100/10249
.......................................................................................iiiii........ 2200/10249
.................................................................................................... 2400/10249
.................................................................................................... 2500/10249
.................................................................................................... 2600/10249
.................................................................................................... 2700/10249
---
.................................................................................................... 3200/10249
....................................i............................................................... 3300/10249
...................................................F................................................ 3400/10249
.................................................................................................... 3500/10249
................................................ii...................FF............................. 3600/10249
.................................................................................................... 3800/10249
............................................i....................................................... 3900/10249
.................................................................................................... 4000/10249
.................................................................................................... 4100/10249
---
...............i...............i.................................................................... 5200/10249
.................................................................................................... 5300/10249
...............................................................i.................................... 5400/10249
........................................................i........................................... 5500/10249
....................................................................ii.ii........i...i.............. 5600/10249
...........i........................................................................................ 5800/10249
...................i................................................................................ 5900/10249
........................................................................ii.......................... 6000/10249
...........i........................................................................................ 6100/10249
...........i........................................................................................ 6100/10249
.................................................................................................... 6200/10249
.................................................................................................... 6300/10249
.................................ii...i..ii...........i............................................. 6400/10249
.................................................................................................... 6600/10249
.................................................................................................... 6700/10249
.................................................................................................... 6700/10249
..................................................................i..ii............................. 6800/10249
.................................................................................................... 7000/10249
.................................................................................................... 7100/10249
....................i............................................................................... 7200/10249
.................................................................................................... 7300/10249
---
...............................................................F...................................F 8200/10249
.................................................................................................... 8300/10249
.......................................................i............................................ 8400/10249
.................................................................................................... 8500/10249
.........iiiiii.iiiiii.i............................................................................ 8600/10249
.................................................................................................... 8800/10249
.................................................................................................... 8900/10249
.................................................................................................... 9000/10249
.................................................................................................... 9100/10249
---
---- [ui] ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs stdout ----
diff of stderr:

30    |
31 LL |     const BAR: u32 = IMPL_REF_BAR;
32    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
+ note: ...which requires optimizing MIR for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
35    |
35    |
36 LL |     const BAR: u32 = IMPL_REF_BAR;

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl/issue-24949-assoc-const-static-recursion-impl.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl/issue-24949-assoc-const-static-recursion-impl.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args associated-consts/issue-24949-assoc-const-static-recursion-impl.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.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/associated-consts/issue-24949-assoc-const-static-recursion-impl" "-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/associated-consts/issue-24949-assoc-const-static-recursion-impl/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when const-evaluating + checking `IMPL_REF_BAR`
   |
   |
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; //~ ERROR E0391
   |
   |
note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
   |
   |
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `IMPL_REF_BAR`...
   |
   |
LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
note: ...which requires const-evaluating + checking `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = IMPL_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = IMPL_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = IMPL_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires optimizing MIR for `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = IMPL_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `IMPL_REF_BAR`...
   = note: ...which again requires const-evaluating + checking `IMPL_REF_BAR`, completing the cycle
   = note: cycle used when running analysis passes on this crate
error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.


------------------------------------------


---- [ui] ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs stdout ----
diff of stderr:

30    |
31 LL |     const BAR: u32 = DEFAULT_REF_BAR;
32    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `FooDefault::BAR`...
+ note: ...which requires optimizing MIR for `FooDefault::BAR`...
35    |
35    |
36 LL |     const BAR: u32 = DEFAULT_REF_BAR;

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default/issue-24949-assoc-const-static-recursion-trait-default.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default/issue-24949-assoc-const-static-recursion-trait-default.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args associated-consts/issue-24949-assoc-const-static-recursion-trait-default.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait-default.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/associated-consts/issue-24949-assoc-const-static-recursion-trait-default" "-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/associated-consts/issue-24949-assoc-const-static-recursion-trait-default/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when const-evaluating + checking `DEFAULT_REF_BAR`
   |
   |
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; //~ ERROR E0391
   |
   |
note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`...
   |
   |
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `DEFAULT_REF_BAR`...
   |
   |
LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `<GlobalDefaultRef as FooDefault>::BAR`...
note: ...which requires const-evaluating + checking `FooDefault::BAR`...
   |
   |
LL |     const BAR: u32 = DEFAULT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `FooDefault::BAR`...
   |
   |
LL |     const BAR: u32 = DEFAULT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `FooDefault::BAR`...
   |
   |
LL |     const BAR: u32 = DEFAULT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires optimizing MIR for `FooDefault::BAR`...
   |
   |
LL |     const BAR: u32 = DEFAULT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `DEFAULT_REF_BAR`...
   = note: ...which again requires const-evaluating + checking `DEFAULT_REF_BAR`, completing the cycle
   = note: cycle used when running analysis passes on this crate
error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.


------------------------------------------


---- [ui] ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs stdout ----
diff of stderr:

30    |
31 LL |     const BAR: u32 = TRAIT_REF_BAR;
32    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
+ note: ...which requires optimizing MIR for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
35    |
35    |
36 LL |     const BAR: u32 = TRAIT_REF_BAR;

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait/issue-24949-assoc-const-static-recursion-trait.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait/issue-24949-assoc-const-static-recursion-trait.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args associated-consts/issue-24949-assoc-const-static-recursion-trait.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.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/associated-consts/issue-24949-assoc-const-static-recursion-trait" "-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/associated-consts/issue-24949-assoc-const-static-recursion-trait/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when const-evaluating + checking `TRAIT_REF_BAR`
   |
   |
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR; //~ ERROR E0391
   |
   |
note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`...
   |
   |
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `TRAIT_REF_BAR`...
   |
   |
LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR; //~ ERROR E0391
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `<GlobalTraitRef as Foo>::BAR`...
note: ...which requires const-evaluating + checking `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = TRAIT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating + checking `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = TRAIT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires const-evaluating `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = TRAIT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires optimizing MIR for `<impl at /checkout/src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
   |
   |
LL |     const BAR: u32 = TRAIT_REF_BAR;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires normalizing `TRAIT_REF_BAR`...
   = note: ...which again requires const-evaluating + checking `TRAIT_REF_BAR`, completing the cycle
   = note: cycle used when running analysis passes on this crate
error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.

---
diff of stderr:

5    |                   ^^^^^^^
6    |
7    = note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
- note: cycle used when processing `A`
+ note: cycle used when getting explicit predicates for `A`
9   --> $DIR/cycle-projection-based-on-where-clause.rs:17:19
10    |
11 LL |           T : Add<T::Item>

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/cycle-projection-based-on-where-clause/cycle-projection-based-on-where-clause.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/cycle-projection-based-on-where-clause/cycle-projection-based-on-where-clause.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args cycle-projection-based-on-where-clause.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/cycle-projection-based-on-where-clause.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/cycle-projection-based-on-where-clause" "-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/cycle-projection-based-on-where-clause/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when computing the bounds for type parameter `T`
  --> /checkout/src/test/ui/cycle-projection-based-on-where-clause.rs:17:19
   |
LL |           T : Add<T::Item>
   |
   |
   = note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
note: cycle used when getting explicit predicates for `A`
   |
   |
LL |           T : Add<T::Item>

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
---
- error[E0391]: cycle detected when processing `Foo::X`
+ error[E0391]: cycle detected when getting type of `Foo::X`
2   --> $DIR/cycle-trait-default-type-trait.rs:4:23
3    |
4 LL | trait Foo<X = Box<dyn Foo>> {
5    |                       ^^^
6    |
6    |
-    = note: ...which again requires processing `Foo::X`, completing the cycle
+    = note: ...which again requires getting type of `Foo::X`, completing the cycle
8 note: cycle used when collecting item types in top-level module
9   --> $DIR/cycle-trait-default-type-trait.rs:4:1


11 LL | trait Foo<X = Box<dyn Foo>> {
13 
- error[E0391]: cycle detected when processing `Foo::X`
+ error[E0391]: cycle detected when getting type of `Foo::X`
15   --> $DIR/cycle-trait-default-type-trait.rs:4:23
15   --> $DIR/cycle-trait-default-type-trait.rs:4:23
16    |
17 LL | trait Foo<X = Box<dyn Foo>> {
18    |                       ^^^
19    |
19    |
-    = note: ...which again requires processing `Foo::X`, completing the cycle
+    = note: ...which again requires getting type of `Foo::X`, completing the cycle
21 note: cycle used when collecting item types in top-level module
22   --> $DIR/cycle-trait-default-type-trait.rs:4:1


The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/cycle-trait/cycle-trait-default-type-trait/cycle-trait-default-type-trait.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/cycle-trait/cycle-trait-default-type-trait/cycle-trait-default-type-trait.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args cycle-trait/cycle-trait-default-type-trait.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/cycle-trait/cycle-trait-default-type-trait.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/cycle-trait/cycle-trait-default-type-trait" "-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/cycle-trait/cycle-trait-default-type-trait/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `Foo::X`
  --> /checkout/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs:4:23
   |
LL | trait Foo<X = Box<dyn Foo>> {
   |
   |
   = note: ...which again requires getting type of `Foo::X`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
   |
LL | trait Foo<X = Box<dyn Foo>> {

error[E0391]: cycle detected when getting type of `Foo::X`
  --> /checkout/src/test/ui/cycle-trait/cycle-trait-default-type-trait.rs:4:23
   |
   |
LL | trait Foo<X = Box<dyn Foo>> {
   |
   |
   = note: ...which again requires getting type of `Foo::X`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
   |
LL | trait Foo<X = Box<dyn Foo>> {

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0391`.
For more information about this error, try `rustc --explain E0391`.

------------------------------------------


---- [ui] ui/impl-trait/auto-trait-leak.rs stdout ----
diff of stderr:

- error[E0391]: cycle detected when processing `cycle1::{{opaque}}#0`
+ error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
3    |
4 LL | fn cycle1() -> impl Clone {

14    |
14    |
15 LL | fn cycle1() -> impl Clone {
16    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle1`...
+ note: ...which requires processing MIR for `cycle1`...
19    |
20 LL | fn cycle1() -> impl Clone {

24    |
24    |
25 LL | fn cycle1() -> impl Clone {
26    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle1`...
29    |
30 LL | fn cycle1() -> impl Clone {

35 LL | fn cycle1() -> impl Clone {
35 LL | fn cycle1() -> impl Clone {
36    | ^^^^^^^^^^^^^^^^^^^^^^^^^
37    = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
- note: ...which requires processing `cycle2::{{opaque}}#0`...
+ note: ...which requires getting type of `cycle2::{{opaque}}#0`...
40    |
41 LL | fn cycle2() -> impl Clone {

50    |
50    |
51 LL | fn cycle2() -> impl Clone {
52    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle2`...
+ note: ...which requires processing MIR for `cycle2`...
55    |
56 LL | fn cycle2() -> impl Clone {

60    |
60    |
61 LL | fn cycle2() -> impl Clone {
62    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle2`...
65    |
66 LL | fn cycle2() -> impl Clone {

71 LL | fn cycle2() -> impl Clone {
71 LL | fn cycle2() -> impl Clone {
72    | ^^^^^^^^^^^^^^^^^^^^^^^^^
73    = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
-    = note: ...which again requires processing `cycle1::{{opaque}}#0`, completing the cycle
+    = note: ...which again requires getting type of `cycle1::{{opaque}}#0`, completing the cycle
75 note: cycle used when checking item types in top-level module
77    |

84 LL | | }
85    | |_^
85    | |_^
86 
- error[E0391]: cycle detected when processing `cycle1::{{opaque}}#0`
+ error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
89    |
90 LL | fn cycle1() -> impl Clone {

100    |
100    |
101 LL | fn cycle1() -> impl Clone {
102    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle1`...
+ note: ...which requires processing MIR for `cycle1`...
105    |
106 LL | fn cycle1() -> impl Clone {

110    |
110    |
111 LL | fn cycle1() -> impl Clone {
112    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle1`...
115    |
116 LL | fn cycle1() -> impl Clone {

121 LL | fn cycle1() -> impl Clone {
121 LL | fn cycle1() -> impl Clone {
122    | ^^^^^^^^^^^^^^^^^^^^^^^^^
123    = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
- note: ...which requires processing `cycle2::{{opaque}}#0`...
+ note: ...which requires getting type of `cycle2::{{opaque}}#0`...
126    |
127 LL | fn cycle2() -> impl Clone {

136    |
136    |
137 LL | fn cycle2() -> impl Clone {
138    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle2`...
+ note: ...which requires processing MIR for `cycle2`...
141    |
142 LL | fn cycle2() -> impl Clone {

146    |
146    |
147 LL | fn cycle2() -> impl Clone {
148    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle2`...
151    |
152 LL | fn cycle2() -> impl Clone {

156    |
156    |
157 LL | fn cycle2() -> impl Clone {
158    | ^^^^^^^^^^^^^^^^^^^^^^^^^
-    = note: ...which again requires processing `cycle1::{{opaque}}#0`, completing the cycle
+    = note: ...which again requires getting type of `cycle1::{{opaque}}#0`, completing the cycle
160 note: cycle used when checking item types in top-level module
162    |

169 LL | | }
170    | |_^
170    | |_^
171 
- error[E0391]: cycle detected when processing `cycle1::{{opaque}}#0`
+ error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
174    |
175 LL | fn cycle1() -> impl Clone {

185    |
185    |
186 LL | fn cycle1() -> impl Clone {
187    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle1`...
+ note: ...which requires processing MIR for `cycle1`...
190    |
191 LL | fn cycle1() -> impl Clone {

195    |
195    |
196 LL | fn cycle1() -> impl Clone {
197    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle1`...
200    |
201 LL | fn cycle1() -> impl Clone {

206 LL | fn cycle1() -> impl Clone {
206 LL | fn cycle1() -> impl Clone {
207    | ^^^^^^^^^^^^^^^^^^^^^^^^^
208    = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
- note: ...which requires processing `cycle2::{{opaque}}#0`...
+ note: ...which requires getting type of `cycle2::{{opaque}}#0`...
211    |
212 LL | fn cycle2() -> impl Clone {

221    |
221    |
222 LL | fn cycle2() -> impl Clone {
223    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires processing `cycle2`...
+ note: ...which requires processing MIR for `cycle2`...
226    |
227 LL | fn cycle2() -> impl Clone {

231    |
231    |
232 LL | fn cycle2() -> impl Clone {
233    | ^^^^^^^^^^^^^^^^^^^^^^^^^
- note: ...which requires building MIR for...
+ note: ...which requires building MIR for `cycle2`...
236    |
237 LL | fn cycle2() -> impl Clone {

241    |
241    |
242 LL | fn cycle2() -> impl Clone {
243    | ^^^^^^^^^^^^^^^^^^^^^^^^^
-    = note: ...which again requires processing `cycle1::{{opaque}}#0`, completing the cycle
+    = note: ...which again requires getting type of `cycle1::{{opaque}}#0`, completing the cycle
245 note: cycle used when checking item types in top-level module
247    |


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/impl-trait/auto-trait-leak/auto-trait-leak.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args impl-trait/auto-trait-leak.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/impl-trait/auto-trait-leak.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/impl-trait/auto-trait-leak" "-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/impl-trait/auto-trait-leak/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
   |
LL | fn cycle1() -> impl Clone {
   |                ^^^^^^^^^^
   |
   |
note: ...which requires borrow-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires unsafety-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires building MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
note: ...which requires getting type of `cycle2::{{opaque}}#0`...
   |
LL | fn cycle2() -> impl Clone {
   |                ^^^^^^^^^^
   |                ^^^^^^^^^^
note: ...which requires borrow-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing MIR for `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires unsafety-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires building MIR for `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
   = note: ...which again requires getting type of `cycle1::{{opaque}}#0`, completing the cycle
note: cycle used when checking item types in top-level module
   |
LL | / use std::cell::Cell;
LL | | use std::rc::Rc;
LL | |
LL | |
LL | | fn send<T: Send>(_: T) {}
LL | |     Rc::new(String::from("foo"))
LL | | }
   | |_^


error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
   |
LL | fn cycle1() -> impl Clone {
   |                ^^^^^^^^^^
   |
   |
note: ...which requires borrow-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires unsafety-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires building MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
note: ...which requires getting type of `cycle2::{{opaque}}#0`...
   |
LL | fn cycle2() -> impl Clone {
   |                ^^^^^^^^^^
   |                ^^^^^^^^^^
note: ...which requires borrow-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing MIR for `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires unsafety-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires building MIR for `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which again requires getting type of `cycle1::{{opaque}}#0`, completing the cycle
note: cycle used when checking item types in top-level module
   |
LL | / use std::cell::Cell;
LL | | use std::rc::Rc;
LL | |
LL | |
LL | | fn send<T: Send>(_: T) {}
LL | |     Rc::new(String::from("foo"))
LL | | }
   | |_^


error[E0391]: cycle detected when getting type of `cycle1::{{opaque}}#0`
   |
LL | fn cycle1() -> impl Clone {
   |                ^^^^^^^^^^
   |
   |
note: ...which requires borrow-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires unsafety-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires building MIR for `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires type-checking `cycle1`...
   |
LL | fn cycle1() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
   = note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
note: ...which requires getting type of `cycle2::{{opaque}}#0`...
   |
LL | fn cycle2() -> impl Clone {
   |                ^^^^^^^^^^
   |                ^^^^^^^^^^
note: ...which requires borrow-checking `cycle2`...
   |
LL | fn cycle2() -> impl Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
---
---- [ui] ui/infinite/infinite-tag-type-recursion.rs stdout ----
diff of stderr:

8    |
9    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `MList` representable
10 
- error[E0391]: cycle detected when processing `MList`
+ error[E0391]: cycle detected when getting drop check constraints for `MList`
13    |
13    |
14 LL | enum MList { Cons(isize, MList), Nil }
15    | ^^^^^^^^^^
16    |
16    |
-    = note: ...which again requires processing `MList`, completing the cycle
+    = note: ...which again requires getting drop check constraints for `MList`, completing the cycle
18    = note: cycle used when computing dropck types for `Canonical { max_universe: U0, variables: [], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing, def_id: None }, value: MList } }`
20 error: aborting due to 2 previous errors


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/infinite/infinite-tag-type-recursion/infinite-tag-type-recursion.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args infinite/infinite-tag-type-recursion.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/infinite/infinite-tag-type-recursion.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/infinite/infinite-tag-type-recursion" "-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/infinite/infinite-tag-type-recursion/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0072]: recursive type `MList` has infinite size
  --> /checkout/src/test/ui/infinite/infinite-tag-type-recursion.rs:1:1
   |
LL | enum MList { Cons(isize, MList), Nil }
   | ^^^^^^^^^^               ----- recursive without indirection
   | recursive type has infinite size
   |
   |
   = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `MList` representable

error[E0391]: cycle detected when getting drop check constraints for `MList`
   |
   |
LL | enum MList { Cons(isize, MList), Nil }
   |
   |
   = note: ...which again requires getting drop check constraints for `MList`, completing the cycle
   = note: cycle used when computing dropck types for `Canonical { max_universe: U0, variables: [], value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: [], reveal: UserFacing, def_id: None }, value: MList } }`
error: aborting due to 2 previous errors

Some errors have detailed explanations: E0072, E0391.
For more information about an error, try `rustc --explain E0072`.
---
- error[E0391]: cycle detected when processing `X`
+ error[E0391]: cycle detected when getting type of `X`
2   --> $DIR/infinite-vec-type-recursion.rs:1:14
3    |
4 LL | type X = Vec<X>;
5    |              ^
6    |
6    |
-    = note: ...which again requires processing `X`, completing the cycle
+    = note: ...which again requires getting type of `X`, completing the cycle
8 note: cycle used when collecting item types in top-level module
10    |


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/infinite/infinite-vec-type-recursion/infinite-vec-type-recursion.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args infinite/infinite-vec-type-recursion.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/infinite/infinite-vec-type-recursion.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/infinite/infinite-vec-type-recursion" "-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/infinite/infinite-vec-type-recursion/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `X`
  --> /checkout/src/test/ui/infinite/infinite-vec-type-recursion.rs:1:14
   |
LL | type X = Vec<X>;
   |
   |
   = note: ...which again requires getting type of `X`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
   |
LL | / type X = Vec<X>;
LL | | //~^ ERROR cycle detected
LL | |
LL | | fn main() { let b: X = Vec::new(); }

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
---
diff of stderr:

5    |                     ^^^^
6    |
7    = note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
- note: cycle used when processing `foo`
+ note: cycle used when getting explicit predicates for `foo`
10    |
10    |
11 LL | fn foo<T: Trait<A = T::B>>() { }

The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-21177/issue-21177.stderr
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-21177/issue-21177.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args issues/issue-21177.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-21177.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/issues/issue-21177" "-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/issues/issue-21177/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when computing the bounds for type parameter `T`
  --> /checkout/src/test/ui/issues/issue-21177.rs:6:21
   |
LL | fn foo<T: Trait<A = T::B>>() { }
   |
   |
   = note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
note: cycle used when getting explicit predicates for `foo`
   |
   |
LL | fn foo<T: Trait<A = T::B>>() { }

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
---
- error[E0391]: cycle detected when processing `Foo::T`
+ error[E0391]: cycle detected when getting type of `Foo::T`
2   --> $DIR/issue-34373.rs:7:30
3    |
4 LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;
5    |                              ^^^^^^^^^^
6    |
6    |
- note: ...which requires processing `DefaultFoo`...
+ note: ...which requires getting type of `DefaultFoo`...
9    |
9    |
10 LL | type DefaultFoo = Foo;
11    |                   ^^^
11    |                   ^^^
-    = note: ...which again requires processing `Foo::T`, completing the cycle
+    = note: ...which again requires getting type of `Foo::T`, completing the cycle
13 note: cycle used when collecting item types in top-level module
15    |


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-34373/issue-34373.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args issues/issue-34373.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-34373.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/issues/issue-34373" "-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/issues/issue-34373/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `Foo::T`
  --> /checkout/src/test/ui/issues/issue-34373.rs:7:30
   |
LL | pub struct Foo<T = Box<Trait<DefaultFoo>>>;  //~ ERROR cycle detected
   |
   |
note: ...which requires getting type of `DefaultFoo`...
   |
   |
LL | type DefaultFoo = Foo;
   |                   ^^^
   = note: ...which again requires getting type of `Foo::T`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
   |
LL | / #![allow(warnings)]
LL | | trait Trait<T> {
LL | |     fn foo(_: T) {}
...  |
LL | | fn main() {
---
---- [ui] ui/recursion/issue-26548-recursion-via-normalize.rs stdout ----
diff of stderr:

2    |
3    = note: ...which requires computing layout of `S`...
4    = note: ...which again requires computing layout of `std::option::Option<S>`, completing the cycle
- note: cycle used when processing `main`
+ note: cycle used when optimizing MIR for `main`
7    |
8 LL | fn main() {



The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-26548-recursion-via-normalize/issue-26548-recursion-via-normalize.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args recursion/issue-26548-recursion-via-normalize.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/recursion/issue-26548-recursion-via-normalize.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/recursion/issue-26548-recursion-via-normalize" "-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/recursion/issue-26548-recursion-via-normalize/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when computing layout of `std::option::Option<S>`
   |
   = note: ...which requires computing layout of `S`...
   = note: ...which again requires computing layout of `std::option::Option<S>`, completing the cycle
note: cycle used when optimizing MIR for `main`
   |
   |
LL | fn main() { //~ NOTE cycle used when processing `main`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
For more information about this error, try `rustc --explain E0391`.

------------------------------------------


---- [ui] ui/resolve/issue-23305.rs stdout ----
diff of stderr:

- error[E0391]: cycle detected when processing `<impl at $DIR/issue-23305.rs:5:1: 5:24>`
+ error[E0391]: cycle detected when getting type of `<impl at $DIR/issue-23305.rs:5:1: 5:24>`
3    |
3    |
4 LL | impl dyn ToNbt<Self> {}
5    |                ^^^^
6    |
6    |
-    = note: ...which again requires processing `<impl at $DIR/issue-23305.rs:5:1: 5:24>`, completing the cycle
+    = note: ...which again requires getting type of `<impl at $DIR/issue-23305.rs:5:1: 5:24>`, completing the cycle
8 note: cycle used when collecting item types in top-level module
10    |


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/issue-23305/issue-23305.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args resolve/issue-23305.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/resolve/issue-23305.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/resolve/issue-23305" "-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/resolve/issue-23305/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `<impl at /checkout/src/test/ui/resolve/issue-23305.rs:5:1: 5:24>`
   |
   |
LL | impl dyn ToNbt<Self> {}
   |
   |
   = note: ...which again requires getting type of `<impl at /checkout/src/test/ui/resolve/issue-23305.rs:5:1: 5:24>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
   |
LL | pub trait ToNbt<T> {

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
For more information about this error, try `rustc --explain E0391`.

------------------------------------------


---- [ui] ui/resolve/resolve-self-in-impl.rs stdout ----
diff of stderr:

- error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`
+ error[E0391]: cycle detected when getting type of `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`
3    |
4 LL | impl Tr for Self {}

5    |             ^^^^
5    |             ^^^^
6    |
-    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`, completing the cycle
+    = note: ...which again requires getting type of `<impl at $DIR/resolve-self-in-impl.rs:14:1: 14:20>`, completing the cycle
8 note: cycle used when collecting item types in top-level module
10    |

17 LL | | fn main() {}
18    | |____________^
18    | |____________^
19 
- error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`
+ error[E0391]: cycle detected when getting type of `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`
22    |
22    |
23 LL | impl Tr for S<Self> {}
24    |               ^^^^
25    |
25    |
-    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`, completing the cycle
+    = note: ...which again requires getting type of `<impl at $DIR/resolve-self-in-impl.rs:15:1: 15:23>`, completing the cycle
27 note: cycle used when collecting item types in top-level module
29    |

36 LL | | fn main() {}
37    | |____________^
37    | |____________^
38 
- error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`
+ error[E0391]: cycle detected when getting type of `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`
41    |
42 LL | impl Self {}

43    |      ^^^^
43    |      ^^^^
44    |
-    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`, completing the cycle
+    = note: ...which again requires getting type of `<impl at $DIR/resolve-self-in-impl.rs:16:1: 16:13>`, completing the cycle
46 note: cycle used when collecting item types in top-level module
48    |

55 LL | | fn main() {}
56    | |____________^
56    | |____________^
57 
- error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`
+ error[E0391]: cycle detected when getting type of `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`
60    |
60    |
61 LL | impl S<Self> {}
62    |        ^^^^
63    |
63    |
-    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`, completing the cycle
+    = note: ...which again requires getting type of `<impl at $DIR/resolve-self-in-impl.rs:17:1: 17:16>`, completing the cycle
65 note: cycle used when collecting item types in top-level module
67    |

74 LL | | fn main() {}
75    | |____________^
75    | |____________^
76 
- error[E0391]: cycle detected when processing `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`
+ error[E0391]: cycle detected when getting trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`
79    |
79    |
80 LL | impl Tr<Self::A> for S {}
81    | ^^^^^^^^^^^^^^^^^^^^^^
82    |
82    |
-    = note: ...which again requires processing `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`, completing the cycle
+    = note: ...which again requires getting trait implemented by `<impl at $DIR/resolve-self-in-impl.rs:18:1: 18:26>`, completing the cycle
84 note: cycle used when collecting item types in top-level module
86    |


The actual stderr differed from the expected stderr.
The actual stderr differed from the expected stderr.
Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/resolve/resolve-self-in-impl/resolve-self-in-impl.stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args resolve/resolve-self-in-impl.rs`
error: 1 errors occurred comparing output.
status: exit code: 1
status: exit code: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/resolve/resolve-self-in-impl.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/resolve/resolve-self-in-impl" "-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/resolve/resolve-self-in-impl/auxiliary"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
error[E0391]: cycle detected when getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:14:1: 14:20>`
   |
   |
LL | impl Tr for Self {} //~ ERROR cycle detected
   |
   |
   = note: ...which again requires getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:14:1: 14:20>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
LL | / #![feature(associated_type_defaults)]
LL | |
LL | |
LL | | struct S<T = u8>(T);
LL | | trait Tr<T = u8> {
LL | |
LL | | fn main() {}
   | |____________^


error[E0391]: cycle detected when getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:15:1: 15:23>`
   |
   |
LL | impl Tr for S<Self> {} //~ ERROR cycle detected
   |
   |
   = note: ...which again requires getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:15:1: 15:23>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
LL | / #![feature(associated_type_defaults)]
LL | |
LL | |
LL | | struct S<T = u8>(T);
LL | | trait Tr<T = u8> {
LL | |
LL | | fn main() {}
   | |____________^


error[E0391]: cycle detected when getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:16:1: 16:13>`
   |
   |
LL | impl Self {} //~ ERROR cycle detected
   |
   |
   = note: ...which again requires getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:16:1: 16:13>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
LL | / #![feature(associated_type_defaults)]
LL | |
LL | |
LL | | struct S<T = u8>(T);
LL | | trait Tr<T = u8> {
LL | |
LL | | fn main() {}
   | |____________^


error[E0391]: cycle detected when getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:17:1: 17:16>`
   |
   |
LL | impl S<Self> {} //~ ERROR cycle detected
   |
   |
   = note: ...which again requires getting type of `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:17:1: 17:16>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
LL | / #![feature(associated_type_defaults)]
LL | |
LL | |
LL | | struct S<T = u8>(T);
LL | | trait Tr<T = u8> {
LL | |
LL | | fn main() {}
   | |____________^


error[E0391]: cycle detected when getting trait implemented by `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:18:1: 18:26>`
   |
   |
LL | impl Tr<Self::A> for S {} //~ ERROR cycle detected
   |
   |
   = note: ...which again requires getting trait implemented by `<impl at /checkout/src/test/ui/resolve/resolve-self-in-impl.rs:18:1: 18:26>`, completing the cycle
note: cycle used when collecting item types in top-level module
   |
LL | / #![feature(associated_type_defaults)]
LL | |
LL | |
LL | | struct S<T = u8>(T);
LL | | trait Tr<T = u8> {
LL | |
LL | | fn main() {}
   | |____________^

---
thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


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"


failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
Build completed unsuccessfully in 0:59:39
Build completed unsuccessfully in 0:59:39
== clock drift check ==
  local time: Thu May 28 21:11:07 UTC 2020
  network time: Thu, 28 May 2020 21:11:07 GMT
== end clock drift check ==

##[error]Bash exited with code '1'.
##[section]Finishing: Run build
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: rust-lang/rust (GitHub)
##[section]Finishing: Checkout rust-lang/rust@refs/pull/72707/merge to s
Cleaning up task key
Start cleaning up orphan processes.
Terminate orphan process: pid (3528) (python)
##[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.
##[section]Starting: Linux mingw-check
##[section]Starting: Initialize job
Agent name: 'Azure Pipelines 65'
Agent machine name: 'fv-az578'
Current agent version: '2.169.1'
##[group]Operating System
16.04.6
LTS
LTS
##[endgroup]
##[group]Virtual Environment
Environment: ubuntu-16.04
Version: 20200517.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20200517.1/images/linux/Ubuntu1604-README.md
##[endgroup]
Agent running as: 'vsts'
Prepare build directory.
Set build variables.
Download all required tasks.
Download all required tasks.
Downloading task: Bash (3.163.2)
Checking job knob settings.
   Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
   Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
Start tracking orphan processes.
##[section]Finishing: Initialize job
##[section]Starting: Configure Job Name
==============================================================================
---
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/e1f909fe-c90f-4970-9e81-eef1c56092dd.sh

##[section]Finishing: Disable git automatic line ending conversion
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
---
##[command]git remote add origin https://github.com/rust-lang/rust
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
##[command]git config --get-all http.proxy
##[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/72707/merge:refs/remotes/pull/72707/merge
---
 ---> 3adb0605cc65
Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
 ---> Using cache
 ---> 28dbc326cb7f
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 &&            python3 ../x.py doc --stage 0 src/libstd &&            /scripts/validate-toolstate.sh
 ---> 537a01811900
Successfully built 537a01811900
Successfully tagged rust-ci:latest
Built container sha256:537a018119009dc218456238dec90b5530050db1e2a1e166550c218003f6159d
---
    Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
    Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
    Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
    Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
    Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
    Checking chalk-rust-ir v0.10.0
    Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
    Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
    Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
    Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
    Checking chalk-solve v0.10.0
    Checking rustc_ast_passes v0.0.0 (/checkout/src/librustc_ast_passes)
    Checking rustc_expand v0.0.0 (/checkout/src/librustc_expand)
error[E0599]: no method named `to_def_id` found for struct `rustc_span::def_id::DefId` in the current scope
    --> src/librustc_middle/query/mod.rs:1077:84
     |
1077 |             desc { |tcx| "getting crate imported by `{}`", tcx.def_path_str(def_id.to_def_id()) }

    Checking rustc_builtin_macros v0.0.0 (/checkout/src/librustc_builtin_macros)
error[E0308]: mismatched types
    --> src/librustc_middle/ty/context.rs:2704:73
    --> src/librustc_middle/ty/context.rs:2704:73
     |
2704 |     providers.extern_mod_stmt_cnum = |tcx, id| tcx.extern_crate_map.get(&id).cloned();
     |
     = note: expected reference `&rustc_span::def_id::LocalDefId`
                found reference `&rustc_span::def_id::DefId`


error: aborting due to 2 previous errors

Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `rustc_middle`.

To learn more, run the command again with --verbose.
command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--color" "always" "--features" " llvm" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
Build completed unsuccessfully in 0:04:59
== clock drift check ==
  local time: Fri May 29 21:13:41 UTC 2020
  local time: Fri May 29 21:13:41 UTC 2020
  network time: Fri, 29 May 2020 21:13:41 GMT
== end clock drift check ==

##[error]Bash exited with code '1'.
##[section]Finishing: Run build
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: rust-lang/rust (GitHub)
##[section]Finishing: Checkout rust-lang/rust@refs/pull/72707/merge to s
Cleaning up task key
Start cleaning up orphan processes.
Terminate orphan process: pid (3632) (python)
##[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.
##[section]Starting: Linux x86_64-gnu-llvm-8
##[section]Starting: Initialize job
Agent name: 'Azure Pipelines 33'
Agent machine name: 'fv-az578'
Current agent version: '2.169.1'
##[group]Operating System
16.04.6
LTS
LTS
##[endgroup]
##[group]Virtual Environment
Environment: ubuntu-16.04
Version: 20200517.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu16/20200517.1/images/linux/Ubuntu1604-README.md
##[endgroup]
Agent running as: 'vsts'
Prepare build directory.
Set build variables.
Download all required tasks.
Download all required tasks.
Downloading task: Bash (3.163.2)
Checking job knob settings.
   Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
   Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
Start tracking orphan processes.
##[section]Finishing: Initialize job
##[section]Starting: Configure Job Name
==============================================================================
---
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/1821a3e4-0ddc-465d-9523-7392df52ff09.sh

##[section]Finishing: Disable git automatic line ending conversion
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
---
##[command]git remote add origin https://github.com/rust-lang/rust
##[command]git config gc.auto 0
##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
##[command]git config --get-all http.proxy
##[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/72707/merge:refs/remotes/pull/72707/merge
---
 ---> cb2676f08729
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
 ---> Using cache
 ---> df25ce111862
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
 ---> 599b9ac96b27
Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
 ---> Using cache
 ---> 091087e35a36
---
   Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
   Compiling chalk-rust-ir v0.10.0
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-solve v0.10.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
   Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
   Compiling chalk-rust-ir v0.10.0
   Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
   Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
   Compiling chalk-solve v0.10.0
   Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
   Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
..............................................................................i..................... 1800/10253
.................................................................................................... 1900/10253
.................................................................................................i.. 2000/10253
i................................................................................................... 2100/10253
.......................................................................................iiiii........ 2200/10253
.................................................................................................... 2400/10253
.................................................................................................... 2500/10253
.................................................................................................... 2600/10253
.................................................................................................... 2700/10253
---
...............i...............i.................................................................... 5200/10253
.................................................................................................... 5300/10253
...............................................................i.................................... 5400/10253
........................................................i........................................... 5500/10253
.....................................................................ii.ii........i...i............. 5600/10253
............i....................................................................................... 5800/10253
....................i............................................................................... 5900/10253
.........................................................................ii......................... 6000/10253
............i....................................................................................... 6100/10253
............i....................................................................................... 6100/10253
.................................................................................................... 6200/10253
.................................................................................................... 6300/10253
...................................ii...i..ii...........i........................................... 6400/10253
.................................................................................................... 6600/10253
.................................................................................................... 6700/10253
.................................................................................................... 6700/10253
....................................................................i..ii........................... 6800/10253
.................................................................................................... 7000/10253
.................................................................................................... 7100/10253
......................i............................................................................. 7200/10253
.................................................................................................... 7300/10253
---
.................................................................................................... 8200/10253
.................................................................................................... 8300/10253
..........................................................i......................................... 8400/10253
.................................................................................................... 8500/10253
............iiiiii.iiiiii.i......................................................................... 8600/10253
.................................................................................................... 8800/10253
.................................................................................................... 8900/10253
.................................................................................................... 9000/10253
.................................................................................................... 9100/10253
---
Suite("src/test/codegen") not skipped for "bootstrap::test::Codegen" -- not in ["src/tools/tidy"]
Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 192 tests
iiii......i..............ii.i..........i......................i...........i..i................i....i 100/192
.............i.i.i...iii..iiiiiiiiiiiiiiii.......................iii................ii......

 finished in 6.027
Suite("src/test/codegen-units") not skipped for "bootstrap::test::CodegenUnits" -- not in ["src/tools/tidy"]
Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)

running 41 tests
i.........i................FFFFFF..i..FFF

---- [codegen-units] codegen-units/partitioning/extern-generic.rs stdout ----

error: compilation failed!
error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/extern-generic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-generic" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Cincremental=tmp/partitioning-tests/extern-generic" "-Zshare-generics=y" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-generic/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn cgu_generic_function::bar[0]<&str> @@ cgu_generic_function.3a1fbbbh-in-extern_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn cgu_generic_function::foo[0]<&str> @@ cgu_generic_function.3a1fbbbh-in-extern_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn extern_generic::mod1[0]::mod1[0]::user[0] @@ extern_generic.3a1fbbbh-mod1-mod1[Internal]
MONO_ITEM fn extern_generic::mod1[0]::user[0] @@ extern_generic.3a1fbbbh-mod1[Internal]
MONO_ITEM fn extern_generic::mod2[0]::user[0] @@ extern_generic.3a1fbbbh-mod2[Internal]
MONO_ITEM fn extern_generic::mod3[0]::non_user[0] @@ extern_generic.3a1fbbbh-mod3[Internal]
MONO_ITEM fn extern_generic::user[0] @@ extern_generic.3a1fbbbh[Internal]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 12515 but the index is 877102047', src/librustc_span/symbol.rs:1172:9
thread 'rustc' panicked at 'index out of bounds: the len is 12515 but the index is 877102047', src/librustc_span/symbol.rs:1172:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -Z share-generics=y -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -Z share-generics=y -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental

------------------------------------------



---- [codegen-units] codegen-units/partitioning/incremental-merging.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/incremental-merging.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/incremental-merging" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/incremental-merging" "-Ccodegen-units=3" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/incremental-merging/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn incremental_merging::aaa[0]::foo[0] @@ incremental_merging.3a1fbbbh-aaa--incremental_merging.3a1fbbbh-bbb[External]
MONO_ITEM fn incremental_merging::bbb[0]::foo[0] @@ incremental_merging.3a1fbbbh-aaa--incremental_merging.3a1fbbbh-bbb[External]
MONO_ITEM fn incremental_merging::ccc[0]::foo[0] @@ incremental_merging.3a1fbbbh-ccc[External]
MONO_ITEM fn incremental_merging::ddd[0]::foo[0] @@ incremental_merging.3a1fbbbh-ddd[External]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 15 but the index is 32747', src/librustc_metadata/creader.rs:130:21
thread 'rustc' panicked at 'index out of bounds: the len is 15 but the index is 32747', src/librustc_metadata/creader.rs:130:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental -C codegen-units=3
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental -C codegen-units=3

------------------------------------------



---- [codegen-units] codegen-units/partitioning/extern-drop-glue.rs stdout ----

error: compilation failed!
status: signal: 11
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/extern-drop-glue.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-drop-glue" "-Crpath" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/extern-drop-glue" "-Zinline-in-all-cgus" "-Copt-level=0" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/extern-drop-glue/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<cgu_extern_drop_glue::Struct[0]> @@ extern_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::LocalStruct[0]> @@ extern_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<extern_drop_glue::mod1[0]::LocalStruct[0]> @@ extern_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn extern_drop_glue::mod1[0]::user[0] @@ extern_drop_glue.3a1fbbbh-mod1[External]
MONO_ITEM fn extern_drop_glue::user[0] @@ extern_drop_glue.3a1fbbbh[External]
------------------------------------------
stderr:
------------------------------------------


------------------------------------------


---- [codegen-units] codegen-units/partitioning/local-drop-glue.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-drop-glue.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-drop-glue" "-Crpath" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/local-drop-glue" "-Zinline-in-all-cgus" "-Copt-level=0" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-drop-glue/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<(u32, local_drop_glue::Struct[0])> @@ local_drop_glue.3a1fbbbh-fallback.cgu[Internal]
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::Outer[0]> @@ local_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::Struct[0]> @@ local_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<local_drop_glue::mod1[0]::Struct2[0]> @@ local_drop_glue.3a1fbbbh-fallback.cgu[External]
MONO_ITEM fn local_drop_glue::mod1[0]::user[0] @@ local_drop_glue.3a1fbbbh-mod1[External]
MONO_ITEM fn local_drop_glue::user[0] @@ local_drop_glue.3a1fbbbh[External]
MONO_ITEM fn local_drop_glue::{{impl}}[0]::drop[0] @@ local_drop_glue.3a1fbbbh-fallback.cgu[External]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 14715 but the index is 3343447945', src/librustc_span/symbol.rs:1172:9
thread 'rustc' panicked at 'index out of bounds: the len is 14715 but the index is 3343447945', src/librustc_span/symbol.rs:1172:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental -C opt-level=0
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental -C opt-level=0

------------------------------------------



---- [codegen-units] codegen-units/partitioning/inlining-from-extern-crate.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/inlining-from-extern-crate.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/inlining-from-extern-crate" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/inlining-from-extern-crate" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/inlining-from-extern-crate/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn cgu_explicit_inlining::always_inlined[0] @@ inlining_from_extern_crate.3a1fbbbh[Internal] inlining_from_extern_crate.3a1fbbbh-mod2[Internal]
MONO_ITEM fn cgu_explicit_inlining::inlined[0] @@ inlining_from_extern_crate.3a1fbbbh[Internal] inlining_from_extern_crate.3a1fbbbh-mod1[Internal]
MONO_ITEM fn inlining_from_extern_crate::mod1[0]::user[0] @@ inlining_from_extern_crate.3a1fbbbh-mod1[External]
MONO_ITEM fn inlining_from_extern_crate::mod2[0]::user[0] @@ inlining_from_extern_crate.3a1fbbbh-mod2[External]
MONO_ITEM fn inlining_from_extern_crate::user[0] @@ inlining_from_extern_crate.3a1fbbbh[External]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 16 but the index is 32679', src/librustc_metadata/creader.rs:130:21
thread 'rustc' panicked at 'index out of bounds: the len is 16 but the index is 32679', src/librustc_metadata/creader.rs:130:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental

------------------------------------------



---- [codegen-units] codegen-units/partitioning/local-generic.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/local-generic.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-generic" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Cincremental=tmp/partitioning-tests/local-generic" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/local-generic/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn local_generic::generic[0]<&str> @@ local_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn local_generic::generic[0]<char> @@ local_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn local_generic::generic[0]<u32> @@ local_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn local_generic::generic[0]<u64> @@ local_generic.3a1fbbbh.volatile[External]
MONO_ITEM fn local_generic::mod1[0]::mod1[0]::user[0] @@ local_generic.3a1fbbbh-mod1-mod1[Internal]
MONO_ITEM fn local_generic::mod1[0]::user[0] @@ local_generic.3a1fbbbh-mod1[Internal]
MONO_ITEM fn local_generic::mod2[0]::user[0] @@ local_generic.3a1fbbbh-mod2[Internal]
MONO_ITEM fn local_generic::user[0] @@ local_generic.3a1fbbbh[Internal]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 15 but the index is 32724', src/librustc_metadata/creader.rs:130:21
thread 'rustc' panicked at 'index out of bounds: the len is 15 but the index is 32724', src/librustc_metadata/creader.rs:130:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental

------------------------------------------



---- [codegen-units] codegen-units/partitioning/statics.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/statics.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/statics" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/statics" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/statics/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn statics::function[0] @@ statics.3a1fbbbh[External]
MONO_ITEM fn statics::mod1[0]::function[0] @@ statics.3a1fbbbh-mod1[External]
MONO_ITEM static statics::BAR[0] @@ statics.3a1fbbbh[Internal]
MONO_ITEM static statics::FOO[0] @@ statics.3a1fbbbh[Internal]
MONO_ITEM static statics::function[0]::BAR[0] @@ statics.3a1fbbbh[Internal]
MONO_ITEM static statics::function[0]::FOO[0] @@ statics.3a1fbbbh[Internal]
MONO_ITEM static statics::mod1[0]::BAR[0] @@ statics.3a1fbbbh-mod1[Internal]
MONO_ITEM static statics::mod1[0]::FOO[0] @@ statics.3a1fbbbh-mod1[Internal]
MONO_ITEM static statics::mod1[0]::function[0]::BAR[0] @@ statics.3a1fbbbh-mod1[Internal]
MONO_ITEM static statics::mod1[0]::function[0]::FOO[0] @@ statics.3a1fbbbh-mod1[Internal]
------------------------------------------
stderr:
------------------------------------------
warning: static is never used: `FOO`
---
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
warning: 8 warnings emitted


------------------------------------------
------------------------------------------


---- [codegen-units] codegen-units/partitioning/shared-generics.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/shared-generics.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/shared-generics" "-Crpath" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=eager" "-Zshare-generics=yes" "-Cincremental=tmp/partitioning-tests/shared-generics-exe" "-Copt-level=0" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/shared-generics/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn shared_generics::foo[0] @@ shared_generics.3a1fbbbh[External]
MONO_ITEM fn shared_generics_aux::generic_fn[0]<u16> @@ shared_generics_aux.3a1fbbbh-in-shared_generics.3a1fbbbh.volatile[External]
------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'index out of bounds: the len is 16 but the index is 32716', src/librustc_metadata/creader.rs:130:21
thread 'rustc' panicked at 'index out of bounds: the len is 16 but the index is 32716', src/librustc_metadata/creader.rs:130:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -Z share-generics=yes -C rpath -C debuginfo=0 -C incremental -C opt-level=0
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=eager -Z share-generics=yes -C rpath -C debuginfo=0 -C incremental -C opt-level=0

------------------------------------------



---- [codegen-units] codegen-units/partitioning/vtable-through-const.rs stdout ----

error: compilation failed!
status: exit code: 101
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/codegen-units/partitioning/vtable-through-const.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Z" "human_readable_cgu_names" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/vtable-through-const" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Zprint-mono-items=lazy" "-Cincremental=tmp/partitioning-tests/vtable-through-const" "-Zinline-in-all-cgus" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units/partitioning/vtable-through-const/auxiliary"
------------------------------------------
------------------------------------------
MONO_ITEM fn core::ptr[0]::drop_in_place[0]<u32> @@ vtable_through_const.7rcbfp3g[Internal]
MONO_ITEM fn vtable_through_const::mod1[0]::Trait1[0]::do_something[0]<u32> @@ vtable_through_const.7rcbfp3g-mod1.volatile[External]
MONO_ITEM fn vtable_through_const::mod1[0]::Trait1[0]::do_something_else[0]<u32> @@ vtable_through_const.7rcbfp3g-mod1.volatile[External]
MONO_ITEM fn vtable_through_const::mod1[0]::Trait2[0]::do_something[0]<u32> @@ vtable_through_const.7rcbfp3g-mod1.volatile[Internal]
MONO_ITEM fn vtable_through_const::mod1[0]::Trait2[0]::do_something_else[0]<u32> @@ vtable_through_const.7rcbfp3g-mod1.volatile[Internal]
MONO_ITEM fn vtable_through_const::mod1[0]::id[0]<char> @@ vtable_through_const.7rcbfp3g-mod1.volatile[External]
MONO_ITEM fn vtable_through_const::mod1[0]::id[0]<i64> @@ vtable_through_const.7rcbfp3g-mod1.volatile[Internal]
MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[1]::do_something[0]<u8> @@ vtable_through_const.7rcbfp3g-mod1.volatile[External]
MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[1]::do_something_else[0]<u8> @@ vtable_through_const.7rcbfp3g-mod1.volatile[External]
MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[3]::do_something[0]<u8> @@ vtable_through_const.7rcbfp3g-mod1.volatile[Internal]
MONO_ITEM fn vtable_through_const::mod1[0]::{{impl}}[3]::do_something_else[0]<u8> @@ vtable_through_const.7rcbfp3g-mod1.volatile[Internal]
MONO_ITEM fn vtable_through_const::start[0] @@ vtable_through_const.7rcbfp3g[Internal]
------------------------------------------
stderr:
------------------------------------------
warning: trait objects without an explicit `dyn` are deprecated
warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:35:36
   |
35 |     pub const TRAIT1_REF: &'static Trait1 = &0u32 as &Trait1;
   |
   = note: `#[warn(bare_trait_objects)]` on by default

warning: trait objects without an explicit `dyn` are deprecated
warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:35:55
   |
35 |     pub const TRAIT1_REF: &'static Trait1 = &0u32 as &Trait1;

warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:36:40
   |
   |
36 |     pub const TRAIT1_GEN_REF: &'static Trait1Gen<u8> = &0u32 as &Trait1Gen<u8>;
   |                                        ^^^^^^^^^^^^^ help: use `dyn`: `dyn Trait1Gen<u8>`
warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:36:66
   |
   |
36 |     pub const TRAIT1_GEN_REF: &'static Trait1Gen<u8> = &0u32 as &Trait1Gen<u8>;
   |                                                                  ^^^^^^^^^^^^^ help: use `dyn`: `dyn Trait1Gen<u8>`
warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:61:36
   |
   |
61 |     pub const TRAIT2_REF: &'static Trait2 = &0u32 as &Trait2;

warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:61:55
   |
   |
61 |     pub const TRAIT2_REF: &'static Trait2 = &0u32 as &Trait2;

warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:62:40
   |
   |
62 |     pub const TRAIT2_GEN_REF: &'static Trait2Gen<u8> = &0u32 as &Trait2Gen<u8>;
   |                                        ^^^^^^^^^^^^^ help: use `dyn`: `dyn Trait2Gen<u8>`
warning: trait objects without an explicit `dyn` are deprecated
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:62:66
   |
   |
62 |     pub const TRAIT2_GEN_REF: &'static Trait2Gen<u8> = &0u32 as &Trait2Gen<u8>;
   |                                                                  ^^^^^^^^^^^^^ help: use `dyn`: `dyn Trait2Gen<u8>`
warning: constant is never used: `TRAIT2_REF`
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:61:5
   |
   |
61 |     pub const TRAIT2_REF: &'static Trait2 = &0u32 as &Trait2;
   |
   = note: `#[warn(dead_code)]` on by default

warning: constant is never used: `TRAIT2_GEN_REF`
warning: constant is never used: `TRAIT2_GEN_REF`
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:62:5
   |
62 |     pub const TRAIT2_GEN_REF: &'static Trait2Gen<u8> = &0u32 as &Trait2Gen<u8>;

warning: constant is never used: `ID_I64`
  --> /checkout/src/test/codegen-units/partitioning/vtable-through-const.rs:63:5
   |
   |
63 |     pub const ID_I64: fn(i64) -> i64 = id::<i64>;

thread 'rustc' panicked at 'index out of bounds: the len is 15 but the index is 32584', src/librustc_metadata/creader.rs:130:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `LLVMing`,
  left: `LLVMing`,
 right: `Codegenning`', /checkout/src/libstd/macros.rs:16:9
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.


note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
note: rustc 1.45.0-nightly (313bc7391 2020-05-29) running on x86_64-unknown-linux-gnu


note: compiler flags: -Z threads=1 -Z human_readable_cgu_names -Z unstable-options -Z print-mono-items=lazy -Z inline-in-all-cgus -C prefer-dynamic -C rpath -C debuginfo=0 -C incremental
warning: 11 warnings emitted


------------------------------------------
---
test result: FAILED. 29 passed; 9 failed; 3 ignored; 0 measured; 0 filtered out



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/codegen-units" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-units" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "codegen-units" "--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"


thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
Build completed unsuccessfully in 1:07:50
== clock drift check ==
  local time: Fri May 29 22:54:51 UTC 2020
  network time: Fri, 29 May 2020 22:54:51 GMT
== end clock drift check ==

##[error]Bash exited with code '1'.
##[section]Finishing: Run build
##[section]Starting: Checkout rust-lang/rust@refs/pull/72707/merge to s
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
Cleaning any cached credential from repository: rust-lang/rust (GitHub)
##[section]Finishing: Checkout rust-lang/rust@refs/pull/72707/merge to s
Cleaning up task key
Start cleaning up orphan processes.
Terminate orphan process: pid (3356) (python)
##[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)

@bors
Copy link
Contributor

bors commented May 30, 2020

☔ The latest upstream changes (presumably #72778) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Jun 6, 2020

☔ The latest upstream changes (presumably #72927) made this pull request unmergeable. Please resolve the merge conflicts.

@matthewjasper
Copy link
Contributor Author

Is there anyone in @rust-lang/compiler willing to review this?

@@ -228,8 +228,13 @@ impl<'tcx> SpecializedEncoder<LocalDefId> for EncodeContext<'tcx> {
}
}

impl<'tcx> SpecializedEncoder<Ty<'tcx>> for EncodeContext<'tcx> {
fn specialized_encode(&mut self, ty: &Ty<'tcx>) -> Result<(), Self::Error> {
impl<'a, 'b, 'tcx> SpecializedEncoder<&'a ty::TyS<'b>> for EncodeContext<'tcx>
Copy link
Contributor

Choose a reason for hiding this comment

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

are the two separate lifetimes 'a and 'b really necessary here? Couldn't they just be one and use Ty<'a>?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately not. Specializing impls can't repeat type/lifetime parameters.

&'a ty::TyS<'b>: UseSpecializedEncodable,
{
fn specialized_encode(&mut self, ty: &&'a ty::TyS<'b>) -> Result<(), Self::Error> {
debug_assert!(self.tcx.lift(ty).is_some());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a measurable perf loss to just doing lift and unwrap and skipping the transmute?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, looks like there are some serious losses here. Let's benchmark against the transmute variant and if that has no perf losses, let's merge it.

) -> Result<(), Self::Error> {
ty_codec::encode_spanned_predicates(self, predicates, |ecx| &mut ecx.predicate_shorthands)
debug_assert!(predicates.iter().all(|(p, _)| self.tcx.lift(p.kind()).is_some()));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can just lift the entire borrowed slice instead of each element

@oli-obk
Copy link
Contributor

oli-obk commented Jun 9, 2020

It's ugly, but at least it's honest about what's going on.

I agree.

r? @oli-obk

r=me with the comments resolved in some way

@matthewjasper
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Jun 9, 2020

⌛ Trying commit 09a2e80cc4266f81c7d60516f8eff5eb92093b7f with merge 70c770a6c3a5241ab4f65e6841ecd641c983a4fb...

@bors
Copy link
Contributor

bors commented Jun 9, 2020

☀️ Try build successful - checks-azure
Build commit: 70c770a6c3a5241ab4f65e6841ecd641c983a4fb (70c770a6c3a5241ab4f65e6841ecd641c983a4fb)

@rust-timer
Copy link
Collaborator

Queued 70c770a6c3a5241ab4f65e6841ecd641c983a4fb with parent feb3536, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (70c770a6c3a5241ab4f65e6841ecd641c983a4fb): comparison url.

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Jun 10, 2020

⌛ Trying commit 88ea7e5 with merge 3b49dc19913ecb228b5ce64932615370ac1ebc35...

@nikomatsakis
Copy link
Contributor

One thing I want to mention:

The specialization hack that we use was meant to be replaced with a custom trait for serialization, but that was blocked on the ability to use custom derive -- now that we have custom derive, couldn't we make the encodable trait carry a 'tcx explicitly? Perhaps things have changed too much to make that possible? (cc @eddyb)

Also, how much is any of this documented? I cast my eye over the diff but I admit I've always found the encoding system rather confusing.

@bors
Copy link
Contributor

bors commented Jun 10, 2020

💥 Test timed out

@oli-obk
Copy link
Contributor

oli-obk commented Jun 10, 2020

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Jun 10, 2020

⌛ Trying commit 88ea7e5 with merge d5dd610915fff92af707dd35f4a864570eaa8520...

@matthewjasper
Copy link
Contributor Author

I've started working on safe serialization traits, but it's going to be a large change affecting a lot of code, so I think it makes sense to have it separated.

@bors
Copy link
Contributor

bors commented Jun 10, 2020

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

@rust-timer
Copy link
Collaborator

Queued d5dd610915fff92af707dd35f4a864570eaa8520 with parent bb86748, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (d5dd610915fff92af707dd35f4a864570eaa8520): comparison url.

@matthewjasper
Copy link
Contributor Author

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Jun 10, 2020

📌 Commit 88ea7e5 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 10, 2020
@Aaron1011
Copy link
Member

@bors r- r=oli-obk

This wasn't showing in the queue at https://buildbot2.rust-lang.org/homu/queue/rust

@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 Jun 11, 2020
@bors
Copy link
Contributor

bors commented Jun 11, 2020

📌 Commit 88ea7e5 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 11, 2020
RalfJung added a commit to RalfJung/rust that referenced this pull request Jun 15, 2020
…-obk

Use min_specialization in the remaining rustc crates

This adds a lot of `transmute` calls to replace the unsound uses of specialization.
It's ugly, but at least it's honest about what's going on.

cc rust-lang#71420, @RalfJung
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 15, 2020
Rollup of 10 pull requests

Successful merges:

 - rust-lang#72707 (Use min_specialization in the remaining rustc crates)
 - rust-lang#72740 (On recursive ADT, provide indirection structured suggestion)
 - rust-lang#72879 (Miri: avoid tracking current location three times)
 - rust-lang#72938 (Stabilize Option::zip)
 - rust-lang#73086 (Rename "cyclone" to "apple-a7" per changes in upstream LLVM)
 - rust-lang#73104 (Example about explicit mutex dropping)
 - rust-lang#73139 (Add methods to go from a nul-terminated Vec<u8> to a CString)
 - rust-lang#73296 (Remove vestigial CI job msvc-aux.)
 - rust-lang#73304 (Revert heterogeneous SocketAddr PartialEq impls)
 - rust-lang#73331 (extend network support for HermitCore)

Failed merges:

r? @ghost
@bors bors merged commit eef9356 into rust-lang:master Jun 15, 2020
@matthewjasper matthewjasper deleted the rustc_min_spec branch June 15, 2020 15:23
@workingjubilee workingjubilee added the F-min_specialization `#![feature(min_specialization)]` label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-min_specialization `#![feature(min_specialization)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants