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

clean up E0308 explanation #69139

Merged
merged 2 commits into from
Mar 19, 2020
Merged

Conversation

GuillaumeGomez
Copy link
Member

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 13, 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-13T17:42:51.4842231Z ========================== Starting Command Output ===========================
2020-02-13T17:42:51.4845618Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/3093e74e-b0c2-45c5-899b-8352e16c1c64.sh
2020-02-13T17:42:51.4845821Z 
2020-02-13T17:42:51.4888197Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-13T17:42:51.4895248Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-13T17:42:51.4897645Z Task         : Get sources
2020-02-13T17:42:51.4897685Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-13T17:42:51.4897718Z Version      : 1.0.0
2020-02-13T17:42:51.4897750Z Author       : Microsoft
---
2020-02-13T17:42:52.5264533Z ##[command]git remote add origin https:/rust-lang/rust
2020-02-13T17:42:52.5275645Z ##[command]git config gc.auto 0
2020-02-13T17:42:52.5278406Z ##[command]git config --get-all http.https:/rust-lang/rust.extraheader
2020-02-13T17:42:52.5280348Z ##[command]git config --get-all http.proxy
2020-02-13T17:42:52.5287112Z ##[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/69139/merge:refs/remotes/pull/69139/merge
---
2020-02-13T18:46:10.2756261Z .................................................................................................... 1700/9636
2020-02-13T18:46:15.6995860Z .................................................................................................... 1800/9636
2020-02-13T18:46:28.5123586Z ..............................i..................................................................... 1900/9636
2020-02-13T18:46:36.7895901Z .................................................................................................... 2000/9636
2020-02-13T18:46:52.4723668Z ....................iiiii........................................................................... 2100/9636
2020-02-13T18:47:03.2498895Z .................................................................................................... 2300/9636
2020-02-13T18:47:05.9162502Z .................................................................................................... 2400/9636
2020-02-13T18:47:11.1886454Z .................................................................................................... 2500/9636
2020-02-13T18:47:33.8945029Z .................................................................................................... 2600/9636
---
2020-02-13T18:50:23.5069223Z ........................................................................i...............i........... 4900/9636
2020-02-13T18:50:31.8905078Z .................................................................................................... 5000/9636
2020-02-13T18:50:40.7954259Z .................................................................................................... 5100/9636
2020-02-13T18:50:45.8682231Z ..............i..................................................................................... 5200/9636
2020-02-13T18:50:57.9270099Z ........................................................................................ii.ii....... 5300/9636
2020-02-13T18:51:02.2287006Z .i...i.F..F......................................................................................... 5400/9636
2020-02-13T18:51:13.3859896Z .................................................................................................... 5600/9636
2020-02-13T18:51:24.2253711Z .............................................................................i...................... 5700/9636
2020-02-13T18:51:32.3716217Z .................................................................................................... 5800/9636
2020-02-13T18:51:39.0802908Z ...........................................................................i........................ 5900/9636
2020-02-13T18:51:39.0802908Z ...........................................................................i........................ 5900/9636
2020-02-13T18:51:49.4222784Z .....................................................................ii...i..ii...........i......... 6000/9636
2020-02-13T18:52:12.1708892Z .................................................................................................... 6200/9636
2020-02-13T18:52:20.1734990Z .................................................................................................... 6300/9636
2020-02-13T18:52:28.8403943Z .................................................................................................i.. 6400/9636
2020-02-13T18:52:28.8403943Z .................................................................................................i.. 6400/9636
2020-02-13T18:52:51.3523569Z ii.................................................test [ui] ui/mpsc_stress.rs has been running for over 60 seconds
2020-02-13T18:53:04.0391405Z .................................................................................................... 6600/9636
2020-02-13T18:53:15.2562320Z ....................................................................................i............... 6700/9636
2020-02-13T18:53:17.6110208Z .................................................................................................... 6800/9636
2020-02-13T18:53:19.9790850Z .............................................................................................i...... 6900/9636
---
2020-02-13T18:55:09.0903520Z .................................................................................................... 7600/9636
2020-02-13T18:55:13.8896182Z .................................................................................................... 7700/9636
2020-02-13T18:55:20.4405655Z .................................................................................................... 7800/9636
2020-02-13T18:55:29.0404499Z .................................................................................................... 7900/9636
2020-02-13T18:55:38.5572252Z ...........................................................................iiiiiii.i................ 8000/9636
2020-02-13T18:55:56.0107844Z ...............i......i............................................................................. 8200/9636
2020-02-13T18:56:01.9715529Z .................................................................................................... 8300/9636
2020-02-13T18:56:16.1788873Z .................................................................................................... 8400/9636
2020-02-13T18:56:26.7286810Z .................................................................................................... 8500/9636
---
2020-02-13T18:58:36.0551917Z - variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0552403Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0552845Z - initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0553239Z - variable.
2020-02-13T18:58:36.0553747Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0554746Z - For example:
2020-02-13T18:58:36.0555017Z + Erroneous code example:
2020-02-13T18:58:36.0555168Z 8 
2020-02-13T18:58:36.0555396Z 9 ```compile_fail,E0308
2020-02-13T18:58:36.0555396Z 9 ```compile_fail,E0308
2020-02-13T18:58:36.0555571Z 10 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0555875Z 15 //      |
2020-02-13T18:58:36.0556030Z 16 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0556178Z 17 ```
2020-02-13T18:58:36.0556178Z 17 ```
2020-02-13T18:58:36.0558113Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0558713Z - "}
2020-02-13T18:58:36.0559264Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0559655Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0559822Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0560280Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0560772Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0560772Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0560912Z 
2020-02-13T18:58:36.0561060Z 24 variable.
2020-02-13T18:58:36.0563254Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0568880Z + "}
2020-02-13T18:58:36.0569631Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0570266Z - For example:
2020-02-13T18:58:36.0570462Z + Erroneous code example:
2020-02-13T18:58:36.0570606Z 27 
2020-02-13T18:58:36.0570797Z 28 ```compile_fail,E0308
2020-02-13T18:58:36.0570797Z 28 ```compile_fail,E0308
2020-02-13T18:58:36.0570948Z 29 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0571243Z 34 //      |
2020-02-13T18:58:36.0571393Z 35 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0571539Z 36 ```
2020-02-13T18:58:36.0571539Z 36 ```
2020-02-13T18:58:36.0573321Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0573877Z - "}
2020-02-13T18:58:36.0575082Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0575608Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0576023Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0576498Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0576738Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0576738Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0576876Z 
2020-02-13T18:58:36.0577024Z 43 variable.
2020-02-13T18:58:36.0583176Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0583730Z + "}
2020-02-13T18:58:36.0584831Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0585505Z - For example:
2020-02-13T18:58:36.0585746Z + Erroneous code example:
2020-02-13T18:58:36.0585893Z 46 
2020-02-13T18:58:36.0586036Z 47 ```compile_fail,E0308
2020-02-13T18:58:36.0586036Z 47 ```compile_fail,E0308
2020-02-13T18:58:36.0586205Z 48 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0586481Z 53 //      |
2020-02-13T18:58:36.0586646Z 54 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0586790Z 55 ```
2020-02-13T18:58:36.0586790Z 55 ```
2020-02-13T18:58:36.0589094Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-13T18:58:36.0589693Z - "}
2020-02-13T18:58:36.0590240Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0590818Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0591008Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0591464Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0591699Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0591699Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0591834Z 
2020-02-13T18:58:36.0591977Z 62 variable.
2020-02-13T18:58:36.0597345Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-13T18:58:36.0599467Z + "}
2020-02-13T18:58:36.0599913Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0600206Z - For example:
2020-02-13T18:58:36.0600255Z + Erroneous code example:
2020-02-13T18:58:36.0600294Z 65 
2020-02-13T18:58:36.0600352Z 66 ```compile_fail,E0308
2020-02-13T18:58:36.0600352Z 66 ```compile_fail,E0308
2020-02-13T18:58:36.0600397Z 67 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0600468Z 72 //      |
2020-02-13T18:58:36.0600528Z 73 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0600570Z 74 ```
2020-02-13T18:58:36.0600608Z + 
2020-02-13T18:58:36.0600608Z + 
2020-02-13T18:58:36.0600656Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0600727Z + variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0600996Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0601066Z + initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0601111Z + variable.
2020-02-13T18:58:36.0602288Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":801,"byte_end":809,"line_start":25,"line_end":26,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":792,"byte_end":798,"line_start":25,"line_end":25,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:25:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0602429Z 76 "}
2020-02-13T18:58:36.0602657Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-13T18:58:36.0602729Z 
2020-02-13T18:58:36.0602773Z The actual stderr differed from the expected stderr.
2020-02-13T18:58:36.0603168Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-13T18:58:36.0603168Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-13T18:58:36.0603422Z To update references, rerun the tests and pass the `--bless` flag
2020-02-13T18:58:36.0603705Z To only update this specific test, also pass `--test-args json-bom-plus-crlf-multifile.rs`
2020-02-13T18:58:36.0603784Z error: 1 errors occurred comparing output.
2020-02-13T18:58:36.0603925Z status: exit code: 1
2020-02-13T18:58:36.0603925Z status: exit code: 1
2020-02-13T18:58:36.0605354Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf-multifile.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/auxiliary" "-A" "unused"
2020-02-13T18:58:36.0605727Z ------------------------------------------
2020-02-13T18:58:36.0605762Z 
2020-02-13T18:58:36.0605978Z ------------------------------------------
2020-02-13T18:58:36.0606040Z stderr:
---
2020-02-13T18:58:36.0608897Z - variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0609149Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0609427Z - initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0609614Z - variable.
2020-02-13T18:58:36.0609902Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0610150Z - For example:
2020-02-13T18:58:36.0610194Z + Erroneous code example:
2020-02-13T18:58:36.0610250Z 8 
2020-02-13T18:58:36.0610290Z 9 ```compile_fail,E0308
2020-02-13T18:58:36.0610290Z 9 ```compile_fail,E0308
2020-02-13T18:58:36.0610335Z 10 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0610420Z 15 //      |
2020-02-13T18:58:36.0610463Z 16 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0610505Z 17 ```
2020-02-13T18:58:36.0610505Z 17 ```
2020-02-13T18:58:36.0612398Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0612876Z - "}
2020-02-13T18:58:36.0613203Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0613307Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0613374Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0613623Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0613683Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0613683Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0613731Z 
2020-02-13T18:58:36.0613772Z 24 variable.
2020-02-13T18:58:36.0616248Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0616501Z + "}
2020-02-13T18:58:36.0616813Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0617076Z - For example:
2020-02-13T18:58:36.0617120Z + Erroneous code example:
2020-02-13T18:58:36.0617160Z 27 
2020-02-13T18:58:36.0617221Z 28 ```compile_fail,E0308
2020-02-13T18:58:36.0617221Z 28 ```compile_fail,E0308
2020-02-13T18:58:36.0617272Z 29 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0617341Z 34 //      |
2020-02-13T18:58:36.0617401Z 35 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0617444Z 36 ```
2020-02-13T18:58:36.0617444Z 36 ```
2020-02-13T18:58:36.0619127Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0619599Z - "}
2020-02-13T18:58:36.0619922Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0620092Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0620146Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0620425Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0620482Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0620482Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0620513Z 
2020-02-13T18:58:36.0620552Z 43 variable.
2020-02-13T18:58:36.0622090Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0622285Z + "}
2020-02-13T18:58:36.0622594Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0622837Z - For example:
2020-02-13T18:58:36.0622898Z + Erroneous code example:
2020-02-13T18:58:36.0622938Z 46 
2020-02-13T18:58:36.0622980Z 47 ```compile_fail,E0308
2020-02-13T18:58:36.0622980Z 47 ```compile_fail,E0308
2020-02-13T18:58:36.0623024Z 48 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0623117Z 53 //      |
2020-02-13T18:58:36.0623161Z 54 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0623203Z 55 ```
2020-02-13T18:58:36.0623203Z 55 ```
2020-02-13T18:58:36.0625185Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-13T18:58:36.0625725Z - "}
2020-02-13T18:58:36.0626072Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0626180Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0626250Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0626514Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0626570Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0626570Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0626618Z 
2020-02-13T18:58:36.0626658Z 62 variable.
2020-02-13T18:58:36.0628201Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-13T18:58:36.0628394Z + "}
2020-02-13T18:58:36.0628690Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type didn't match the received type.
2020-02-13T18:58:36.0629072Z - For example:
2020-02-13T18:58:36.0629116Z + Erroneous code example:
2020-02-13T18:58:36.0629154Z 65 
2020-02-13T18:58:36.0629209Z 66 ```compile_fail,E0308
2020-02-13T18:58:36.0629209Z 66 ```compile_fail,E0308
2020-02-13T18:58:36.0629251Z 67 let x: i32 = \"I am not a number!\";
2020-02-13T18:58:36.0629325Z 72 //      |
2020-02-13T18:58:36.0629382Z 73 //    type `i32` assigned to variable `x`
2020-02-13T18:58:36.0629423Z 74 ```
2020-02-13T18:58:36.0629460Z + 
2020-02-13T18:58:36.0629460Z + 
2020-02-13T18:58:36.0629633Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-13T18:58:36.0629685Z + variable. It can occur for several cases, the most common of which is a
2020-02-13T18:58:36.0629972Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-13T18:58:36.0630043Z + initializing expression, and the actual type explicitly assigned to the
2020-02-13T18:58:36.0630087Z + variable.
2020-02-13T18:58:36.0631255Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":786,"byte_end":794,"line_start":24,"line_end":25,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":777,"byte_end":783,"line_start":24,"line_end":24,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf.rs:24:22: error[E0308]: mismatched types
2020-02-13T18:58:36.0631401Z 76 "}
2020-02-13T18:58:36.0631475Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-13T18:58:36.0631664Z 
2020-02-13T18:58:36.0631724Z The actual stderr differed from the expected stderr.
2020-02-13T18:58:36.0631724Z The actual stderr differed from the expected stderr.
2020-02-13T18:58:36.0632083Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/json-bom-plus-crlf.stderr
2020-02-13T18:58:36.0632336Z To update references, rerun the tests and pass the `--bless` flag
2020-02-13T18:58:36.0632610Z To only update this specific test, also pass `--test-args json-bom-plus-crlf.rs`
2020-02-13T18:58:36.0632698Z error: 1 errors occurred comparing output.
2020-02-13T18:58:36.0632741Z status: exit code: 1
2020-02-13T18:58:36.0632741Z status: exit code: 1
2020-02-13T18:58:36.0633568Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/auxiliary" "-A" "unused"
2020-02-13T18:58:36.0633898Z ------------------------------------------
2020-02-13T18:58:36.0633938Z 
2020-02-13T18:58:36.0634154Z ------------------------------------------
2020-02-13T18:58:36.0634471Z stderr:
---
2020-02-13T18:58:36.0637663Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-13T18:58:36.0637721Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-13T18:58:36.0637752Z 
2020-02-13T18:58:36.0637817Z 
2020-02-13T18:58:36.0639339Z 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-13T18:58:36.0639575Z 
2020-02-13T18:58:36.0639619Z 
2020-02-13T18:58:36.0639663Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-13T18:58:36.0639717Z Build completed unsuccessfully in 1:09:16
2020-02-13T18:58:36.0639717Z Build completed unsuccessfully in 1:09:16
2020-02-13T18:58:36.0656272Z == clock drift check ==
2020-02-13T18:58:36.0676999Z   local time: Thu Feb 13 18:58:36 UTC 2020
2020-02-13T18:58:36.6211523Z   network time: Thu, 13 Feb 2020 18:58:36 GMT
2020-02-13T18:58:36.6211638Z == end clock drift check ==
2020-02-13T18:58:37.1037274Z 
2020-02-13T18:58:37.1157065Z ##[error]Bash exited with code '1'.
2020-02-13T18:58:37.1174095Z ##[section]Finishing: Run build
2020-02-13T18:58:37.1197097Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-13T18:58:37.1199078Z Task         : Get sources
2020-02-13T18:58:37.1199125Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-13T18:58:37.1199185Z Version      : 1.0.0
2020-02-13T18:58:37.1199226Z Author       : Microsoft
2020-02-13T18:58:37.1199226Z Author       : Microsoft
2020-02-13T18:58:37.1199274Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-13T18:58:37.1199353Z ==============================================================================
2020-02-13T18:58:37.5753495Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-13T18:58:37.5796716Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-13T18:58:37.5918713Z Cleaning up task key
2020-02-13T18:58:37.5919832Z Start cleaning up orphan processes.
2020-02-13T18:58:37.6041790Z Terminate orphan process: pid (4184) (python)
2020-02-13T18:58:37.6318805Z ##[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)

