Skip to content

Trait upcasting#60900

Closed
alexreg wants to merge 14 commits intorust-lang:masterfrom
alexreg:trait-upcasting
Closed

Trait upcasting#60900
alexreg wants to merge 14 commits intorust-lang:masterfrom
alexreg:trait-upcasting

Conversation

@alexreg
Copy link
Contributor

@alexreg alexreg commented May 17, 2019

Allows casting objects of type dyn Foo to dyn Bar whenever Foo: Bar.

r? @eddyb

CC @nikomatsakis

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 17, 2019
@alexreg
Copy link
Contributor Author

alexreg commented May 17, 2019

@eddyb This isn't complete yet, but an initial review would be appreciated. Also, if you could elaborate slightly on what remains, that would be helpful. (At the moment I don't think upcast objects get the right vtable pointer still, i.e. it just points to the start of the overall vtable, not the "subtable".)

@rust-highfive

This comment has been minimized.

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we had done away with "principal"? (don't change it here... just... we should fix this sometime?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, we kind of did, in my other PR (not yet merged), but it turns out there's a few more things. Easy to remove though.

@oli-obk
Copy link
Contributor

oli-obk commented May 17, 2019

Do you have some links to the related discussion, issues, RFCs?

Am I right in assuming that the current unfinished implementation will allow casting dyn Foo to Bar and Boo if Foo: Bar + Foo, even though one of these is definitely not possible because the vtables can't match? So the implementation strategy is solely for zero cost upcasting where the start of Foo's vtable is equal to the start of Bar's vtable?

@oli-obk

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@alexreg

This comment has been minimized.

@alexreg
Copy link
Contributor Author

alexreg commented May 17, 2019

Do you have some links to the related discussion, issues, RFCs?

Am I right in assuming that the current unfinished implementation will allow casting dyn Foo to Bar and Boo if Foo: Bar + Foo, even though one of these is definitely not possible because the vtables can't match? So the implementation strategy is solely for zero cost upcasting where the start of Foo's vtable is equal to the start of Bar's vtable?

I presume you meant Boo: Bar + Foo? This PR isn't allowing multi-trait objects though, so we don't need to worry about such cases unless one of Foo or Bar is an auto-trait, in which case the vtable isn't affected.

Anyway, for background, @nikomatsakis and I have discussed this feature informally for some time now, and we had a conversation on Zulip a few weeks ago, which @eddyb also participated in – I believe Eddy tagged you in a question right at the end and you replied, so you might have seen some of it? He explains the vtable layout in any case (which I may have gotten wrong in this PR, but hopefully not).

I believe the plan of action is to review & merge this PR under "experimentation in master", but write up an RFC simultaneously, if possible. I forget if anyone already volunteered for that (@Centril)?

@Centril
Copy link
Contributor

Centril commented May 17, 2019

I believe the plan of action is to review & merge this PR under "experimentation in master", but write up an RFC simultaneously, if possible. I forget if anyone already volunteered for that (@Centril)?

Yep; just need to find the time somehow =)

@oli-obk
Copy link
Contributor

oli-obk commented May 17, 2019

I am not talking about multi-trait object, but about traits with multiple parents:

trait A {
    fn a(&self) {}
}

trait B {
    fn b(&self) {}
}

trait Foo: A + B {}

impl A for () {}
impl B for () {}
impl Foo for () {}


fn main() {
    let x: &Foo = &();
    let y: &A = x;
}

Right now this will be unsound with the implementation at hand.

tagged you in a question right at the end and you replied, so you might have seen some of it?

Ah yes I remember, I mostly thought we were talking about deduplicating the vtable generation :D

I believe the plan of action is to review & merge this PR under "experimentation in master", but write up an RFC simultaneously, if possible.

Ok, can you open a tracking issue with some info about what's being done so PRs can reference it and we have a sort of central point to talk about things and collect links?

Copy link
Contributor

Choose a reason for hiding this comment

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

So basically right now all that needs doing is put a feature gate check around this code instead of uncommenting? (in order to get upcasting to parent traits if there is only a single parent trait?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, basically. I'll want to feature gate data_a.principal_def_id() == data_b.principal_def_id() in assemble_candidates_for_unsizing too, but that's probably about it.

@Centril
Copy link
Contributor

Centril commented May 17, 2019

Ok, can you open a tracking issue with some info about what's being done so PRs can reference it and we have a sort of central point to talk about things and collect links?

That sounds good; the current discussion has been centered in https://rust-lang.zulipchat.com/#narrow/stream/144729-wg-traits/topic/object.20upcasting.

@alexreg

This comment has been minimized.

@alexreg
Copy link
Contributor Author

alexreg commented May 17, 2019

@oli-obk

I am not talking about multi-trait object, but about traits with multiple parents:

trait A {
    fn a(&self) {}
}

trait B {
    fn b(&self) {}
}

trait Foo: A + B {}

impl A for () {}
impl B for () {}
impl Foo for () {}


fn main() {
    let x: &Foo = &();
    let y: &A = x;
}

Right now this will be unsound with the implementation at hand.

I'm probably missing something obvious... could you elaborate?

tagged you in a question right at the end and you replied, so you might have seen some of it?

Ah yes I remember, I mostly thought we were talking about deduplicating the vtable generation :D

Hah, yep, that was just a natural side-topic stemming from eddyb and I chatting about how to go about implementing this feature. :-)

I believe the plan of action is to review & merge this PR under "experimentation in master", but write up an RFC simultaneously, if possible.

Ok, can you open a tracking issue with some info about what's being done so PRs can reference it and we have a sort of central point to talk about things and collect links?

Will do shortly.

@oli-obk
Copy link
Contributor

oli-obk commented May 17, 2019

Any ideas?

The code you commented out does this relating. I presume the result of the equality check not ending up in the nested variable causes Trait + Send to be upcastable to neither Send nor Trait

@rust-highfive

This comment has been minimized.

@alexreg
Copy link
Contributor Author

alexreg commented May 17, 2019

The code you commented out does this relating. I presume the result of the equality check not ending up in the nested variable causes Trait + Send to be upcastable to neither Send nor Trait

Right, but shouldn't the subsequent bit beginning // Register an obligation for `dyn TraitA: TraitB`. cover for that?

Edit: maybe it's as simple as keeping that code and changing .eq to .lub...

@oli-obk
Copy link
Contributor

oli-obk commented May 19, 2019

I'm probably missing something obvious... could you elaborate?

The vtable of () as A looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as A>::a

The vtable of () as B looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as B>::b

The vtable of () as Foo looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as A>::a
* <() as B>::b

or implementation defined as

* ()::drop
* 1 (align)
* 0 (size)
* <() as B>::b
* <() as A>::a

(note the order of a and b)

So you can only ever upcast to either A or B when going from Foo, as only one of the vtables is fully available in Foo's vtable.> I'm probably missing something obvious... could you elaborate?

The vtable of () as A looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as A>::a

The vtable of () as B looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as B>::b

The vtable of () as Foo looks like

* ()::drop
* 1 (align)
* 0 (size)
* <() as A>::a
* <() as B>::b

or implementation defined as

* ()::drop
* 1 (align)
* 0 (size)
* <() as B>::b
* <() as A>::a

(note the order of a and b)

So you can only ever upcast to either A or B when going from Foo, as only one of the vtables is fully available in Foo's vtable.

In the zulip thread there was some discussion about doing something like

* ()::drop
* 1 (align)
* 0 (size)
* <() as B>::b
* ()::drop
* 1 (align)
* 0 (size)
* <() as A>::a

for Foo's vtable in order to have both bases to upcast to. I don't remember what the discussion on that was, and it also makes this feature not zero cost, so I don't see how to enable this feature without impacting stable users except by restricting it to upcasts for traits with a single base trait.

Though the memory regression is probably very small, it may still have a bad impact on embedded devs.

@alexreg
Copy link
Contributor Author

alexreg commented May 19, 2019

In the zulip thread there was some discussion about doing something like

Oh, I thought that's what I did implement already... I'm pretty sure it is, in fact. Can you explain why it isn't?

@oli-obk
Copy link
Contributor

oli-obk commented May 22, 2019

Ah, you're right. I misread the loop in meth.rs.

I'm not sure how to measure the impact of this. This will have some effect on binary sizes I presume (since all vtables of traits with multiple parent traits will now be bigger by 24 bytes per parent trait beyond the first).

@alexreg
Copy link
Contributor Author

alexreg commented May 22, 2019

@oli-obk Yeah... I think we (@nikomatsakis, @eddyb, myself) just implicitly discounted that as not so important during our conversation. If it's really a concern, maybe there's some sort of crater-like test we can run? I do think it's a very reasonable and small "hit" to take in any case.

@oli-obk
Copy link
Contributor

oli-obk commented May 25, 2019

I think it would be fine to just check by how much libstd and maybe some other large crates like cargo change their binary size. If it's negligible then we can just ignore it.

@alexreg
Copy link
Contributor Author

alexreg commented May 26, 2019

Sounds reasonable.

@bors

This comment has been minimized.

@alexreg
Copy link
Contributor Author

alexreg commented Jun 6, 2019

r? @nikomatsakis

@Dylan-DPC-zz
Copy link

Dylan-DPC-zz commented Apr 8, 2020

@alexreg if you can fix the tests and do a rebase, we can proceed with this

@alexreg
Copy link
Contributor Author

alexreg commented Apr 8, 2020

