Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a single CtxtInterners #61392

Merged
merged 1 commit into from
Jul 4, 2019
Merged

Use a single CtxtInterners #61392

merged 1 commit into from
Jul 4, 2019

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented May 31, 2019

Builds on #57214

r? @eddyb

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

Zoxc commented May 31, 2019

@bors try

@bors
Copy link
Contributor

bors commented May 31, 2019

⌛ Trying commit bc52e4f1457cf7594dd3f4cd034b55a20a247068 with merge 870e5701636f71457ab8ee1a43db9da4e602c0c2...

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (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.
travis_time:end:08841213:start=1559299557140579932,finish=1559299557903114989,duration=762535057
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
travis_time:start:test_ui
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
[00:53:14] 
[00:53:14] running 5605 tests
[00:53:17] ..................................................F...............F................................. 100/5605
[00:53:27] .................................................................................................... 300/5605
[00:53:30] .................................................................................................... 400/5605
[00:53:33] ...................................................................................................i 500/5605
[00:53:36] .................................................................................................... 600/5605
[00:53:36] .................................................................................................... 600/5605
[00:53:40] .................................................................................................... 700/5605
[00:53:45] .................................................................................................... 800/5605
[00:53:49] .......................................................................................i...........i 900/5605
[00:53:53] .................................................................................................... 1000/5605
[00:53:57] ................iiiii............................................................................... 1100/5605
[00:53:59] .................................................................................................... 1200/5605
[00:54:02] .......F...........F................................................................................ 1300/5605
[00:54:04] ............................................................................................F....... 1400/5605
[00:54:10] .................................................................................................... 1600/5605
[00:54:13] ................................................i................................................... 1700/5605
[00:54:16] .................................................................................................... 1800/5605
[00:54:20] .................................................................................................... 1900/5605
[00:54:20] .................................................................................................... 1900/5605
[00:54:23] .................................................................................................... 2000/5605
[00:54:26] .....................................................................................i.............. 2100/5605
[00:54:30] .......................................................................................F............ 2200/5605
[00:54:34] ..................................................................................F................. 2300/5605
[00:54:42] .................................................................................................... 2500/5605
[00:54:46] .................................................................................................... 2600/5605
[00:54:49] .................................................................................................... 2700/5605
[00:54:53] .................................................................................................... 2800/5605
---
[00:56:13] .................................................................................................... 4800/5605
[00:56:19] .................................................................................................... 4900/5605
[00:56:22] .................................................................................................... 5000/5605
[00:56:26] .................................................................................................... 5100/5605
[00:56:30] .....F..........................................................................................F... 5200/5605
[00:56:36] .................................................................................................... 5400/5605
[00:56:39] .................................................................................................... 5500/5605
[00:56:39] .................................................................................................... 5500/5605
[00:56:42] ...........................................i........................F............................... 5600/5605
[00:56:42] failures:
[00:56:42] 
[00:56:42] ---- [ui] ui/associated-type/associated-type-projection-from-multiple-supertraits.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 25 error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
[00:56:42] 27    |
[00:56:42] - LL |     type Color;
[00:56:42] - LL |     type Color;
[00:56:42] -    |     ----------- `Color` defined here
[00:56:42] - ...
[00:56:42] 31 LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
[00:56:42] 32    |                          ^^^^^^^^^^^^^^^^^^^^^^^ associated type `Color` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-multiple-supertraits/associated-type-projection-from-multiple-supertraits.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-multiple-supertraits/associated-type-projection-from-multiple-supertraits.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args associated-type/associated-type-projection-from-multiple-supertraits.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-type/associated-type-projection-from-multiple-supertraits.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-multiple-supertraits" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-type/associated-type-projection-from-multiple-supertraits/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0221]: ambiguous associated type `Color` in bounds of `C`
[00:56:42]   --> /checkout/src/test/ui/associated-type/associated-type-projection-from-multiple-supertraits.rs:19:32
[00:56:42]    |
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Vehicle`
[00:56:42] LL |     type Color;
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Box`
[00:56:42] ...
[00:56:42] LL | fn dent<C:BoxCar>(c: C, color: C::Color) {
[00:56:42] 
[00:56:42] error[E0221]: ambiguous associated type `Color` in bounds of `BoxCar`
[00:56:42]   --> /checkout/src/test/ui/associated-type/associated-type-projection-from-multiple-supertraits.rs:23:37
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Vehicle`
[00:56:42] LL |     type Color;
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Box`
[00:56:42] ...
[00:56:42] LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
[00:56:42] 
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated type `Color` (from the trait `Vehicle`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL | fn dent_object<COLOR>(c: dyn BoxCar<Color=COLOR>) {
[00:56:42]    |                          ^^^^^^^^^^^^^^^^^^^^^^^ associated type `Color` must be specified
[00:56:42] error[E0221]: ambiguous associated type `Color` in bounds of `C`
[00:56:42]   --> /checkout/src/test/ui/associated-type/associated-type-projection-from-multiple-supertraits.rs:28:29
[00:56:42]    |
[00:56:42] LL |     type Color;
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Vehicle`
[00:56:42] LL |     type Color;
[00:56:42] LL |     type Color;
[00:56:42]    |     ----------- ambiguous `Color` from `Box`
[00:56:42] ...
[00:56:42] LL | fn paint<C:BoxCar>(c: C, d: C::Color) {
[00:56:42] 
[00:56:42] error: aborting due to 4 previous errors
[00:56:42] 
[00:56:42] Some errors have detailed explanations: E0191, E0221.
---
[00:56:42] 
[00:56:42] ---- [ui] ui/associated-types/associated-types-incomplete-object.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 1 error[E0191]: the value of the associated type `B` (from the trait `Foo`) must be specified
[00:56:42] 3    |
[00:56:42] - LL |     type B;
[00:56:42] -    |     ------- `B` defined here
[00:56:42] - ...
[00:56:42] - ...
[00:56:42] 7 LL |     let b = &42isize as &dyn Foo<A=usize>;
[00:56:42] 8    |                          ^^^^^^^^^^^^^^^^ associated type `B` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] 10 error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42] 12    |
[00:56:42] - LL |     type A;
[00:56:42] - LL |     type A;
[00:56:42] -    |     ------- `A` defined here
[00:56:42] - ...
[00:56:42] 16 LL |     let c = &42isize as &dyn Foo<B=char>;
[00:56:42] 17    |                          ^^^^^^^^^^^^^^^ associated type `A` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] 19 error[E0191]: the value of the associated types `A` (from the trait `Foo`), `B` (from the trait `Foo`) must be specified
[00:56:42] 21    |
[00:56:42] - LL |     type A;
[00:56:42] - LL |     type A;
[00:56:42] -    |     ------- `A` defined here
[00:56:42] - LL |     type B;
[00:56:42] -    |     ------- `B` defined here
[00:56:42] - ...
[00:56:42] 27 LL |     let d = &42isize as &dyn Foo;
[00:56:42] 29    |                          |
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-types/associated-types-incomplete-object/associated-types-incomplete-object.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args associated-types/associated-types-incomplete-object.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/associated-types/associated-types-incomplete-object.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-types/associated-types-incomplete-object" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/associated-types/associated-types-incomplete-object/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0191]: the value of the associated type `B` (from the trait `Foo`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     let b = &42isize as &dyn Foo<A=usize>;
[00:56:42]    |                          ^^^^^^^^^^^^^^^^ associated type `B` must be specified
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     let c = &42isize as &dyn Foo<B=char>;
[00:56:42]    |                          ^^^^^^^^^^^^^^^ associated type `A` must be specified
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated types `A` (from the trait `Foo`), `B` (from the trait `Foo`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     let d = &42isize as &dyn Foo;
[00:56:42]    |                          |
[00:56:42]    |                          associated type `A` must be specified
[00:56:42]    |                          associated type `B` must be specified
[00:56:42] 
---
[00:56:42] 
[00:56:42] ---- [ui] ui/error-codes/E0191.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 1 error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified
[00:56:42] 2   --> $DIR/E0191.rs:5:12
[00:56:42] - LL |     type Bar;
[00:56:42] - LL |     type Bar;
[00:56:42] -    |     --------- `Bar` defined here
[00:56:42] - ...
[00:56:42] 7 LL | type Foo = dyn Trait;
[00:56:42] 8    |            ^^^^^^^^^ associated type `Bar` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0191/E0191.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0191/E0191.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args error-codes/E0191.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-codes/E0191.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0191" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0191/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL | type Foo = dyn Trait; //~ ERROR E0191
[00:56:42]    |            ^^^^^^^^^ associated type `Bar` must be specified
[00:56:42] error: aborting due to previous error
[00:56:42] 
[00:56:42] For more information about this error, try `rustc --explain E0191`.
[00:56:42] 
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
[00:56:42] ---- [ui] ui/error-codes/E0220.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 7 error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified
[00:56:42] 8   --> $DIR/E0220.rs:5:12
[00:56:42] - LL |     type Bar;
[00:56:42] - LL |     type Bar;
[00:56:42] -    |     --------- `Bar` defined here
[00:56:42] - ...
[00:56:42] 13 LL | type Foo = dyn Trait<F=i32>;
[00:56:42] 14    |            ^^^^^^^^^^^^^^^^ associated type `Bar` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0220/E0220.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0220/E0220.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args error-codes/E0220.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-codes/E0220.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0220" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0220/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0220]: associated type `F` not found for `Trait`
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL | type Foo = dyn Trait<F=i32>; //~ ERROR E0220
[00:56:42]    |                      ^^^^^ associated type `F` not found
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated type `Bar` (from the trait `Trait`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL | type Foo = dyn Trait<F=i32>; //~ ERROR E0220
[00:56:42]    |            ^^^^^^^^^^^^^^^^ associated type `Bar` must be specified
[00:56:42] error: aborting due to 2 previous errors
[00:56:42] 
[00:56:42] Some errors have detailed explanations: E0191, E0220.
[00:56:42] For more information about an error, try `rustc --explain E0191`.
[00:56:42] For more information about an error, try `rustc --explain E0191`.
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
[00:56:42] ---- [ui] ui/existential-type/issue-60371.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 17              <&() as Bug>
[00:56:42] 18    = note: the return type of a function must have a statically known size
[00:56:42] - error: could not find defining uses
[00:56:42] -   --> $DIR/issue-60371.rs:8:5
[00:56:42] -    |
[00:56:42] -    |
[00:56:42] - LL |     existential type Item: Bug;
[00:56:42] - 
[00:56:42] - error: aborting due to 3 previous errors
[00:56:42] + error: aborting due to 2 previous errors
[00:56:42] 27 
[00:56:42] 27 
[00:56:42] 28 Some errors have detailed explanations: E0277, E0658.
[00:56:42] 29 For more information about an error, try `rustc --explain E0277`.
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/issue-60371.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args existential-type/issue-60371.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/existential-type/issue-60371.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0658]: existential types are unstable
[00:56:42]   --> /checkout/src/test/ui/existential-type/issue-60371.rs:8:5
[00:56:42]    |
[00:56:42] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:56:42]    |
[00:56:42]    = note: for more information, see https://github.com/rust-lang/rust/issues/34511
[00:56:42]    = help: add #![feature(existential_type)] to the crate attributes to enable
[00:56:42] 
[00:56:42] 
[00:56:42] error[E0277]: the trait bound `(): Bug` is not satisfied
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:56:42]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bug` is not implemented for `()`
[00:56:42]    = help: the following implementations were found:
[00:56:42]    = help: the following implementations were found:
[00:56:42]              <&() as Bug>
[00:56:42]    = note: the return type of a function must have a statically known size
[00:56:42] error: aborting due to 2 previous errors
[00:56:42] 
[00:56:42] Some errors have detailed explanations: E0277, E0658.
[00:56:42] For more information about an error, try `rustc --explain E0277`.
[00:56:42] For more information about an error, try `rustc --explain E0277`.
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
[00:56:42] ---- [ui] ui/issues/issue-19482.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 1 error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42] 3    |
[00:56:42] - LL |     type A;
[00:56:42] - LL |     type A;
[00:56:42] -    |     ------- `A` defined here
[00:56:42] - ...
[00:56:42] 7 LL | fn bar(x: &dyn Foo) {}
[00:56:42] 8    |            ^^^^^^^ associated type `A` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-19482/issue-19482.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-19482/issue-19482.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args issues/issue-19482.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-19482.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-19482" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-19482/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42]    |
[00:56:42] LL | fn bar(x: &dyn Foo) {}
[00:56:42]    |            ^^^^^^^ associated type `A` must be specified
[00:56:42] 
---
[00:56:42] 
[00:56:42] ---- [ui] ui/issues/issue-22434.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 1 error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42] 3    |
[00:56:42] - LL |     type A;
[00:56:42] - LL |     type A;
[00:56:42] -    |     ------- `A` defined here
[00:56:42] - ...
[00:56:42] 7 LL | type I<'a> = &'a (dyn Foo + 'a);
[00:56:42] 8    |                   ^^^^^^^^^^^^ associated type `A` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-22434/issue-22434.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-22434/issue-22434.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args issues/issue-22434.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-22434.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-22434" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-22434/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0191]: the value of the associated type `A` (from the trait `Foo`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL | type I<'a> = &'a (dyn Foo + 'a);
[00:56:42]    |                   ^^^^^^^^^^^^ associated type `A` must be specified
[00:56:42] error: aborting due to previous error
[00:56:42] 
[00:56:42] For more information about this error, try `rustc --explain E0191`.
[00:56:42] 
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
[00:56:42] ---- [ui] ui/suggestions/use-type-argument-instead-of-assoc-type.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 9 error[E0191]: the value of the associated types `A` (from the trait `T`), `C` (from the trait `T`) must be specified
[00:56:42] 11    |
[00:56:42] - LL |     type A;
[00:56:42] - LL |     type A;
[00:56:42] -    |     ------- `A` defined here
[00:56:42] - LL |     type B;
[00:56:42] - LL |     type C;
[00:56:42] -    |     ------- `C` defined here
[00:56:42] - ...
[00:56:42] 18 LL |     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
[00:56:42] 20    |            |
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/use-type-argument-instead-of-assoc-type/use-type-argument-instead-of-assoc-type.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args suggestions/use-type-argument-instead-of-assoc-type.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/use-type-argument-instead-of-assoc-type" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/suggestions/use-type-argument-instead-of-assoc-type/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0107]: wrong number of type arguments: expected 2, found 4
[00:56:42]   --> /checkout/src/test/ui/suggestions/use-type-argument-instead-of-assoc-type.rs:7:32
[00:56:42]    |
[00:56:42] LL |     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
[00:56:42]    |                                |
[00:56:42]    |                                unexpected type argument
[00:56:42] 
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated types `A` (from the trait `T`), `C` (from the trait `T`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     i: Box<dyn T<usize, usize, usize, usize, B=usize>>,
[00:56:42]    |            |
[00:56:42]    |            associated type `A` must be specified
[00:56:42]    |            associated type `C` must be specified
[00:56:42] help: if you meant to specify the associated types, write
[00:56:42] help: if you meant to specify the associated types, write
[00:56:42]    |
[00:56:42] LL |     i: Box<dyn T<usize, usize, A = usize, C = usize, B=usize>>,
[00:56:42] 
[00:56:42] error: aborting due to 2 previous errors
[00:56:42] 
[00:56:42] Some errors have detailed explanations: E0107, E0191.
---
[00:56:42] 
[00:56:42] ---- [ui] ui/traits/trait-object-with-self-in-projection-output-bad.rs stdout ----
[00:56:42] diff of stderr:
[00:56:42] 
[00:56:42] 1 error[E0191]: the value of the associated type `Output` (from the trait `Base`) must be specified
[00:56:42] 3    |
[00:56:42] - LL |     type Output;
[00:56:42] - LL |     type Output;
[00:56:42] -    |     ------------ `Output` defined here
[00:56:42] - ...
[00:56:42] 7 LL |     let _x: Box<dyn Helper<Target=i32>> = Box::new(2u32);
[00:56:42] 8    |                 ^^^^^^^^^^^^^^^^^^^^^^ associated type `Output` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] 10 error[E0191]: the value of the associated type `Output` (from the trait `Base`) must be specified
[00:56:42] 12    |
[00:56:42] - LL |     type Output;
[00:56:42] - LL |     type Output;
[00:56:42] -    |     ------------ `Output` defined here
[00:56:42] - ...
[00:56:42] 16 LL |     let _y: Box<dyn NormalizableHelper<Target=i32>> = Box::new(2u32);
[00:56:42] 17    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Output` must be specified
[00:56:42] 
[00:56:42] 
[00:56:42] The actual stderr differed from the expected stderr.
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-object-with-self-in-projection-output-bad/trait-object-with-self-in-projection-output-bad.stderr
[00:56:42] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-object-with-self-in-projection-output-bad/trait-object-with-self-in-projection-output-bad.stderr
[00:56:42] To update references, rerun the tests and pass the `--bless` flag
[00:56:42] To only update this specific test, also pass `--test-args traits/trait-object-with-self-in-projection-output-bad.rs`
[00:56:42] error: 1 errors occurred comparing output.
[00:56:42] status: exit code: 1
[00:56:42] status: exit code: 1
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/traits/trait-object-with-self-in-projection-output-bad.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-object-with-self-in-projection-output-bad" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-object-with-self-in-projection-output-bad/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] error[E0191]: the value of the associated type `Output` (from the trait `Base`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     let _x: Box<dyn Helper<Target=i32>> = Box::new(2u32);
[00:56:42]    |                 ^^^^^^^^^^^^^^^^^^^^^^ associated type `Output` must be specified
[00:56:42] 
[00:56:42] error[E0191]: the value of the associated type `Output` (from the trait `Base`) must be specified
[00:56:42]    |
[00:56:42]    |
[00:56:42] LL |     let _y: Box<dyn NormalizableHelper<Target=i32>> = Box::new(2u32);
[00:56:42]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated type `Output` must be specified
[00:56:42] error: aborting due to 2 previous errors
[00:56:42] 
[00:56:42] For more information about this error, try `rustc --explain E0191`.
[00:56:42] 
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
[00:56:42] ---- [ui] ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs stdout ----
[00:56:42] 
[00:56:42] error: Error: expected failure status (Some(1)) but received status Some(101).
[00:56:42] status: exit code: 101
[00:56:42] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/wf/wf-packed-on-proj-of-type-as-unimpl-trait/auxiliary" "-A" "unused"
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] stderr:
[00:56:42] stderr:
[00:56:42] ------------------------------------------
[00:56:42] thread 'rustc' panicked at 'assertion failed: !ty.needs_infer()', src/librustc/ty/util.rs:1001:5
[00:56:42] 
[00:56:42] error: internal compiler error: unexpected panic
[00:56:42] 
[00:56:42] note: the compiler unexpectedly panicked. this is a bug.
[00:56:42] note: the compiler unexpectedly panicked. this is a bug.
[00:56:42] 
[00:56:42] note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
[00:56:42] 
[00:56:42] note: rustc 1.37.0-dev running on x86_64-unknown-linux-gnu
[00:56:42] 
[00:56:42] note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath -C debuginfo=0
[00:56:42] 
[00:56:42] ------------------------------------------
[00:56:42] 
[00:56:42] 
---
[00:56:42] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:521:22
[00:56:42] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[00:56:42] 
[00:56:42] 
[00:56:42] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:56:42] 
[00:56:42] 
[00:56:42] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:56:42] Build completed unsuccessfully in 0:52:03
---
travis_time:end:00f5921a:start=1559302972010279353,finish=1559302972017082231,duration=6802878
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:26296601
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:28acab73
$ dmesg | grep -i kill

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

src/librustc/ty/context.rs Outdated Show resolved Hide resolved
src/librustc/ty/context.rs Outdated Show resolved Hide resolved
@bors
Copy link
Contributor

bors commented May 31, 2019

☀️ Try build successful - checks-travis
Build commit: 870e5701636f71457ab8ee1a43db9da4e602c0c2

@Zoxc
Copy link
Contributor Author

Zoxc commented May 31, 2019

@rust-timer build 870e5701636f71457ab8ee1a43db9da4e602c0c2

@rust-timer
Copy link
Collaborator

Success: Queued 870e5701636f71457ab8ee1a43db9da4e602c0c2 with parent 3ade426, comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 870e5701636f71457ab8ee1a43db9da4e602c0c2, comparison URL.

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (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.
travis_time:end:0020a8a1:start=1559365259953032784,finish=1559365348736358518,duration=88783325734
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[00:54:52] i................................................................................................... 1000/5609
[00:54:56] .................iiiii.............................................................................. 1100/5609
[00:54:59] .................................................................................................... 1200/5609
[00:55:01] .................................................................................................... 1300/5609
[00:55:04] .............................................................................................F...... 1400/5609
[00:55:10] .................................................................................................... 1600/5609
[00:55:13] .................................................i.................................................. 1700/5609
[00:55:16] .................................................................................................... 1800/5609
[00:55:20] .................................................................................................... 1900/5609
---
[00:57:46] 
[00:57:46] ---- [ui] ui/existential-type/issue-60371.rs stdout ----
[00:57:46] diff of stderr:
[00:57:46] 
[00:57:46] 17              <&() as Bug>
[00:57:46] 18    = note: the return type of a function must have a statically known size
[00:57:46] - error: could not find defining uses
[00:57:46] -   --> $DIR/issue-60371.rs:8:5
[00:57:46] -    |
[00:57:46] -    |
[00:57:46] - LL |     existential type Item: Bug;
[00:57:46] - 
[00:57:46] - error: aborting due to 3 previous errors
[00:57:46] + error: aborting due to 2 previous errors
[00:57:46] 27 
[00:57:46] 27 
[00:57:46] 28 Some errors have detailed explanations: E0277, E0658.
[00:57:46] 29 For more information about an error, try `rustc --explain E0277`.
[00:57:46] 
[00:57:46] 
[00:57:46] The actual stderr differed from the expected stderr.
[00:57:46] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/issue-60371.stderr
[00:57:46] To update references, rerun the tests and pass the `--bless` flag
[00:57:46] To only update this specific test, also pass `--test-args existential-type/issue-60371.rs`
[00:57:46] error: 1 errors occurred comparing output.
[00:57:46] status: exit code: 1
[00:57:46] status: exit code: 1
[00:57:46] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/existential-type/issue-60371.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/auxiliary" "-A" "unused"
[00:57:46] ------------------------------------------
[00:57:46] 
[00:57:46] ------------------------------------------
[00:57:46] stderr:
[00:57:46] stderr:
[00:57:46] ------------------------------------------
[00:57:46] error[E0658]: existential types are unstable
[00:57:46]   --> /checkout/src/test/ui/existential-type/issue-60371.rs:8:5
[00:57:46]    |
[00:57:46] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:57:46]    |
[00:57:46]    = note: for more information, see https://github.com/rust-lang/rust/issues/34511
[00:57:46]    = help: add #![feature(existential_type)] to the crate attributes to enable
[00:57:46] 
[00:57:46] 
[00:57:46] error[E0277]: the trait bound `(): Bug` is not satisfied
[00:57:46]    |
[00:57:46]    |
[00:57:46] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:57:46]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bug` is not implemented for `()`
[00:57:46]    = help: the following implementations were found:
[00:57:46]    = help: the following implementations were found:
[00:57:46]              <&() as Bug>
[00:57:46]    = note: the return type of a function must have a statically known size
[00:57:46] error: aborting due to 2 previous errors
[00:57:46] 
[00:57:46] Some errors have detailed explanations: E0277, E0658.
[00:57:46] For more information about an error, try `rustc --explain E0277`.
---
[00:57:46] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:521:22
[00:57:46] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[00:57:46] 
[00:57:46] 
[00:57:46] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:57:46] 
[00:57:46] 
[00:57:46] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:57:46] Build completed unsuccessfully in 0:53:40

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

@bors
Copy link
Contributor

bors commented Jun 1, 2019

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

src/librustc/ty/context.rs Outdated Show resolved Hide resolved
src/librustc/macros.rs Outdated Show resolved Hide resolved
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (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.
travis_time:end:36a58306:start=1560371804843109603,finish=1560371805662075276,duration=818965673
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---

[00:04:26] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:04:27] tidy error: /checkout/src/librustc/ty/context.rs: ignoring file length unnecessarily
[00:04:31] some tidy checks failed
[00:04:31] 
[00:04:31] 
[00:04:31] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:04:31] 
[00:04:31] 
[00:04:31] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:04:31] Build completed unsuccessfully in 0:01:13
---
travis_time:end:0a65b8b0:start=1560372090108384055,finish=1560372090113132888,duration=4748833
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:15edefba
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:015a625a
travis_time:start:015a625a
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:1bf32a31
$ dmesg | grep -i kill

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

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (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.
travis_time:end:25cb411e:start=1560373042291018802,finish=1560373043106327394,duration=815308592
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[00:55:22] ..................................................................iiiii............................. 1100/5676
[00:55:25] .................................................................................................... 1200/5676
[00:55:28] .................................................................................................... 1300/5676
[00:55:30] .................................................................................................... 1400/5676
[00:55:33] ...........................................F........................................................ 1500/5676
[00:55:38] .................................................................................................... 1700/5676
[00:55:42] .i.................................................................................................. 1800/5676
[00:55:45] .................................................................................................... 1900/5676
[00:55:49] .................................................................................................... 2000/5676
---
[00:58:10] 
[00:58:10] ---- [ui] ui/existential-type/issue-60371.rs stdout ----
[00:58:10] diff of stderr:
[00:58:10] 
[00:58:10] 17              <&() as Bug>
[00:58:10] 18    = note: the return type of a function must have a statically known size
[00:58:10] - error: could not find defining uses
[00:58:10] -   --> $DIR/issue-60371.rs:8:5
[00:58:10] -    |
[00:58:10] -    |
[00:58:10] - LL |     existential type Item: Bug;
[00:58:10] - 
[00:58:10] - error: aborting due to 3 previous errors
[00:58:10] + error: aborting due to 2 previous errors
[00:58:10] 27 
[00:58:10] 27 
[00:58:10] 28 Some errors have detailed explanations: E0277, E0658.
[00:58:10] 29 For more information about an error, try `rustc --explain E0277`.
[00:58:10] 
[00:58:10] 
[00:58:10] The actual stderr differed from the expected stderr.
[00:58:10] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/issue-60371.stderr
[00:58:10] To update references, rerun the tests and pass the `--bless` flag
[00:58:10] To only update this specific test, also pass `--test-args existential-type/issue-60371.rs`
[00:58:10] error: 1 errors occurred comparing output.
[00:58:10] status: exit code: 1
[00:58:10] status: exit code: 1
[00:58:10] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/existential-type/issue-60371.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/auxiliary" "-A" "unused"
[00:58:10] ------------------------------------------
[00:58:10] 
[00:58:10] ------------------------------------------
[00:58:10] stderr:
[00:58:10] stderr:
[00:58:10] ------------------------------------------
[00:58:10] error[E0658]: existential types are unstable
[00:58:10]   --> /checkout/src/test/ui/existential-type/issue-60371.rs:8:5
[00:58:10]    |
[00:58:10] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:58:10]    |
[00:58:10]    = note: for more information, see https://github.com/rust-lang/rust/issues/34511
[00:58:10]    = help: add #![feature(existential_type)] to the crate attributes to enable
[00:58:10] 
[00:58:10] 
[00:58:10] error[E0277]: the trait bound `(): Bug` is not satisfied
[00:58:10]    |
[00:58:10]    |
[00:58:10] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:58:10]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bug` is not implemented for `()`
[00:58:10]    = help: the following implementations were found:
[00:58:10]    = help: the following implementations were found:
[00:58:10]              <&() as Bug>
[00:58:10]    = note: the return type of a function must have a statically known size
[00:58:10] error: aborting due to 2 previous errors
[00:58:10] 
[00:58:10] Some errors have detailed explanations: E0277, E0658.
[00:58:10] For more information about an error, try `rustc --explain E0277`.
---
[00:58:10] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:521:22
[00:58:10] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[00:58:10] 
[00:58:10] 
[00:58:10] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:58:10] 
[00:58:10] 
[00:58:10] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:58:10] Build completed unsuccessfully in 0:53:20

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

@bors
Copy link
Contributor

bors commented Jun 14, 2019

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

@Zoxc Zoxc force-pushed the single-interner branch 2 times, most recently from 48a01ba to fc4d492 Compare June 14, 2019 19:59
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed on Travis (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.
travis_time:end:384fdcdf:start=1560542942419741944,finish=1560542944616649614,duration=2196907670
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[00:53:24] ...................................................................iiiii............................ 1100/5679
[00:53:28] .................................................................................................... 1200/5679
[00:53:30] .................................................................................................... 1300/5679
[00:53:32] .................................................................................................... 1400/5679
[00:53:35] ............................................F....................................................... 1500/5679
[00:53:40] .................................................................................................... 1700/5679
[00:53:44] ..i................................................................................................. 1800/5679
[00:53:47] .................................................................................................... 1900/5679
[00:53:51] .................................................................................................... 2000/5679
---
[00:56:07] 
[00:56:07] ---- [ui] ui/existential-type/issue-60371.rs stdout ----
[00:56:07] diff of stderr:
[00:56:07] 
[00:56:07] 17              <&() as Bug>
[00:56:07] 18    = note: the return type of a function must have a statically known size
[00:56:07] - error: could not find defining uses
[00:56:07] -   --> $DIR/issue-60371.rs:8:5
[00:56:07] -    |
[00:56:07] -    |
[00:56:07] - LL |     existential type Item: Bug;
[00:56:07] - 
[00:56:07] - error: aborting due to 3 previous errors
[00:56:07] + error: aborting due to 2 previous errors
[00:56:07] 27 
[00:56:07] 27 
[00:56:07] 28 Some errors have detailed explanations: E0277, E0658.
[00:56:07] 29 For more information about an error, try `rustc --explain E0277`.
[00:56:07] 
[00:56:07] 
[00:56:07] The actual stderr differed from the expected stderr.
[00:56:07] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/issue-60371.stderr
[00:56:07] To update references, rerun the tests and pass the `--bless` flag
[00:56:07] To only update this specific test, also pass `--test-args existential-type/issue-60371.rs`
[00:56:07] error: 1 errors occurred comparing output.
[00:56:07] status: exit code: 1
[00:56:07] status: exit code: 1
[00:56:07] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/existential-type/issue-60371.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/existential-type/issue-60371/auxiliary" "-A" "unused"
[00:56:07] ------------------------------------------
[00:56:07] 
[00:56:07] ------------------------------------------
[00:56:07] stderr:
[00:56:07] stderr:
[00:56:07] ------------------------------------------
[00:56:07] error[E0658]: existential types are unstable
[00:56:07]   --> /checkout/src/test/ui/existential-type/issue-60371.rs:8:5
[00:56:07]    |
[00:56:07] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:56:07]    |
[00:56:07]    = note: for more information, see https://github.com/rust-lang/rust/issues/34511
[00:56:07]    = help: add #![feature(existential_type)] to the crate attributes to enable
[00:56:07] 
[00:56:07] 
[00:56:07] error[E0277]: the trait bound `(): Bug` is not satisfied
[00:56:07]    |
[00:56:07]    |
[00:56:07] LL |     existential type Item: Bug; //~ ERROR existential types are unstable
[00:56:07]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Bug` is not implemented for `()`
[00:56:07]    = help: the following implementations were found:
[00:56:07]    = help: the following implementations were found:
[00:56:07]              <&() as Bug>
[00:56:07]    = note: the return type of a function must have a statically known size
[00:56:07] error: aborting due to 2 previous errors
[00:56:07] 
[00:56:07] Some errors have detailed explanations: E0277, E0658.
[00:56:07] For more information about an error, try `rustc --explain E0277`.
---
[00:56:07] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:521:22
[00:56:07] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[00:56:07] 
[00:56:07] 
[00:56:07] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:56:07] 
[00:56:07] 
[00:56:07] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[00:56:07] Build completed unsuccessfully in 0:51:35
---
travis_time:end:0091d1f6:start=1560546324514451452,finish=1560546324520986520,duration=6535068
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:079707d4
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:0f0e66e5
$ dmesg | grep -i kill

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