mismatch in the expected type that the compiler inferred for a variable's
initializing expression, and the actual type explicitly assigned to the
variable.
Expected type didn't match the received type.

Choose a reason for hiding this comment

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

Suggested change
Expected type didn't match the received type.
Expected type did not match the received type.

@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-14T15:35:30.2657848Z ========================== Starting Command Output ===========================
2020-02-14T15:35:30.2659099Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/ffa19e80-30a6-4fd7-8946-45cb1f14f84b.sh
2020-02-14T15:35:30.2659139Z 
2020-02-14T15:35:30.2662154Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-14T15:35:30.2668362Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-14T15:35:30.2670188Z Task         : Get sources
2020-02-14T15:35:30.2670218Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-14T15:35:30.2670245Z Version      : 1.0.0
2020-02-14T15:35:30.2670271Z Author       : Microsoft
---
2020-02-14T15:35:31.2623975Z ##[command]git remote add origin https:/rust-lang/rust
2020-02-14T15:35:31.2635194Z ##[command]git config gc.auto 0
2020-02-14T15:35:31.2639084Z ##[command]git config --get-all http.https:/rust-lang/rust.extraheader
2020-02-14T15:35:31.2642874Z ##[command]git config --get-all http.proxy
2020-02-14T15:35:31.2650621Z ##[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/69139/merge:refs/remotes/pull/69139/merge
---
2020-02-14T16:33:22.3670250Z .................................................................................................... 1700/9637
2020-02-14T16:33:27.0633876Z .................................................................................................... 1800/9637
2020-02-14T16:33:38.6505640Z ..............................i..................................................................... 1900/9637
2020-02-14T16:33:46.0232993Z .................................................................................................... 2000/9637
2020-02-14T16:33:59.5867216Z ....................iiiii........................................................................... 2100/9637
2020-02-14T16:34:08.9916875Z .................................................................................................... 2300/9637
2020-02-14T16:34:11.2512036Z .................................................................................................... 2400/9637
2020-02-14T16:34:15.7438349Z .................................................................................................... 2500/9637
2020-02-14T16:34:35.3749948Z .................................................................................................... 2600/9637
---
2020-02-14T16:37:02.3248398Z ........................................................................i...............i........... 4900/9637
2020-02-14T16:37:10.1509986Z .................................................................................................... 5000/9637
2020-02-14T16:37:17.4060314Z .................................................................................................... 5100/9637
2020-02-14T16:37:22.4631266Z ..............i..................................................................................... 5200/9637
2020-02-14T16:37:32.7583076Z ........................................................................................ii.ii....... 5300/9637
2020-02-14T16:37:36.6996133Z .i...i.F...F........................................................................................ 5400/9637
2020-02-14T16:37:46.4979552Z .................................................................................................... 5600/9637
2020-02-14T16:37:56.1034986Z .............................................................................i...................... 5700/9637
2020-02-14T16:38:03.3839342Z .................................................................................................... 5800/9637
2020-02-14T16:38:09.2062242Z ...........................................................................i........................ 5900/9637
2020-02-14T16:38:09.2062242Z ...........................................................................i........................ 5900/9637
2020-02-14T16:38:18.3342771Z .....................................................................ii...i..ii...........i......... 6000/9637
2020-02-14T16:38:38.5741676Z .................................................................................................... 6200/9637
2020-02-14T16:38:45.7321409Z .................................................................................................... 6300/9637
2020-02-14T16:38:52.1656953Z .................................................................................................i.. 6400/9637
2020-02-14T16:39:04.9418762Z ii.................................................................................................. 6500/9637
---
2020-02-14T16:41:02.1368139Z .................................................................................................... 7600/9637
2020-02-14T16:41:06.1777271Z .................................................................................................... 7700/9637
2020-02-14T16:41:11.9249143Z .................................................................................................... 7800/9637
2020-02-14T16:41:19.4533336Z .................................................................................................... 7900/9637
2020-02-14T16:41:28.2459443Z ............................................................................iiiiiii.i............... 8000/9637
2020-02-14T16:41:44.4854664Z ................i......i............................................................................ 8200/9637
2020-02-14T16:41:50.0755799Z .................................................................................................... 8300/9637
2020-02-14T16:42:02.4983628Z .................................................................................................... 8400/9637
2020-02-14T16:42:11.7940264Z .................................................................................................... 8500/9637
---
2020-02-14T16:44:13.4486101Z - variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4487759Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4488742Z - initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4489364Z - variable.
2020-02-14T16:44:13.4489842Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4490690Z - For example:
2020-02-14T16:44:13.4490991Z + Erroneous code example:
2020-02-14T16:44:13.4491203Z 8 
2020-02-14T16:44:13.4491410Z 9 ```compile_fail,E0308
2020-02-14T16:44:13.4491410Z 9 ```compile_fail,E0308
2020-02-14T16:44:13.4491664Z 10 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4492061Z 15 //      |
2020-02-14T16:44:13.4492294Z 16 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4492511Z 17 ```
2020-02-14T16:44:13.4492511Z 17 ```
2020-02-14T16:44:13.4494464Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4495211Z - "}
2020-02-14T16:44:13.4495814Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4496360Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4496608Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4497094Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4497374Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4497374Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4497593Z 
2020-02-14T16:44:13.4497803Z 24 variable.
2020-02-14T16:44:13.4500062Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4500620Z + "}
2020-02-14T16:44:13.4500870Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4501529Z - For example:
2020-02-14T16:44:13.4502662Z + Erroneous code example:
2020-02-14T16:44:13.4502872Z 27 
2020-02-14T16:44:13.4503020Z 28 ```compile_fail,E0308
2020-02-14T16:44:13.4503020Z 28 ```compile_fail,E0308
2020-02-14T16:44:13.4503172Z 29 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4503419Z 34 //      |
2020-02-14T16:44:13.4503567Z 35 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4503693Z 36 ```
2020-02-14T16:44:13.4503693Z 36 ```
2020-02-14T16:44:13.4505498Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4506018Z - "}
2020-02-14T16:44:13.4506499Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4506838Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4506994Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4507372Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4507549Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4507549Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4507697Z 
2020-02-14T16:44:13.4507827Z 43 variable.
2020-02-14T16:44:13.4509602Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4510009Z + "}
2020-02-14T16:44:13.4510166Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4510635Z - For example:
2020-02-14T16:44:13.4510825Z + Erroneous code example:
2020-02-14T16:44:13.4513084Z 46 
2020-02-14T16:44:13.4514394Z 47 ```compile_fail,E0308
2020-02-14T16:44:13.4514394Z 47 ```compile_fail,E0308
2020-02-14T16:44:13.4514603Z 48 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4514849Z 53 //      |
2020-02-14T16:44:13.4515164Z 54 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4515306Z 55 ```
2020-02-14T16:44:13.4515306Z 55 ```
2020-02-14T16:44:13.4517200Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-14T16:44:13.4538414Z - "}
2020-02-14T16:44:13.4590490Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4591839Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4592172Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4592947Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4593172Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4593172Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4593300Z 
2020-02-14T16:44:13.4593456Z 62 variable.
2020-02-14T16:44:13.4595511Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-14T16:44:13.4596003Z + "}
2020-02-14T16:44:13.4596154Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4596830Z - For example:
2020-02-14T16:44:13.4597164Z + Erroneous code example:
2020-02-14T16:44:13.4597309Z 65 
2020-02-14T16:44:13.4597433Z 66 ```compile_fail,E0308
2020-02-14T16:44:13.4597433Z 66 ```compile_fail,E0308
2020-02-14T16:44:13.4597742Z 67 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4598019Z 72 //      |
2020-02-14T16:44:13.4598151Z 73 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4598457Z 74 ```
2020-02-14T16:44:13.4598579Z + 
2020-02-14T16:44:13.4598579Z + 
2020-02-14T16:44:13.4598720Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4598867Z + variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4599686Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4600123Z + initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4600286Z + variable.
2020-02-14T16:44:13.4602131Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":801,"byte_end":809,"line_start":25,"line_end":26,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":792,"byte_end":798,"line_start":25,"line_end":25,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:25:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4602468Z 76 "}
2020-02-14T16:44:13.4602616Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-14T16:44:13.4603033Z 
2020-02-14T16:44:13.4603927Z The actual stderr differed from the expected stderr.
2020-02-14T16:44:13.4604479Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-14T16:44:13.4604479Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-14T16:44:13.4604962Z To update references, rerun the tests and pass the `--bless` flag
2020-02-14T16:44:13.4605438Z To only update this specific test, also pass `--test-args json-bom-plus-crlf-multifile.rs`
2020-02-14T16:44:13.4605766Z error: 1 errors occurred comparing output.
2020-02-14T16:44:13.4605906Z status: exit code: 1
2020-02-14T16:44:13.4605906Z status: exit code: 1
2020-02-14T16:44:13.4607406Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf-multifile.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/auxiliary" "-A" "unused"
2020-02-14T16:44:13.4608264Z ------------------------------------------
2020-02-14T16:44:13.4608437Z 
2020-02-14T16:44:13.4608979Z ------------------------------------------
2020-02-14T16:44:13.4609539Z stderr:
---
2020-02-14T16:44:13.4620221Z - variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4620665Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4621093Z - initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4621438Z - variable.
2020-02-14T16:44:13.4621632Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4622101Z - For example:
2020-02-14T16:44:13.4622269Z + Erroneous code example:
2020-02-14T16:44:13.4622430Z 8 
2020-02-14T16:44:13.4622799Z 9 ```compile_fail,E0308
2020-02-14T16:44:13.4622799Z 9 ```compile_fail,E0308
2020-02-14T16:44:13.4623029Z 10 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4623426Z 15 //      |
2020-02-14T16:44:13.4623614Z 16 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4623852Z 17 ```
2020-02-14T16:44:13.4623852Z 17 ```
2020-02-14T16:44:13.4626084Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4628299Z - "}
2020-02-14T16:44:13.4628793Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4628946Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4629085Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4629387Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4629444Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4629444Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4629476Z 
2020-02-14T16:44:13.4629536Z 24 variable.
2020-02-14T16:44:13.4631378Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4631621Z + "}
2020-02-14T16:44:13.4631677Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4631966Z - For example:
2020-02-14T16:44:13.4632015Z + Erroneous code example:
2020-02-14T16:44:13.4632058Z 27 
2020-02-14T16:44:13.4632103Z 28 ```compile_fail,E0308
2020-02-14T16:44:13.4632103Z 28 ```compile_fail,E0308
2020-02-14T16:44:13.4632168Z 29 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4632401Z 34 //      |
2020-02-14T16:44:13.4632464Z 35 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4632509Z 36 ```
2020-02-14T16:44:13.4632509Z 36 ```
2020-02-14T16:44:13.4634163Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4634598Z - "}
2020-02-14T16:44:13.4634943Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4635142Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4635194Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4635468Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4636737Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4636737Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4636803Z 
2020-02-14T16:44:13.4636848Z 43 variable.
2020-02-14T16:44:13.4639372Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4639578Z + "}
2020-02-14T16:44:13.4639629Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4639927Z - For example:
2020-02-14T16:44:13.4639972Z + Erroneous code example:
2020-02-14T16:44:13.4640030Z 46 
2020-02-14T16:44:13.4640071Z 47 ```compile_fail,E0308
2020-02-14T16:44:13.4640071Z 47 ```compile_fail,E0308
2020-02-14T16:44:13.4640276Z 48 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4640364Z 53 //      |
2020-02-14T16:44:13.4640404Z 54 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4640445Z 55 ```
2020-02-14T16:44:13.4640445Z 55 ```
2020-02-14T16:44:13.4641883Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-14T16:44:13.4642201Z - "}
2020-02-14T16:44:13.4642665Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4642840Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4642907Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4643195Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4643251Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4643251Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4643298Z 
2020-02-14T16:44:13.4643337Z 62 variable.
2020-02-14T16:44:13.4644750Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-14T16:44:13.4644946Z + "}
2020-02-14T16:44:13.4644995Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-14T16:44:13.4645255Z - For example:
2020-02-14T16:44:13.4645299Z + Erroneous code example:
2020-02-14T16:44:13.4645337Z 65 
2020-02-14T16:44:13.4645393Z 66 ```compile_fail,E0308
2020-02-14T16:44:13.4645393Z 66 ```compile_fail,E0308
2020-02-14T16:44:13.4645436Z 67 let x: i32 = \"I am not a number!\";
2020-02-14T16:44:13.4645679Z 72 //      |
2020-02-14T16:44:13.4645739Z 73 //    type `i32` assigned to variable `x`
2020-02-14T16:44:13.4645781Z 74 ```
2020-02-14T16:44:13.4645822Z + 
2020-02-14T16:44:13.4645822Z + 
2020-02-14T16:44:13.4645868Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-14T16:44:13.4645936Z + variable. It can occur for several cases, the most common of which is a
2020-02-14T16:44:13.4646368Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-14T16:44:13.4646433Z + initializing expression, and the actual type explicitly assigned to the
2020-02-14T16:44:13.4646496Z + variable.
2020-02-14T16:44:13.4648528Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":786,"byte_end":794,"line_start":24,"line_end":25,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":777,"byte_end":783,"line_start":24,"line_end":24,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf.rs:24:22: error[E0308]: mismatched types
2020-02-14T16:44:13.4648866Z 76 "}
2020-02-14T16:44:13.4648966Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-14T16:44:13.4649104Z 
2020-02-14T16:44:13.4649152Z The actual stderr differed from the expected stderr.
2020-02-14T16:44:13.4649152Z The actual stderr differed from the expected stderr.
2020-02-14T16:44:13.4649849Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/json-bom-plus-crlf.stderr
2020-02-14T16:44:13.4650276Z To update references, rerun the tests and pass the `--bless` flag
2020-02-14T16:44:13.4650713Z To only update this specific test, also pass `--test-args json-bom-plus-crlf.rs`
2020-02-14T16:44:13.4651133Z error: 1 errors occurred comparing output.
2020-02-14T16:44:13.4651180Z status: exit code: 1
2020-02-14T16:44:13.4651180Z status: exit code: 1
2020-02-14T16:44:13.4652432Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/auxiliary" "-A" "unused"
2020-02-14T16:44:13.4652793Z ------------------------------------------
2020-02-14T16:44:13.4652829Z 
2020-02-14T16:44:13.4653059Z ------------------------------------------
2020-02-14T16:44:13.4653124Z stderr:
---
2020-02-14T16:44:13.4656384Z test result: FAILED. 9581 passed; 2 failed; 54 ignored; 0 measured; 0 filtered out
2020-02-14T16:44:13.4656424Z 
2020-02-14T16:44:13.4656449Z 
2020-02-14T16:44:13.4656490Z 
2020-02-14T16:44:13.4658044Z 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-14T16:44:13.4658372Z 
2020-02-14T16:44:13.4658401Z 
2020-02-14T16:44:13.4658699Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-14T16:44:13.4658757Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-14T16:44:13.4658757Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-14T16:44:13.4658827Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-14T16:44:13.4658872Z Build completed unsuccessfully in 1:02:32
2020-02-14T16:44:13.4658915Z == clock drift check ==
2020-02-14T16:44:13.4660046Z   local time: Fri Feb 14 16:44:13 UTC 2020
2020-02-14T16:44:13.7586534Z   network time: Fri, 14 Feb 2020 16:44:13 GMT
2020-02-14T16:44:13.7591445Z == end clock drift check ==
2020-02-14T16:44:14.1283184Z 
2020-02-14T16:44:14.1405283Z ##[error]Bash exited with code '1'.
2020-02-14T16:44:14.1418251Z ##[section]Finishing: Run build
2020-02-14T16:44:14.1440021Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-14T16:44:14.1441880Z Task         : Get sources
2020-02-14T16:44:14.1441940Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-14T16:44:14.1441982Z Version      : 1.0.0
2020-02-14T16:44:14.1442020Z Author       : Microsoft
2020-02-14T16:44:14.1442020Z Author       : Microsoft
2020-02-14T16:44:14.1442079Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-14T16:44:14.1442126Z ==============================================================================
2020-02-14T16:44:14.5830271Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-14T16:44:14.5873407Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-14T16:44:14.5993458Z Cleaning up task key
2020-02-14T16:44:14.5994213Z Start cleaning up orphan processes.
2020-02-14T16:44:14.6107923Z Terminate orphan process: pid (3814) (python)
2020-02-14T16:44:14.6359753Z ##[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)

