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

Do not emit note suggesting to implement operation trait to foreign type #69217

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

LeSeulArtichaut
Copy link
Contributor

When a binary operation isn't valid, you will get a lint proposing to add a trait implementation to make the operation possible. However, this cannot be done for foreign types, such as types from core or std.

For example:

= note: an implementation of `std::ops::Add` might be missing for `std::option::Option<i8>`

As mentioned in #60497 (comment):

The note suggesting implementing Add should only be emitted if Option were local to the current crate, which it isn't, so in this case it shouldn't be emitted.

(I will use the CI to check tests for me, or my computer will just burn... and running IDEs is not possible on a pile of ashes)

r? @estebank

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

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-02-16T21:43:54.2943969Z ========================== Starting Command Output ===========================
2020-02-16T21:43:54.3268247Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/143a620d-e5d3-4b40-8fba-e4e606d46d8f.sh
2020-02-16T21:43:54.3268476Z 
2020-02-16T21:43:54.3271894Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-16T21:43:54.3277371Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-16T21:43:54.3279340Z Task         : Get sources
2020-02-16T21:43:54.3279378Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-16T21:43:54.3279411Z Version      : 1.0.0
2020-02-16T21:43:54.3279443Z Author       : Microsoft
---
2020-02-16T21:43:55.3306552Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-02-16T21:43:55.3425557Z ##[command]git config gc.auto 0
2020-02-16T21:43:55.3493445Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-02-16T21:43:55.3547726Z ##[command]git config --get-all http.proxy
2020-02-16T21:43:55.3705566Z ##[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/69217/merge:refs/remotes/pull/69217/merge
---
2020-02-16T22:45:36.0872112Z .................................................................................................... 1700/9650
2020-02-16T22:45:40.9341428Z .................................................................................................... 1800/9650
2020-02-16T22:45:53.0185459Z ..................................i................................................................. 1900/9650
2020-02-16T22:46:00.9458383Z .................................................................................................... 2000/9650
2020-02-16T22:46:16.2959696Z ........................iiiii....................................................................... 2100/9650
2020-02-16T22:46:26.2704301Z .................................................................................................... 2300/9650
2020-02-16T22:46:28.6814290Z .................................................................................................... 2400/9650
2020-02-16T22:46:33.3825566Z .................................................................................................... 2500/9650
2020-02-16T22:46:55.4444856Z .................................................................................................... 2600/9650
---
2020-02-16T22:50:19.2586839Z .................................................................................................... 5600/9650
2020-02-16T22:50:30.4490956Z .......................................................................................i............ 5700/9650
2020-02-16T22:50:37.8094559Z .................................................................................................... 5800/9650
2020-02-16T22:50:43.1499144Z .....................................................................................i.............. 5900/9650
2020-02-16T22:50:53.0643209Z ...............................................................................ii...i..ii........... 6000/9650
2020-02-16T22:51:05.7215457Z .i.................................................................................................. 6100/9650
2020-02-16T22:51:22.6459153Z .................................................................................................... 6300/9650
2020-02-16T22:51:30.5250000Z .................................................................................................... 6400/9650
2020-02-16T22:51:30.5250000Z .................................................................................................... 6400/9650
2020-02-16T22:51:46.4687176Z .......i..ii........................................................................................ 6500/9650
2020-02-16T22:52:07.1492100Z ...............................................................................................i.... 6700/9650
2020-02-16T22:52:09.3473435Z .................................................................................................... 6800/9650
2020-02-16T22:52:11.5076656Z .................................................................................................... 6900/9650
2020-02-16T22:52:13.9908361Z .....i.............................................................................................. 7000/9650
---
2020-02-16T22:53:52.6199929Z .................................................................................................... 7600/9650
2020-02-16T22:53:57.3092165Z .................................................................................................... 7700/9650
2020-02-16T22:54:03.4484342Z .................................................................................................... 7800/9650
2020-02-16T22:54:10.2027225Z .................................................................................................... 7900/9650
2020-02-16T22:54:19.9363775Z .......................................................................................iiiiiii.i.... 8000/9650
2020-02-16T22:54:36.4904584Z ...........................i.......i................................................................ 8200/9650
2020-02-16T22:54:41.5359219Z ..................F................................................................................. 8300/9650
2020-02-16T22:54:53.3786499Z .................................................................................................... 8400/9650
2020-02-16T22:55:05.3190742Z .................................................................................................... 8500/9650
---
2020-02-16T22:57:07.1769943Z 
2020-02-16T22:57:07.1772181Z ---- [ui] ui/autoderef-full-lval.rs stdout ----
2020-02-16T22:57:07.1772953Z diff of stderr:
2020-02-16T22:57:07.1773186Z 
2020-02-16T22:57:07.1780561Z 5    |                    --- ^ --- std::boxed::Box<isize>
2020-02-16T22:57:07.1781051Z 7    |                    std::boxed::Box<isize>
2020-02-16T22:57:07.1781473Z -    |
2020-02-16T22:57:07.1781473Z -    |
2020-02-16T22:57:07.1781750Z -    = note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
2020-02-16T22:57:07.1781816Z 10 
2020-02-16T22:57:07.1781884Z 11 error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
2020-02-16T22:57:07.1782152Z 
2020-02-16T22:57:07.1782152Z 
2020-02-16T22:57:07.1782611Z 15    |                         ------- ^ ----- std::boxed::Box<isize>
2020-02-16T22:57:07.1783296Z 17    |                         std::boxed::Box<isize>
2020-02-16T22:57:07.1783535Z -    |
2020-02-16T22:57:07.1783535Z -    |
2020-02-16T22:57:07.1783848Z -    = note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
2020-02-16T22:57:07.1783945Z 21 error: aborting due to 2 previous errors
2020-02-16T22:57:07.1784011Z 22 
2020-02-16T22:57:07.1784039Z 
2020-02-16T22:57:07.1784065Z 
2020-02-16T22:57:07.1784065Z 
2020-02-16T22:57:07.1784113Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1784474Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/autoderef-full-lval/autoderef-full-lval.stderr
2020-02-16T22:57:07.1784745Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1785023Z To only update this specific test, also pass `--test-args autoderef-full-lval.rs`
2020-02-16T22:57:07.1785126Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1785182Z status: exit code: 1
2020-02-16T22:57:07.1785182Z status: exit code: 1
2020-02-16T22:57:07.1786026Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/autoderef-full-lval.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/autoderef-full-lval" "-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/autoderef-full-lval/auxiliary"
2020-02-16T22:57:07.1786518Z ------------------------------------------
2020-02-16T22:57:07.1786549Z 
2020-02-16T22:57:07.1787239Z ------------------------------------------
2020-02-16T22:57:07.1787302Z stderr:
2020-02-16T22:57:07.1787302Z stderr:
2020-02-16T22:57:07.1787508Z ------------------------------------------
2020-02-16T22:57:07.1787745Z error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
2020-02-16T22:57:07.1788083Z    |
2020-02-16T22:57:07.1788083Z    |
2020-02-16T22:57:07.1788123Z LL |     let z: isize = a.x + b.y;
2020-02-16T22:57:07.1788361Z    |                    --- ^ --- std::boxed::Box<isize>
2020-02-16T22:57:07.1788450Z    |                    std::boxed::Box<isize>
2020-02-16T22:57:07.1788479Z 
2020-02-16T22:57:07.1788479Z 
2020-02-16T22:57:07.1788540Z error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
2020-02-16T22:57:07.1788903Z    |
2020-02-16T22:57:07.1788903Z    |
2020-02-16T22:57:07.1788963Z LL |     let answer: isize = forty.a + two.a;
2020-02-16T22:57:07.1789216Z    |                         ------- ^ ----- std::boxed::Box<isize>
2020-02-16T22:57:07.1789334Z    |                         std::boxed::Box<isize>
2020-02-16T22:57:07.1789363Z 
2020-02-16T22:57:07.1789403Z error: aborting due to 2 previous errors
2020-02-16T22:57:07.1789429Z 
---
2020-02-16T22:57:07.1791225Z 12 
2020-02-16T22:57:07.1791250Z 
2020-02-16T22:57:07.1791274Z 
2020-02-16T22:57:07.1791316Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1791617Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-bitxor-str/binop-bitxor-str.stderr
2020-02-16T22:57:07.1791902Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1792158Z To only update this specific test, also pass `--test-args binop/binop-bitxor-str.rs`
2020-02-16T22:57:07.1792258Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1792299Z status: exit code: 1
2020-02-16T22:57:07.1792299Z status: exit code: 1
2020-02-16T22:57:07.1793750Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/binop/binop-bitxor-str.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/binop/binop-bitxor-str" "-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/binop/binop-bitxor-str/auxiliary"
2020-02-16T22:57:07.1794116Z ------------------------------------------
2020-02-16T22:57:07.1794151Z 
2020-02-16T22:57:07.1794381Z ------------------------------------------
2020-02-16T22:57:07.1794427Z stderr:
2020-02-16T22:57:07.1794427Z stderr:
2020-02-16T22:57:07.1794679Z ------------------------------------------
2020-02-16T22:57:07.1794735Z error[E0369]: no implementation for `std::string::String ^ std::string::String`
2020-02-16T22:57:07.1795060Z    |
2020-02-16T22:57:07.1795060Z    |
2020-02-16T22:57:07.1795107Z LL | fn main() { let x = "a".to_string() ^ "b".to_string(); }
2020-02-16T22:57:07.1795508Z    |                     --------------- ^ --------------- std::string::String
2020-02-16T22:57:07.1795629Z    |                     std::string::String
2020-02-16T22:57:07.1795660Z 
2020-02-16T22:57:07.1795704Z error: aborting due to previous error
2020-02-16T22:57:07.1795752Z 
---
2020-02-16T22:57:07.1797784Z 12 
2020-02-16T22:57:07.1797808Z 
2020-02-16T22:57:07.1797833Z 
2020-02-16T22:57:07.1797894Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1798178Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-mul-bool/binop-mul-bool.stderr
2020-02-16T22:57:07.1798417Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1798701Z To only update this specific test, also pass `--test-args binop/binop-mul-bool.rs`
2020-02-16T22:57:07.1798778Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1798837Z status: exit code: 1
2020-02-16T22:57:07.1798837Z status: exit code: 1
2020-02-16T22:57:07.1799586Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/binop/binop-mul-bool.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/binop/binop-mul-bool" "-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/binop/binop-mul-bool/auxiliary"
2020-02-16T22:57:07.1799907Z ------------------------------------------
2020-02-16T22:57:07.1799939Z 
2020-02-16T22:57:07.1800172Z ------------------------------------------
2020-02-16T22:57:07.1800215Z stderr:
2020-02-16T22:57:07.1800215Z stderr:
2020-02-16T22:57:07.1800422Z ------------------------------------------
2020-02-16T22:57:07.1800468Z error[E0369]: cannot multiply `bool` to `bool`
2020-02-16T22:57:07.1800714Z   --> /checkout/src/test/ui/binop/binop-mul-bool.rs:3:26
2020-02-16T22:57:07.1800760Z    |
2020-02-16T22:57:07.1800812Z LL | fn main() { let x = true * false; }
2020-02-16T22:57:07.1801041Z    |                     ---- ^ ----- bool
2020-02-16T22:57:07.1801129Z    |                     bool
2020-02-16T22:57:07.1801174Z 
2020-02-16T22:57:07.1801215Z error: aborting due to previous error
2020-02-16T22:57:07.1801242Z 
---
2020-02-16T22:57:07.1801787Z 
2020-02-16T22:57:07.1802002Z ---- [ui] ui/binop/binop-typeck.rs stdout ----
2020-02-16T22:57:07.1802067Z diff of stderr:
2020-02-16T22:57:07.1802092Z 
2020-02-16T22:57:07.1802295Z 5    |             - ^ - {integer}
2020-02-16T22:57:07.1802399Z 7    |             bool
2020-02-16T22:57:07.1803018Z -    |
2020-02-16T22:57:07.1803406Z -    = note: an implementation of `std::ops::Add` might be missing for `bool`
2020-02-16T22:57:07.1803483Z 10 
2020-02-16T22:57:07.1803483Z 10 
2020-02-16T22:57:07.1803533Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1803577Z 12 
2020-02-16T22:57:07.1803624Z 
2020-02-16T22:57:07.1803651Z 
2020-02-16T22:57:07.1803697Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1804010Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/binop/binop-typeck/binop-typeck.stderr
2020-02-16T22:57:07.1804294Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1804639Z To only update this specific test, also pass `--test-args binop/binop-typeck.rs`
2020-02-16T22:57:07.1804749Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1804794Z status: exit code: 1
2020-02-16T22:57:07.1804794Z status: exit code: 1
2020-02-16T22:57:07.1805619Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/binop/binop-typeck.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/binop/binop-typeck" "-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/binop/binop-typeck/auxiliary"
2020-02-16T22:57:07.1806126Z ------------------------------------------
2020-02-16T22:57:07.1806177Z 
2020-02-16T22:57:07.1806551Z ------------------------------------------
2020-02-16T22:57:07.1806601Z stderr:
2020-02-16T22:57:07.1806601Z stderr:
2020-02-16T22:57:07.1806818Z ------------------------------------------
2020-02-16T22:57:07.1806864Z error[E0369]: cannot add `{integer}` to `bool`
2020-02-16T22:57:07.1807081Z   --> /checkout/src/test/ui/binop/binop-typeck.rs:6:15
2020-02-16T22:57:07.1807124Z    |
2020-02-16T22:57:07.1807180Z LL |     let z = x + y;
2020-02-16T22:57:07.1807384Z    |             - ^ - {integer}
2020-02-16T22:57:07.1807485Z    |             bool
2020-02-16T22:57:07.1807510Z 
2020-02-16T22:57:07.1807549Z error: aborting due to previous error
2020-02-16T22:57:07.1807574Z 
---
2020-02-16T22:57:07.1808760Z 25    |     [usize; 33]
2020-02-16T22:57:07.1808946Z -    |
2020-02-16T22:57:07.1809193Z -    = note: an implementation of `std::cmp::PartialEq` might be missing for `[usize; 33]`
2020-02-16T22:57:07.1809248Z 28 
2020-02-16T22:57:07.1809312Z 29 error[E0369]: binary operation `<` cannot be applied to type `[usize; 33]`
2020-02-16T22:57:07.1809564Z 
2020-02-16T22:57:07.1809564Z 
2020-02-16T22:57:07.1809773Z 33    |     ------------- ^ ------------- [usize; 33]
2020-02-16T22:57:07.1809872Z 35    |     [usize; 33]
2020-02-16T22:57:07.1810040Z -    |
2020-02-16T22:57:07.1810040Z -    |
2020-02-16T22:57:07.1810302Z -    = note: an implementation of `std::cmp::PartialOrd` might be missing for `[usize; 33]`
2020-02-16T22:57:07.1810349Z 38 
2020-02-16T22:57:07.1810402Z 39 error[E0277]: the trait bound `&[usize; 33]: std::iter::IntoIterator` is not satisfied
2020-02-16T22:57:07.1810669Z 
2020-02-16T22:57:07.1810693Z 
2020-02-16T22:57:07.1810734Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1810734Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1811187Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/const-generics/array-impls/core-traits-no-impls-length-33/core-traits-no-impls-length-33.stderr
2020-02-16T22:57:07.1811427Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1811708Z To only update this specific test, also pass `--test-args const-generics/array-impls/core-traits-no-impls-length-33.rs`
2020-02-16T22:57:07.1811799Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1811840Z status: exit code: 1
2020-02-16T22:57:07.1811840Z status: exit code: 1
2020-02-16T22:57:07.1813147Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/const-generics/array-impls/core-traits-no-impls-length-33.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/const-generics/array-impls/core-traits-no-impls-length-33" "-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/const-generics/array-impls/core-traits-no-impls-length-33/auxiliary"
2020-02-16T22:57:07.1813563Z ------------------------------------------
2020-02-16T22:57:07.1813599Z 
2020-02-16T22:57:07.1813829Z ------------------------------------------
2020-02-16T22:57:07.1813896Z stderr:
2020-02-16T22:57:07.1813896Z stderr:
2020-02-16T22:57:07.1814118Z ------------------------------------------
2020-02-16T22:57:07.1814181Z error[E0277]: arrays only have std trait implementations for lengths 0..=32
2020-02-16T22:57:07.1814486Z   --> /checkout/src/test/ui/const-generics/array-impls/core-traits-no-impls-length-33.rs:2:22
2020-02-16T22:57:07.1814541Z    |
2020-02-16T22:57:07.1814586Z LL |     println!("{:?}", [0_usize; 33]);
2020-02-16T22:57:07.1814661Z    |                      ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[usize; 33]`
2020-02-16T22:57:07.1814775Z    = note: required because of the requirements on the impl of `std::fmt::Debug` for `[usize; 33]`
2020-02-16T22:57:07.1814845Z    = note: required by `std::fmt::Debug::fmt`
2020-02-16T22:57:07.1815149Z    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-02-16T22:57:07.1815188Z 
2020-02-16T22:57:07.1815188Z 
2020-02-16T22:57:07.1815237Z error[E0277]: arrays only have std trait implementations for lengths 0..=32
2020-02-16T22:57:07.1815542Z   --> /checkout/src/test/ui/const-generics/array-impls/core-traits-no-impls-length-33.rs:9:16
2020-02-16T22:57:07.1815593Z    |
2020-02-16T22:57:07.1815637Z LL |     set.insert([0_usize; 33]);
2020-02-16T22:57:07.1815711Z    |                ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[usize; 33]`
2020-02-16T22:57:07.1815759Z    |
2020-02-16T22:57:07.1815818Z    = note: required because of the requirements on the impl of `std::cmp::Eq` for `[usize; 33]`
2020-02-16T22:57:07.1815921Z error[E0369]: binary operation `==` cannot be applied to type `[usize; 33]`
2020-02-16T22:57:07.1816521Z   --> /checkout/src/test/ui/const-generics/array-impls/core-traits-no-impls-length-33.rs:14:19
2020-02-16T22:57:07.1816584Z    |
2020-02-16T22:57:07.1816584Z    |
2020-02-16T22:57:07.1816624Z LL |     [0_usize; 33] == [1_usize; 33]
2020-02-16T22:57:07.1816837Z    |     ------------- ^^ ------------- [usize; 33]
2020-02-16T22:57:07.1816936Z    |     [usize; 33]
2020-02-16T22:57:07.1816961Z 
2020-02-16T22:57:07.1816961Z 
2020-02-16T22:57:07.1817011Z error[E0369]: binary operation `<` cannot be applied to type `[usize; 33]`
2020-02-16T22:57:07.1817331Z    |
2020-02-16T22:57:07.1817331Z    |
2020-02-16T22:57:07.1817370Z LL |     [0_usize; 33] < [1_usize; 33]
2020-02-16T22:57:07.1817683Z    |     ------------- ^ ------------- [usize; 33]
2020-02-16T22:57:07.1817782Z    |     [usize; 33]
2020-02-16T22:57:07.1817847Z 
2020-02-16T22:57:07.1817847Z 
2020-02-16T22:57:07.1817910Z error[E0277]: the trait bound `&[usize; 33]: std::iter::IntoIterator` is not satisfied
2020-02-16T22:57:07.1818218Z    |
2020-02-16T22:57:07.1818218Z    |
2020-02-16T22:57:07.1818274Z LL |     for _ in &[0_usize; 33] {
2020-02-16T22:57:07.1818324Z    |              ^^^^^^^^^^^^^^ the trait `std::iter::IntoIterator` is not implemented for `&[usize; 33]`
2020-02-16T22:57:07.1818497Z    = help: the following implementations were found:
2020-02-16T22:57:07.1818497Z    = help: the following implementations were found:
2020-02-16T22:57:07.1818741Z              <&'a [T; _] as std::iter::IntoIterator>
2020-02-16T22:57:07.1818951Z              <&'a [T] as std::iter::IntoIterator>
2020-02-16T22:57:07.1819168Z              <&'a mut [T; _] as std::iter::IntoIterator>
2020-02-16T22:57:07.1819414Z              <&'a mut [T] as std::iter::IntoIterator>
2020-02-16T22:57:07.1819491Z 
2020-02-16T22:57:07.1819764Z error: aborting due to 5 previous errors
2020-02-16T22:57:07.1819793Z 
2020-02-16T22:57:07.1819835Z Some errors have detailed explanations: E0277, E0369.
---
2020-02-16T22:57:07.1820399Z 
2020-02-16T22:57:07.1820634Z ---- [ui] ui/for/for-loop-type-error.rs stdout ----
2020-02-16T22:57:07.1820677Z diff of stderr:
2020-02-16T22:57:07.1820702Z 
2020-02-16T22:57:07.1820894Z 5    |             -- ^ -- ()
2020-02-16T22:57:07.1820992Z 7    |             ()
2020-02-16T22:57:07.1821159Z -    |
2020-02-16T22:57:07.1821405Z -    = note: an implementation of `std::ops::Add` might be missing for `()`
2020-02-16T22:57:07.1821459Z 10 
2020-02-16T22:57:07.1821459Z 10 
2020-02-16T22:57:07.1821499Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1821538Z 12 
2020-02-16T22:57:07.1821581Z 
2020-02-16T22:57:07.1821605Z 
2020-02-16T22:57:07.1821646Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1821935Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/for/for-loop-type-error/for-loop-type-error.stderr
2020-02-16T22:57:07.1822364Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1823168Z To only update this specific test, also pass `--test-args for/for-loop-type-error.rs`
2020-02-16T22:57:07.1823274Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1823318Z status: exit code: 1
2020-02-16T22:57:07.1823318Z status: exit code: 1
2020-02-16T22:57:07.1824139Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/for/for-loop-type-error.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/for/for-loop-type-error" "-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/for/for-loop-type-error/auxiliary"
2020-02-16T22:57:07.1824491Z ------------------------------------------
2020-02-16T22:57:07.1824542Z 
2020-02-16T22:57:07.1824775Z ------------------------------------------
2020-02-16T22:57:07.1824829Z stderr:
2020-02-16T22:57:07.1824829Z stderr:
2020-02-16T22:57:07.1825052Z ------------------------------------------
2020-02-16T22:57:07.1825120Z error[E0369]: cannot add `()` to `()`
2020-02-16T22:57:07.1825366Z   --> /checkout/src/test/ui/for/for-loop-type-error.rs:2:16
2020-02-16T22:57:07.1825415Z    |
2020-02-16T22:57:07.1825485Z LL |     let x = () + (); //~ ERROR cannot add `()` to `()`
2020-02-16T22:57:07.1825988Z    |             -- ^ -- ()
2020-02-16T22:57:07.1826256Z    |             ()
2020-02-16T22:57:07.1826281Z 
2020-02-16T22:57:07.1826320Z error: aborting due to previous error
2020-02-16T22:57:07.1826345Z 
---
2020-02-16T22:57:07.1826879Z 
2020-02-16T22:57:07.1827077Z ---- [ui] ui/issues/issue-14915.rs stdout ----
2020-02-16T22:57:07.1827188Z diff of stderr:
2020-02-16T22:57:07.1827218Z 
2020-02-16T22:57:07.1827452Z 5    |                    - ^ - {integer}
2020-02-16T22:57:07.1827535Z 7    |                    std::boxed::Box<isize>
2020-02-16T22:57:07.1827700Z -    |
2020-02-16T22:57:07.1827700Z -    |
2020-02-16T22:57:07.1827959Z -    = note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
2020-02-16T22:57:07.1828055Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1828110Z 12 
2020-02-16T22:57:07.1828134Z 
2020-02-16T22:57:07.1828157Z 
2020-02-16T22:57:07.1828157Z 
2020-02-16T22:57:07.1828197Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1828486Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-14915/issue-14915.stderr
2020-02-16T22:57:07.1828710Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1828950Z To only update this specific test, also pass `--test-args issues/issue-14915.rs`
2020-02-16T22:57:07.1829039Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1829076Z status: exit code: 1
2020-02-16T22:57:07.1829076Z status: exit code: 1
2020-02-16T22:57:07.1829799Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-14915.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-14915" "-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-14915/auxiliary"
2020-02-16T22:57:07.1830102Z ------------------------------------------
2020-02-16T22:57:07.1830132Z 
2020-02-16T22:57:07.1830327Z ------------------------------------------
2020-02-16T22:57:07.1830391Z stderr:
2020-02-16T22:57:07.1830391Z stderr:
2020-02-16T22:57:07.1830585Z ------------------------------------------
2020-02-16T22:57:07.1830631Z error[E0369]: cannot add `{integer}` to `std::boxed::Box<isize>`
2020-02-16T22:57:07.1830902Z    |
2020-02-16T22:57:07.1830949Z LL |     println!("{}", x + 1);
2020-02-16T22:57:07.1830949Z LL |     println!("{}", x + 1);
2020-02-16T22:57:07.1831145Z    |                    - ^ - {integer}
2020-02-16T22:57:07.1831245Z    |                    std::boxed::Box<isize>
2020-02-16T22:57:07.1831271Z 
2020-02-16T22:57:07.1831325Z error: aborting due to previous error
2020-02-16T22:57:07.1831350Z 
---
2020-02-16T22:57:07.1831854Z 
2020-02-16T22:57:07.1832059Z ---- [ui] ui/issues/issue-24363.rs stdout ----
2020-02-16T22:57:07.1832100Z diff of stderr:
2020-02-16T22:57:07.1832142Z 
2020-02-16T22:57:07.1832322Z 11    |         --^-- ()
2020-02-16T22:57:07.1832621Z 13    |         ()
2020-02-16T22:57:07.1833260Z -    |
2020-02-16T22:57:07.1833525Z -    = note: an implementation of `std::ops::Add` might be missing for `()`
2020-02-16T22:57:07.1833673Z 16 
2020-02-16T22:57:07.1833673Z 16 
2020-02-16T22:57:07.1833740Z 17 error: aborting due to 2 previous errors
2020-02-16T22:57:07.1833783Z 18 
2020-02-16T22:57:07.1833810Z 
2020-02-16T22:57:07.1833836Z 
2020-02-16T22:57:07.1833900Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1834234Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-24363/issue-24363.stderr
2020-02-16T22:57:07.1834493Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1834790Z To only update this specific test, also pass `--test-args issues/issue-24363.rs`
2020-02-16T22:57:07.1834971Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1835034Z status: exit code: 1
2020-02-16T22:57:07.1835034Z status: exit code: 1
2020-02-16T22:57:07.1835869Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-24363.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-24363" "-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-24363/auxiliary"
2020-02-16T22:57:07.1836378Z ------------------------------------------
2020-02-16T22:57:07.1836412Z 
2020-02-16T22:57:07.1836798Z ------------------------------------------
2020-02-16T22:57:07.1836840Z stderr:
2020-02-16T22:57:07.1836840Z stderr:
2020-02-16T22:57:07.1837047Z ------------------------------------------
2020-02-16T22:57:07.1837287Z error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
2020-02-16T22:57:07.1837527Z   --> /checkout/src/test/ui/issues/issue-24363.rs:2:7
2020-02-16T22:57:07.1837573Z    |
2020-02-16T22:57:07.1837825Z LL |     1.create_a_type_error[ //~ `{integer}` is a primitive type and therefore doesn't have fields
2020-02-16T22:57:07.1837926Z 
2020-02-16T22:57:07.1837965Z error[E0369]: cannot add `()` to `()`
2020-02-16T22:57:07.1838204Z   --> /checkout/src/test/ui/issues/issue-24363.rs:3:11
2020-02-16T22:57:07.1838246Z    |
2020-02-16T22:57:07.1838246Z    |
2020-02-16T22:57:07.1838285Z LL |         ()+() //~ ERROR cannot add
2020-02-16T22:57:07.1838482Z    |         --^-- ()
2020-02-16T22:57:07.1838563Z    |         ()
2020-02-16T22:57:07.1838588Z 
2020-02-16T22:57:07.1838644Z error: aborting due to 2 previous errors
2020-02-16T22:57:07.1838678Z 
---
2020-02-16T22:57:07.1839259Z 
2020-02-16T22:57:07.1839485Z ---- [ui] ui/issues/issue-31076.rs stdout ----
2020-02-16T22:57:07.1839528Z diff of stderr:
2020-02-16T22:57:07.1839553Z 
2020-02-16T22:57:07.1839747Z 5    |             - ^ - {integer}
2020-02-16T22:57:07.1839848Z 7    |             {integer}
2020-02-16T22:57:07.1840016Z -    |
2020-02-16T22:57:07.1840251Z -    = note: an implementation of `std::ops::Add` might be missing for `{integer}`
2020-02-16T22:57:07.1840312Z 10 
---
2020-02-16T22:57:07.1841546Z 
2020-02-16T22:57:07.1841570Z 
2020-02-16T22:57:07.1841628Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1842103Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-31076/issue-31076.stderr
2020-02-16T22:57:07.1844858Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1845200Z To only update this specific test, also pass `--test-args issues/issue-31076.rs`
2020-02-16T22:57:07.1845422Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1845496Z status: exit code: 1
2020-02-16T22:57:07.1845496Z status: exit code: 1
2020-02-16T22:57:07.1846341Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-31076.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-31076" "-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-31076/auxiliary"
2020-02-16T22:57:07.1847174Z ------------------------------------------
2020-02-16T22:57:07.1847205Z 
2020-02-16T22:57:07.1847429Z ------------------------------------------
2020-02-16T22:57:07.1847471Z stderr:
2020-02-16T22:57:07.1847471Z stderr:
2020-02-16T22:57:07.1847671Z ------------------------------------------
2020-02-16T22:57:07.1847725Z error[E0369]: cannot add `{integer}` to `{integer}`
2020-02-16T22:57:07.1848011Z    |
2020-02-16T22:57:07.1848051Z LL |     let x = 5 + 6;
2020-02-16T22:57:07.1848051Z LL |     let x = 5 + 6;
2020-02-16T22:57:07.1848264Z    |             - ^ - {integer}
2020-02-16T22:57:07.1848355Z    |             {integer}
2020-02-16T22:57:07.1848380Z 
2020-02-16T22:57:07.1848437Z error[E0369]: cannot add `i32` to `i32`
2020-02-16T22:57:07.1848706Z   --> /checkout/src/test/ui/issues/issue-31076.rs:15:18
---
2020-02-16T22:57:07.1850917Z 
2020-02-16T22:57:07.1850941Z 
2020-02-16T22:57:07.1850982Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1851285Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-35668/issue-35668.stderr
2020-02-16T22:57:07.1851520Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1851763Z To only update this specific test, also pass `--test-args issues/issue-35668.rs`
2020-02-16T22:57:07.1854930Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1854976Z status: exit code: 1
2020-02-16T22:57:07.1854976Z status: exit code: 1
2020-02-16T22:57:07.1856027Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-35668.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-35668" "-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-35668/auxiliary"
2020-02-16T22:57:07.1856732Z ------------------------------------------
2020-02-16T22:57:07.1856766Z 
2020-02-16T22:57:07.1857329Z ------------------------------------------
2020-02-16T22:57:07.1857372Z stderr:
2020-02-16T22:57:07.1857372Z stderr:
2020-02-16T22:57:07.1857607Z ------------------------------------------
2020-02-16T22:57:07.1857665Z error[E0369]: cannot multiply `&T` to `&T`
2020-02-16T22:57:07.1857901Z   --> /checkout/src/test/ui/issues/issue-35668.rs:2:23
2020-02-16T22:57:07.1857964Z    |
2020-02-16T22:57:07.1858006Z LL |     a.iter().map(|a| a*a)
2020-02-16T22:57:07.1858213Z    |                      -^- &T
2020-02-16T22:57:07.1858499Z    |                      &T
2020-02-16T22:57:07.1858528Z 
2020-02-16T22:57:07.1858571Z error: aborting due to previous error
2020-02-16T22:57:07.1858618Z 
---
2020-02-16T22:57:07.1859220Z 
2020-02-16T22:57:07.1859448Z ---- [ui] ui/issues/issue-40610.rs stdout ----
2020-02-16T22:57:07.1859495Z diff of stderr:
2020-02-16T22:57:07.1859750Z 
2020-02-16T22:57:07.1860030Z 5    |     -- ^ --------- ()
2020-02-16T22:57:07.1860281Z 7    |     ()
2020-02-16T22:57:07.1860682Z -    |
2020-02-16T22:57:07.1860942Z -    = note: an implementation of `std::ops::Add` might be missing for `()`
2020-02-16T22:57:07.1860993Z 10 
2020-02-16T22:57:07.1860993Z 10 
2020-02-16T22:57:07.1861057Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1861100Z 12 
2020-02-16T22:57:07.1861127Z 
2020-02-16T22:57:07.1861154Z 
2020-02-16T22:57:07.1861382Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1861899Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-40610/issue-40610.stderr
2020-02-16T22:57:07.1862880Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1863221Z To only update this specific test, also pass `--test-args issues/issue-40610.rs`
2020-02-16T22:57:07.1863303Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1863348Z status: exit code: 1
2020-02-16T22:57:07.1863348Z status: exit code: 1
2020-02-16T22:57:07.1864193Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-40610.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-40610" "-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-40610/auxiliary"
2020-02-16T22:57:07.1864544Z ------------------------------------------
2020-02-16T22:57:07.1864579Z 
2020-02-16T22:57:07.1864805Z ------------------------------------------
2020-02-16T22:57:07.1864869Z stderr:
2020-02-16T22:57:07.1864869Z stderr:
2020-02-16T22:57:07.1865091Z ------------------------------------------
2020-02-16T22:57:07.1865142Z error[E0369]: cannot add `()` to `()`
2020-02-16T22:57:07.1865558Z   --> /checkout/src/test/ui/issues/issue-40610.rs:4:8
2020-02-16T22:57:07.1865606Z    |
2020-02-16T22:57:07.1865649Z LL |     () + f(&[1.0]);
2020-02-16T22:57:07.1865877Z    |     -- ^ --------- ()
2020-02-16T22:57:07.1866125Z    |     ()
2020-02-16T22:57:07.1866151Z 
2020-02-16T22:57:07.1866210Z error: aborting due to previous error
2020-02-16T22:57:07.1866237Z 
---
2020-02-16T22:57:07.1866878Z 
2020-02-16T22:57:07.1867120Z ---- [ui] ui/issues/issue-41394.rs stdout ----
2020-02-16T22:57:07.1867184Z diff of stderr:
2020-02-16T22:57:07.1867210Z 
2020-02-16T22:57:07.1867411Z 5    |         -- ^ - {integer}
2020-02-16T22:57:07.1867513Z 7    |         &str
2020-02-16T22:57:07.1867698Z -    |
2020-02-16T22:57:07.1867939Z -    = note: an implementation of `std::ops::Add` might be missing for `&str`
2020-02-16T22:57:07.1868004Z 10 
2020-02-16T22:57:07.1868004Z 10 
2020-02-16T22:57:07.1868048Z 11 error[E0080]: evaluation of constant value failed
2020-02-16T22:57:07.1868254Z 12   --> $DIR/issue-41394.rs:7:9
2020-02-16T22:57:07.1868284Z 
2020-02-16T22:57:07.1868326Z 
2020-02-16T22:57:07.1868369Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1868652Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-41394/issue-41394.stderr
2020-02-16T22:57:07.1868911Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1869174Z To only update this specific test, also pass `--test-args issues/issue-41394.rs`
2020-02-16T22:57:07.1869248Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1869308Z status: exit code: 1
2020-02-16T22:57:07.1869308Z status: exit code: 1
2020-02-16T22:57:07.1870055Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-41394.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-41394" "-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-41394/auxiliary"
2020-02-16T22:57:07.1870380Z ------------------------------------------
2020-02-16T22:57:07.1870418Z 
2020-02-16T22:57:07.1870647Z ------------------------------------------
2020-02-16T22:57:07.1870689Z stderr:
2020-02-16T22:57:07.1870689Z stderr:
2020-02-16T22:57:07.1870894Z ------------------------------------------
2020-02-16T22:57:07.1870958Z error[E0369]: cannot add `{integer}` to `&str`
2020-02-16T22:57:07.1871182Z   --> /checkout/src/test/ui/issues/issue-41394.rs:2:12
2020-02-16T22:57:07.1871235Z    |
2020-02-16T22:57:07.1871292Z LL |     A = "" + 1
2020-02-16T22:57:07.1871492Z    |         -- ^ - {integer}
2020-02-16T22:57:07.1871577Z    |         &str
2020-02-16T22:57:07.1871621Z 
2020-02-16T22:57:07.1871663Z error[E0080]: evaluation of constant value failed
2020-02-16T22:57:07.1871889Z   --> /checkout/src/test/ui/issues/issue-41394.rs:7:9
---
2020-02-16T22:57:07.1873404Z 
2020-02-16T22:57:07.1873682Z ---- [ui] ui/issues/issue-59488.rs stdout ----
2020-02-16T22:57:07.1873732Z diff of stderr:
2020-02-16T22:57:07.1873760Z 
2020-02-16T22:57:07.1873987Z 58    |     --- ^ --- fn(i64) -> i64 {bar}
2020-02-16T22:57:07.1874264Z 60    |     fn() -> i32 {foo}
2020-02-16T22:57:07.1874451Z -    |
2020-02-16T22:57:07.1874750Z -    = note: an implementation of `std::cmp::PartialOrd` might be missing for `fn() -> i32 {foo}`
2020-02-16T22:57:07.1874805Z 63 
2020-02-16T22:57:07.1874805Z 63 
2020-02-16T22:57:07.1874854Z 64 error[E0308]: mismatched types
2020-02-16T22:57:07.1875171Z 65   --> $DIR/issue-59488.rs:25:11
2020-02-16T22:57:07.1875210Z 
2020-02-16T22:57:07.1875453Z 79    |     fn(usize) -> Foo {Foo::Bar}
2020-02-16T22:57:07.1875679Z 80    |     fn(usize) -> Foo {Foo::Bar}
2020-02-16T22:57:07.1875742Z 81    |
2020-02-16T22:57:07.1876032Z -    = note: an implementation of `std::cmp::PartialEq` might be missing for `fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1876569Z 84 
2020-02-16T22:57:07.1876569Z 84 
2020-02-16T22:57:07.1876825Z 85 error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug`
2020-02-16T22:57:07.1876884Z 
2020-02-16T22:57:07.1876946Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1877239Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-59488/issue-59488.stderr
2020-02-16T22:57:07.1877239Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-59488/issue-59488.stderr
2020-02-16T22:57:07.1877485Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1877767Z To only update this specific test, also pass `--test-args issues/issue-59488.rs`
2020-02-16T22:57:07.1877845Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1877889Z status: exit code: 1
2020-02-16T22:57:07.1877889Z status: exit code: 1
2020-02-16T22:57:07.1878689Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-59488.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-59488" "-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-59488/auxiliary"
2020-02-16T22:57:07.1879025Z ------------------------------------------
2020-02-16T22:57:07.1879066Z 
2020-02-16T22:57:07.1879285Z ------------------------------------------
2020-02-16T22:57:07.1879347Z stderr:
2020-02-16T22:57:07.1879347Z stderr:
2020-02-16T22:57:07.1879558Z ------------------------------------------
2020-02-16T22:57:07.1879814Z error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2020-02-16T22:57:07.1880132Z    |
2020-02-16T22:57:07.1880173Z LL |     foo > 12;
2020-02-16T22:57:07.1880173Z LL |     foo > 12;
2020-02-16T22:57:07.1880392Z    |     --- ^ -- {integer}
2020-02-16T22:57:07.1880631Z    |     fn() -> i32 {foo}
2020-02-16T22:57:07.1880700Z    |     help: you might have forgotten to call this function: `foo()`
2020-02-16T22:57:07.1880732Z 
2020-02-16T22:57:07.1880773Z error[E0308]: mismatched types
---
2020-02-16T22:57:07.1888390Z    |
2020-02-16T22:57:07.1888632Z    = note: expected fn item `fn() -> i32 {foo}`
2020-02-16T22:57:07.1888683Z                  found type `i32`
2020-02-16T22:57:07.1888714Z 
2020-02-16T22:57:07.1888995Z error[E0369]: binary operation `>` cannot be applied to type `fn(i64) -> i64 {bar}`
2020-02-16T22:57:07.1889462Z    |
2020-02-16T22:57:07.1889523Z LL |     bar > 13;
2020-02-16T22:57:07.1889523Z LL |     bar > 13;
2020-02-16T22:57:07.1889726Z    |     --- ^ -- {integer}
2020-02-16T22:57:07.1889772Z    |     |
2020-02-16T22:57:07.1889976Z    |     fn(i64) -> i64 {bar}
2020-02-16T22:57:07.1890060Z    |     help: you might have forgotten to call this function: `bar( /* arguments */ )`
2020-02-16T22:57:07.1890136Z error[E0308]: mismatched types
2020-02-16T22:57:07.1890657Z   --> /checkout/src/test/ui/issues/issue-59488.rs:18:11
2020-02-16T22:57:07.1890705Z    |
2020-02-16T22:57:07.1890827Z LL |     bar > 13;
2020-02-16T22:57:07.1890827Z LL |     bar > 13;
2020-02-16T22:57:07.1890882Z    |           ^^ expected fn item, found integer
2020-02-16T22:57:07.1890948Z    |
2020-02-16T22:57:07.1891211Z    = note: expected fn item `fn(i64) -> i64 {bar}`
2020-02-16T22:57:07.1891310Z 
2020-02-16T22:57:07.1891310Z 
2020-02-16T22:57:07.1891587Z error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2020-02-16T22:57:07.1891899Z    |
2020-02-16T22:57:07.1891942Z LL |     foo > foo;
2020-02-16T22:57:07.1891942Z LL |     foo > foo;
2020-02-16T22:57:07.1892164Z    |     --- ^ --- fn() -> i32 {foo}
2020-02-16T22:57:07.1892665Z    |     fn() -> i32 {foo}
2020-02-16T22:57:07.1892714Z    |
2020-02-16T22:57:07.1892760Z help: you might have forgotten to call this function
2020-02-16T22:57:07.1894079Z    |
2020-02-16T22:57:07.1894079Z    |
2020-02-16T22:57:07.1894125Z LL |     foo() > foo;
2020-02-16T22:57:07.1894169Z    |     ^^^^^
2020-02-16T22:57:07.1894230Z help: you might have forgotten to call this function
2020-02-16T22:57:07.1894293Z    |
2020-02-16T22:57:07.1894335Z LL |     foo > foo();
2020-02-16T22:57:07.1894378Z    |           ^^^^^
2020-02-16T22:57:07.1894425Z 
2020-02-16T22:57:07.1894820Z error[E0369]: binary operation `>` cannot be applied to type `fn() -> i32 {foo}`
2020-02-16T22:57:07.1895134Z    |
2020-02-16T22:57:07.1895134Z    |
2020-02-16T22:57:07.1895195Z LL |     foo > bar;
2020-02-16T22:57:07.1895424Z    |     --- ^ --- fn(i64) -> i64 {bar}
2020-02-16T22:57:07.1895698Z    |     fn() -> i32 {foo}
2020-02-16T22:57:07.1895730Z 
2020-02-16T22:57:07.1895773Z error[E0308]: mismatched types
2020-02-16T22:57:07.1896013Z   --> /checkout/src/test/ui/issues/issue-59488.rs:25:11
2020-02-16T22:57:07.1896013Z   --> /checkout/src/test/ui/issues/issue-59488.rs:25:11
2020-02-16T22:57:07.1896183Z    |
2020-02-16T22:57:07.1896224Z LL |     foo > bar;
2020-02-16T22:57:07.1896272Z    |           ^^^ expected fn item, found a different fn item
2020-02-16T22:57:07.1896577Z    = note: expected fn item `fn() -> i32 {foo}`
2020-02-16T22:57:07.1896577Z    = note: expected fn item `fn() -> i32 {foo}`
2020-02-16T22:57:07.1897907Z               found fn item `fn(i64) -> i64 {bar}`
2020-02-16T22:57:07.1897956Z 
2020-02-16T22:57:07.1898444Z error[E0369]: binary operation `==` cannot be applied to type `fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1898760Z    |
2020-02-16T22:57:07.1898760Z    |
2020-02-16T22:57:07.1898821Z LL |     assert_eq!(Foo::Bar, i);
2020-02-16T22:57:07.1898910Z    |     |
2020-02-16T22:57:07.1898910Z    |     |
2020-02-16T22:57:07.1899149Z    |     fn(usize) -> Foo {Foo::Bar}
2020-02-16T22:57:07.1899373Z    |     fn(usize) -> Foo {Foo::Bar}
2020-02-16T22:57:07.1899959Z    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-02-16T22:57:07.1900029Z 
2020-02-16T22:57:07.1900029Z 
2020-02-16T22:57:07.1900317Z error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug`
2020-02-16T22:57:07.1900631Z    |
2020-02-16T22:57:07.1900631Z    |
2020-02-16T22:57:07.1900674Z LL |     assert_eq!(Foo::Bar, i);
2020-02-16T22:57:07.1901003Z    |     ^^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
2020-02-16T22:57:07.1901233Z    |
2020-02-16T22:57:07.1901547Z    = help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1901855Z    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1902221Z    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-02-16T22:57:07.1902259Z 
2020-02-16T22:57:07.1902259Z 
2020-02-16T22:57:07.1902954Z error[E0277]: `fn(usize) -> Foo {Foo::Bar}` doesn't implement `std::fmt::Debug`
2020-02-16T22:57:07.1903289Z    |
2020-02-16T22:57:07.1903289Z    |
2020-02-16T22:57:07.1903353Z LL |     assert_eq!(Foo::Bar, i);
2020-02-16T22:57:07.1903684Z    |     ^^^^^^^^^^^^^^^^^^^^^^^^ `fn(usize) -> Foo {Foo::Bar}` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
2020-02-16T22:57:07.1903747Z    |
2020-02-16T22:57:07.1904039Z    = help: the trait `std::fmt::Debug` is not implemented for `fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1904346Z    = note: required because of the requirements on the impl of `std::fmt::Debug` for `&fn(usize) -> Foo {Foo::Bar}`
2020-02-16T22:57:07.1904707Z    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-02-16T22:57:07.1904746Z 
2020-02-16T22:57:07.1904791Z error: aborting due to 10 previous errors
2020-02-16T22:57:07.1904821Z 
---
2020-02-16T22:57:07.1905481Z 
2020-02-16T22:57:07.1905724Z ---- [ui] ui/pattern/pattern-tyvar-2.rs stdout ----
2020-02-16T22:57:07.1905773Z diff of stderr:
2020-02-16T22:57:07.1905819Z 
2020-02-16T22:57:07.1906251Z 5    |                                                                     - ^ - {integer}
2020-02-16T22:57:07.1906381Z 7    |                                                                     std::vec::Vec<isize>
2020-02-16T22:57:07.1906565Z -    |
2020-02-16T22:57:07.1906829Z -    = note: an implementation of `std::ops::Mul` might be missing for `std::vec::Vec<isize>`
2020-02-16T22:57:07.1906895Z 10 
2020-02-16T22:57:07.1906895Z 10 
2020-02-16T22:57:07.1906948Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1906990Z 12 
2020-02-16T22:57:07.1907016Z 
2020-02-16T22:57:07.1907042Z 
2020-02-16T22:57:07.1907105Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1907408Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/pattern/pattern-tyvar-2/pattern-tyvar-2.stderr
2020-02-16T22:57:07.1907666Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1907948Z To only update this specific test, also pass `--test-args pattern/pattern-tyvar-2.rs`
2020-02-16T22:57:07.1908026Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1908144Z status: exit code: 1
2020-02-16T22:57:07.1908144Z status: exit code: 1
2020-02-16T22:57:07.1908944Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/pattern/pattern-tyvar-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/pattern/pattern-tyvar-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/pattern/pattern-tyvar-2/auxiliary"
2020-02-16T22:57:07.1909382Z ------------------------------------------
2020-02-16T22:57:07.1909416Z 
2020-02-16T22:57:07.1909772Z ------------------------------------------
2020-02-16T22:57:07.1909817Z stderr:
2020-02-16T22:57:07.1909817Z stderr:
2020-02-16T22:57:07.1910258Z ------------------------------------------
2020-02-16T22:57:07.1910370Z error[E0369]: cannot multiply `{integer}` to `std::vec::Vec<isize>`
2020-02-16T22:57:07.1910673Z    |
2020-02-16T22:57:07.1910673Z    |
2020-02-16T22:57:07.1911061Z LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
2020-02-16T22:57:07.1911379Z    |                                                                     - ^ - {integer}
2020-02-16T22:57:07.1911516Z    |                                                                     std::vec::Vec<isize>
2020-02-16T22:57:07.1911558Z 
2020-02-16T22:57:07.1911603Z error: aborting due to previous error
2020-02-16T22:57:07.1911632Z 
---
2020-02-16T22:57:07.1912220Z 
2020-02-16T22:57:07.1912681Z ---- [ui] ui/span/issue-39018.rs stdout ----
2020-02-16T22:57:07.1912734Z diff of stderr:
2020-02-16T22:57:07.1912763Z 
2020-02-16T22:57:07.1913008Z 136    |             -- ^ -- &&str
2020-02-16T22:57:07.1913111Z 138    |             &&str
2020-02-16T22:57:07.1913303Z -    |
2020-02-16T22:57:07.1913583Z -    = note: an implementation of `std::ops::Add` might be missing for `&&str`
2020-02-16T22:57:07.1913634Z 141 
2020-02-16T22:57:07.1913634Z 141 
2020-02-16T22:57:07.1913678Z 142 error[E0369]: cannot add `&str` to `&&str`
2020-02-16T22:57:07.1913929Z 143   --> $DIR/issue-39018.rs:35:16
2020-02-16T22:57:07.1913962Z 
2020-02-16T22:57:07.1914175Z 146    |             -- ^ - &str
2020-02-16T22:57:07.1914288Z 148    |             &&str
2020-02-16T22:57:07.1914475Z -    |
2020-02-16T22:57:07.1914732Z -    = note: an implementation of `std::ops::Add` might be missing for `&&str`
2020-02-16T22:57:07.1914799Z 151 
2020-02-16T22:57:07.1914799Z 151 
2020-02-16T22:57:07.1914844Z 152 error[E0369]: cannot add `&&str` to `&str`
2020-02-16T22:57:07.1915066Z 153   --> $DIR/issue-39018.rs:36:15
2020-02-16T22:57:07.1915099Z 
2020-02-16T22:57:07.1915143Z 
2020-02-16T22:57:07.1915198Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1915503Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/span/issue-39018/issue-39018.stderr
2020-02-16T22:57:07.1916073Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1916329Z To only update this specific test, also pass `--test-args span/issue-39018.rs`
2020-02-16T22:57:07.1916414Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1916475Z status: exit code: 1
2020-02-16T22:57:07.1916475Z status: exit code: 1
2020-02-16T22:57:07.1917257Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/span/issue-39018.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/span/issue-39018" "-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/span/issue-39018/auxiliary"
2020-02-16T22:57:07.1917586Z ------------------------------------------
2020-02-16T22:57:07.1917619Z 
2020-02-16T22:57:07.1917855Z ------------------------------------------
2020-02-16T22:57:07.1917996Z stderr:
2020-02-16T22:57:07.1917996Z stderr:
2020-02-16T22:57:07.1918231Z ------------------------------------------
2020-02-16T22:57:07.1918297Z error[E0369]: cannot add `&str` to `&str`
2020-02-16T22:57:07.1918528Z   --> /checkout/src/test/ui/span/issue-39018.rs:2:22
2020-02-16T22:57:07.1918573Z    |
2020-02-16T22:57:07.1918632Z LL |     let x = "Hello " + "World!";
2020-02-16T22:57:07.1918850Z    |             -------- ^ -------- &str
2020-02-16T22:57:07.1918897Z    |             |        |
2020-02-16T22:57:07.1918946Z    |             |        `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1919054Z    |
2020-02-16T22:57:07.1919054Z    |
2020-02-16T22:57:07.1919191Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1919277Z    |
2020-02-16T22:57:07.1919322Z LL |     let x = "Hello ".to_owned() + "World!";
2020-02-16T22:57:07.1919424Z 
2020-02-16T22:57:07.1919424Z 
2020-02-16T22:57:07.1919466Z error[E0369]: cannot add `World` to `World`
2020-02-16T22:57:07.1919794Z    |
2020-02-16T22:57:07.1919794Z    |
2020-02-16T22:57:07.1919836Z LL |     let y = World::Hello + World::Goodbye;
2020-02-16T22:57:07.1920063Z    |             ------------ ^ -------------- World
2020-02-16T22:57:07.1920169Z    |             World
2020-02-16T22:57:07.1920208Z    |
2020-02-16T22:57:07.1920208Z    |
2020-02-16T22:57:07.1920262Z    = note: an implementation of `std::ops::Add` might be missing for `World`
2020-02-16T22:57:07.1920359Z error[E0369]: cannot add `std::string::String` to `&str`
2020-02-16T22:57:07.1920593Z   --> /checkout/src/test/ui/span/issue-39018.rs:11:22
2020-02-16T22:57:07.1920654Z    |
2020-02-16T22:57:07.1920654Z    |
2020-02-16T22:57:07.1920697Z LL |     let x = "Hello " + "World!".to_owned();
2020-02-16T22:57:07.1920949Z    |             -------- ^ ------------------- std::string::String
2020-02-16T22:57:07.1921065Z    |             |        `+` cannot be used to concatenate a `&str` with a `String`
2020-02-16T22:57:07.1921112Z    |             &str
2020-02-16T22:57:07.1921151Z    |
2020-02-16T22:57:07.1921151Z    |
2020-02-16T22:57:07.1921235Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1921293Z    |
2020-02-16T22:57:07.1921362Z LL |     let x = "Hello ".to_owned() + &"World!".to_owned();
2020-02-16T22:57:07.1921442Z 
2020-02-16T22:57:07.1921488Z error[E0369]: cannot add `&std::string::String` to `&std::string::String`
2020-02-16T22:57:07.1921747Z   --> /checkout/src/test/ui/span/issue-39018.rs:26:16
2020-02-16T22:57:07.1921801Z    |
2020-02-16T22:57:07.1921801Z    |
2020-02-16T22:57:07.1921845Z LL |     let _ = &a + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1922086Z    |             -- ^ -- &std::string::String
2020-02-16T22:57:07.1922133Z    |             |  |
2020-02-16T22:57:07.1922180Z    |             |  `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1922286Z    |
2020-02-16T22:57:07.1922286Z    |
2020-02-16T22:57:07.1922343Z help: String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1922420Z    |
2020-02-16T22:57:07.1922463Z LL |     let _ = a + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1922693Z 
2020-02-16T22:57:07.1922997Z error[E0369]: cannot add `std::string::String` to `&std::string::String`
2020-02-16T22:57:07.1923278Z   --> /checkout/src/test/ui/span/issue-39018.rs:27:16
2020-02-16T22:57:07.1923420Z    |
2020-02-16T22:57:07.1923420Z    |
2020-02-16T22:57:07.1923483Z LL |     let _ = &a + b; //~ ERROR cannot add
2020-02-16T22:57:07.1923740Z    |             -- ^ - std::string::String
2020-02-16T22:57:07.1923837Z    |             |  `+` cannot be used to concatenate a `&str` with a `String`
2020-02-16T22:57:07.1923904Z    |             &std::string::String
2020-02-16T22:57:07.1923946Z    |
2020-02-16T22:57:07.1923946Z    |
2020-02-16T22:57:07.1924083Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1924166Z    |
2020-02-16T22:57:07.1924211Z LL |     let _ = a + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1924304Z 
2020-02-16T22:57:07.1924347Z error[E0308]: mismatched types
2020-02-16T22:57:07.1924616Z   --> /checkout/src/test/ui/span/issue-39018.rs:29:17
2020-02-16T22:57:07.1924672Z    |
2020-02-16T22:57:07.1924672Z    |
2020-02-16T22:57:07.1924735Z LL |     let _ = a + b; //~ ERROR mismatched types
2020-02-16T22:57:07.1924824Z    |                 |
2020-02-16T22:57:07.1924890Z    |                 expected `&str`, found struct `std::string::String`
2020-02-16T22:57:07.1924942Z    |                 help: consider borrowing here: `&b`
2020-02-16T22:57:07.1924972Z 
2020-02-16T22:57:07.1924972Z 
2020-02-16T22:57:07.1925036Z error[E0369]: cannot add `std::string::String` to `&std::string::String`
2020-02-16T22:57:07.1925286Z   --> /checkout/src/test/ui/span/issue-39018.rs:30:15
2020-02-16T22:57:07.1925341Z    |
2020-02-16T22:57:07.1925386Z LL |     let _ = e + b; //~ ERROR cannot add
2020-02-16T22:57:07.1925631Z    |             - ^ - std::string::String
2020-02-16T22:57:07.1925730Z    |             | `+` cannot be used to concatenate a `&str` with a `String`
2020-02-16T22:57:07.1925804Z    |             &std::string::String
2020-02-16T22:57:07.1925846Z    |
2020-02-16T22:57:07.1925846Z    |
2020-02-16T22:57:07.1925914Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1925992Z    |
2020-02-16T22:57:07.1926037Z LL |     let _ = e.to_owned() + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1926130Z 
2020-02-16T22:57:07.1926179Z error[E0369]: cannot add `&std::string::String` to `&std::string::String`
2020-02-16T22:57:07.1926603Z   --> /checkout/src/test/ui/span/issue-39018.rs:31:15
2020-02-16T22:57:07.1926648Z    |
2020-02-16T22:57:07.1926648Z    |
2020-02-16T22:57:07.1926707Z LL |     let _ = e + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1926921Z    |             - ^ -- &std::string::String
2020-02-16T22:57:07.1926965Z    |             | |
2020-02-16T22:57:07.1927028Z    |             | `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1927119Z    |
2020-02-16T22:57:07.1927119Z    |
2020-02-16T22:57:07.1927200Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1927255Z    |
2020-02-16T22:57:07.1927297Z LL |     let _ = e.to_owned() + &b; //~ ERROR cannot add
2020-02-16T22:57:07.1927385Z 
2020-02-16T22:57:07.1927433Z error[E0369]: cannot add `&str` to `&std::string::String`
2020-02-16T22:57:07.1927666Z   --> /checkout/src/test/ui/span/issue-39018.rs:32:15
2020-02-16T22:57:07.1927728Z    |
2020-02-16T22:57:07.1927728Z    |
2020-02-16T22:57:07.1927768Z LL |     let _ = e + d; //~ ERROR cannot add
2020-02-16T22:57:07.1927965Z    |             - ^ - &str
2020-02-16T22:57:07.1928026Z    |             | |
2020-02-16T22:57:07.1928150Z    |             | `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1928250Z    |
2020-02-16T22:57:07.1928250Z    |
2020-02-16T22:57:07.1928313Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1928368Z    |
2020-02-16T22:57:07.1928428Z LL |     let _ = e.to_owned() + d; //~ ERROR cannot add
2020-02-16T22:57:07.1928498Z 
2020-02-16T22:57:07.1928590Z error[E0369]: cannot add `&&str` to `&std::string::String`
2020-02-16T22:57:07.1928867Z   --> /checkout/src/test/ui/span/issue-39018.rs:33:15
2020-02-16T22:57:07.1928911Z    |
2020-02-16T22:57:07.1928911Z    |
2020-02-16T22:57:07.1928952Z LL |     let _ = e + &d; //~ ERROR cannot add
2020-02-16T22:57:07.1929169Z    |             - ^ -- &&str
2020-02-16T22:57:07.1929221Z    |             | |
2020-02-16T22:57:07.1929267Z    |             | `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1929367Z    |
2020-02-16T22:57:07.1929367Z    |
2020-02-16T22:57:07.1929431Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1929503Z    |
2020-02-16T22:57:07.1929545Z LL |     let _ = e.to_owned() + &d; //~ ERROR cannot add
2020-02-16T22:57:07.1929621Z 
2020-02-16T22:57:07.1929683Z error[E0369]: cannot add `&&str` to `&&str`
2020-02-16T22:57:07.1929912Z   --> /checkout/src/test/ui/span/issue-39018.rs:34:16
2020-02-16T22:57:07.1929955Z    |
2020-02-16T22:57:07.1929955Z    |
2020-02-16T22:57:07.1930013Z LL |     let _ = &c + &d; //~ ERROR cannot add
2020-02-16T22:57:07.1930220Z    |             -- ^ -- &&str
2020-02-16T22:57:07.1930349Z    |             &&str
2020-02-16T22:57:07.1930374Z 
2020-02-16T22:57:07.1930416Z error[E0369]: cannot add `&str` to `&&str`
2020-02-16T22:57:07.1930638Z   --> /checkout/src/test/ui/span/issue-39018.rs:35:16
2020-02-16T22:57:07.1930638Z   --> /checkout/src/test/ui/span/issue-39018.rs:35:16
2020-02-16T22:57:07.1930697Z    |
2020-02-16T22:57:07.1930737Z LL |     let _ = &c + d; //~ ERROR cannot add
2020-02-16T22:57:07.1930935Z    |             -- ^ - &str
2020-02-16T22:57:07.1931035Z    |             &&str
2020-02-16T22:57:07.1931061Z 
2020-02-16T22:57:07.1931101Z error[E0369]: cannot add `&&str` to `&str`
2020-02-16T22:57:07.1931350Z   --> /checkout/src/test/ui/span/issue-39018.rs:36:15
2020-02-16T22:57:07.1931350Z   --> /checkout/src/test/ui/span/issue-39018.rs:36:15
2020-02-16T22:57:07.1931394Z    |
2020-02-16T22:57:07.1931435Z LL |     let _ = c + &d; //~ ERROR cannot add
2020-02-16T22:57:07.1931647Z    |             - ^ -- &&str
2020-02-16T22:57:07.1931691Z    |             | |
2020-02-16T22:57:07.1931737Z    |             | `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1931846Z    |
2020-02-16T22:57:07.1931846Z    |
2020-02-16T22:57:07.1931909Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1931964Z    |
2020-02-16T22:57:07.1932027Z LL |     let _ = c.to_owned() + &d; //~ ERROR cannot add
2020-02-16T22:57:07.1932096Z 
2020-02-16T22:57:07.1932161Z error[E0369]: cannot add `&str` to `&str`
2020-02-16T22:57:07.1932543Z   --> /checkout/src/test/ui/span/issue-39018.rs:37:15
2020-02-16T22:57:07.1932902Z    |
2020-02-16T22:57:07.1932902Z    |
2020-02-16T22:57:07.1932946Z LL |     let _ = c + d; //~ ERROR cannot add
2020-02-16T22:57:07.1933204Z    |             - ^ - &str
2020-02-16T22:57:07.1933252Z    |             | |
2020-02-16T22:57:07.1933400Z    |             | `+` cannot be used to concatenate two `&str` strings
2020-02-16T22:57:07.1933506Z    |
2020-02-16T22:57:07.1933506Z    |
2020-02-16T22:57:07.1933572Z help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
2020-02-16T22:57:07.1933650Z    |
2020-02-16T22:57:07.1933696Z LL |     let _ = c.to_owned() + d; //~ ERROR cannot add
2020-02-16T22:57:07.1933788Z 
2020-02-16T22:57:07.1933905Z error: aborting due to 14 previous errors
2020-02-16T22:57:07.1933940Z 
2020-02-16T22:57:07.1933986Z Some errors have detailed explanations: E0308, E0369.
---
2020-02-16T22:57:07.1934622Z 
2020-02-16T22:57:07.1934894Z ---- [ui] ui/traits/trait-resolution-in-overloaded-op.rs stdout ----
2020-02-16T22:57:07.1934944Z diff of stderr:
2020-02-16T22:57:07.1934972Z 
2020-02-16T22:57:07.1935191Z 5    |     - ^ - f64
2020-02-16T22:57:07.1935280Z 7    |     &T
2020-02-16T22:57:07.1935466Z -    |
2020-02-16T22:57:07.1935742Z -    = note: an implementation of `std::ops::Mul` might be missing for `&T`
2020-02-16T22:57:07.1935792Z 10 
2020-02-16T22:57:07.1935792Z 10 
2020-02-16T22:57:07.1935838Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1935898Z 12 
2020-02-16T22:57:07.1935925Z 
2020-02-16T22:57:07.1935961Z 
2020-02-16T22:57:07.1936007Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1936530Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/traits/trait-resolution-in-overloaded-op/trait-resolution-in-overloaded-op.stderr
2020-02-16T22:57:07.1936773Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1937051Z To only update this specific test, also pass `--test-args traits/trait-resolution-in-overloaded-op.rs`
2020-02-16T22:57:07.1937146Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1937187Z status: exit code: 1
2020-02-16T22:57:07.1937187Z status: exit code: 1
2020-02-16T22:57:07.1938021Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/traits/trait-resolution-in-overloaded-op.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-resolution-in-overloaded-op" "-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-resolution-in-overloaded-op/auxiliary"
2020-02-16T22:57:07.1938350Z ------------------------------------------
2020-02-16T22:57:07.1938381Z 
2020-02-16T22:57:07.1938593Z ------------------------------------------
2020-02-16T22:57:07.1938636Z stderr:
2020-02-16T22:57:07.1938636Z stderr:
2020-02-16T22:57:07.1938862Z ------------------------------------------
2020-02-16T22:57:07.1938909Z error[E0369]: cannot multiply `f64` to `&T`
2020-02-16T22:57:07.1939215Z    |
2020-02-16T22:57:07.1939215Z    |
2020-02-16T22:57:07.1939260Z LL |     a * b //~ ERROR cannot multiply `f64` to `&T`
2020-02-16T22:57:07.1939451Z    |     - ^ - f64
2020-02-16T22:57:07.1939761Z    |     &T
2020-02-16T22:57:07.1939788Z 
2020-02-16T22:57:07.1939828Z error: aborting due to previous error
2020-02-16T22:57:07.1939873Z 
---
2020-02-16T22:57:07.1940615Z 
2020-02-16T22:57:07.1940825Z ---- [ui] ui/vec/vec-res-add.rs stdout ----
2020-02-16T22:57:07.1940869Z diff of stderr:
2020-02-16T22:57:07.1940912Z 
2020-02-16T22:57:07.1941118Z 5    |             - ^ - std::vec::Vec<R>
2020-02-16T22:57:07.1941204Z 7    |             std::vec::Vec<R>
2020-02-16T22:57:07.1941441Z -    |
2020-02-16T22:57:07.1941694Z -    = note: an implementation of `std::ops::Add` might be missing for `std::vec::Vec<R>`
2020-02-16T22:57:07.1941742Z 10 
2020-02-16T22:57:07.1941742Z 10 
2020-02-16T22:57:07.1941875Z 11 error: aborting due to previous error
2020-02-16T22:57:07.1941924Z 12 
2020-02-16T22:57:07.1941950Z 
2020-02-16T22:57:07.1941974Z 
2020-02-16T22:57:07.1942033Z The actual stderr differed from the expected stderr.
2020-02-16T22:57:07.1942337Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/vec/vec-res-add/vec-res-add.stderr
2020-02-16T22:57:07.1943028Z To update references, rerun the tests and pass the `--bless` flag
2020-02-16T22:57:07.1943454Z To only update this specific test, also pass `--test-args vec/vec-res-add.rs`
2020-02-16T22:57:07.1943536Z error: 1 errors occurred comparing output.
2020-02-16T22:57:07.1943599Z status: exit code: 1
2020-02-16T22:57:07.1943599Z status: exit code: 1
2020-02-16T22:57:07.1944407Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/vec/vec-res-add.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/vec/vec-res-add" "-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/vec/vec-res-add/auxiliary"
2020-02-16T22:57:07.1944755Z ------------------------------------------
2020-02-16T22:57:07.1944788Z 
2020-02-16T22:57:07.1945014Z ------------------------------------------
2020-02-16T22:57:07.1945080Z stderr:
2020-02-16T22:57:07.1945080Z stderr:
2020-02-16T22:57:07.1945300Z ------------------------------------------
2020-02-16T22:57:07.1945352Z error[E0369]: cannot add `std::vec::Vec<R>` to `std::vec::Vec<R>`
2020-02-16T22:57:07.1945662Z    |
2020-02-16T22:57:07.1945662Z    |
2020-02-16T22:57:07.1945704Z LL |     let k = i + j;
2020-02-16T22:57:07.1945942Z    |             - ^ - std::vec::Vec<R>
2020-02-16T22:57:07.1946042Z    |             std::vec::Vec<R>
2020-02-16T22:57:07.1946072Z 
2020-02-16T22:57:07.1946294Z error: aborting due to previous error
2020-02-16T22:57:07.1946319Z 
---
2020-02-16T22:57:07.1951123Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-16T22:57:07.1951177Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-16T22:57:07.1951277Z 
2020-02-16T22:57:07.1951325Z 
2020-02-16T22:57:07.1953070Z 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" "--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\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-02-16T22:57:07.1953324Z 
2020-02-16T22:57:07.1953354Z 
2020-02-16T22:57:07.1953446Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-16T22:57:07.1953497Z Build completed unsuccessfully in 1:06:47
2020-02-16T22:57:07.1953497Z Build completed unsuccessfully in 1:06:47
2020-02-16T22:57:07.1953562Z == clock drift check ==
2020-02-16T22:57:07.1953607Z   local time: Sun Feb 16 22:57:07 UTC 2020
2020-02-16T22:57:07.4765794Z   network time: Sun, 16 Feb 2020 22:57:07 GMT
2020-02-16T22:57:07.4768787Z == end clock drift check ==
2020-02-16T22:57:07.9429699Z 
2020-02-16T22:57:07.9526193Z ##[error]Bash exited with code '1'.
2020-02-16T22:57:07.9541941Z ##[section]Finishing: Run build
2020-02-16T22:57:07.9587150Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-16T22:57:07.9588872Z Task         : Get sources
2020-02-16T22:57:07.9588935Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-16T22:57:07.9588995Z Version      : 1.0.0
2020-02-16T22:57:07.9589036Z Author       : Microsoft
2020-02-16T22:57:07.9589036Z Author       : Microsoft
2020-02-16T22:57:07.9589095Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-16T22:57:07.9589143Z ==============================================================================
2020-02-16T22:57:08.3967187Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-16T22:57:08.4012448Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-16T22:57:08.4140007Z Cleaning up task key
2020-02-16T22:57:08.4140745Z Start cleaning up orphan processes.
2020-02-16T22:57:08.4246012Z Terminate orphan process: pid (5384) (python)
2020-02-16T22:57:08.4507124Z ##[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 @TimNN. (Feature Requests)

@rust-highfive
Copy link
Collaborator

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-02-16T23:22:22.1739070Z ========================== Starting Command Output ===========================
2020-02-16T23:22:22.1759154Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/8005cdba-bbec-4b36-84c8-977ffbb92b4b.sh
2020-02-16T23:22:23.1653741Z 
2020-02-16T23:22:23.1716308Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-16T23:22:23.1722923Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-16T23:22:23.1724554Z Task         : Get sources
2020-02-16T23:22:23.1724625Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-16T23:22:23.1724654Z Version      : 1.0.0
2020-02-16T23:22:23.1724682Z Author       : Microsoft
---
2020-02-16T23:22:29.0822700Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-02-16T23:22:29.1311807Z ##[command]git config gc.auto 0
2020-02-16T23:22:29.1390901Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-02-16T23:22:29.1438402Z ##[command]git config --get-all http.proxy
2020-02-16T23:22:29.1589064Z ##[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/69217/merge:refs/remotes/pull/69217/merge
---
2020-02-17T00:22:38.1850894Z .................................................................................................... 1700/9650
2020-02-17T00:22:43.1335854Z .................................................................................................... 1800/9650
2020-02-17T00:22:55.2804145Z ..................................i................................................................. 1900/9650
2020-02-17T00:23:02.9826354Z ...................................................................................F................ 2000/9650
2020-02-17T00:23:17.6872254Z ........................iiiii....................................................................... 2100/9650
2020-02-17T00:23:27.6104553Z ............................F....................................................................... 2300/9650
2020-02-17T00:23:30.0993394Z .................................................................................................... 2400/9650
2020-02-17T00:23:34.7700891Z .................................................F.................................................. 2500/9650
2020-02-17T00:23:55.7433112Z .................................................................................................... 2600/9650
---
2020-02-17T00:27:14.4581820Z ....................................i............................................................... 5500/9650
2020-02-17T00:27:20.3110361Z .................................................................................................... 5600/9650
2020-02-17T00:27:30.9432042Z .......................................................................................i............ 5700/9650
2020-02-17T00:27:38.9370872Z .................................................................................................... 5800/9650
2020-02-17T00:27:44.2624786Z ...................................................................................F.i.............. 5900/9650
2020-02-17T00:27:54.5908389Z ...............................................................................ii...i..ii........... 6000/9650
2020-02-17T00:28:07.3602276Z i................................................................................................... 6100/9650
2020-02-17T00:28:24.0624770Z .................................................................................................... 6300/9650
2020-02-17T00:28:32.0092870Z .................................................................................................... 6400/9650
2020-02-17T00:28:32.0092870Z .................................................................................................... 6400/9650
2020-02-17T00:28:48.5389314Z .......i..ii........................................................................................ 6500/9650
2020-02-17T00:29:08.7587573Z ...............................................................................................i.... 6700/9650
2020-02-17T00:29:11.0232791Z .................................................................................................... 6800/9650
2020-02-17T00:29:13.2647131Z .................................................................................................... 6900/9650
2020-02-17T00:29:15.6578572Z .....i.............................................................................................. 7000/9650
---
2020-02-17T00:30:50.8886834Z .................................................................................................... 7600/9650
2020-02-17T00:30:55.5705548Z .................................................................................................... 7700/9650
2020-02-17T00:31:01.5850572Z .................................................................................................... 7800/9650
2020-02-17T00:31:08.2552435Z .................................F.................................................................. 7900/9650
2020-02-17T00:31:18.0995684Z .......................................................................................iiiiiii.i.... 8000/9650
2020-02-17T00:31:34.8541546Z ...........................i......i................................................................. 8200/9650
2020-02-17T00:31:39.9524978Z .................................................................................................... 8300/9650
2020-02-17T00:31:51.6784463Z .................................................................................................... 8400/9650
2020-02-17T00:32:03.4898465Z .................................................................................................... 8500/9650
---
2020-02-17T00:34:02.8296820Z diff of stderr:
2020-02-17T00:34:02.8296945Z 
2020-02-17T00:34:02.8297488Z 16    |     ------^^^^^^^^^^
2020-02-17T00:34:02.8297903Z 17    |     |
2020-02-17T00:34:02.8298063Z 18    |     cannot use `+=` on type `({integer}, {integer})`
2020-02-17T00:34:02.8298644Z -    |
2020-02-17T00:34:02.8299077Z -    = note: an implementation of `std::ops::AddAssign` might be missing for `({integer}, {integer})`
2020-02-17T00:34:02.8299254Z 21 
2020-02-17T00:34:02.8299594Z 22 error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8300454Z 
2020-02-17T00:34:02.8300931Z 48    |     ------^^^^^^^^^^
2020-02-17T00:34:02.8301330Z 49    |     |
2020-02-17T00:34:02.8301330Z 49    |     |
2020-02-17T00:34:02.8301639Z 50    |     cannot use `+=` on type `[{integer}; 2]`
2020-02-17T00:34:02.8302026Z -    |
2020-02-17T00:34:02.8302468Z -    = note: an implementation of `std::ops::AddAssign` might be missing for `[{integer}; 2]`
2020-02-17T00:34:02.8302675Z 53 
2020-02-17T00:34:02.8303087Z 54 error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8303709Z 
2020-02-17T00:34:02.8303841Z 
2020-02-17T00:34:02.8304034Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8304839Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/destructuring-assignment/note-unsupported/note-unsupported.stderr
2020-02-17T00:34:02.8304839Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/destructuring-assignment/note-unsupported/note-unsupported.stderr
2020-02-17T00:34:02.8305220Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8305632Z To only update this specific test, also pass `--test-args destructuring-assignment/note-unsupported.rs`
2020-02-17T00:34:02.8305974Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8306110Z status: exit code: 1
2020-02-17T00:34:02.8306110Z status: exit code: 1
2020-02-17T00:34:02.8306986Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/destructuring-assignment/note-unsupported.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/destructuring-assignment/note-unsupported" "-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/destructuring-assignment/note-unsupported/auxiliary"
2020-02-17T00:34:02.8307548Z ------------------------------------------
2020-02-17T00:34:02.8307710Z 
2020-02-17T00:34:02.8308020Z ------------------------------------------
2020-02-17T00:34:02.8308174Z stderr:
2020-02-17T00:34:02.8308174Z stderr:
2020-02-17T00:34:02.8308528Z ------------------------------------------
2020-02-17T00:34:02.8308894Z error[E0070]: invalid left-hand side of assignment
2020-02-17T00:34:02.8309475Z    |
2020-02-17T00:34:02.8309475Z    |
2020-02-17T00:34:02.8309819Z LL |     (a, b) = (3, 4); //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8310333Z    |     |
2020-02-17T00:34:02.8310479Z    |     cannot assign to this expression
2020-02-17T00:34:02.8310602Z    |
2020-02-17T00:34:02.8310900Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8310900Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8311334Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8311706Z 
2020-02-17T00:34:02.8311872Z error[E0368]: binary assignment operation `+=` cannot be applied to type `({integer}, {integer})`
2020-02-17T00:34:02.8312639Z    |
2020-02-17T00:34:02.8312639Z    |
2020-02-17T00:34:02.8313060Z LL |     (a, b) += (3, 4); //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8313679Z    |     |
2020-02-17T00:34:02.8313679Z    |     |
2020-02-17T00:34:02.8313840Z    |     cannot use `+=` on type `({integer}, {integer})`
2020-02-17T00:34:02.8313975Z 
2020-02-17T00:34:02.8314701Z error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8315975Z    |
2020-02-17T00:34:02.8315975Z    |
2020-02-17T00:34:02.8316297Z LL |     (a, b) += (3, 4); //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8316791Z    |     |
2020-02-17T00:34:02.8317094Z    |     cannot assign to this expression
2020-02-17T00:34:02.8317218Z    |
2020-02-17T00:34:02.8317345Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8317345Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8318154Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8318363Z 
2020-02-17T00:34:02.8318803Z error[E0070]: invalid left-hand side of assignment
2020-02-17T00:34:02.8319567Z    |
2020-02-17T00:34:02.8319567Z    |
2020-02-17T00:34:02.8321904Z LL |     [a, b] = [3, 4]; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8322773Z    |     |
2020-02-17T00:34:02.8322911Z    |     cannot assign to this expression
2020-02-17T00:34:02.8323055Z    |
2020-02-17T00:34:02.8323191Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8323191Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8323568Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8323749Z 
2020-02-17T00:34:02.8324228Z error[E0368]: binary assignment operation `+=` cannot be applied to type `[{integer}; 2]`
2020-02-17T00:34:02.8324758Z    |
2020-02-17T00:34:02.8324758Z    |
2020-02-17T00:34:02.8325114Z LL |     [a, b] += [3, 4]; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8325604Z    |     |
2020-02-17T00:34:02.8325604Z    |     |
2020-02-17T00:34:02.8325733Z    |     cannot use `+=` on type `[{integer}; 2]`
2020-02-17T00:34:02.8325841Z 
2020-02-17T00:34:02.8326152Z error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8327480Z    |
2020-02-17T00:34:02.8327480Z    |
2020-02-17T00:34:02.8328149Z LL |     [a, b] += [3, 4]; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8328668Z    |     |
2020-02-17T00:34:02.8328799Z    |     cannot assign to this expression
2020-02-17T00:34:02.8329219Z    |
2020-02-17T00:34:02.8330063Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8330063Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8339584Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8339839Z 
2020-02-17T00:34:02.8340262Z error[E0070]: invalid left-hand side of assignment
2020-02-17T00:34:02.8341192Z    |
2020-02-17T00:34:02.8341192Z    |
2020-02-17T00:34:02.8341600Z LL |     S { x: a, y: b } = s; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8342373Z    |     |
2020-02-17T00:34:02.8342522Z    |     cannot assign to this expression
2020-02-17T00:34:02.8342681Z    |
2020-02-17T00:34:02.8342834Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8342834Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8343244Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8343426Z 
2020-02-17T00:34:02.8343591Z error[E0368]: binary assignment operation `+=` cannot be applied to type `S`
2020-02-17T00:34:02.8344696Z    |
2020-02-17T00:34:02.8344696Z    |
2020-02-17T00:34:02.8345061Z LL |     S { x: a, y: b } += s; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8345580Z    |     |
2020-02-17T00:34:02.8345580Z    |     |
2020-02-17T00:34:02.8345712Z    |     cannot use `+=` on type `S`
2020-02-17T00:34:02.8345986Z    = note: an implementation of `std::ops::AddAssign` might be missing for `S`
2020-02-17T00:34:02.8346323Z 
2020-02-17T00:34:02.8346323Z 
2020-02-17T00:34:02.8346691Z error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8347285Z    |
2020-02-17T00:34:02.8347285Z    |
2020-02-17T00:34:02.8347936Z LL |     S { x: a, y: b } += s; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8348471Z    |     |
2020-02-17T00:34:02.8348726Z    |     cannot assign to this expression
2020-02-17T00:34:02.8348895Z    |
2020-02-17T00:34:02.8349050Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8349050Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8349438Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8349599Z 
2020-02-17T00:34:02.8349974Z error[E0070]: invalid left-hand side of assignment
2020-02-17T00:34:02.8351242Z    |
2020-02-17T00:34:02.8351242Z    |
2020-02-17T00:34:02.8351712Z LL |     S { x: a, ..s } = S { x: 3, y: 4 }; //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8352311Z    |     |
2020-02-17T00:34:02.8352479Z    |     cannot assign to this expression
2020-02-17T00:34:02.8352625Z    |
2020-02-17T00:34:02.8352771Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8352771Z    = note: destructuring assignments are not currently supported
2020-02-17T00:34:02.8353187Z    = note: for more information, see https://github.com/rust-lang/rfcs/issues/372
2020-02-17T00:34:02.8353523Z 
2020-02-17T00:34:02.8353928Z error[E0070]: invalid left-hand side of assignment
2020-02-17T00:34:02.8359835Z    |
2020-02-17T00:34:02.8359835Z    |
2020-02-17T00:34:02.8360115Z LL |     ((a, b), c) = ((3, 4), 5); //~ ERROR invalid left-hand side of assignment
2020-02-17T00:34:02.8360369Z    |     |
2020-02-17T00:34:02.8360409Z    |     cannot assign to this expression
2020-02-17T00:34:02.8360448Z    |
2020-02-17T00:34:02.8360507Z    = note: destructuring assignments are not currently supported
---
2020-02-17T00:34:02.8362395Z diff of stderr:
2020-02-17T00:34:02.8362423Z 
2020-02-17T00:34:02.8362635Z 5    |     -----------------^^^^^
2020-02-17T00:34:02.8362692Z 6    |     |
2020-02-17T00:34:02.8362757Z 7    |     cannot use `+=` on type `std::collections::LinkedList<_>`
2020-02-17T00:34:02.8363238Z -    = note: an implementation of `std::ops::AddAssign` might be missing for `std::collections::LinkedList<_>`
2020-02-17T00:34:02.8363313Z 10 
2020-02-17T00:34:02.8363313Z 10 
2020-02-17T00:34:02.8363551Z 11 error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8363760Z 12   --> $DIR/E0067.rs:4:23
2020-02-17T00:34:02.8363834Z 
2020-02-17T00:34:02.8363890Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8364189Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0067/E0067.stderr
2020-02-17T00:34:02.8364189Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-codes/E0067/E0067.stderr
2020-02-17T00:34:02.8364457Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8364872Z To only update this specific test, also pass `--test-args error-codes/E0067.rs`
2020-02-17T00:34:02.8364981Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8365198Z status: exit code: 1
2020-02-17T00:34:02.8365198Z status: exit code: 1
2020-02-17T00:34:02.8366168Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-codes/E0067.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/E0067" "-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/E0067/auxiliary"
2020-02-17T00:34:02.8366575Z ------------------------------------------
2020-02-17T00:34:02.8366612Z 
2020-02-17T00:34:02.8366874Z ------------------------------------------
2020-02-17T00:34:02.8366923Z stderr:
2020-02-17T00:34:02.8366923Z stderr:
2020-02-17T00:34:02.8367156Z ------------------------------------------
2020-02-17T00:34:02.8367443Z error[E0368]: binary assignment operation `+=` cannot be applied to type `std::collections::LinkedList<_>`
2020-02-17T00:34:02.8367878Z    |
2020-02-17T00:34:02.8367878Z    |
2020-02-17T00:34:02.8367935Z LL |     LinkedList::new() += 1; //~ ERROR E0368
2020-02-17T00:34:02.8368161Z    |     |
2020-02-17T00:34:02.8368161Z    |     |
2020-02-17T00:34:02.8368218Z    |     cannot use `+=` on type `std::collections::LinkedList<_>`
2020-02-17T00:34:02.8368255Z 
2020-02-17T00:34:02.8368459Z error[E0067]: invalid left-hand side of assignment
2020-02-17T00:34:02.8368721Z    |
2020-02-17T00:34:02.8368721Z    |
2020-02-17T00:34:02.8368760Z LL |     LinkedList::new() += 1; //~ ERROR E0368
2020-02-17T00:34:02.8368996Z    |     |
2020-02-17T00:34:02.8369035Z    |     cannot assign to this expression
2020-02-17T00:34:02.8369069Z 
2020-02-17T00:34:02.8369107Z error: aborting due to 2 previous errors
---
2020-02-17T00:34:02.8370294Z 25    |     cannot use `+=` on type `&str`
2020-02-17T00:34:02.8370452Z -    |
2020-02-17T00:34:02.8370676Z -    = note: an implementation of `std::ops::AddAssign` might be missing for `&str`
2020-02-17T00:34:02.8370736Z 28 
2020-02-17T00:34:02.8370784Z 29 error[E0599]: no method named `z` found for reference `&str` in the current scope
2020-02-17T00:34:02.8371428Z 
2020-02-17T00:34:02.8371453Z 
2020-02-17T00:34:02.8371678Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8371963Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-festival/error-festival.stderr
2020-02-17T00:34:02.8371963Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/error-festival/error-festival.stderr
2020-02-17T00:34:02.8372221Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8372498Z To only update this specific test, also pass `--test-args error-festival.rs`
2020-02-17T00:34:02.8372674Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8372722Z status: exit code: 1
2020-02-17T00:34:02.8372722Z status: exit code: 1
2020-02-17T00:34:02.8373509Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/error-festival.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-festival" "-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-festival/auxiliary"
2020-02-17T00:34:02.8374141Z ------------------------------------------
2020-02-17T00:34:02.8374175Z 
2020-02-17T00:34:02.8374811Z ------------------------------------------
2020-02-17T00:34:02.8374862Z stderr:
---
2020-02-17T00:34:02.8376430Z    |
2020-02-17T00:34:02.8376477Z LL |     const FOO: u32 = 0;
2020-02-17T00:34:02.8376518Z    |     ^^^^^^^^^^^^^^^^^^^
2020-02-17T00:34:02.8376559Z 
2020-02-17T00:34:02.8376642Z error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
2020-02-17T00:34:02.8376920Z    |
2020-02-17T00:34:02.8376959Z LL |     x += 2;
2020-02-17T00:34:02.8377130Z    |     -^^^^^
2020-02-17T00:34:02.8377170Z    |     |
2020-02-17T00:34:02.8377170Z    |     |
2020-02-17T00:34:02.8377236Z    |     cannot use `+=` on type `&str`
2020-02-17T00:34:02.8377263Z 
2020-02-17T00:34:02.8377308Z error[E0599]: no method named `z` found for reference `&str` in the current scope
2020-02-17T00:34:02.8377582Z    |
2020-02-17T00:34:02.8377619Z LL |     x.z();
2020-02-17T00:34:02.8377659Z    |       ^ method not found in `&str`
2020-02-17T00:34:02.8377704Z 
2020-02-17T00:34:02.8377704Z 
2020-02-17T00:34:02.8377754Z error[E0600]: cannot apply unary operator `!` to type `Question`
2020-02-17T00:34:02.8377969Z   --> /checkout/src/test/ui/error-festival.rs:19:5
2020-02-17T00:34:02.8378024Z    |
2020-02-17T00:34:02.8378064Z LL |     !Question::Yes;
2020-02-17T00:34:02.8378162Z    |
2020-02-17T00:34:02.8378162Z    |
2020-02-17T00:34:02.8378206Z    = note: an implementation of `std::ops::Not` might be missing for `Question`
2020-02-17T00:34:02.8378236Z 
2020-02-17T00:34:02.8378276Z error[E0604]: only `u8` can be cast as `char`, not `u32`
2020-02-17T00:34:02.8378556Z    |
2020-02-17T00:34:02.8378594Z LL |     0u32 as char;
2020-02-17T00:34:02.8378715Z    |     ^^^^^^^^^^^^
2020-02-17T00:34:02.8378741Z 
---
2020-02-17T00:34:02.8379449Z 
2020-02-17T00:34:02.8379491Z error[E0054]: cannot cast as `bool`
2020-02-17T00:34:02.8379724Z   --> /checkout/src/test/ui/error-festival.rs:33:24
2020-02-17T00:34:02.8379767Z    |
2020-02-17T00:34:02.8379885Z LL |     let x_is_nonzero = x as bool;
2020-02-17T00:34:02.8379948Z    |                        ^^^^^^^^^ help: compare with zero instead: `x != 0`
2020-02-17T00:34:02.8379978Z 
2020-02-17T00:34:02.8380019Z error[E0606]: casting `&u8` as `u32` is invalid
2020-02-17T00:34:02.8380318Z    |
2020-02-17T00:34:02.8380318Z    |
2020-02-17T00:34:02.8380357Z LL |     let y: u32 = x as u32;
2020-02-17T00:34:02.8380543Z    |                  -^^^^^^^
2020-02-17T00:34:02.8380600Z    |                  |
2020-02-17T00:34:02.8380707Z    |                  cannot cast `&u8` as `u32`
2020-02-17T00:34:02.8380758Z    |                  help: dereference the expression: `*x`
2020-02-17T00:34:02.8380789Z 
2020-02-17T00:34:02.8381038Z error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]`
2020-02-17T00:34:02.8381350Z    |
2020-02-17T00:34:02.8381409Z LL |     v as *const [u8];
2020-02-17T00:34:02.8381464Z    |     ^^^^^^^^^^^^^^^^
2020-02-17T00:34:02.8381491Z 
---
2020-02-17T00:34:02.8382507Z ---- [ui] ui/minus-string.rs stdout ----
2020-02-17T00:34:02.8382573Z diff of stderr:
2020-02-17T00:34:02.8382601Z 
2020-02-17T00:34:02.8382642Z 3    |
2020-02-17T00:34:02.8382877Z 4 LL | fn main() { -"foo".to_string(); }
2020-02-17T00:34:02.8383126Z 5    |             ^^^^^^^^^^^^^^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8383580Z -    = note: an implementation of `std::ops::Neg` might be missing for `std::string::String`
2020-02-17T00:34:02.8383657Z 8 
2020-02-17T00:34:02.8383702Z 9 error: aborting due to previous error
2020-02-17T00:34:02.8383745Z 10 
2020-02-17T00:34:02.8383745Z 10 
2020-02-17T00:34:02.8383791Z 
2020-02-17T00:34:02.8383818Z 
2020-02-17T00:34:02.8383865Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8384469Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/minus-string/minus-string.stderr
2020-02-17T00:34:02.8384720Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8384972Z To only update this specific test, also pass `--test-args minus-string.rs`
2020-02-17T00:34:02.8385063Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8385107Z status: exit code: 1
2020-02-17T00:34:02.8385107Z status: exit code: 1
2020-02-17T00:34:02.8385827Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/minus-string.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/minus-string" "-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/minus-string/auxiliary"
2020-02-17T00:34:02.8386163Z ------------------------------------------
2020-02-17T00:34:02.8386195Z 
2020-02-17T00:34:02.8386435Z ------------------------------------------
2020-02-17T00:34:02.8386479Z stderr:
2020-02-17T00:34:02.8386479Z stderr:
2020-02-17T00:34:02.8386694Z ------------------------------------------
2020-02-17T00:34:02.8386959Z error[E0600]: cannot apply unary operator `-` to type `std::string::String`
2020-02-17T00:34:02.8387184Z   --> /checkout/src/test/ui/minus-string.rs:3:13
2020-02-17T00:34:02.8387230Z    |
2020-02-17T00:34:02.8387453Z LL | fn main() { -"foo".to_string(); }
2020-02-17T00:34:02.8387813Z    |             ^^^^^^^^^^^^^^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8387889Z error: aborting due to previous error
2020-02-17T00:34:02.8387933Z 
2020-02-17T00:34:02.8388173Z For more information about this error, try `rustc --explain E0600`.
2020-02-17T00:34:02.8388205Z 
2020-02-17T00:34:02.8388205Z 
2020-02-17T00:34:02.8388414Z ------------------------------------------
2020-02-17T00:34:02.8388459Z 
2020-02-17T00:34:02.8388484Z 
2020-02-17T00:34:02.8388798Z ---- [ui] ui/rfc-2497-if-let-chains/disallowed-positions.rs stdout ----
2020-02-17T00:34:02.8388856Z diff of stderr:
2020-02-17T00:34:02.8388899Z 
2020-02-17T00:34:02.8388938Z 560    |
2020-02-17T00:34:02.8389173Z 561 LL |     if -let 0 = 0 {}
2020-02-17T00:34:02.8389421Z 562    |        ^^^^^^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8389844Z -    = note: an implementation of `std::ops::Neg` might be missing for `bool`
2020-02-17T00:34:02.8389891Z 565 
2020-02-17T00:34:02.8389965Z 566 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
2020-02-17T00:34:02.8390195Z 567   --> $DIR/disallowed-positions.rs:46:8
2020-02-17T00:34:02.8390195Z 567   --> $DIR/disallowed-positions.rs:46:8
2020-02-17T00:34:02.8390225Z 
2020-02-17T00:34:02.8390280Z 748    |
2020-02-17T00:34:02.8390484Z 749 LL |     while -let 0 = 0 {}
2020-02-17T00:34:02.8390716Z 750    |           ^^^^^^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8391672Z -    = note: an implementation of `std::ops::Neg` might be missing for `bool`
2020-02-17T00:34:02.8391731Z 753 
2020-02-17T00:34:02.8391784Z 754 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
2020-02-17T00:34:02.8392040Z 755   --> $DIR/disallowed-positions.rs:110:11
2020-02-17T00:34:02.8392040Z 755   --> $DIR/disallowed-positions.rs:110:11
2020-02-17T00:34:02.8392073Z 
2020-02-17T00:34:02.8392114Z 927    |
2020-02-17T00:34:02.8392329Z 928 LL |     -let 0 = 0;
2020-02-17T00:34:02.8392564Z 929    |     ^^^^^^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8393011Z -    = note: an implementation of `std::ops::Neg` might be missing for `bool`
2020-02-17T00:34:02.8393079Z 932 
2020-02-17T00:34:02.8393130Z 933 error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try`
2020-02-17T00:34:02.8393360Z 934   --> $DIR/disallowed-positions.rs:183:5
2020-02-17T00:34:02.8393360Z 934   --> $DIR/disallowed-positions.rs:183:5
2020-02-17T00:34:02.8393409Z 
2020-02-17T00:34:02.8393437Z 
2020-02-17T00:34:02.8393483Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8393829Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions/disallowed-positions.stderr
2020-02-17T00:34:02.8394106Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8395094Z To only update this specific test, also pass `--test-args rfc-2497-if-let-chains/disallowed-positions.rs`
2020-02-17T00:34:02.8395191Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8395242Z status: exit code: 1
2020-02-17T00:34:02.8395242Z status: exit code: 1
2020-02-17T00:34:02.8396203Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.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/rfc-2497-if-let-chains/disallowed-positions" "-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/rfc-2497-if-let-chains/disallowed-positions/auxiliary"
2020-02-17T00:34:02.8396539Z ------------------------------------------
2020-02-17T00:34:02.8396571Z 
2020-02-17T00:34:02.8396771Z ------------------------------------------
2020-02-17T00:34:02.8396812Z stderr:
2020-02-17T00:34:02.8396812Z stderr:
2020-02-17T00:34:02.8397023Z ------------------------------------------
2020-02-17T00:34:02.8397187Z error: expected one of `,` or `>`, found `&&`
2020-02-17T00:34:02.8397521Z    |
2020-02-17T00:34:02.8397521Z    |
2020-02-17T00:34:02.8397569Z LL |         true && let 1 = 1 //~ ERROR expected one of `,` or `>`, found `&&`
2020-02-17T00:34:02.8397615Z    |              ^^ expected one of `,` or `>`
2020-02-17T00:34:02.8397700Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8398018Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:32:9
2020-02-17T00:34:02.8398076Z    |
2020-02-17T00:34:02.8398076Z    |
2020-02-17T00:34:02.8398139Z LL |     if &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8398226Z    |
2020-02-17T00:34:02.8398226Z    |
2020-02-17T00:34:02.8398520Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8398576Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8398660Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8398935Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:35:9
2020-02-17T00:34:02.8398982Z    |
2020-02-17T00:34:02.8398982Z    |
2020-02-17T00:34:02.8399028Z LL |     if !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8399130Z    |
2020-02-17T00:34:02.8399130Z    |
2020-02-17T00:34:02.8399388Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8399459Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8399532Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8399807Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:36:9
2020-02-17T00:34:02.8399854Z    |
2020-02-17T00:34:02.8399854Z    |
2020-02-17T00:34:02.8399900Z LL |     if *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8400013Z    |
2020-02-17T00:34:02.8400013Z    |
2020-02-17T00:34:02.8400267Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8400321Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8400412Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8400672Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:38:9
2020-02-17T00:34:02.8400733Z    |
2020-02-17T00:34:02.8400733Z    |
2020-02-17T00:34:02.8401159Z LL |     if -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8401253Z    |
2020-02-17T00:34:02.8401253Z    |
2020-02-17T00:34:02.8401535Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8401592Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8401697Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8401966Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:46:9
2020-02-17T00:34:02.8402016Z    |
2020-02-17T00:34:02.8402016Z    |
2020-02-17T00:34:02.8402082Z LL |     if (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8402177Z    |
2020-02-17T00:34:02.8402177Z    |
2020-02-17T00:34:02.8402463Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8402540Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8402622Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8402926Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:50:16
2020-02-17T00:34:02.8402980Z    |
2020-02-17T00:34:02.8402980Z    |
2020-02-17T00:34:02.8403032Z LL |     if true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8403233Z    |
2020-02-17T00:34:02.8403233Z    |
2020-02-17T00:34:02.8403529Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8403590Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8403690Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8404042Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:51:17
2020-02-17T00:34:02.8404122Z    |
2020-02-17T00:34:02.8404122Z    |
2020-02-17T00:34:02.8404173Z LL |     if (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8404288Z    |
2020-02-17T00:34:02.8404288Z    |
2020-02-17T00:34:02.8404740Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8404794Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8405049Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8405297Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:52:25
2020-02-17T00:34:02.8405342Z    |
2020-02-17T00:34:02.8405342Z    |
2020-02-17T00:34:02.8405404Z LL |     if true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8405490Z    |
2020-02-17T00:34:02.8405490Z    |
2020-02-17T00:34:02.8405745Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8405797Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8405866Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8406126Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:53:25
2020-02-17T00:34:02.8406171Z    |
2020-02-17T00:34:02.8406171Z    |
2020-02-17T00:34:02.8406217Z LL |     if true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8406325Z    |
2020-02-17T00:34:02.8406325Z    |
2020-02-17T00:34:02.8406560Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8406630Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8406699Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8406944Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:56:12
2020-02-17T00:34:02.8407005Z    |
2020-02-17T00:34:02.8407005Z    |
2020-02-17T00:34:02.8407048Z LL |     if x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8407148Z    |
2020-02-17T00:34:02.8407148Z    |
2020-02-17T00:34:02.8407382Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8407433Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8407526Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8407765Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:59:15
2020-02-17T00:34:02.8407823Z    |
2020-02-17T00:34:02.8407823Z    |
2020-02-17T00:34:02.8407868Z LL |     if true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8408125Z    |
2020-02-17T00:34:02.8408125Z    |
2020-02-17T00:34:02.8408374Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8408424Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8408507Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8408740Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:61:11
2020-02-17T00:34:02.8408782Z    |
2020-02-17T00:34:02.8408782Z    |
2020-02-17T00:34:02.8408838Z LL |     if ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8409001Z    |
2020-02-17T00:34:02.8409001Z    |
2020-02-17T00:34:02.8409248Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8409315Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8409381Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8409807Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:63:9
2020-02-17T00:34:02.8409861Z    |
2020-02-17T00:34:02.8409861Z    |
2020-02-17T00:34:02.8409906Z LL |     if (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8410003Z    |
2020-02-17T00:34:02.8410003Z    |
2020-02-17T00:34:02.8410272Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8410326Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8410424Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8410675Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:67:8
2020-02-17T00:34:02.8410906Z    |
2020-02-17T00:34:02.8410906Z    |
2020-02-17T00:34:02.8410955Z LL |     if let Range { start: _, end: _ } = true..true && false {}
2020-02-17T00:34:02.8411069Z    |
2020-02-17T00:34:02.8411069Z    |
2020-02-17T00:34:02.8411327Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8411393Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8411485Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8411751Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:71:8
2020-02-17T00:34:02.8411801Z    |
2020-02-17T00:34:02.8411801Z    |
2020-02-17T00:34:02.8411866Z LL |     if let Range { start: _, end: _ } = true..true || false {}
2020-02-17T00:34:02.8411975Z    |
2020-02-17T00:34:02.8411975Z    |
2020-02-17T00:34:02.8412273Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8412335Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8412417Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8412715Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:78:8
2020-02-17T00:34:02.8412776Z    |
2020-02-17T00:34:02.8412776Z    |
2020-02-17T00:34:02.8412827Z LL |     if let Range { start: F, end } = F..|| true {}
2020-02-17T00:34:02.8412942Z    |
2020-02-17T00:34:02.8412942Z    |
2020-02-17T00:34:02.8413221Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8413296Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8413389Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8413674Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:86:8
2020-02-17T00:34:02.8413949Z    |
2020-02-17T00:34:02.8413949Z    |
2020-02-17T00:34:02.8413996Z LL |     if let Range { start: true, end } = t..&&false {}
2020-02-17T00:34:02.8414260Z    |
2020-02-17T00:34:02.8414260Z    |
2020-02-17T00:34:02.8414648Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8414707Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8414792Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8415026Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:92:19
2020-02-17T00:34:02.8415069Z    |
2020-02-17T00:34:02.8415131Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8415131Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8415261Z    |                   ^^^^^^^^^^^^^^^
2020-02-17T00:34:02.8415298Z    |
2020-02-17T00:34:02.8415566Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8415616Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8415701Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8415931Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:96:12
2020-02-17T00:34:02.8416046Z    |
2020-02-17T00:34:02.8416046Z    |
2020-02-17T00:34:02.8416111Z LL |     while &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8416190Z    |
2020-02-17T00:34:02.8416190Z    |
2020-02-17T00:34:02.8416438Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8416504Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8416580Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8416829Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:99:12
2020-02-17T00:34:02.8417050Z    |
2020-02-17T00:34:02.8417050Z    |
2020-02-17T00:34:02.8417093Z LL |     while !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8417189Z    |
2020-02-17T00:34:02.8417189Z    |
2020-02-17T00:34:02.8417420Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8417479Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8417565Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8417806Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:100:12
2020-02-17T00:34:02.8417865Z    |
2020-02-17T00:34:02.8417865Z    |
2020-02-17T00:34:02.8417909Z LL |     while *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8418014Z    |
2020-02-17T00:34:02.8418014Z    |
2020-02-17T00:34:02.8418248Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8418299Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8418385Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8418771Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:102:12
2020-02-17T00:34:02.8418813Z    |
2020-02-17T00:34:02.8418813Z    |
2020-02-17T00:34:02.8419056Z LL |     while -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8419137Z    |
2020-02-17T00:34:02.8419137Z    |
2020-02-17T00:34:02.8419377Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8419427Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8419493Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8419751Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:110:12
2020-02-17T00:34:02.8419792Z    |
2020-02-17T00:34:02.8419792Z    |
2020-02-17T00:34:02.8419835Z LL |     while (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8419929Z    |
2020-02-17T00:34:02.8419929Z    |
2020-02-17T00:34:02.8420151Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8420223Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8420292Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8420724Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:114:19
2020-02-17T00:34:02.8420788Z    |
2020-02-17T00:34:02.8420788Z    |
2020-02-17T00:34:02.8420838Z LL |     while true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8421034Z    |
2020-02-17T00:34:02.8421034Z    |
2020-02-17T00:34:02.8421317Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8421375Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8421469Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8421733Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:115:20
2020-02-17T00:34:02.8421782Z    |
2020-02-17T00:34:02.8421782Z    |
2020-02-17T00:34:02.8421922Z LL |     while (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8422022Z    |
2020-02-17T00:34:02.8422022Z    |
2020-02-17T00:34:02.8422321Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8422378Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8422469Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8422748Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:116:28
2020-02-17T00:34:02.8422796Z    |
2020-02-17T00:34:02.8422796Z    |
2020-02-17T00:34:02.8422848Z LL |     while true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8422958Z    |
2020-02-17T00:34:02.8422958Z    |
2020-02-17T00:34:02.8423213Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8423295Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8423375Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8423994Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:117:28
2020-02-17T00:34:02.8424035Z    |
2020-02-17T00:34:02.8424035Z    |
2020-02-17T00:34:02.8424079Z LL |     while true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8424187Z    |
2020-02-17T00:34:02.8424187Z    |
2020-02-17T00:34:02.8424413Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8424463Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8424545Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8424773Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:120:15
2020-02-17T00:34:02.8424837Z    |
2020-02-17T00:34:02.8424837Z    |
2020-02-17T00:34:02.8424881Z LL |     while x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8424978Z    |
2020-02-17T00:34:02.8424978Z    |
2020-02-17T00:34:02.8425208Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8425256Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8425346Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8425577Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:123:18
2020-02-17T00:34:02.8425620Z    |
2020-02-17T00:34:02.8425620Z    |
2020-02-17T00:34:02.8425677Z LL |     while true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8425758Z    |
2020-02-17T00:34:02.8425758Z    |
2020-02-17T00:34:02.8426001Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8426058Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8426125Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8426375Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:125:14
2020-02-17T00:34:02.8426417Z    |
2020-02-17T00:34:02.8426417Z    |
2020-02-17T00:34:02.8426461Z LL |     while ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8426636Z    |
2020-02-17T00:34:02.8426636Z    |
2020-02-17T00:34:02.8426884Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8426951Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8427018Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8427247Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:127:12
2020-02-17T00:34:02.8427303Z    |
2020-02-17T00:34:02.8427303Z    |
2020-02-17T00:34:02.8427410Z LL |     while (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8427514Z    |
2020-02-17T00:34:02.8427514Z    |
2020-02-17T00:34:02.8427763Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8427813Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8427905Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8428139Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:131:11
2020-02-17T00:34:02.8428182Z    |
2020-02-17T00:34:02.8428182Z    |
2020-02-17T00:34:02.8428239Z LL |     while let Range { start: _, end: _ } = true..true && false {}
2020-02-17T00:34:02.8428323Z    |
2020-02-17T00:34:02.8428323Z    |
2020-02-17T00:34:02.8428743Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8428803Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8428889Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8429306Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:135:11
2020-02-17T00:34:02.8429350Z    |
2020-02-17T00:34:02.8429350Z    |
2020-02-17T00:34:02.8429652Z LL |     while let Range { start: _, end: _ } = true..true || false {}
2020-02-17T00:34:02.8429768Z    |
2020-02-17T00:34:02.8429768Z    |
2020-02-17T00:34:02.8430021Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8431049Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8431142Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8431532Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:142:11
2020-02-17T00:34:02.8431596Z    |
2020-02-17T00:34:02.8431596Z    |
2020-02-17T00:34:02.8431643Z LL |     while let Range { start: F, end } = F..|| true {}
2020-02-17T00:34:02.8431753Z    |
2020-02-17T00:34:02.8431753Z    |
2020-02-17T00:34:02.8432017Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8432073Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8432177Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8432444Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:150:11
2020-02-17T00:34:02.8432508Z    |
2020-02-17T00:34:02.8432508Z    |
2020-02-17T00:34:02.8432556Z LL |     while let Range { start: true, end } = t..&&false {}
2020-02-17T00:34:02.8432668Z    |
2020-02-17T00:34:02.8432668Z    |
2020-02-17T00:34:02.8432924Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8432990Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8433084Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8433351Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:156:22
2020-02-17T00:34:02.8433398Z    |
2020-02-17T00:34:02.8433465Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8433465Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8433657Z    |                      ^^^^^^^^^^^^^^^
2020-02-17T00:34:02.8433699Z    |
2020-02-17T00:34:02.8434013Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8434070Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8434147Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8435362Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:170:6
2020-02-17T00:34:02.8435537Z    |
2020-02-17T00:34:02.8435537Z    |
2020-02-17T00:34:02.8435588Z LL |     &let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8435687Z    |
2020-02-17T00:34:02.8435687Z    |
2020-02-17T00:34:02.8435951Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8436016Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8436094Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8436331Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:172:6
2020-02-17T00:34:02.8436390Z    |
2020-02-17T00:34:02.8436390Z    |
2020-02-17T00:34:02.8436431Z LL |     !let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8436525Z    |
2020-02-17T00:34:02.8436525Z    |
2020-02-17T00:34:02.8436751Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8436808Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8436890Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8437122Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:173:6
2020-02-17T00:34:02.8437164Z    |
2020-02-17T00:34:02.8437164Z    |
2020-02-17T00:34:02.8437220Z LL |     *let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8437305Z    |
2020-02-17T00:34:02.8437305Z    |
2020-02-17T00:34:02.8437550Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8437599Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8437681Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8437910Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:175:6
2020-02-17T00:34:02.8437952Z    |
2020-02-17T00:34:02.8437952Z    |
2020-02-17T00:34:02.8438342Z LL |     -let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8438495Z    |
2020-02-17T00:34:02.8438495Z    |
2020-02-17T00:34:02.8438733Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8438799Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8438868Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8439138Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:183:6
2020-02-17T00:34:02.8439181Z    |
2020-02-17T00:34:02.8439181Z    |
2020-02-17T00:34:02.8439224Z LL |     (let 0 = 0)?; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8439321Z    |
2020-02-17T00:34:02.8439321Z    |
2020-02-17T00:34:02.8439551Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8439602Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8439694Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8439935Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:187:13
2020-02-17T00:34:02.8439993Z    |
2020-02-17T00:34:02.8439993Z    |
2020-02-17T00:34:02.8440037Z LL |     true || let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8440135Z    |
2020-02-17T00:34:02.8440135Z    |
2020-02-17T00:34:02.8440572Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8440737Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8440827Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8441110Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:188:14
2020-02-17T00:34:02.8441154Z    |
2020-02-17T00:34:02.8441154Z    |
2020-02-17T00:34:02.8441213Z LL |     (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8441372Z    |
2020-02-17T00:34:02.8441372Z    |
2020-02-17T00:34:02.8441652Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8441705Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8441773Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8442031Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:189:22
2020-02-17T00:34:02.8442083Z    |
2020-02-17T00:34:02.8442083Z    |
2020-02-17T00:34:02.8442128Z LL |     true && (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8442228Z    |
2020-02-17T00:34:02.8442228Z    |
2020-02-17T00:34:02.8442461Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8442527Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8445031Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8445414Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:192:9
2020-02-17T00:34:02.8446966Z    |
2020-02-17T00:34:02.8446966Z    |
2020-02-17T00:34:02.8447016Z LL |     x = let 0 = 0; //~ ERROR `let` expressions are not supported here
2020-02-17T00:34:02.8447115Z    |
2020-02-17T00:34:02.8447115Z    |
2020-02-17T00:34:02.8447615Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2020-02-17T00:34:02.8447678Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2020-02-17T00:34:02.8447765Z error: `let` expressions are not supported here
2020-02-17T00:34:02.8448004Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:194:12
2020-02-17T00:34:02.8448047Z    |
2020-02-17T00:34:02.8448047Z    |
2020-02-17T00:34:02.8448104Z LL |     true..(let 0 = 0); //~ ERROR `let` expressions are not supported here
---
2020-02-17T00:34:02.8518850Z 
2020-02-17T00:34:02.8518874Z 
2020-02-17T00:34:02.8518924Z The actual stderr differed from the expected stderr.
2020-02-17T00:34:02.8519193Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/unop-neg-bool/unop-neg-bool.stderr
2020-02-17T00:34:02.8519436Z To update references, rerun the tests and pass the `--bless` flag
2020-02-17T00:34:02.8519680Z To only update this specific test, also pass `--test-args unop-neg-bool.rs`
2020-02-17T00:34:02.8519771Z error: 1 errors occurred comparing output.
2020-02-17T00:34:02.8519903Z status: exit code: 1
2020-02-17T00:34:02.8519903Z status: exit code: 1
2020-02-17T00:34:02.8520725Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/unop-neg-bool.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/unop-neg-bool" "-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/unop-neg-bool/auxiliary"
2020-02-17T00:34:02.8521273Z ------------------------------------------
2020-02-17T00:34:02.8521324Z 
2020-02-17T00:34:02.8521547Z ------------------------------------------
2020-02-17T00:34:02.8521593Z stderr:
2020-02-17T00:34:02.8521593Z stderr:
2020-02-17T00:34:02.8521807Z ------------------------------------------
2020-02-17T00:34:02.8522083Z error[E0600]: cannot apply unary operator `-` to type `bool`
2020-02-17T00:34:02.8522316Z   --> /checkout/src/test/ui/unop-neg-bool.rs:2:5
2020-02-17T00:34:02.8522365Z    |
2020-02-17T00:34:02.8522630Z LL |     -true; //~ ERROR cannot apply unary operator `-` to type `bool`
2020-02-17T00:34:02.8522856Z    |     ^^^^^ cannot apply unary operator `-`
2020-02-17T00:34:02.8522948Z error: aborting due to previous error
2020-02-17T00:34:02.8522979Z 
2020-02-17T00:34:02.8523234Z For more information about this error, try `rustc --explain E0600`.
2020-02-17T00:34:02.8523268Z 
---
2020-02-17T00:34:02.8525783Z test result: FAILED. 9590 passed; 6 failed; 54 ignored; 0 measured; 0 filtered out
2020-02-17T00:34:02.8525817Z 
2020-02-17T00:34:02.8525843Z 
2020-02-17T00:34:02.8525867Z 
2020-02-17T00:34:02.8527253Z 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" "--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\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-02-17T00:34:02.8527524Z 
2020-02-17T00:34:02.8527566Z 
2020-02-17T00:34:02.8527974Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-17T00:34:02.8528027Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-17T00:34:02.8528027Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-17T00:34:02.8528219Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-17T00:34:02.8528263Z Build completed unsuccessfully in 1:04:30
2020-02-17T00:34:02.8528482Z == clock drift check ==
2020-02-17T00:34:02.8528538Z   local time: Mon Feb 17 00:34:02 UTC 2020
2020-02-17T00:34:03.1187991Z   network time: Mon, 17 Feb 2020 00:34:03 GMT
2020-02-17T00:34:03.1193207Z == end clock drift check ==
2020-02-17T00:34:03.5969314Z 
2020-02-17T00:34:03.6062880Z ##[error]Bash exited with code '1'.
2020-02-17T00:34:03.6073766Z ##[section]Finishing: Run build
2020-02-17T00:34:03.6102831Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-17T00:34:03.6104601Z Task         : Get sources
2020-02-17T00:34:03.6104646Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-17T00:34:03.6104719Z Version      : 1.0.0
2020-02-17T00:34:03.6104757Z Author       : Microsoft
2020-02-17T00:34:03.6104757Z Author       : Microsoft
2020-02-17T00:34:03.6104800Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-17T00:34:03.6104864Z ==============================================================================
2020-02-17T00:34:04.0380721Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-17T00:34:04.0420631Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/69217/merge to s
2020-02-17T00:34:04.0533089Z Cleaning up task key
2020-02-17T00:34:04.0533898Z Start cleaning up orphan processes.
2020-02-17T00:34:04.0642020Z Terminate orphan process: pid (6649) (python)
2020-02-17T00:34:04.1039004Z ##[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 @TimNN. (Feature Requests)

@estebank
Copy link
Contributor

Can you run ./x.py test src/test/ui --stage 1 --bless and squash the changes into a single commit?

@LeSeulArtichaut
Copy link
Contributor Author

I’ll address test failures and review ASAP.
@rustbot modify labels: -S-waiting-on-review +S-waiting-on-author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 17, 2020
Update tests

Extend to other operations

Refractor check in a separate function

Fix more tests
@LeSeulArtichaut
Copy link
Contributor Author

Done!
@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 17, 2020
@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Feb 17, 2020

📌 Commit 2e07892 has been approved by estebank

@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 Feb 17, 2020
Centril added a commit to Centril/rust that referenced this pull request Feb 18, 2020
…, r=estebank

Do not emit note suggesting to implement operation trait to foreign type

When a binary operation isn't valid, you will get a lint proposing to add a trait implementation to make the operation possible. However, this cannot be done for foreign types, such as types from `core` or `std`.

For example:
```
= note: an implementation of `std::ops::Add` might be missing for `std::option::Option<i8>`
```
As mentioned in rust-lang#60497 (comment):
> The note suggesting implementing Add<i8> should only be emitted if Option<i8> were local to the current crate, which it isn't, so in this case it shouldn't be emitted.

(I will use the CI to check tests for me, or my computer will just burn... and running IDEs is not possible on a pile of ashes)

r? @estebank
bors added a commit that referenced this pull request Feb 18, 2020
Rollup of 6 pull requests

Successful merges:

 - #69146 (Always const qualify literals by type)
 - #69159 (Select an appropriate unused lifetime name in suggestion)
 - #69194 (parse: fuse associated and extern items up to defaultness)
 - #69211 (parser: Simplify treatment of macro variables in `Parser::bump`)
 - #69217 (Do not emit note suggesting to implement operation trait to foreign type)
 - #69236 (parse: recover `mut (x @ y)` as `(mut x @ mut y)`.)

Failed merges:

r? @ghost
@bors bors merged commit 2e07892 into rust-lang:master Feb 19, 2020
@LeSeulArtichaut LeSeulArtichaut deleted the remove-lint-impl-op branch February 19, 2020 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

5 participants