@Dylan-DPC Yep, will have a look at that tomorrow! :-)

@rust-highfive
Copy link
Contributor

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

Click to expand the log.
2020-04-09T02:46:41.1444452Z ========================== Starting Command Output ===========================
2020-04-09T02:46:41.1449534Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/a57ea53b-80c9-4a49-bd78-daab3013605f.sh
2020-04-09T02:46:41.1450044Z 
2020-04-09T02:46:41.1454746Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-09T02:46:41.1475623Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/60900/merge to s
2020-04-09T02:46:41.1479209Z Task         : Get sources
2020-04-09T02:46:41.1479535Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-09T02:46:41.1479848Z Version      : 1.0.0
2020-04-09T02:46:41.1480080Z Author       : Microsoft
---
2020-04-09T02:46:42.2997023Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-09T02:46:42.3008122Z ##[command]git config gc.auto 0
2020-04-09T02:46:42.3016697Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-09T02:46:42.3024809Z ##[command]git config --get-all http.proxy
2020-04-09T02:46:42.3038180Z ##[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/60900/merge:refs/remotes/pull/60900/merge
---
2020-04-09T02:49:02.5039411Z Looks like docker image is the same as before, not uploading
2020-04-09T02:49:10.1638557Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-09T02:49:10.1956866Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-09T02:49:10.1993459Z == clock drift check ==
2020-04-09T02:49:10.1996957Z   local time: Thu Apr  9 02:49:10 UTC 2020
2020-04-09T02:49:10.4885599Z   network time: Thu, 09 Apr 2020 02:49:10 GMT
2020-04-09T02:49:10.4915167Z Starting sccache server...
2020-04-09T02:49:10.5832822Z configure: processing command line
2020-04-09T02:49:10.5839565Z configure: 
2020-04-09T02:49:10.5841713Z configure: rust.dist-src        := False
---
2020-04-09T02:54:56.8903194Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-09T02:54:58.4890663Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-09T02:55:00.2477006Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-09T02:55:01.5467626Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-09T02:55:11.2758204Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-09T02:55:14.3109441Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-09T02:55:19.1563594Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-09T02:55:23.7260007Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-09T02:55:34.1641204Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-09T03:20:23.0332795Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-09T03:20:24.9580580Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-09T03:20:27.2174605Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-09T03:20:29.8308810Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-09T03:20:41.0665877Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-09T03:20:44.7787815Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-09T03:20:50.7727144Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-09T03:20:56.6883991Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-09T03:21:07.7710947Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-09T03:48:29.7152621Z .................................................................................................... 1100/9888
2020-04-09T03:48:38.4556430Z ...............................................i.................................................... 1200/9888
2020-04-09T03:48:46.0677324Z .................................................................................................... 1300/9888
2020-04-09T03:48:50.3220786Z .................................................................................................... 1400/9888
2020-04-09T03:48:57.8441087Z ...........................F...........F......................................FF.F.....F.FFF..FFF..F 1500/9888
2020-04-09T03:49:04.0002938Z ....FF.F.F...............FF.FF....FF...........F..F..F.......F.FF.................F..............F.. 1600/9888
2020-04-09T03:49:11.1480783Z ..............................F..F......................F..........F................................ 1700/9888
2020-04-09T03:49:15.2410862Z ...........F...................F.................F.................................................. 1800/9888
2020-04-09T03:49:25.1507597Z .FF.......F.........................................F.F...........................................i. 1900/9888
2020-04-09T03:49:33.2471652Z .................................................................................................... 2000/9888
2020-04-09T03:49:39.8239170Z ........................................................................................iiiii....... 2100/9888
2020-04-09T03:50:02.2194911Z .................................................................................................... 2300/9888
2020-04-09T03:50:04.5029472Z ....F............................................................................................... 2400/9888
2020-04-09T03:50:06.7648324Z .................................................................................................... 2500/9888
2020-04-09T03:50:13.0718024Z .................F.................................................................................. 2600/9888
---
2020-04-09T03:53:14.9213865Z ..............................................................i...............i..................... 5000/9888
2020-04-09T03:53:22.6014621Z .............................................................F..F................................... 5100/9888
2020-04-09T03:53:30.6177943Z .................................................................................................... 5200/9888
2020-04-09T03:53:36.1765833Z .......i............................................................................................ 5300/9888
2020-04-09T03:53:46.5185892Z ................................................................................................ii.i 5400/9888
2020-04-09T03:53:51.5489528Z i........i...i...................................................................................... 5500/9888
2020-04-09T03:54:00.4606344Z .........................................i.......................................................... 5700/9888
2020-04-09T03:54:10.9377392Z .............................................................ii..................................... 5800/9888
2020-04-09T03:54:18.2758360Z i................................................................................................... 5900/9888
2020-04-09T03:54:23.8372363Z .................................................................................................... 6000/9888
2020-04-09T03:54:23.8372363Z .................................................................................................... 6000/9888
2020-04-09T03:54:34.2486708Z ..............................................................................................ii...i 6100/9888
2020-04-09T03:54:46.5463140Z ..ii...........i.................................................................................... 6200/9888
2020-04-09T03:55:02.8206337Z .................................................................................................... 6400/9888
2020-04-09T03:55:08.8630394Z .................................................................................................... 6500/9888
2020-04-09T03:55:08.8630394Z .................................................................................................... 6500/9888
2020-04-09T03:55:28.5108492Z ........................i..ii....................................................................... 6600/9888
2020-04-09T03:55:51.6323668Z .................................................................................................... 6800/9888
2020-04-09T03:55:53.8731175Z ........................i........................................................................... 6900/9888
2020-04-09T03:55:56.0641414Z .................................................................................................... 7000/9888
2020-04-09T03:55:58.4170777Z ...............................................................i.................................... 7100/9888
---
2020-04-09T03:57:43.3234623Z .................................................................................................... 7800/9888
2020-04-09T03:57:47.8750110Z .................................................................................................... 7900/9888
2020-04-09T03:57:53.9923982Z .................................................................................................... 8000/9888
2020-04-09T03:58:01.8177407Z ............................i....................................................................... 8100/9888
2020-04-09T03:58:10.4696839Z ............................................................................iiiiii.iiii.i........... 8200/9888
2020-04-09T03:58:27.1301356Z .....................i......i....................................................................... 8400/9888
2020-04-09T03:58:32.0920174Z .................................................................................................... 8500/9888
2020-04-09T03:58:43.5652003Z .................................................................................................... 8600/9888
2020-04-09T03:58:56.3312906Z .................................................................................................... 8700/9888
2020-04-09T03:58:56.3312906Z .................................................................................................... 8700/9888
2020-04-09T03:59:02.1404100Z .................................................................................................... 8800/9888
2020-04-09T03:59:13.6340686Z .................................................................................................... 8900/9888
2020-04-09T03:59:48.9861739Z .................................................................................................... 9000/9888
2020-04-09T03:59:58.0958145Z .................................................................................................... 9100/9888
2020-04-09T04:00:05.5825104Z ...............................FF.FF.FF..F.......................................................... 9200/9888
2020-04-09T04:00:11.2761374Z .................................................................................................i.. 9300/9888
2020-04-09T04:00:24.0534779Z .................................................................................................... 9500/9888
2020-04-09T04:00:32.1281504Z .................................................................................................... 9600/9888
2020-04-09T04:00:41.6462710Z .................................................................................................... 9700/9888
2020-04-09T04:00:47.9698886Z ............................................................................................i....... 9800/9888
2020-04-09T04:00:47.9698886Z ............................................................................................i....... 9800/9888
2020-04-09T04:01:01.9455196Z ................................................................F.......................
2020-04-09T04:01:01.9459661Z failures:
2020-04-09T04:01:01.9512033Z 
2020-04-09T04:01:01.9512795Z ---- [ui] ui/array_const_index-0.rs stdout ----
2020-04-09T04:01:01.9513019Z 
2020-04-09T04:01:01.9514847Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9515455Z status: signal: 11
2020-04-09T04:01:01.9518014Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/array_const_index-0.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/array_const_index-0" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array_const_index-0/auxiliary"
2020-04-09T04:01:01.9520406Z ------------------------------------------
2020-04-09T04:01:01.9520878Z 
2020-04-09T04:01:01.9521568Z ------------------------------------------
2020-04-09T04:01:01.9522087Z stderr:
2020-04-09T04:01:01.9522087Z stderr:
2020-04-09T04:01:01.9522767Z ------------------------------------------
2020-04-09T04:01:01.9523795Z 
2020-04-09T04:01:01.9524586Z ------------------------------------------
2020-04-09T04:01:01.9524966Z 
2020-04-09T04:01:01.9525225Z 
2020-04-09T04:01:01.9525947Z ---- [ui] ui/array_const_index-1.rs stdout ----
2020-04-09T04:01:01.9526363Z 
2020-04-09T04:01:01.9526837Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9527377Z status: signal: 11
2020-04-09T04:01:01.9530171Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/array_const_index-1.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/array_const_index-1" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/array_const_index-1/auxiliary"
2020-04-09T04:01:01.9534266Z ------------------------------------------
2020-04-09T04:01:01.9534734Z 
2020-04-09T04:01:01.9535342Z ------------------------------------------
2020-04-09T04:01:01.9536027Z stderr:
2020-04-09T04:01:01.9536027Z stderr:
2020-04-09T04:01:01.9546237Z ------------------------------------------
2020-04-09T04:01:01.9546699Z 
2020-04-09T04:01:01.9547304Z ------------------------------------------
2020-04-09T04:01:01.9547649Z 
2020-04-09T04:01:01.9547890Z 
2020-04-09T04:01:01.9548551Z ---- [ui] ui/associated-const/defaults-not-assumed-fail.rs stdout ----
2020-04-09T04:01:01.9548953Z 
2020-04-09T04:01:01.9549376Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9549810Z status: signal: 11
2020-04-09T04:01:01.9552510Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-const/defaults-not-assumed-fail.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/associated-const/defaults-not-assumed-fail" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-const/defaults-not-assumed-fail/auxiliary"
2020-04-09T04:01:01.9564701Z ------------------------------------------
2020-04-09T04:01:01.9565369Z 
2020-04-09T04:01:01.9565974Z ------------------------------------------
2020-04-09T04:01:01.9566201Z stderr:
2020-04-09T04:01:01.9566201Z stderr:
2020-04-09T04:01:01.9566616Z ------------------------------------------
2020-04-09T04:01:01.9566809Z 
2020-04-09T04:01:01.9567228Z ------------------------------------------
2020-04-09T04:01:01.9567421Z 
2020-04-09T04:01:01.9567530Z 
2020-04-09T04:01:01.9567982Z ---- [ui] ui/consts/assoc_const_generic_impl.rs stdout ----
2020-04-09T04:01:01.9568243Z 
2020-04-09T04:01:01.9568530Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9568855Z status: signal: 11
2020-04-09T04:01:01.9571068Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/assoc_const_generic_impl.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/consts/assoc_const_generic_impl" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/assoc_const_generic_impl/auxiliary"
2020-04-09T04:01:01.9572979Z ------------------------------------------
2020-04-09T04:01:01.9573177Z 
2020-04-09T04:01:01.9573588Z ------------------------------------------
2020-04-09T04:01:01.9573832Z stderr:
2020-04-09T04:01:01.9573832Z stderr:
2020-04-09T04:01:01.9574246Z ------------------------------------------
2020-04-09T04:01:01.9574439Z 
2020-04-09T04:01:01.9574838Z ------------------------------------------
2020-04-09T04:01:01.9575045Z 
2020-04-09T04:01:01.9575153Z 
2020-04-09T04:01:01.9575581Z ---- [ui] ui/consts/const-array-oob.rs stdout ----
2020-04-09T04:01:01.9575794Z 
2020-04-09T04:01:01.9576091Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9576422Z status: signal: 11
2020-04-09T04:01:01.9578611Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-array-oob.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/consts/const-array-oob" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-array-oob/auxiliary"
2020-04-09T04:01:01.9580614Z ------------------------------------------
2020-04-09T04:01:01.9580813Z 
2020-04-09T04:01:01.9581217Z ------------------------------------------
2020-04-09T04:01:01.9581443Z stderr:
2020-04-09T04:01:01.9581443Z stderr:
2020-04-09T04:01:01.9581873Z ------------------------------------------
2020-04-09T04:01:01.9582068Z 
2020-04-09T04:01:01.9582473Z ------------------------------------------
2020-04-09T04:01:01.9582666Z 
2020-04-09T04:01:01.9582789Z 
2020-04-09T04:01:01.9583217Z ---- [ui] ui/consts/const-err-early.rs stdout ----
2020-04-09T04:01:01.9583428Z 
2020-04-09T04:01:01.9583710Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9584051Z status: signal: 11
2020-04-09T04:01:01.9603582Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-err-early.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/consts/const-err-early" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-err-early/auxiliary"
2020-04-09T04:01:01.9605513Z ------------------------------------------
2020-04-09T04:01:01.9605730Z 
2020-04-09T04:01:01.9606142Z ------------------------------------------
2020-04-09T04:01:01.9606368Z stderr:
2020-04-09T04:01:01.9606368Z stderr:
2020-04-09T04:01:01.9606776Z ------------------------------------------
2020-04-09T04:01:01.9606987Z 
2020-04-09T04:01:01.9607386Z ------------------------------------------
2020-04-09T04:01:01.9607579Z 
2020-04-09T04:01:01.9607696Z 
2020-04-09T04:01:01.9608141Z ---- [ui] ui/consts/const-err-multi.rs stdout ----
2020-04-09T04:01:01.9608353Z 
2020-04-09T04:01:01.9608636Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9608976Z status: signal: 11
2020-04-09T04:01:01.9611152Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-err-multi.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/consts/const-err-multi" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-err-multi/auxiliary"
2020-04-09T04:01:01.9612943Z ------------------------------------------
2020-04-09T04:01:01.9613145Z 
2020-04-09T04:01:01.9613564Z ------------------------------------------
2020-04-09T04:01:01.9613791Z stderr:
2020-04-09T04:01:01.9613791Z stderr:
2020-04-09T04:01:01.9614205Z ------------------------------------------
2020-04-09T04:01:01.9614398Z 
2020-04-09T04:01:01.9614817Z ------------------------------------------
2020-04-09T04:01:01.9615011Z 
2020-04-09T04:01:01.9615120Z 
2020-04-09T04:01:01.9615529Z ---- [ui] ui/consts/const-err.rs stdout ----
2020-04-09T04:01:01.9615744Z 
2020-04-09T04:01:01.9616189Z error: test compilation failed although it shouldn't!
2020-04-09T04:01:01.9616473Z status: signal: 11
2020-04-09T04:01:01.9618679Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-err.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/consts/const-err" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-Zforce-overflow-checks=on" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-err/auxiliary"
2020-04-09T04:01:01.9620639Z ------------------------------------------
2020-04-09T04:01:01.9620842Z 
2020-04-09T04:01:01.9621247Z ------------------------------------------
2020-04-09T04:01:01.9621493Z stderr:
2020-04-09T04:01:01.9621493Z stderr:
2020-04-09T04:01:01.9621920Z ------------------------------------------
2020-04-09T04:01:01.9622114Z 
2020-04-09T04:01:01.9622510Z ------------------------------------------
2020-04-09T04:01:01.9622719Z 
2020-04-09T04:01:01.9622828Z 
2020-04-09T04:01:01.9623354Z ---- [ui] ui/consts/const-eval/assign-to-static-within-other-static.rs stdout ----
2020-04-09T04:01:01.9623631Z 
2020-04-09T04:01:01.9623928Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9624252Z status: signal: 11
2020-04-09T04:01:01.9628550Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/assign-to-static-within-other-static.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/consts/const-eval/assign-to-static-within-other-static" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/assign-to-static-within-other-static/auxiliary"
2020-04-09T04:01:01.9630631Z ------------------------------------------
2020-04-09T04:01:01.9630830Z 
2020-04-09T04:01:01.9631234Z ------------------------------------------
2020-04-09T04:01:01.9631460Z stderr:
2020-04-09T04:01:01.9631460Z stderr:
2020-04-09T04:01:01.9631888Z ------------------------------------------
2020-04-09T04:01:01.9632090Z 
2020-04-09T04:01:01.9632490Z ------------------------------------------
2020-04-09T04:01:01.9632683Z 
2020-04-09T04:01:01.9632807Z 
2020-04-09T04:01:01.9633299Z ---- [ui] ui/consts/const-eval/conditional_array_execution.rs stdout ----
2020-04-09T04:01:01.9633556Z 
2020-04-09T04:01:01.9634009Z error: test compilation failed although it shouldn't!
2020-04-09T04:01:01.9634292Z status: signal: 11
2020-04-09T04:01:01.9636662Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/conditional_array_execution.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/consts/const-eval/conditional_array_execution" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/conditional_array_execution/auxiliary"
2020-04-09T04:01:01.9638588Z ------------------------------------------
2020-04-09T04:01:01.9638799Z 
2020-04-09T04:01:01.9639202Z ------------------------------------------
2020-04-09T04:01:01.9639487Z stderr:
2020-04-09T04:01:01.9639487Z stderr:
2020-04-09T04:01:01.9639917Z ------------------------------------------
2020-04-09T04:01:01.9640110Z 
2020-04-09T04:01:01.9640516Z ------------------------------------------
2020-04-09T04:01:01.9640710Z 
2020-04-09T04:01:01.9640816Z 
2020-04-09T04:01:01.9641316Z ---- [ui] ui/consts/const-eval/const-eval-overflow-2.rs stdout ----
2020-04-09T04:01:01.9641564Z 
2020-04-09T04:01:01.9641848Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9642184Z status: signal: 11
2020-04-09T04:01:01.9644498Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow-2.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/consts/const-eval/const-eval-overflow-2" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow-2/auxiliary"
2020-04-09T04:01:01.9646544Z ------------------------------------------
2020-04-09T04:01:01.9646741Z 
2020-04-09T04:01:01.9647161Z ------------------------------------------
2020-04-09T04:01:01.9647386Z stderr:
2020-04-09T04:01:01.9647386Z stderr:
2020-04-09T04:01:01.9647795Z ------------------------------------------
2020-04-09T04:01:01.9648005Z 
2020-04-09T04:01:01.9648406Z ------------------------------------------
2020-04-09T04:01:01.9648608Z 
2020-04-09T04:01:01.9648720Z 
2020-04-09T04:01:01.9649215Z ---- [ui] ui/consts/const-eval/const-eval-overflow-3.rs stdout ----
2020-04-09T04:01:01.9649461Z 
2020-04-09T04:01:01.9649742Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9650064Z status: signal: 11
2020-04-09T04:01:01.9652649Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow-3.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/consts/const-eval/const-eval-overflow-3" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow-3/auxiliary"
2020-04-09T04:01:01.9654591Z ------------------------------------------
2020-04-09T04:01:01.9654790Z 
2020-04-09T04:01:01.9655207Z ------------------------------------------
2020-04-09T04:01:01.9655433Z stderr:
2020-04-09T04:01:01.9655433Z stderr:
2020-04-09T04:01:01.9655843Z ------------------------------------------
2020-04-09T04:01:01.9656037Z 
2020-04-09T04:01:01.9656450Z ------------------------------------------
2020-04-09T04:01:01.9656643Z 
2020-04-09T04:01:01.9656749Z 
2020-04-09T04:01:01.9657231Z ---- [ui] ui/consts/const-eval/const-eval-overflow-4.rs stdout ----
2020-04-09T04:01:01.9657496Z 
2020-04-09T04:01:01.9657777Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9658099Z status: signal: 11
2020-04-09T04:01:01.9660420Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow-4.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/consts/const-eval/const-eval-overflow-4" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow-4/auxiliary"
2020-04-09T04:01:01.9662307Z ------------------------------------------
2020-04-09T04:01:01.9662501Z 
2020-04-09T04:01:01.9662906Z ------------------------------------------
2020-04-09T04:01:01.9663150Z stderr:
2020-04-09T04:01:01.9663150Z stderr:
2020-04-09T04:01:01.9663562Z ------------------------------------------
2020-04-09T04:01:01.9663756Z 
2020-04-09T04:01:01.9664166Z ------------------------------------------
2020-04-09T04:01:01.9664524Z 
2020-04-09T04:01:01.9664637Z 
2020-04-09T04:01:01.9665149Z ---- [ui] ui/consts/const-eval/const-eval-overflow2b.rs stdout ----
2020-04-09T04:01:01.9665523Z 
2020-04-09T04:01:01.9665828Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9666147Z status: signal: 11
2020-04-09T04:01:01.9669551Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow2b.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/consts/const-eval/const-eval-overflow2b" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow2b/auxiliary"
2020-04-09T04:01:01.9673106Z ------------------------------------------
2020-04-09T04:01:01.9673504Z 
2020-04-09T04:01:01.9674016Z ------------------------------------------
2020-04-09T04:01:01.9674466Z stderr:
2020-04-09T04:01:01.9674466Z stderr:
2020-04-09T04:01:01.9676194Z ------------------------------------------
2020-04-09T04:01:01.9676405Z 
2020-04-09T04:01:01.9677248Z ------------------------------------------
2020-04-09T04:01:01.9677474Z 
2020-04-09T04:01:01.9677583Z 
2020-04-09T04:01:01.9678107Z ---- [ui] ui/consts/const-eval/const-eval-overflow2.rs stdout ----
2020-04-09T04:01:01.9678353Z 
2020-04-09T04:01:01.9678655Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9679119Z status: signal: 11
2020-04-09T04:01:01.9681479Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow2.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/consts/const-eval/const-eval-overflow2" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow2/auxiliary"
2020-04-09T04:01:01.9683380Z ------------------------------------------
2020-04-09T04:01:01.9683594Z 
2020-04-09T04:01:01.9683992Z ------------------------------------------
2020-04-09T04:01:01.9684218Z stderr:
2020-04-09T04:01:01.9684218Z stderr:
2020-04-09T04:01:01.9684653Z ------------------------------------------
2020-04-09T04:01:01.9684846Z 
2020-04-09T04:01:01.9685247Z ------------------------------------------
2020-04-09T04:01:01.9685441Z 
2020-04-09T04:01:01.9685564Z 
2020-04-09T04:01:01.9686391Z ---- [ui] ui/consts/const-eval/const-eval-overflow2c.rs stdout ----
2020-04-09T04:01:01.9686638Z 
2020-04-09T04:01:01.9686923Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9687263Z status: signal: 11
2020-04-09T04:01:01.9692284Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const-eval-overflow2c.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/consts/const-eval/const-eval-overflow2c" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const-eval-overflow2c/auxiliary"
2020-04-09T04:01:01.9694402Z ------------------------------------------
2020-04-09T04:01:01.9694623Z 
2020-04-09T04:01:01.9695039Z ------------------------------------------
2020-04-09T04:01:01.9695516Z stderr:
2020-04-09T04:01:01.9695516Z stderr:
2020-04-09T04:01:01.9696211Z ------------------------------------------
2020-04-09T04:01:01.9696615Z 
2020-04-09T04:01:01.9698654Z ------------------------------------------
2020-04-09T04:01:01.9698864Z 
2020-04-09T04:01:01.9699182Z 
2020-04-09T04:01:01.9699734Z ---- [ui] ui/consts/const-eval/const_panic.rs stdout ----
2020-04-09T04:01:01.9700162Z 
2020-04-09T04:01:01.9700612Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9700959Z status: signal: 11
2020-04-09T04:01:01.9703285Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const_panic.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/consts/const-eval/const_panic" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const_panic/auxiliary"
2020-04-09T04:01:01.9709221Z ------------------------------------------
2020-04-09T04:01:01.9709428Z 
2020-04-09T04:01:01.9709855Z ------------------------------------------
2020-04-09T04:01:01.9710085Z stderr:
2020-04-09T04:01:01.9710085Z stderr:
2020-04-09T04:01:01.9710498Z ------------------------------------------
2020-04-09T04:01:01.9710692Z 
2020-04-09T04:01:01.9711115Z ------------------------------------------
2020-04-09T04:01:01.9711308Z 
2020-04-09T04:01:01.9711840Z 
2020-04-09T04:01:01.9712579Z ---- [ui] ui/consts/const-eval/const_panic_libcore.rs stdout ----
2020-04-09T04:01:01.9713110Z 
2020-04-09T04:01:01.9713792Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9714134Z status: signal: 11
2020-04-09T04:01:01.9716747Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const_panic_libcore.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/consts/const-eval/const_panic_libcore" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const_panic_libcore/auxiliary"
2020-04-09T04:01:01.9718808Z ------------------------------------------
2020-04-09T04:01:01.9719009Z 
2020-04-09T04:01:01.9719415Z ------------------------------------------
2020-04-09T04:01:01.9719659Z stderr:
2020-04-09T04:01:01.9719659Z stderr:
2020-04-09T04:01:01.9720071Z ------------------------------------------
2020-04-09T04:01:01.9720265Z 
2020-04-09T04:01:01.9720677Z ------------------------------------------
2020-04-09T04:01:01.9720869Z 
2020-04-09T04:01:01.9720977Z 
2020-04-09T04:01:01.9721645Z ---- [ui] ui/consts/const-eval/const_panic_libcore_main.rs stdout ----
2020-04-09T04:01:01.9721918Z 
2020-04-09T04:01:01.9722222Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9722634Z status: signal: 11
2020-04-09T04:01:01.9725944Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const_panic_libcore_main.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/consts/const-eval/const_panic_libcore_main" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const_panic_libcore_main/auxiliary"
2020-04-09T04:01:01.9728015Z ------------------------------------------
2020-04-09T04:01:01.9728394Z 
2020-04-09T04:01:01.9728850Z ------------------------------------------
2020-04-09T04:01:01.9729100Z stderr:
2020-04-09T04:01:01.9729100Z stderr:
2020-04-09T04:01:01.9729515Z ------------------------------------------
2020-04-09T04:01:01.9729708Z 
2020-04-09T04:01:01.9730102Z ------------------------------------------
2020-04-09T04:01:01.9730314Z 
2020-04-09T04:01:01.9730422Z 
2020-04-09T04:01:01.9730888Z ---- [ui] ui/consts/const-eval/const_raw_ptr_ops.rs stdout ----
2020-04-09T04:01:01.9731128Z 
2020-04-09T04:01:01.9731433Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9731757Z status: signal: 11
2020-04-09T04:01:01.9734039Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/const_raw_ptr_ops.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/consts/const-eval/const_raw_ptr_ops" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/const_raw_ptr_ops/auxiliary"
2020-04-09T04:01:01.9736267Z ------------------------------------------
2020-04-09T04:01:01.9736485Z 
2020-04-09T04:01:01.9736890Z ------------------------------------------
2020-04-09T04:01:01.9737119Z stderr:
2020-04-09T04:01:01.9737119Z stderr:
2020-04-09T04:01:01.9737674Z ------------------------------------------
2020-04-09T04:01:01.9737882Z 
2020-04-09T04:01:01.9738521Z ------------------------------------------
2020-04-09T04:01:01.9738719Z 
2020-04-09T04:01:01.9738843Z 
2020-04-09T04:01:01.9739366Z ---- [ui] ui/consts/const-eval/index_out_of_bounds.rs stdout ----
2020-04-09T04:01:01.9739611Z 
2020-04-09T04:01:01.9739895Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9740242Z status: signal: 11
2020-04-09T04:01:01.9742545Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/index_out_of_bounds.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/consts/const-eval/index_out_of_bounds" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/index_out_of_bounds/auxiliary"
2020-04-09T04:01:01.9751481Z ------------------------------------------
2020-04-09T04:01:01.9751733Z 
2020-04-09T04:01:01.9752344Z ------------------------------------------
2020-04-09T04:01:01.9752576Z stderr:
2020-04-09T04:01:01.9752576Z stderr:
2020-04-09T04:01:01.9753291Z ------------------------------------------
2020-04-09T04:01:01.9753523Z 
2020-04-09T04:01:01.9753933Z ------------------------------------------
2020-04-09T04:01:01.9754130Z 
2020-04-09T04:01:01.9754238Z 
2020-04-09T04:01:01.9754759Z ---- [ui] ui/consts/const-eval/index-out-of-bounds-never-type.rs stdout ----
2020-04-09T04:01:01.9755026Z 
2020-04-09T04:01:01.9755311Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9755653Z status: signal: 11
2020-04-09T04:01:01.9758179Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.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/consts/const-eval/index-out-of-bounds-never-type" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/index-out-of-bounds-never-type/auxiliary"
2020-04-09T04:01:01.9760364Z ------------------------------------------
2020-04-09T04:01:01.9760564Z 
2020-04-09T04:01:01.9760995Z ------------------------------------------
2020-04-09T04:01:01.9761222Z stderr:
2020-04-09T04:01:01.9761222Z stderr:
2020-04-09T04:01:01.9761872Z ------------------------------------------
2020-04-09T04:01:01.9762067Z 
2020-04-09T04:01:01.9762504Z ------------------------------------------
2020-04-09T04:01:01.9762698Z 
2020-04-09T04:01:01.9762805Z 
2020-04-09T04:01:01.9763262Z ---- [ui] ui/consts/const-eval/issue-43197.rs stdout ----
2020-04-09T04:01:01.9763513Z 
2020-04-09T04:01:01.9763958Z error: test compilation failed although it shouldn't!
2020-04-09T04:01:01.9764242Z status: signal: 11
2020-04-09T04:01:01.9766650Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/issue-43197.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/consts/const-eval/issue-43197" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/issue-43197/auxiliary"
2020-04-09T04:01:01.9768970Z ------------------------------------------
2020-04-09T04:01:01.9769173Z 
2020-04-09T04:01:01.9769580Z ------------------------------------------
2020-04-09T04:01:01.9769828Z stderr:
2020-04-09T04:01:01.9769828Z stderr:
2020-04-09T04:01:01.9770241Z ------------------------------------------
2020-04-09T04:01:01.9770434Z 
2020-04-09T04:01:01.9770845Z ------------------------------------------
2020-04-09T04:01:01.9771039Z 
2020-04-09T04:01:01.9771146Z 
2020-04-09T04:01:01.9771610Z ---- [ui] ui/consts/const-eval/issue-44578.rs stdout ----
2020-04-09T04:01:01.9771838Z 
2020-04-09T04:01:01.9772137Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9772461Z status: signal: 11
2020-04-09T04:01:01.9774653Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/issue-44578.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/consts/const-eval/issue-44578" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/issue-44578/auxiliary"
2020-04-09T04:01:01.9776658Z ------------------------------------------
2020-04-09T04:01:01.9776863Z 
2020-04-09T04:01:01.9777267Z ------------------------------------------
2020-04-09T04:01:01.9777494Z stderr:
2020-04-09T04:01:01.9777494Z stderr:
2020-04-09T04:01:01.9777919Z ------------------------------------------
2020-04-09T04:01:01.9778112Z 
2020-04-09T04:01:01.9778506Z ------------------------------------------
2020-04-09T04:01:01.9778699Z 
2020-04-09T04:01:01.9778824Z 
2020-04-09T04:01:01.9779281Z ---- [ui] ui/consts/const-eval/issue-50814-2.rs stdout ----
2020-04-09T04:01:01.9779513Z 
2020-04-09T04:01:01.9779817Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9780140Z status: signal: 11
2020-04-09T04:01:01.9782637Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/issue-50814-2.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/consts/const-eval/issue-50814-2" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/issue-50814-2/auxiliary"
2020-04-09T04:01:01.9784833Z ------------------------------------------
2020-04-09T04:01:01.9785058Z 
2020-04-09T04:01:01.9785464Z ------------------------------------------
2020-04-09T04:01:01.9785692Z stderr:
2020-04-09T04:01:01.9785692Z stderr:
2020-04-09T04:01:01.9786126Z ------------------------------------------
2020-04-09T04:01:01.9786322Z 
2020-04-09T04:01:01.9786720Z ------------------------------------------
2020-04-09T04:01:01.9786914Z 
2020-04-09T04:01:01.9787023Z 
2020-04-09T04:01:01.9787496Z ---- [ui] ui/consts/const-eval/issue-50814.rs stdout ----
2020-04-09T04:01:01.9787724Z 
2020-04-09T04:01:01.9788005Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9788344Z status: signal: 11
2020-04-09T04:01:01.9791047Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/issue-50814.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/consts/const-eval/issue-50814" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/issue-50814/auxiliary"
2020-04-09T04:01:01.9792982Z ------------------------------------------
2020-04-09T04:01:01.9793183Z 
2020-04-09T04:01:01.9793603Z ------------------------------------------
2020-04-09T04:01:01.9793829Z stderr:
2020-04-09T04:01:01.9793829Z stderr:
2020-04-09T04:01:01.9794237Z ------------------------------------------
2020-04-09T04:01:01.9794432Z 
2020-04-09T04:01:01.9794842Z ------------------------------------------
2020-04-09T04:01:01.9795043Z 
2020-04-09T04:01:01.9795152Z 
2020-04-09T04:01:01.9795621Z ---- [ui] ui/consts/const-eval/match-test-ptr-null.rs stdout ----
2020-04-09T04:01:01.9795883Z 
2020-04-09T04:01:01.9796164Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9796485Z status: signal: 11
2020-04-09T04:01:01.9798806Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/match-test-ptr-null.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/consts/const-eval/match-test-ptr-null" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/match-test-ptr-null/auxiliary"
2020-04-09T04:01:01.9800999Z ------------------------------------------
2020-04-09T04:01:01.9801197Z 
2020-04-09T04:01:01.9801599Z ------------------------------------------
2020-04-09T04:01:01.9803156Z stderr:
2020-04-09T04:01:01.9803156Z stderr:
2020-04-09T04:01:01.9803660Z ------------------------------------------
2020-04-09T04:01:01.9803979Z error[E0658]: `match` is not allowed in a `const`
2020-04-09T04:01:01.9805461Z   --> /checkout/src/test/ui/consts/const-eval/match-test-ptr-null.rs:6:9
2020-04-09T04:01:01.9805770Z    |
2020-04-09T04:01:01.9806020Z LL | /         match &1 as *const i32 as usize {
2020-04-09T04:01:01.9806406Z LL | |             //~^ ERROR casting pointers to integers in constants
2020-04-09T04:01:01.9806805Z LL | |             //~| ERROR `match` is not allowed in a `const`
2020-04-09T04:01:01.9807189Z LL | |             //~| ERROR evaluation of constant value failed
2020-04-09T04:01:01.9807749Z LL | |             n => n,
2020-04-09T04:01:01.9808129Z LL | |         }
2020-04-09T04:01:01.9808339Z    | |_________^
2020-04-09T04:01:01.9808505Z    |
2020-04-09T04:01:01.9808505Z    |
2020-04-09T04:01:01.9809297Z    = note: see issue #49146 <***/issues/49146> for more information
2020-04-09T04:01:01.9809752Z    = help: add `#![feature(const_if_match)]` to the crate attributes to enable
2020-04-09T04:01:01.9810289Z error[E0658]: casting pointers to integers in constants is unstable
2020-04-09T04:01:01.9810981Z   --> /checkout/src/test/ui/consts/const-eval/match-test-ptr-null.rs:6:15
2020-04-09T04:01:01.9811278Z    |
2020-04-09T04:01:01.9811278Z    |
2020-04-09T04:01:01.9811507Z LL |         match &1 as *const i32 as usize {
2020-04-09T04:01:01.9812050Z    |
2020-04-09T04:01:01.9812050Z    |
2020-04-09T04:01:01.9812667Z    = note: see issue #51910 <***/issues/51910> for more information
2020-04-09T04:01:01.9813144Z    = help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable
2020-04-09T04:01:01.9813551Z 
2020-04-09T04:01:01.9813963Z ------------------------------------------
2020-04-09T04:01:01.9814172Z 
2020-04-09T04:01:01.9814280Z 
2020-04-09T04:01:01.9814280Z 
2020-04-09T04:01:01.9814758Z ---- [ui] ui/consts/const-eval/panic-assoc-never-type.rs stdout ----
2020-04-09T04:01:01.9815004Z 
2020-04-09T04:01:01.9815302Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9815626Z status: signal: 11
2020-04-09T04:01:01.9817988Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/panic-assoc-never-type.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/consts/const-eval/panic-assoc-never-type" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/panic-assoc-never-type/auxiliary"
2020-04-09T04:01:01.9819918Z ------------------------------------------
2020-04-09T04:01:01.9820116Z 
2020-04-09T04:01:01.9820515Z ------------------------------------------
2020-04-09T04:01:01.9820742Z stderr:
2020-04-09T04:01:01.9820742Z stderr:
2020-04-09T04:01:01.9821170Z ------------------------------------------
2020-04-09T04:01:01.9821363Z 
2020-04-09T04:01:01.9821757Z ------------------------------------------
2020-04-09T04:01:01.9821958Z 
2020-04-09T04:01:01.9822082Z 
2020-04-09T04:01:01.9822543Z ---- [ui] ui/consts/const-eval/panic-never-type.rs stdout ----
2020-04-09T04:01:01.9822781Z 
2020-04-09T04:01:01.9823219Z error: test compilation failed although it shouldn't!
2020-04-09T04:01:01.9823517Z status: signal: 11
2020-04-09T04:01:01.9825935Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/panic-never-type.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/consts/const-eval/panic-never-type" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/panic-never-type/auxiliary"
2020-04-09T04:01:01.9827851Z ------------------------------------------
2020-04-09T04:01:01.9828109Z 
2020-04-09T04:01:01.9828513Z ------------------------------------------
2020-04-09T04:01:01.9828740Z stderr:
2020-04-09T04:01:01.9828740Z stderr:
2020-04-09T04:01:01.9829146Z ------------------------------------------
2020-04-09T04:01:01.9829355Z 
2020-04-09T04:01:01.9829749Z ------------------------------------------
2020-04-09T04:01:01.9829942Z 
2020-04-09T04:01:01.9830051Z 
2020-04-09T04:01:01.9830513Z ---- [ui] ui/consts/const-eval/pub_const_err.rs stdout ----
2020-04-09T04:01:01.9830879Z 
2020-04-09T04:01:01.9831355Z error: test compilation failed although it shouldn't!
2020-04-09T04:01:01.9831656Z status: signal: 11
2020-04-09T04:01:01.9833900Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/const-eval/pub_const_err.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/consts/const-eval/pub_const_err" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/const-eval/pub_const_err/auxiliary"
2020-04-09T04:01:01.9835749Z ------------------------------------------
2020-04-09T04:01:01.9835951Z 
2020-04-09T04:01:01.9836365Z ------------------------------------------
2020-04-09T04:01:01.9836590Z stderr:
2020-04-09T04:01:01.9836590Z stderr:
2020-04-09T04:01:01.9836998Z ------------------------------------------
2020-04-09T04:01:01.9837190Z 
2020-04-09T04:01:01.9837601Z ------------------------------------------
2020-04-09T04:01:01.9837793Z 
2020-04-09T04:01:01.9837901Z 
2020-04-09T04:01:01.9838363Z ---- [ui] ui/consts/const-eval/pub_const_err_bin.rs stdout ----
2020-04-09T04:01:01.9838619Z 
---
2020-04-09T04:01:01.9979618Z 
2020-04-09T04:01:01.9979725Z 
2020-04-09T04:01:01.9980189Z ---- [ui] ui/consts/miri_unleashed/assoc_const_2.rs stdout ----
2020-04-09T04:01:01.9980441Z 
2020-04-09T04:01:01.9980724Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9981049Z status: signal: 11
2020-04-09T04:01:01.9983447Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/miri_unleashed/assoc_const_2.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/consts/miri_unleashed/assoc_const_2" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/miri_unleashed/assoc_const_2/auxiliary"
2020-04-09T04:01:01.9985584Z ------------------------------------------
2020-04-09T04:01:01.9985785Z 
2020-04-09T04:01:01.9986189Z ------------------------------------------
2020-04-09T04:01:01.9986417Z stderr:
2020-04-09T04:01:01.9986417Z stderr:
2020-04-09T04:01:01.9986846Z ------------------------------------------
2020-04-09T04:01:01.9987038Z 
2020-04-09T04:01:01.9987448Z ------------------------------------------
2020-04-09T04:01:01.9987641Z 
2020-04-09T04:01:01.9987768Z 
2020-04-09T04:01:01.9988234Z ---- [ui] ui/consts/miri_unleashed/mutating_global.rs stdout ----
2020-04-09T04:01:01.9988478Z 
2020-04-09T04:01:01.9988775Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:01.9989099Z status: signal: 11
2020-04-09T04:01:01.9993222Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/miri_unleashed/mutating_global.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/consts/miri_unleashed/mutating_global" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-Zunleash-the-miri-inside-of-you" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/miri_unleashed/mutating_global/auxiliary"
2020-04-09T04:01:01.9995296Z ------------------------------------------
2020-04-09T04:01:01.9995514Z 
2020-04-09T04:01:01.9995919Z ------------------------------------------
2020-04-09T04:01:01.9996147Z stderr:
---
2020-04-09T04:01:02.0004063Z 
2020-04-09T04:01:02.0004171Z 
2020-04-09T04:01:02.0004686Z ---- [ui] ui/consts/static_mut_containing_mut_ref2.rs#mut_refs stdout ----
2020-04-09T04:01:02.0004968Z 
2020-04-09T04:01:02.0005319Z error in revision `mut_refs`: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0005705Z status: signal: 11
2020-04-09T04:01:02.0008148Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/static_mut_containing_mut_ref2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--cfg" "mut_refs" "--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/consts/static_mut_containing_mut_ref2.mut_refs" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/static_mut_containing_mut_ref2.mut_refs/auxiliary"
2020-04-09T04:01:02.0010879Z ------------------------------------------
2020-04-09T04:01:02.0011082Z 
2020-04-09T04:01:02.0011501Z ------------------------------------------
2020-04-09T04:01:02.0011740Z stderr:
2020-04-09T04:01:02.0011740Z stderr:
2020-04-09T04:01:02.0012153Z ------------------------------------------
2020-04-09T04:01:02.0012345Z 
2020-04-09T04:01:02.0012760Z ------------------------------------------
2020-04-09T04:01:02.0012952Z 
2020-04-09T04:01:02.0013060Z 
2020-04-09T04:01:02.0013529Z ---- [ui] ui/consts/static_mut_containing_mut_ref3.rs stdout ----
2020-04-09T04:01:02.0013789Z 
2020-04-09T04:01:02.0014070Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0014400Z status: signal: 11
2020-04-09T04:01:02.0016835Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/consts/static_mut_containing_mut_ref3.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/consts/static_mut_containing_mut_ref3" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/consts/static_mut_containing_mut_ref3/auxiliary"
2020-04-09T04:01:02.0018776Z ------------------------------------------
2020-04-09T04:01:02.0018973Z 
2020-04-09T04:01:02.0019372Z ------------------------------------------
2020-04-09T04:01:02.0019616Z stderr:
2020-04-09T04:01:02.0019616Z stderr:
2020-04-09T04:01:02.0020029Z ------------------------------------------
2020-04-09T04:01:02.0020230Z 
2020-04-09T04:01:02.0020628Z ------------------------------------------
2020-04-09T04:01:02.0020839Z 
2020-04-09T04:01:02.0020946Z 
2020-04-09T04:01:02.0021357Z ---- [ui] ui/error-codes/E0080.rs stdout ----
2020-04-09T04:01:02.0021558Z 
2020-04-09T04:01:02.0021853Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0022180Z status: signal: 11
2020-04-09T04:01:02.0024310Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-codes/E0080.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/error-codes/E0080" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0080/auxiliary"
2020-04-09T04:01:02.0026733Z ------------------------------------------
2020-04-09T04:01:02.0026936Z 
2020-04-09T04:01:02.0027339Z ------------------------------------------
2020-04-09T04:01:02.0027567Z stderr:
2020-04-09T04:01:02.0027567Z stderr:
2020-04-09T04:01:02.0027993Z ------------------------------------------
2020-04-09T04:01:02.0028187Z 
2020-04-09T04:01:02.0028581Z ------------------------------------------
2020-04-09T04:01:02.0028797Z 
2020-04-09T04:01:02.0028922Z 
2020-04-09T04:01:02.0029314Z ---- [ui] ui/eval-enum.rs stdout ----
2020-04-09T04:01:02.0029502Z 
2020-04-09T04:01:02.0029784Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0030139Z status: signal: 11
2020-04-09T04:01:02.0032193Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/eval-enum.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/eval-enum" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/eval-enum/auxiliary"
2020-04-09T04:01:02.0034111Z ------------------------------------------
2020-04-09T04:01:02.0034310Z 
2020-04-09T04:01:02.0034741Z ------------------------------------------
2020-04-09T04:01:02.0034969Z stderr:
2020-04-09T04:01:02.0034969Z stderr:
2020-04-09T04:01:02.0035376Z ------------------------------------------
2020-04-09T04:01:02.0035585Z 
2020-04-09T04:01:02.0035979Z ------------------------------------------
2020-04-09T04:01:02.0036172Z 
2020-04-09T04:01:02.0036279Z 
2020-04-09T04:01:02.0036781Z ---- [ui] ui/issues/issue-52023-array-size-pointer-cast.rs stdout ----
2020-04-09T04:01:02.0037036Z 
2020-04-09T04:01:02.0037316Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0037643Z status: signal: 11
2020-04-09T04:01:02.0040099Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-52023-array-size-pointer-cast.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-52023-array-size-pointer-cast" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-52023-array-size-pointer-cast/auxiliary"
2020-04-09T04:01:02.0042059Z ------------------------------------------
2020-04-09T04:01:02.0042255Z 
2020-04-09T04:01:02.0042670Z ------------------------------------------
2020-04-09T04:01:02.0042903Z stderr:
2020-04-09T04:01:02.0042903Z stderr:
2020-04-09T04:01:02.0043315Z ------------------------------------------
2020-04-09T04:01:02.0043686Z error[E0658]: casting pointers to integers in constants is unstable
2020-04-09T04:01:02.0044367Z   --> /checkout/src/test/ui/issues/issue-52023-array-size-pointer-cast.rs:2:17
2020-04-09T04:01:02.0044683Z    |
2020-04-09T04:01:02.0045042Z LL |     let _ = [0; (&0 as *const i32) as usize]; //~ ERROR casting pointers to integers in constants
2020-04-09T04:01:02.0045706Z    |
2020-04-09T04:01:02.0045706Z    |
2020-04-09T04:01:02.0046410Z    = note: see issue #51910 <***/issues/51910> for more information
2020-04-09T04:01:02.0046875Z    = help: add `#![feature(const_raw_ptr_to_usize_cast)]` to the crate attributes to enable
2020-04-09T04:01:02.0047303Z 
2020-04-09T04:01:02.0047714Z ------------------------------------------
2020-04-09T04:01:02.0047907Z 
2020-04-09T04:01:02.0048015Z 
2020-04-09T04:01:02.0048015Z 
2020-04-09T04:01:02.0048438Z ---- [ui] ui/issues/issue-52060.rs stdout ----
2020-04-09T04:01:02.0048662Z 
2020-04-09T04:01:02.0048943Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0049265Z status: signal: 11
2020-04-09T04:01:02.0051426Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-52060.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-52060" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-52060/auxiliary"
2020-04-09T04:01:02.0053192Z ------------------------------------------
2020-04-09T04:01:02.0053387Z 
2020-04-09T04:01:02.0053931Z ------------------------------------------
2020-04-09T04:01:02.0054181Z stderr:
2020-04-09T04:01:02.0054181Z stderr:
2020-04-09T04:01:02.0054593Z ------------------------------------------
2020-04-09T04:01:02.0054907Z error[E0013]: constants cannot refer to statics
2020-04-09T04:01:02.0055482Z   --> /checkout/src/test/ui/issues/issue-52060.rs:4:26
2020-04-09T04:01:02.0055738Z    |
2020-04-09T04:01:02.0055961Z LL | static B: [u32; 1] = [0; A.len()];
2020-04-09T04:01:02.0056451Z    |
2020-04-09T04:01:02.0056786Z    = help: consider extracting the value of the `static` to a `const`, and referring to that
2020-04-09T04:01:02.0057087Z 
2020-04-09T04:01:02.0057212Z 
---
2020-04-09T04:01:02.0061816Z 
2020-04-09T04:01:02.0062303Z ------------------------------------------
2020-04-09T04:01:02.0062506Z 
2020-04-09T04:01:02.0062615Z 
2020-04-09T04:01:02.0063160Z ---- [ui] ui/traits/trait-upcasting/cyclic-trait-resolution.rs stdout ----
2020-04-09T04:01:02.0064097Z thread '[ui] ui/traits/trait-upcasting/cyclic-trait-resolution.rs' panicked at '`compile-fail` header is useless in UI tests', src/tools/compiletest/src/header.rs:573:13
2020-04-09T04:01:02.0065270Z 
2020-04-09T04:01:02.0065797Z ---- [ui] ui/traits/trait-upcasting/invalid-upcast.rs stdout ----
2020-04-09T04:01:02.0065797Z ---- [ui] ui/traits/trait-upcasting/invalid-upcast.rs stdout ----
2020-04-09T04:01:02.0066692Z thread '[ui] ui/traits/trait-upcasting/invalid-upcast.rs' panicked at '`compile-fail` header is useless in UI tests', src/tools/compiletest/src/header.rs:573:13
2020-04-09T04:01:02.0067589Z ---- [ui] ui/traits/trait-upcasting/diamond.rs stdout ----
2020-04-09T04:01:02.0067816Z 
2020-04-09T04:01:02.0068010Z error: test run failed!
2020-04-09T04:01:02.0068249Z status: exit code: 101
---
2020-04-09T04:01:02.0078833Z 
2020-04-09T04:01:02.0079301Z ---- [ui] ui/traits/trait-upcasting/subtrait-method.rs stdout ----
2020-04-09T04:01:02.0079615Z diff of stderr:
2020-04-09T04:01:02.0079753Z 
2020-04-09T04:01:02.0080301Z - error[E0599]: no method named `c` found for type `&dyn Bar` in the current scope
2020-04-09T04:01:02.0080803Z + error[E0599]: no method named `c` found for reference `&dyn Bar` in the current scope
2020-04-09T04:01:02.0081386Z 2   --> $DIR/subtrait-method.rs:39:9
2020-04-09T04:01:02.0081810Z 4 LL |     bar.c();
2020-04-09T04:01:02.0081959Z 
2020-04-09T04:01:02.0082466Z -    |         ^ help: there is a method with a similar name: `a`
2020-04-09T04:01:02.0082965Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0082965Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0083318Z 6    |
2020-04-09T04:01:02.0083639Z 7    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0084361Z -    = note: the following trait defines an item `c`, perhaps you need to implement it:
2020-04-09T04:01:02.0084932Z -            candidate #1: `Baz`
2020-04-09T04:01:02.0085266Z + note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0085890Z +   --> $DIR/subtrait-method.rs:19:1
2020-04-09T04:01:02.0086149Z +    |
2020-04-09T04:01:02.0086346Z + LL | trait Baz: Bar {
2020-04-09T04:01:02.0086765Z 10 
2020-04-09T04:01:02.0086765Z 10 
2020-04-09T04:01:02.0087337Z - error[E0599]: no method named `b` found for type `&dyn Foo` in the current scope
2020-04-09T04:01:02.0087820Z + error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0088418Z 12   --> $DIR/subtrait-method.rs:43:9
2020-04-09T04:01:02.0088838Z 14 LL |     foo.b();
2020-04-09T04:01:02.0088988Z 
2020-04-09T04:01:02.0089508Z -    |         ^ help: there is a method with a similar name: `a`
2020-04-09T04:01:02.0090000Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0090000Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0090337Z 16    |
2020-04-09T04:01:02.0090681Z 17    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0091416Z -    = note: the following trait defines an item `b`, perhaps you need to implement it:
2020-04-09T04:01:02.0091967Z -            candidate #1: `Bar`
2020-04-09T04:01:02.0092316Z + note: `Bar` defines an item `b`, perhaps you need to implement it
2020-04-09T04:01:02.0092847Z +   --> $DIR/subtrait-method.rs:13:1
2020-04-09T04:01:02.0093290Z + LL | trait Bar: Foo {
2020-04-09T04:01:02.0093516Z +    | ^^^^^^^^^^^^^^
2020-04-09T04:01:02.0093694Z 20 
2020-04-09T04:01:02.0093694Z 20 
2020-04-09T04:01:02.0094256Z - error[E0599]: no method named `c` found for type `&dyn Foo` in the current scope
2020-04-09T04:01:02.0094737Z + error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0095316Z 22   --> $DIR/subtrait-method.rs:45:9
2020-04-09T04:01:02.0095744Z 24 LL |     foo.c();
2020-04-09T04:01:02.0095895Z 
2020-04-09T04:01:02.0096400Z -    |         ^ help: there is a method with a similar name: `a`
2020-04-09T04:01:02.0096912Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0096912Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0097251Z 26    |
2020-04-09T04:01:02.0097578Z 27    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0098325Z -    = note: the following trait defines an item `c`, perhaps you need to implement it:
2020-04-09T04:01:02.0098877Z -            candidate #1: `Baz`
2020-04-09T04:01:02.0099211Z + note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0099898Z +   --> $DIR/subtrait-method.rs:19:1
2020-04-09T04:01:02.0100125Z +    |
2020-04-09T04:01:02.0100322Z + LL | trait Baz: Bar {
2020-04-09T04:01:02.0100742Z 30 
2020-04-09T04:01:02.0100742Z 30 
2020-04-09T04:01:02.0101282Z - error[E0599]: no method named `b` found for type `&dyn Foo` in the current scope
2020-04-09T04:01:02.0101781Z + error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0102359Z 32   --> $DIR/subtrait-method.rs:49:9
2020-04-09T04:01:02.0102796Z 34 LL |     foo.b();
2020-04-09T04:01:02.0102947Z 
2020-04-09T04:01:02.0103452Z -    |         ^ help: there is a method with a similar name: `a`
2020-04-09T04:01:02.0103944Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0103944Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0104298Z 36    |
2020-04-09T04:01:02.0104766Z 37    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0105534Z -    = note: the following trait defines an item `b`, perhaps you need to implement it:
2020-04-09T04:01:02.0106115Z -            candidate #1: `Bar`
2020-04-09T04:01:02.0106449Z + note: `Bar` defines an item `b`, perhaps you need to implement it
2020-04-09T04:01:02.0106978Z +   --> $DIR/subtrait-method.rs:13:1
2020-04-09T04:01:02.0107416Z + LL | trait Bar: Foo {
2020-04-09T04:01:02.0107643Z +    | ^^^^^^^^^^^^^^
2020-04-09T04:01:02.0107836Z 40 
2020-04-09T04:01:02.0107836Z 40 
2020-04-09T04:01:02.0108505Z - error[E0599]: no method named `c` found for type `&dyn Foo` in the current scope
2020-04-09T04:01:02.0109001Z + error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0109637Z 42   --> $DIR/subtrait-method.rs:51:9
2020-04-09T04:01:02.0110050Z 44 LL |     foo.c();
2020-04-09T04:01:02.0110200Z 
2020-04-09T04:01:02.0110723Z -    |         ^ help: there is a method with a similar name: `a`
2020-04-09T04:01:02.0111223Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0111223Z +    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0111559Z 46    |
2020-04-09T04:01:02.0111900Z 47    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0112627Z -    = note: the following trait defines an item `c`, perhaps you need to implement it:
2020-04-09T04:01:02.0113178Z -            candidate #1: `Baz`
2020-04-09T04:01:02.0113528Z + note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0114065Z +   --> $DIR/subtrait-method.rs:19:1
2020-04-09T04:01:02.0114294Z +    |
2020-04-09T04:01:02.0114506Z + LL | trait Baz: Bar {
2020-04-09T04:01:02.0114907Z 50 
2020-04-09T04:01:02.0115150Z 51 error: aborting due to 5 previous errors
2020-04-09T04:01:02.0115373Z 52 
2020-04-09T04:01:02.0115488Z 
2020-04-09T04:01:02.0115488Z 
2020-04-09T04:01:02.0115597Z 
2020-04-09T04:01:02.0115849Z The actual stderr differed from the expected stderr.
2020-04-09T04:01:02.0116659Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-upcasting/subtrait-method/subtrait-method.stderr
2020-04-09T04:01:02.0117405Z To update references, rerun the tests and pass the `--bless` flag
2020-04-09T04:01:02.0118125Z To only update this specific test, also pass `--test-args traits/trait-upcasting/subtrait-method.rs`
2020-04-09T04:01:02.0118649Z error: 1 errors occurred comparing output.
2020-04-09T04:01:02.0118930Z status: exit code: 1
2020-04-09T04:01:02.0118930Z status: exit code: 1
2020-04-09T04:01:02.0121240Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/traits/trait-upcasting/subtrait-method.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/traits/trait-upcasting/subtrait-method" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-upcasting/subtrait-method/auxiliary"
2020-04-09T04:01:02.0123276Z ------------------------------------------
2020-04-09T04:01:02.0123474Z 
2020-04-09T04:01:02.0123892Z ------------------------------------------
2020-04-09T04:01:02.0124117Z stderr:
2020-04-09T04:01:02.0124117Z stderr:
2020-04-09T04:01:02.0124528Z ------------------------------------------
2020-04-09T04:01:02.0124937Z error[E0599]: no method named `c` found for reference `&dyn Bar` in the current scope
2020-04-09T04:01:02.0125633Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:39:9
2020-04-09T04:01:02.0126121Z LL |     bar.c();
2020-04-09T04:01:02.0126478Z    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0126803Z    |
2020-04-09T04:01:02.0127134Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0127134Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0127575Z note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0128219Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:19:1
2020-04-09T04:01:02.0128533Z    |
2020-04-09T04:01:02.0128721Z LL | trait Baz: Bar {
2020-04-09T04:01:02.0129084Z 
2020-04-09T04:01:02.0129084Z 
2020-04-09T04:01:02.0129404Z error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0130176Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:43:9
2020-04-09T04:01:02.0130670Z LL |     foo.b();
2020-04-09T04:01:02.0131028Z    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0131355Z    |
2020-04-09T04:01:02.0131686Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0131686Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0132127Z note: `Bar` defines an item `b`, perhaps you need to implement it
2020-04-09T04:01:02.0132807Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:13:1
2020-04-09T04:01:02.0133308Z LL | trait Bar: Foo {
2020-04-09T04:01:02.0133524Z    | ^^^^^^^^^^^^^^
2020-04-09T04:01:02.0133672Z 
2020-04-09T04:01:02.0133672Z 
2020-04-09T04:01:02.0133994Z error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0134679Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:45:9
2020-04-09T04:01:02.0135165Z LL |     foo.c();
2020-04-09T04:01:02.0135521Z    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0135846Z    |
2020-04-09T04:01:02.0136177Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0136177Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0136610Z note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0137261Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:19:1
2020-04-09T04:01:02.0137577Z    |
2020-04-09T04:01:02.0137762Z LL | trait Baz: Bar {
2020-04-09T04:01:02.0138126Z 
2020-04-09T04:01:02.0138126Z 
2020-04-09T04:01:02.0138444Z error[E0599]: no method named `b` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0139129Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:49:9
2020-04-09T04:01:02.0139611Z LL |     foo.b();
2020-04-09T04:01:02.0139972Z    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0140298Z    |
2020-04-09T04:01:02.0140627Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0140627Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0141059Z note: `Bar` defines an item `b`, perhaps you need to implement it
2020-04-09T04:01:02.0141701Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:13:1
2020-04-09T04:01:02.0142302Z LL | trait Bar: Foo {
2020-04-09T04:01:02.0142518Z    | ^^^^^^^^^^^^^^
2020-04-09T04:01:02.0142681Z 
2020-04-09T04:01:02.0142681Z 
2020-04-09T04:01:02.0142985Z error[E0599]: no method named `c` found for reference `&dyn Foo` in the current scope
2020-04-09T04:01:02.0143703Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:51:9
2020-04-09T04:01:02.0144183Z LL |     foo.c();
2020-04-09T04:01:02.0144684Z    |         ^ help: there is an associated function with a similar name: `a`
2020-04-09T04:01:02.0145022Z    |
2020-04-09T04:01:02.0145355Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0145355Z    = help: items from traits can only be used if the trait is implemented and in scope
2020-04-09T04:01:02.0145787Z note: `Baz` defines an item `c`, perhaps you need to implement it
2020-04-09T04:01:02.0146468Z   --> /checkout/src/test/ui/traits/trait-upcasting/subtrait-method.rs:19:1
2020-04-09T04:01:02.0146780Z    |
2020-04-09T04:01:02.0146966Z LL | trait Baz: Bar {
2020-04-09T04:01:02.0147351Z 
2020-04-09T04:01:02.0147561Z error: aborting due to 5 previous errors
2020-04-09T04:01:02.0147753Z 
2020-04-09T04:01:02.0148234Z For more information about this error, try `rustc --explain E0599`.
---
2020-04-09T04:01:02.0154304Z 
2020-04-09T04:01:02.0154411Z 
2020-04-09T04:01:02.0154871Z ---- [ui] ui/write-to-static-mut-in-static.rs stdout ----
2020-04-09T04:01:02.0155094Z 
2020-04-09T04:01:02.0155376Z error: Error: expected failure status (Some(1)) but received status None.
2020-04-09T04:01:02.0155698Z status: signal: 11
2020-04-09T04:01:02.0158272Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/write-to-static-mut-in-static.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/write-to-static-mut-in-static" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/write-to-static-mut-in-static/auxiliary"
2020-04-09T04:01:02.0160214Z ------------------------------------------
2020-04-09T04:01:02.0160414Z 
2020-04-09T04:01:02.0160834Z ------------------------------------------
2020-04-09T04:01:02.0161061Z stderr:
---
2020-04-09T04:01:02.0193141Z test result: FAILED. 9770 passed; 58 failed; 60 ignored; 0 measured; 0 filtered out
2020-04-09T04:01:02.0193450Z 
2020-04-09T04:01:02.0194001Z thread 'main' panicked at 'Some tests failed', 
2020-04-09T04:01:02.0194211Z 
2020-04-09T04:01:02.0199415Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-09T04:01:02.0202558Z 
2020-04-09T04:01:02.0202672Z 
2020-04-09T04:01:02.0202885Z src/tools/compiletest/src/main.rs:348:22
2020-04-09T04:01:02.0203688Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-09T04:01:02.0203688Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-09T04:01:02.0204112Z Build completed unsuccessfully in 1:10:03
2020-04-09T04:01:02.0204397Z == clock drift check ==
2020-04-09T04:01:02.0204690Z   local time: Thu Apr  9 04:01:01 UTC 2020
2020-04-09T04:01:02.1440656Z   network time: Thu, 09 Apr 2020 04:01:02 GMT
2020-04-09T04:01:02.5542104Z 
2020-04-09T04:01:02.5542104Z 
2020-04-09T04:01:02.5621636Z ##[error]Bash exited with code '1'.
2020-04-09T04:01:02.5639823Z ##[section]Finishing: Run build
2020-04-09T04:01:02.5703767Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/60900/merge to s
2020-04-09T04:01:02.5709917Z Task         : Get sources
2020-04-09T04:01:02.5710333Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-09T04:01:02.5710718Z Version      : 1.0.0
2020-04-09T04:01:02.5710975Z Author       : Microsoft
2020-04-09T04:01:02.5710975Z Author       : Microsoft
2020-04-09T04:01:02.5711487Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-09T04:01:02.5712077Z ==============================================================================
2020-04-09T04:01:02.9016680Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-09T04:01:02.9058624Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/60900/merge to s
2020-04-09T04:01:02.9148997Z Cleaning up task key
2020-04-09T04:01:02.9150549Z Start cleaning up orphan processes.
2020-04-09T04:01:02.9355195Z Terminate orphan process: pid (3370) (python)
2020-04-09T04:01:02.9587536Z ##[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
Collaborator

bors commented Apr 10, 2020

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

@alexreg
Copy link
Contributor Author

alexreg commented Apr 17, 2020

Good news: the PR is rebased and passing CI now! I'm going to try to take out some of the refactoring first and land that in a separate PR, as requested above, and then land this PR after.

@bors
Copy link
Collaborator

bors commented Apr 19, 2020

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

@bors
Copy link
Collaborator

bors commented Apr 27, 2020

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

@joelpalmer
Copy link

Ping from Triage: @alexreg Hi, please resolve the conflicts. Thanks

@alexreg
Copy link
Contributor Author

alexreg commented May 5, 2020

@joelpalmer Yep, resolve them locally... going to factor out some of these changes to a separate PR soon.

@nikomatsakis
Copy link
Contributor

Closing as "too big, needs to be broken up".

@Others
Copy link
Contributor

Others commented Aug 1, 2020

Did this ever go anywhere after this PR was closed? I have a use-case for this and I'm wondering if there has been any progress on trait upcasting, even on nightly.

@Aaron1011
Copy link
Contributor

I'm interested in reviving this - which parts would need to be split out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-trait_upcasting `#![feature(trait_upcasting)]` S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.