@JohnTitor
Copy link
Member

Ping from triage: @GuillaumeGomez You need to bless tests :)

@JohnTitor JohnTitor 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 21, 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-22T12:15:59.5140091Z ========================== Starting Command Output ===========================
2020-02-22T12:15:59.5156503Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/f62f89ae-9428-4e00-b644-a3da2a27138f.sh
2020-02-22T12:15:59.7559924Z 
2020-02-22T12:15:59.7621314Z ##[section]Finishing: Disable git automatic line ending conversion
2020-02-22T12:15:59.7656639Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-22T12:15:59.7701757Z Task         : Get sources
2020-02-22T12:15:59.7702235Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-22T12:15:59.7702972Z Version      : 1.0.0
2020-02-22T12:15:59.7703264Z Author       : Microsoft
---
2020-02-22T12:16:02.1154491Z ##[command]git remote add origin https:/rust-lang/rust
2020-02-22T12:16:02.1328204Z ##[command]git config gc.auto 0
2020-02-22T12:16:02.1359986Z ##[command]git config --get-all http.https:/rust-lang/rust.extraheader
2020-02-22T12:16:02.1396683Z ##[command]git config --get-all http.proxy
2020-02-22T12:16:02.1493158Z ##[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/69139/merge:refs/remotes/pull/69139/merge
---
2020-02-22T13:10:02.8630198Z .................................................................................................... 1700/9695
2020-02-22T13:10:06.5390480Z .................................................................................................... 1800/9695
2020-02-22T13:10:15.9029155Z ..........................................i......................................................... 1900/9695
2020-02-22T13:10:22.4518745Z .................................................................................................... 2000/9695
2020-02-22T13:10:34.0713616Z ................................iiii.i.............................................................. 2100/9695
2020-02-22T13:10:42.0128293Z .................................................................................................... 2300/9695
2020-02-22T13:10:43.9246363Z .................................................................................................... 2400/9695
2020-02-22T13:10:47.4830098Z .................................................................................................... 2500/9695
2020-02-22T13:11:04.3697083Z .................................................................................................... 2600/9695
---
2020-02-22T13:13:23.5218279Z ........i........................................................................................... 5000/9695
2020-02-22T13:13:32.0064654Z .................................................................................................... 5100/9695
2020-02-22T13:13:36.2391783Z ...................................i................................................................ 5200/9695
2020-02-22T13:13:45.5703662Z .................................................................................................... 5300/9695
2020-02-22T13:13:51.4253471Z ...........ii.ii........i...iF...F.................................................................. 5400/9695
2020-02-22T13:13:59.7550924Z .................................................................................................... 5600/9695
2020-02-22T13:14:10.0699630Z .................................................................................................... 5700/9695
2020-02-22T13:14:17.1441488Z ..i................................................................................................. 5800/9695
2020-02-22T13:14:22.3982919Z .................................................................................................... 5900/9695
2020-02-22T13:14:22.3982919Z .................................................................................................... 5900/9695
2020-02-22T13:14:31.6849157Z .............................................................................................ii...i. 6000/9695
2020-02-22T13:14:42.9085155Z .ii...........i..................................................................................... 6100/9695
2020-02-22T13:14:58.7999540Z .................................................................................................... 6300/9695
2020-02-22T13:15:05.2644185Z .................................................................................................... 6400/9695
2020-02-22T13:15:05.2644185Z .................................................................................................... 6400/9695
2020-02-22T13:15:19.9250819Z ........................i..ii....................................................................... 6500/9695
2020-02-22T13:15:39.1525171Z .................................................................................................... 6700/9695
2020-02-22T13:15:41.2904643Z ................i................................................................................... 6800/9695
2020-02-22T13:15:43.3654213Z .................................................................................................... 6900/9695
2020-02-22T13:15:45.6503438Z ......................................i............................................................. 7000/9695
---
2020-02-22T13:17:19.4401600Z .................................................................................................... 7700/9695
2020-02-22T13:17:24.1923334Z .................................................................................................... 7800/9695
2020-02-22T13:17:30.0382455Z ..................................................................................i................. 7900/9695
2020-02-22T13:17:38.4127423Z .................................................................................................... 8000/9695
2020-02-22T13:17:44.8044997Z ...............................iiiiiii.i............................................................ 8100/9695
2020-02-22T13:17:58.1809634Z .................................................................................................... 8300/9695
2020-02-22T13:18:06.2687786Z .................................................................................................... 8400/9695
2020-02-22T13:18:18.6058858Z .................................................................................................... 8500/9695
2020-02-22T13:18:24.9316083Z .................................................................................................... 8600/9695
---
2020-02-22T13:20:11.1200965Z - variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1201441Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1202078Z - initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1202418Z - variable.
2020-02-22T13:20:11.1202721Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1203392Z - For example:
2020-02-22T13:20:11.1203535Z + Erroneous code example:
2020-02-22T13:20:11.1203673Z 8 
2020-02-22T13:20:11.1203811Z 9 ```compile_fail,E0308
2020-02-22T13:20:11.1203811Z 9 ```compile_fail,E0308
2020-02-22T13:20:11.1204165Z 10 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1204413Z 15 //      |
2020-02-22T13:20:11.1204604Z 16 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1204765Z 17 ```
2020-02-22T13:20:11.1204765Z 17 ```
2020-02-22T13:20:11.1212293Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1217338Z - "}
2020-02-22T13:20:11.1217930Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1218848Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1219511Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1220361Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1220679Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1220679Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1221041Z 
2020-02-22T13:20:11.1221174Z 24 variable.
2020-02-22T13:20:11.1226969Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":612,"byte_end":618,"line_start":17,"line_end":17,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":621,"byte_end":622,"line_start":17,"line_end":17,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:17:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1231457Z + "}
2020-02-22T13:20:11.1231758Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1232530Z - For example:
2020-02-22T13:20:11.1232690Z + Erroneous code example:
2020-02-22T13:20:11.1232830Z 27 
2020-02-22T13:20:11.1232987Z 28 ```compile_fail,E0308
2020-02-22T13:20:11.1232987Z 28 ```compile_fail,E0308
2020-02-22T13:20:11.1233188Z 29 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1233468Z 34 //      |
2020-02-22T13:20:11.1233653Z 35 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1233828Z 36 ```
2020-02-22T13:20:11.1233828Z 36 ```
2020-02-22T13:20:11.1238263Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1241246Z - "}
2020-02-22T13:20:11.1241983Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1242901Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1243412Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1243907Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1244234Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1244234Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1244427Z 
2020-02-22T13:20:11.1244559Z 43 variable.
2020-02-22T13:20:11.1251316Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":672,"byte_end":678,"line_start":19,"line_end":19,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":681,"byte_end":682,"line_start":19,"line_end":19,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:19:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1254667Z + "}
2020-02-22T13:20:11.1255158Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1256038Z - For example:
2020-02-22T13:20:11.1256212Z + Erroneous code example:
2020-02-22T13:20:11.1256360Z 46 
2020-02-22T13:20:11.1256528Z 47 ```compile_fail,E0308
2020-02-22T13:20:11.1256528Z 47 ```compile_fail,E0308
2020-02-22T13:20:11.1256740Z 48 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1257022Z 53 //      |
2020-02-22T13:20:11.1257396Z 54 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1257569Z 55 ```
2020-02-22T13:20:11.1257569Z 55 ```
2020-02-22T13:20:11.1262841Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-22T13:20:11.1266857Z - "}
2020-02-22T13:20:11.1267440Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1268040Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1268385Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1269175Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1269464Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1269464Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1269637Z 
2020-02-22T13:20:11.1269754Z 62 variable.
2020-02-22T13:20:11.1274425Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":735,"byte_end":741,"line_start":22,"line_end":22,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":745,"byte_end":746,"line_start":23,"line_end":23,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:23:1: error[E0308]: mismatched types
2020-02-22T13:20:11.1278172Z + "}
2020-02-22T13:20:11.1278481Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1279076Z - For example:
2020-02-22T13:20:11.1279236Z + Erroneous code example:
2020-02-22T13:20:11.1279375Z 65 
2020-02-22T13:20:11.1279529Z 66 ```compile_fail,E0308
2020-02-22T13:20:11.1279529Z 66 ```compile_fail,E0308
2020-02-22T13:20:11.1279889Z 67 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1280316Z 72 //      |
2020-02-22T13:20:11.1280503Z 73 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1280666Z 74 ```
2020-02-22T13:20:11.1280766Z + 
2020-02-22T13:20:11.1280766Z + 
2020-02-22T13:20:11.1280992Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1281307Z + variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1281958Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1282287Z + initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1282503Z + variable.
2020-02-22T13:20:11.1285890Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":801,"byte_end":809,"line_start":25,"line_end":26,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf-multifile-aux.rs","byte_start":792,"byte_end":798,"line_start":25,"line_end":25,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf-multifile-aux.rs:25:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1291571Z 76 "}
2020-02-22T13:20:11.1292385Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-22T13:20:11.1293042Z 
2020-02-22T13:20:11.1293242Z The actual stderr differed from the expected stderr.
2020-02-22T13:20:11.1294162Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-22T13:20:11.1294162Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/json-bom-plus-crlf-multifile.stderr
2020-02-22T13:20:11.1295052Z To update references, rerun the tests and pass the `--bless` flag
2020-02-22T13:20:11.1295554Z To only update this specific test, also pass `--test-args json-bom-plus-crlf-multifile.rs`
2020-02-22T13:20:11.1296364Z error: 1 errors occurred comparing output.
2020-02-22T13:20:11.1296572Z status: exit code: 1
2020-02-22T13:20:11.1296572Z status: exit code: 1
2020-02-22T13:20:11.1298242Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf-multifile.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf-multifile/auxiliary"
2020-02-22T13:20:11.1300470Z ------------------------------------------
2020-02-22T13:20:11.1300622Z 
2020-02-22T13:20:11.1300983Z ------------------------------------------
2020-02-22T13:20:11.1301157Z stderr:
---
2020-02-22T13:20:11.1315140Z - variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1315647Z - mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1316390Z - initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1316760Z - variable.
2020-02-22T13:20:11.1317085Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1318334Z - For example:
2020-02-22T13:20:11.1318485Z + Erroneous code example:
2020-02-22T13:20:11.1318613Z 8 
2020-02-22T13:20:11.1318756Z 9 ```compile_fail,E0308
2020-02-22T13:20:11.1318756Z 9 ```compile_fail,E0308
2020-02-22T13:20:11.1318943Z 10 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1319508Z 15 //      |
2020-02-22T13:20:11.1319719Z 16 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1320066Z 17 ```
2020-02-22T13:20:11.1320066Z 17 ```
2020-02-22T13:20:11.1327553Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1331688Z - "}
2020-02-22T13:20:11.1332230Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1333723Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1334083Z 21 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1334692Z 22 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1335041Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1335041Z 23 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1335248Z 
2020-02-22T13:20:11.1335386Z 24 variable.
2020-02-22T13:20:11.1341738Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":597,"byte_end":603,"line_start":16,"line_end":16,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":606,"byte_end":607,"line_start":16,"line_end":16,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1;  // Error in the middle of line.","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:16:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1346271Z + "}
2020-02-22T13:20:11.1346758Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1347798Z - For example:
2020-02-22T13:20:11.1348134Z + Erroneous code example:
2020-02-22T13:20:11.1348370Z 27 
2020-02-22T13:20:11.1348523Z 28 ```compile_fail,E0308
2020-02-22T13:20:11.1348523Z 28 ```compile_fail,E0308
2020-02-22T13:20:11.1348744Z 29 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1349016Z 34 //      |
2020-02-22T13:20:11.1349223Z 35 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1349401Z 36 ```
2020-02-22T13:20:11.1349401Z 36 ```
2020-02-22T13:20:11.1353839Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1357028Z - "}
2020-02-22T13:20:11.1357617Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1358213Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1358553Z 40 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1359235Z 41 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1359543Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1359543Z 42 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1359724Z 
2020-02-22T13:20:11.1359833Z 43 variable.
2020-02-22T13:20:11.1364406Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":657,"byte_end":663,"line_start":18,"line_end":18,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = 1","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":666,"byte_end":667,"line_start":18,"line_end":18,"column_start":22,"column_end":23,"is_primary":true,"text":[{"text":"    let s : String = 1","highlight_start":22,"highlight_end":23}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:18:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1367790Z + "}
2020-02-22T13:20:11.1368240Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1368901Z - For example:
2020-02-22T13:20:11.1369087Z + Erroneous code example:
2020-02-22T13:20:11.1369243Z 46 
2020-02-22T13:20:11.1369482Z 47 ```compile_fail,E0308
2020-02-22T13:20:11.1369482Z 47 ```compile_fail,E0308
2020-02-22T13:20:11.1369722Z 48 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1370322Z 53 //      |
2020-02-22T13:20:11.1370900Z 54 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1371083Z 55 ```
2020-02-22T13:20:11.1371083Z 55 ```
2020-02-22T13:20:11.1377139Z - "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-22T13:20:11.1381252Z - "}
2020-02-22T13:20:11.1382473Z - {"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1383060Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1383389Z 59 variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1383911Z 60 mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1384403Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1384403Z 61 initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1384584Z 
2020-02-22T13:20:11.1384692Z 62 variable.
2020-02-22T13:20:11.1388995Z + "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":"expected struct `std::string::String`, found integer","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":720,"byte_end":726,"line_start":21,"line_end":21,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String =","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"try using a conversion method","code":null,"level":"help","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":730,"byte_end":731,"line_start":22,"line_end":22,"column_start":1,"column_end":2,"is_primary":true,"text":[{"text":"1;  // Error after the newline.","highlight_start":1,"highlight_end":2}],"label":null,"suggested_replacement":"1.to_string()","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"$DIR/json-bom-plus-crlf.rs:22:1: error[E0308]: mismatched types
2020-02-22T13:20:11.1393390Z + "}
2020-02-22T13:20:11.1393681Z + {"message":"mismatched types","code":{"code":"E0308","explanation":"Expected type did not match the received type.
2020-02-22T13:20:11.1394225Z - For example:
2020-02-22T13:20:11.1394377Z + Erroneous code example:
2020-02-22T13:20:11.1394527Z 65 
2020-02-22T13:20:11.1394732Z 66 ```compile_fail,E0308
2020-02-22T13:20:11.1394732Z 66 ```compile_fail,E0308
2020-02-22T13:20:11.1394929Z 67 let x: i32 = \"I am not a number!\";
2020-02-22T13:20:11.1395190Z 72 //      |
2020-02-22T13:20:11.1395361Z 73 //    type `i32` assigned to variable `x`
2020-02-22T13:20:11.1395525Z 74 ```
2020-02-22T13:20:11.1395644Z + 
2020-02-22T13:20:11.1395644Z + 
2020-02-22T13:20:11.1395853Z + This error occurs when the compiler was unable to infer the concrete type of a
2020-02-22T13:20:11.1396319Z + variable. It can occur for several cases, the most common of which is a
2020-02-22T13:20:11.1396809Z + mismatch in the expected type that the compiler inferred for a variable's
2020-02-22T13:20:11.1397105Z + initializing expression, and the actual type explicitly assigned to the
2020-02-22T13:20:11.1397308Z + variable.
2020-02-22T13:20:11.1400170Z 75 "},"level":"error","spans":[{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":786,"byte_end":794,"line_start":24,"line_end":25,"column_start":22,"column_end":6,"is_primary":true,"text":[{"text":"    let s : String = (","highlight_start":22,"highlight_end":23},{"text":"    );  // Error spanning the newline.","highlight_start":1,"highlight_end":6}],"label":"expected struct `std::string::String`, found `()`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/json-bom-plus-crlf.rs","byte_start":777,"byte_end":783,"line_start":24,"line_end":24,"column_start":13,"column_end":19,"is_primary":false,"text":[{"text":"    let s : String = (","highlight_start":13,"highlight_end":19}],"label":"expected due to this","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-bom-plus-crlf.rs:24:22: error[E0308]: mismatched types
2020-02-22T13:20:11.1404271Z 76 "}
2020-02-22T13:20:11.1404757Z 77 {"message":"aborting due to 4 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 4 previous errors
2020-02-22T13:20:11.1405337Z 
2020-02-22T13:20:11.1405715Z The actual stderr differed from the expected stderr.
2020-02-22T13:20:11.1405715Z The actual stderr differed from the expected stderr.
2020-02-22T13:20:11.1406992Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/json-bom-plus-crlf.stderr
2020-02-22T13:20:11.1407877Z To update references, rerun the tests and pass the `--bless` flag
2020-02-22T13:20:11.1408347Z To only update this specific test, also pass `--test-args json-bom-plus-crlf.rs`
2020-02-22T13:20:11.1408710Z error: 1 errors occurred comparing output.
2020-02-22T13:20:11.1408900Z status: exit code: 1
2020-02-22T13:20:11.1408900Z status: exit code: 1
2020-02-22T13:20:11.1410481Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/json-bom-plus-crlf.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-A" "unused" "--json=diagnostic-short" "--error-format=json" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/json-bom-plus-crlf/auxiliary"
2020-02-22T13:20:11.1412390Z ------------------------------------------
2020-02-22T13:20:11.1412571Z 
2020-02-22T13:20:11.1412901Z ------------------------------------------
2020-02-22T13:20:11.1413092Z stderr:
---
2020-02-22T13:20:11.1420923Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-02-22T13:20:11.1421416Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-02-22T13:20:11.1421699Z 
2020-02-22T13:20:11.1422059Z 
2020-02-22T13:20:11.1425892Z 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-22T13:20:11.1428874Z 
2020-02-22T13:20:11.1428991Z 
2020-02-22T13:20:11.1429206Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2020-02-22T13:20:11.1429582Z Build completed unsuccessfully in 0:57:46
2020-02-22T13:20:11.1429582Z Build completed unsuccessfully in 0:57:46
2020-02-22T13:20:11.1430051Z == clock drift check ==
2020-02-22T13:20:11.1430277Z   local time: Sat Feb 22 13:20:11 UTC 2020
2020-02-22T13:20:11.4033427Z   network time: Sat, 22 Feb 2020 13:20:11 GMT
2020-02-22T13:20:11.9746372Z == end clock drift check ==
2020-02-22T13:20:12.0075481Z 
2020-02-22T13:20:12.0145943Z ##[error]Bash exited with code '1'.
2020-02-22T13:20:12.0161342Z ##[section]Finishing: Run build
2020-02-22T13:20:12.0204912Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-22T13:20:12.0210059Z Task         : Get sources
2020-02-22T13:20:12.0210347Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-02-22T13:20:12.0210601Z Version      : 1.0.0
2020-02-22T13:20:12.0210791Z Author       : Microsoft
2020-02-22T13:20:12.0210791Z Author       : Microsoft
2020-02-22T13:20:12.0211084Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-02-22T13:20:12.0211407Z ==============================================================================
2020-02-22T13:20:12.3240078Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-02-22T13:20:12.3286840Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/69139/merge to s
2020-02-22T13:20:12.3369080Z Cleaning up task key
2020-02-22T13:20:12.3370223Z Start cleaning up orphan processes.
2020-02-22T13:20:12.3526872Z Terminate orphan process: pid (6179) (python)
2020-02-22T13:20:12.3732594Z ##[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)

@JohnTitor
Copy link
Member

@GuillaumeGomez Two tests (json-bom-plus-crlf.rs and json-bom-plus-crlf-multifile.rs) contain E0308 explanation as json, like:

{"message":"mismatched types","code":{"code":"E0308","explanation":"This error occurs when the compiler was unable to infer the concrete type of a
variable. It can occur for several cases, the most common of which is a
mismatch in the expected type that the compiler inferred for a variable's
initializing expression, and the actual type explicitly assigned to the
variable.
For example:
```compile_fail,E0308
let x: i32 = \"I am not a number!\";
// ~~~ ~~~~~~~~~~~~~~~~~~~~
// | |
// | initializing expression;
// | compiler infers type `&str`
// |
// type `i32` assigned to variable `x`
```

So you should also update these stderrs.

@JohnTitor JohnTitor 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 Mar 8, 2020
@Dylan-DPC-zz
Copy link

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 17, 2020

📌 Commit 64460a1 has been approved by Dylan-DPC

@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 Mar 17, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 18, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 18, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 18, 2020
pietroalbini added a commit to pietroalbini/rust that referenced this pull request Mar 18, 2020
Rollup of 10 pull requests

Successful merges:

 - rust-lang#67749 (keyword docs for else and inkeyword docs for else and in.)
 - rust-lang#69139 (clean up E0308 explanation)
 - rust-lang#69189 (Erase regions in writeback)
 - rust-lang#69837 (Use smaller discriminants for generators)
 - rust-lang#69838 (Expansion-driven outline module parsing)
 - rust-lang#69839 (Miri error reform)
 - rust-lang#69899 (Make methods declared by `newtype_index` macro `const`)
 - rust-lang#69920 (Remove some imports to the rustc crate)
 - rust-lang#70075 (Fix repr pretty display)
 - rust-lang#70106 (Tidy: fix running rustfmt twice)

Failed merges:

 - rust-lang#70051 (Allow `hir().find` to return `None`)
 - rust-lang#70074 (Expand: nix all fatal errors)

r? @ghost
@bors bors merged commit 8188b21 into rust-lang:master Mar 19, 2020
@GuillaumeGomez GuillaumeGomez deleted the cleanup-e0308 branch March 19, 2020 11:03
Centril added a commit to Centril/rust that referenced this pull request Mar 23, 2020
Improve E0308 error message wording

Hi folks,

I made [a post on Reddit](https://old.reddit.com/r/rust/comments/fmi11x/consider_linting_rusts_documentationerror_text/) about how (IMO) the docs/error messages can be a bit intimidating, one thing led to another, and I was encouraged to submit a Pull Request if I felt I could re-phrase the error message that I used as an example.

So that's this Pull Request. Open to any feedback or style changes, and I understand this is subjective.

(On another note: I am happy to see [this message was recently improved](rust-lang#69139) in `master`, so it's already better than it is in stable Rust 1.42.0.)

Ideally the last sentence could be split into at least two: [sentence explaining the inferred type.] [Sentence explaining explicit type.] [Sentence that summarizes that "this is bad," and why.]

But I'm not sure how to do so; I'm wary of writing something that turns out to be technically incorrect.
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