@Zoxc
Copy link
Contributor Author

Zoxc commented Jun 15, 2019

This includes #61871.

@bors
Copy link
Contributor

bors commented Jun 19, 2019

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

@Zoxc
Copy link
Contributor Author

Zoxc commented Jul 2, 2019

Rebased and ready for review.

@@ -1015,8 +974,6 @@ pub struct FreeRegionInfo {
#[derive(Copy, Clone)]
pub struct TyCtxt<'tcx> {
gcx: &'tcx GlobalCtxt<'tcx>,
Copy link
Member

Choose a reason for hiding this comment

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

Oh we should probably get rid of gcx as well, heh.

@eddyb
Copy link
Member

eddyb commented Jul 2, 2019

@bors r+

@Zoxc Zoxc closed this Jul 3, 2019
@Zoxc Zoxc reopened this Jul 3, 2019
@Zoxc
Copy link
Contributor Author

Zoxc commented Jul 3, 2019

@bors r=eddyb

@bors
Copy link
Contributor

bors commented Jul 3, 2019

📌 Commit ec8c2e1 has been approved by eddyb

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 3, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 4, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 4, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jul 4, 2019
@bors
Copy link
Contributor

bors commented Jul 4, 2019

⌛ Testing commit ec8c2e1 with merge 24a9bcb...

bors added a commit that referenced this pull request Jul 4, 2019
Use a single CtxtInterners

Builds on #57214

r? @eddyb
@bors
Copy link
Contributor

bors commented Jul 4, 2019

☀️ Test successful - checks-azure, checks-travis, status-appveyor
Approved by: eddyb
Pushing 24a9bcb to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 4, 2019
@bors bors merged commit ec8c2e1 into rust-lang:master Jul 4, 2019
@Zoxc Zoxc deleted the single-interner branch July 5, 2019 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants