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

Suggest dereferencing boolean reference when used in 'if' or 'while' #65150

Merged
merged 3 commits into from Oct 8, 2019

Conversation

@XiangQingW
Copy link
Contributor

XiangQingW commented Oct 6, 2019

Implements #64557

Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Oct 6, 2019

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cramertj (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@XiangQingW

This comment has been minimized.

Copy link
Contributor Author

XiangQingW commented Oct 6, 2019

@rust-highfive rust-highfive assigned Aaron1011 and unassigned cramertj Oct 6, 2019
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Oct 6, 2019

The job x86_64-gnu-llvm-6.0 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.
2019-10-06T04:07:13.9862161Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-06T04:07:14.9604568Z ##[command]git config gc.auto 0
2019-10-06T04:07:14.9611363Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-06T04:07:14.9614332Z ##[command]git config --get-all http.proxy
2019-10-06T04:07:14.9617227Z ##[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/65150/merge:refs/remotes/pull/65150/merge
---
2019-10-06T05:10:53.2966930Z .................................................................................................... 1500/9104
2019-10-06T05:11:00.4149545Z .................................................................................................... 1600/9104
2019-10-06T05:11:09.7563049Z .................................................................................................... 1700/9104
2019-10-06T05:11:19.2404570Z .......i...............i............................................................................ 1800/9104
2019-10-06T05:11:26.7783348Z ..................................................................................................ii 1900/9104
2019-10-06T05:11:43.6155227Z iii................................................................................................. 2000/9104
2019-10-06T05:11:52.6122768Z .................................................................................................... 2200/9104
2019-10-06T05:11:55.3684622Z .................................................................................................... 2300/9104
2019-10-06T05:12:01.8881486Z .................................................................................................... 2400/9104
2019-10-06T05:12:07.7185659Z .................................................................................................... 2500/9104
---
2019-10-06T05:15:07.2870753Z .......................................................................................i............ 4700/9104
2019-10-06T05:15:15.4448259Z ...i................................................................................................ 4800/9104
2019-10-06T05:15:26.4582427Z .................................................................................................... 4900/9104
2019-10-06T05:15:32.2398484Z .................................................................................................... 5000/9104
2019-10-06T05:15:44.8189452Z ................................................................................ii.ii............... 5100/9104
2019-10-06T05:15:54.6261858Z .................................................................................................... 5300/9104
2019-10-06T05:16:04.8625184Z .................................................................................................... 5400/9104
2019-10-06T05:16:11.8650314Z ..............................................i..................................................... 5500/9104
2019-10-06T05:16:18.9557433Z .................................................................................................... 5600/9104
2019-10-06T05:16:18.9557433Z .................................................................................................... 5600/9104
2019-10-06T05:16:29.9052468Z .................................................................................................... 5700/9104
2019-10-06T05:16:37.8659469Z ...........................................ii...i..ii...........i................................... 5800/9104
2019-10-06T05:17:04.3079565Z .................................................................................................... 6000/9104
2019-10-06T05:17:13.9134085Z .................................................................................................... 6100/9104
2019-10-06T05:17:13.9134085Z .................................................................................................... 6100/9104
2019-10-06T05:17:30.1633050Z .................................................i..ii.............................................. 6200/9104
2019-10-06T05:17:54.9107396Z .................................................................................................... 6400/9104
2019-10-06T05:17:57.2288524Z .........i.......................................................................................... 6500/9104
2019-10-06T05:17:59.5627653Z .................................................................................i.................. 6600/9104
2019-10-06T05:18:02.4196051Z .................................................................................................... 6700/9104
---
2019-10-06T05:22:19.6927601Z diff of stderr:
2019-10-06T05:22:19.6927730Z 
2019-10-06T05:22:19.6928159Z 2   --> $DIR/if-no-match-bindings.rs:18:8
2019-10-06T05:22:19.6928377Z 3    |
2019-10-06T05:22:19.6928522Z 4 LL |     if b_ref() {}
2019-10-06T05:22:19.6929740Z -    |        ^^^^^^^ expected bool, found &bool
2019-10-06T05:22:19.6930178Z +    |        |
2019-10-06T05:22:19.6930178Z +    |        |
2019-10-06T05:22:19.6930321Z +    |        expected bool, found &bool
2019-10-06T05:22:19.6930488Z +    |        help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T05:22:19.6930765Z 7    = note: expected type `bool`
2019-10-06T05:22:19.6930920Z 8               found type `&bool`
2019-10-06T05:22:19.6932240Z 
2019-10-06T05:22:19.6933207Z 11   --> $DIR/if-no-match-bindings.rs:19:8
2019-10-06T05:22:19.6933207Z 11   --> $DIR/if-no-match-bindings.rs:19:8
2019-10-06T05:22:19.6933546Z 12    |
2019-10-06T05:22:19.6933699Z 13 LL |     if b_mut_ref() {}
2019-10-06T05:22:19.6934109Z -    |        ^^^^^^^^^^^ expected bool, found &mut bool
2019-10-06T05:22:19.6934580Z +    |        |
2019-10-06T05:22:19.6934580Z +    |        |
2019-10-06T05:22:19.6934722Z +    |        expected bool, found &mut bool
2019-10-06T05:22:19.6934883Z +    |        help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T05:22:19.6935166Z 16    = note: expected type `bool`
2019-10-06T05:22:19.6935321Z 17               found type `&mut bool`
2019-10-06T05:22:19.6935437Z 
2019-10-06T05:22:19.6935828Z 20   --> $DIR/if-no-match-bindings.rs:20:8
2019-10-06T05:22:19.6935828Z 20   --> $DIR/if-no-match-bindings.rs:20:8
2019-10-06T05:22:19.6936037Z 21    |
2019-10-06T05:22:19.6936172Z 22 LL |     if &true {}
2019-10-06T05:22:19.6936559Z -    |        ^^^^^ expected bool, found &bool
2019-10-06T05:22:19.6936923Z +    |        |
2019-10-06T05:22:19.6936923Z +    |        |
2019-10-06T05:22:19.6937059Z +    |        expected bool, found &bool
2019-10-06T05:22:19.6937447Z +    |        help: consider dereferencing the borrow: `*&true`
2019-10-06T05:22:19.6937801Z 25    = note: expected type `bool`
2019-10-06T05:22:19.6937941Z 26               found type `&bool`
2019-10-06T05:22:19.6938078Z 
2019-10-06T05:22:19.6938572Z 29   --> $DIR/if-no-match-bindings.rs:21:8
2019-10-06T05:22:19.6938572Z 29   --> $DIR/if-no-match-bindings.rs:21:8
2019-10-06T05:22:19.6942158Z 30    |
2019-10-06T05:22:19.6942212Z 31 LL |     if &mut true {}
2019-10-06T05:22:19.6942593Z -    |        ^^^^^^^^^ expected bool, found &mut bool
2019-10-06T05:22:19.6942683Z +    |        |
2019-10-06T05:22:19.6942683Z +    |        |
2019-10-06T05:22:19.6942741Z +    |        expected bool, found &mut bool
2019-10-06T05:22:19.6942788Z +    |        help: consider dereferencing the borrow: `*&mut true`
2019-10-06T05:22:19.6942887Z 34    = note: expected type `bool`
2019-10-06T05:22:19.6942930Z 35               found type `&mut bool`
2019-10-06T05:22:19.6942959Z 
2019-10-06T05:22:19.6943206Z 38   --> $DIR/if-no-match-bindings.rs:24:11
2019-10-06T05:22:19.6943206Z 38   --> $DIR/if-no-match-bindings.rs:24:11
2019-10-06T05:22:19.6943267Z 39    |
2019-10-06T05:22:19.6943307Z 40 LL |     while b_ref() {}
2019-10-06T05:22:19.6943543Z -    |           ^^^^^^^ expected bool, found &bool
2019-10-06T05:22:19.6943643Z +    |           |
2019-10-06T05:22:19.6943643Z +    |           |
2019-10-06T05:22:19.6943685Z +    |           expected bool, found &bool
2019-10-06T05:22:19.6943926Z +    |           help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T05:22:19.6944025Z 43    = note: expected type `bool`
2019-10-06T05:22:19.6944066Z 44               found type `&bool`
2019-10-06T05:22:19.6944225Z 
2019-10-06T05:22:19.6944509Z 47   --> $DIR/if-no-match-bindings.rs:25:11
2019-10-06T05:22:19.6944509Z 47   --> $DIR/if-no-match-bindings.rs:25:11
2019-10-06T05:22:19.6944554Z 48    |
2019-10-06T05:22:19.6944595Z 49 LL |     while b_mut_ref() {}
2019-10-06T05:22:19.6944863Z -    |           ^^^^^^^^^^^ expected bool, found &mut bool
2019-10-06T05:22:19.6944965Z +    |           |
2019-10-06T05:22:19.6944965Z +    |           |
2019-10-06T05:22:19.6945027Z +    |           expected bool, found &mut bool
2019-10-06T05:22:19.6945076Z +    |           help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T05:22:19.6945177Z 52    = note: expected type `bool`
2019-10-06T05:22:19.6945221Z 53               found type `&mut bool`
2019-10-06T05:22:19.6945257Z 
2019-10-06T05:22:19.6945490Z 56   --> $DIR/if-no-match-bindings.rs:26:11
2019-10-06T05:22:19.6945490Z 56   --> $DIR/if-no-match-bindings.rs:26:11
2019-10-06T05:22:19.6945549Z 57    |
2019-10-06T05:22:19.6945590Z 58 LL |     while &true {}
2019-10-06T05:22:19.6945821Z -    |           ^^^^^ expected bool, found &bool
2019-10-06T05:22:19.6945925Z +    |           |
2019-10-06T05:22:19.6945925Z +    |           |
2019-10-06T05:22:19.6945968Z +    |           expected bool, found &bool
2019-10-06T05:22:19.6946032Z +    |           help: consider dereferencing the borrow: `*&true`
2019-10-06T05:22:19.6946117Z 61    = note: expected type `bool`
2019-10-06T05:22:19.6946169Z 62               found type `&bool`
2019-10-06T05:22:19.6946213Z 
2019-10-06T05:22:19.6946448Z 65   --> $DIR/if-no-match-bindings.rs:27:11
2019-10-06T05:22:19.6946448Z 65   --> $DIR/if-no-match-bindings.rs:27:11
2019-10-06T05:22:19.6946491Z 66    |
2019-10-06T05:22:19.6946546Z 67 LL |     while &mut true {}
2019-10-06T05:22:19.6946787Z -    |           ^^^^^^^^^ expected bool, found &mut bool
2019-10-06T05:22:19.6946883Z +    |           |
2019-10-06T05:22:19.6946883Z +    |           |
2019-10-06T05:22:19.6946941Z +    |           expected bool, found &mut bool
2019-10-06T05:22:19.6946990Z +    |           help: consider dereferencing the borrow: `*&mut true`
2019-10-06T05:22:19.6947091Z 70    = note: expected type `bool`
2019-10-06T05:22:19.6947135Z 71               found type `&mut bool`
2019-10-06T05:22:19.6947163Z 
2019-10-06T05:22:19.6947188Z 
2019-10-06T05:22:19.6947188Z 
2019-10-06T05:22:19.6947247Z The actual stderr differed from the expected stderr.
2019-10-06T05:22:19.6947678Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings/if-no-match-bindings.stderr
2019-10-06T05:22:19.6948032Z To update references, rerun the tests and pass the `--bless` flag
2019-10-06T05:22:19.6948360Z To only update this specific test, also pass `--test-args if/if-no-match-bindings.rs`
2019-10-06T05:22:19.6948445Z error: 1 errors occurred comparing output.
2019-10-06T05:22:19.6948516Z status: exit code: 1
2019-10-06T05:22:19.6948516Z status: exit code: 1
2019-10-06T05:22:19.6949605Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/if/if-no-match-bindings.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings/auxiliary" "-A" "unused"
2019-10-06T05:22:19.6949967Z ------------------------------------------
2019-10-06T05:22:19.6950001Z 
2019-10-06T05:22:19.7005564Z ------------------------------------------
2019-10-06T05:22:19.7005679Z stderr:
2019-10-06T05:22:19.7005679Z stderr:
2019-10-06T05:22:19.7006103Z ------------------------------------------
2019-10-06T05:22:19.7006347Z error[E0308]: mismatched types
2019-10-06T05:22:19.7006684Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:18:8
2019-10-06T05:22:19.7006739Z    |
2019-10-06T05:22:19.7006791Z LL |     if b_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7007005Z    |        |
2019-10-06T05:22:19.7007005Z    |        |
2019-10-06T05:22:19.7007048Z    |        expected bool, found &bool
2019-10-06T05:22:19.7007111Z    |        help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T05:22:19.7007194Z    = note: expected type `bool`
2019-10-06T05:22:19.7007237Z               found type `&bool`
2019-10-06T05:22:19.7007299Z 
2019-10-06T05:22:19.7007340Z error[E0308]: mismatched types
2019-10-06T05:22:19.7007340Z error[E0308]: mismatched types
2019-10-06T05:22:19.7007600Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:19:8
2019-10-06T05:22:19.7007662Z    |
2019-10-06T05:22:19.7007706Z LL |     if b_mut_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7007797Z    |        |
2019-10-06T05:22:19.7007797Z    |        |
2019-10-06T05:22:19.7007853Z    |        expected bool, found &mut bool
2019-10-06T05:22:19.7007899Z    |        help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T05:22:19.7007996Z    = note: expected type `bool`
2019-10-06T05:22:19.7008037Z               found type `&mut bool`
2019-10-06T05:22:19.7008066Z 
2019-10-06T05:22:19.7008104Z error[E0308]: mismatched types
2019-10-06T05:22:19.7008104Z error[E0308]: mismatched types
2019-10-06T05:22:19.7008365Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:20:8
2019-10-06T05:22:19.7008410Z    |
2019-10-06T05:22:19.7008453Z LL |     if &true {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7008561Z    |        |
2019-10-06T05:22:19.7008561Z    |        |
2019-10-06T05:22:19.7008602Z    |        expected bool, found &bool
2019-10-06T05:22:19.7008663Z    |        help: consider dereferencing the borrow: `*&true`
2019-10-06T05:22:19.7008743Z    = note: expected type `bool`
2019-10-06T05:22:19.7008792Z               found type `&bool`
2019-10-06T05:22:19.7008838Z 
2019-10-06T05:22:19.7008877Z error[E0308]: mismatched types
2019-10-06T05:22:19.7008877Z error[E0308]: mismatched types
2019-10-06T05:22:19.7009120Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:21:8
2019-10-06T05:22:19.7009614Z    |
2019-10-06T05:22:19.7009661Z LL |     if &mut true {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7009747Z    |        |
2019-10-06T05:22:19.7009747Z    |        |
2019-10-06T05:22:19.7009807Z    |        expected bool, found &mut bool
2019-10-06T05:22:19.7009854Z    |        help: consider dereferencing the borrow: `*&mut true`
2019-10-06T05:22:19.7012595Z    = note: expected type `bool`
2019-10-06T05:22:19.7012727Z               found type `&mut bool`
2019-10-06T05:22:19.7012758Z 
2019-10-06T05:22:19.7012799Z error[E0308]: mismatched types
2019-10-06T05:22:19.7012799Z error[E0308]: mismatched types
2019-10-06T05:22:19.7013236Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:24:11
2019-10-06T05:22:19.7013286Z    |
2019-10-06T05:22:19.7013330Z LL |     while b_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7013819Z    |           |
2019-10-06T05:22:19.7013819Z    |           |
2019-10-06T05:22:19.7013861Z    |           expected bool, found &bool
2019-10-06T05:22:19.7013927Z    |           help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T05:22:19.7014012Z    = note: expected type `bool`
2019-10-06T05:22:19.7014072Z               found type `&bool`
2019-10-06T05:22:19.7014101Z 
2019-10-06T05:22:19.7014140Z error[E0308]: mismatched types
2019-10-06T05:22:19.7014140Z error[E0308]: mismatched types
2019-10-06T05:22:19.7014764Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:25:11
2019-10-06T05:22:19.7014849Z    |
2019-10-06T05:22:19.7014896Z LL |     while b_mut_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7015003Z    |           |
2019-10-06T05:22:19.7015003Z    |           |
2019-10-06T05:22:19.7015048Z    |           expected bool, found &mut bool
2019-10-06T05:22:19.7015097Z    |           help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T05:22:19.7019470Z    = note: expected type `bool`
2019-10-06T05:22:19.7019514Z               found type `&mut bool`
2019-10-06T05:22:19.7019546Z 
2019-10-06T05:22:19.7019604Z error[E0308]: mismatched types
2019-10-06T05:22:19.7019604Z error[E0308]: mismatched types
2019-10-06T05:22:19.7020039Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:26:11
2019-10-06T05:22:19.7020089Z    |
2019-10-06T05:22:19.7020134Z LL |     while &true {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7020240Z    |           |
2019-10-06T05:22:19.7020240Z    |           |
2019-10-06T05:22:19.7020283Z    |           expected bool, found &bool
2019-10-06T05:22:19.7020363Z    |           help: consider dereferencing the borrow: `*&true`
2019-10-06T05:22:19.7020448Z    = note: expected type `bool`
2019-10-06T05:22:19.7020508Z               found type `&bool`
2019-10-06T05:22:19.7020537Z 
2019-10-06T05:22:19.7020577Z error[E0308]: mismatched types
2019-10-06T05:22:19.7020577Z error[E0308]: mismatched types
2019-10-06T05:22:19.7020852Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:27:11
2019-10-06T05:22:19.7020916Z    |
2019-10-06T05:22:19.7020962Z LL |     while &mut true {} //~ ERROR mismatched types [E0308]
2019-10-06T05:22:19.7021067Z    |           |
2019-10-06T05:22:19.7021067Z    |           |
2019-10-06T05:22:19.7021110Z    |           expected bool, found &mut bool
2019-10-06T05:22:19.7021159Z    |           help: consider dereferencing the borrow: `*&mut true`
2019-10-06T05:22:19.7021262Z    = note: expected type `bool`
2019-10-06T05:22:19.7021305Z               found type `&mut bool`
2019-10-06T05:22:19.7021334Z 
2019-10-06T05:22:19.7021403Z error: aborting due to 8 previous errors
---
2019-10-06T05:22:19.7022946Z diff of stderr:
2019-10-06T05:22:19.7022974Z 
2019-10-06T05:22:19.7023211Z 517   --> $DIR/disallowed-positions.rs:32:8
2019-10-06T05:22:19.7023257Z 518    |
2019-10-06T05:22:19.7023315Z 519 LL |     if &let 0 = 0 {}
2019-10-06T05:22:19.7023556Z -    |        ^^^^^^^^^^ expected bool, found &bool
2019-10-06T05:22:19.7023661Z +    |        |
2019-10-06T05:22:19.7023661Z +    |        |
2019-10-06T05:22:19.7023704Z +    |        expected bool, found &bool
2019-10-06T05:22:19.7023903Z +    |        help: consider dereferencing the borrow: `*&let 0 = 0`
2019-10-06T05:22:19.7024022Z 522    = note: expected type `bool`
2019-10-06T05:22:19.7024066Z 523               found type `&bool`
2019-10-06T05:22:19.7024095Z 
2019-10-06T05:22:19.7024390Z 702   --> $DIR/disallowed-positions.rs:96:11
2019-10-06T05:22:19.7024390Z 702   --> $DIR/disallowed-positions.rs:96:11
2019-10-06T05:22:19.7024437Z 703    |
2019-10-06T05:22:19.7024488Z 704 LL |     while &let 0 = 0 {}
2019-10-06T05:22:19.7024730Z -    |           ^^^^^^^^^^ expected bool, found &bool
2019-10-06T05:22:19.7024836Z +    |           |
2019-10-06T05:22:19.7024836Z +    |           |
2019-10-06T05:22:19.7024881Z +    |           expected bool, found &bool
2019-10-06T05:22:19.7024948Z +    |           help: consider dereferencing the borrow: `*&let 0 = 0`
2019-10-06T05:22:19.7025033Z 707    = note: expected type `bool`
2019-10-06T05:22:19.7025610Z 708               found type `&bool`
2019-10-06T05:22:19.7025640Z 
2019-10-06T05:22:19.7025665Z 
2019-10-06T05:22:19.7025665Z 
2019-10-06T05:22:19.7025721Z The actual stderr differed from the expected stderr.
2019-10-06T05:22:19.7026158Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions/disallowed-positions.stderr
2019-10-06T05:22:19.7026766Z To update references, rerun the tests and pass the `--bless` flag
2019-10-06T05:22:19.7027169Z To only update this specific test, also pass `--test-args rfc-2497-if-let-chains/disallowed-positions.rs`
2019-10-06T05:22:19.7027726Z error: 1 errors occurred comparing output.
2019-10-06T05:22:19.7027775Z status: exit code: 1
2019-10-06T05:22:19.7027775Z status: exit code: 1
2019-10-06T05:22:19.7028707Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions/auxiliary" "-A" "unused"
2019-10-06T05:22:19.7029088Z ------------------------------------------
2019-10-06T05:22:19.7029420Z 
2019-10-06T05:22:19.7030101Z ------------------------------------------
2019-10-06T05:22:19.7030158Z stderr:
2019-10-06T05:22:19.7030158Z stderr:
2019-10-06T05:22:19.7030413Z ------------------------------------------
2019-10-06T05:22:19.7030463Z error: expected one of `,` or `>`, found `&&`
2019-10-06T05:22:19.7030803Z    |
2019-10-06T05:22:19.7030803Z    |
2019-10-06T05:22:19.7030855Z LL |         true && let 1 = 1 //~ ERROR expected one of `,` or `>`, found `&&`
2019-10-06T05:22:19.7030906Z    |              ^^ expected one of `,` or `>` here
2019-10-06T05:22:19.7031010Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7031289Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:32:9
2019-10-06T05:22:19.7031358Z    |
2019-10-06T05:22:19.7031358Z    |
2019-10-06T05:22:19.7031408Z LL |     if &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7031508Z    |
2019-10-06T05:22:19.7031508Z    |
2019-10-06T05:22:19.7031813Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7031872Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7031967Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7032257Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:35:9
2019-10-06T05:22:19.7032306Z    |
2019-10-06T05:22:19.7032306Z    |
2019-10-06T05:22:19.7032505Z LL |     if !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7032740Z    |
2019-10-06T05:22:19.7032740Z    |
2019-10-06T05:22:19.7033053Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7033128Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7033201Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7033489Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:36:9
2019-10-06T05:22:19.7033538Z    |
2019-10-06T05:22:19.7033538Z    |
2019-10-06T05:22:19.7033585Z LL |     if *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7033694Z    |
2019-10-06T05:22:19.7033694Z    |
2019-10-06T05:22:19.7033967Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7034065Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7034141Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7034421Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:38:9
2019-10-06T05:22:19.7034485Z    |
2019-10-06T05:22:19.7034485Z    |
2019-10-06T05:22:19.7034756Z LL |     if -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7034864Z    |
2019-10-06T05:22:19.7034864Z    |
2019-10-06T05:22:19.7035277Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7035335Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7035429Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7035707Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:46:9
2019-10-06T05:22:19.7035755Z    |
2019-10-06T05:22:19.7035755Z    |
2019-10-06T05:22:19.7035818Z LL |     if (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7035904Z    |
2019-10-06T05:22:19.7035904Z    |
2019-10-06T05:22:19.7036204Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7036261Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7036335Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7036632Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:50:16
2019-10-06T05:22:19.7036689Z    |
2019-10-06T05:22:19.7036689Z    |
2019-10-06T05:22:19.7036736Z LL |     if true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7036840Z    |
2019-10-06T05:22:19.7036840Z    |
2019-10-06T05:22:19.7037231Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7037299Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7037369Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7037630Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:51:17
2019-10-06T05:22:19.7037691Z    |
2019-10-06T05:22:19.7037691Z    |
2019-10-06T05:22:19.7037735Z LL |     if (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7037836Z    |
2019-10-06T05:22:19.7037836Z    |
2019-10-06T05:22:19.7038077Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7038254Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7038369Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7038627Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:52:25
2019-10-06T05:22:19.7038688Z    |
2019-10-06T05:22:19.7038688Z    |
2019-10-06T05:22:19.7038737Z LL |     if true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7039287Z    |
2019-10-06T05:22:19.7039287Z    |
2019-10-06T05:22:19.7039791Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7039861Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7039954Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7040259Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:53:25
2019-10-06T05:22:19.7040319Z    |
2019-10-06T05:22:19.7040319Z    |
2019-10-06T05:22:19.7040385Z LL |     if true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7040473Z    |
2019-10-06T05:22:19.7040473Z    |
2019-10-06T05:22:19.7040734Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7040806Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7040879Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7041172Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:56:12
2019-10-06T05:22:19.7041221Z    |
2019-10-06T05:22:19.7041221Z    |
2019-10-06T05:22:19.7041268Z LL |     if x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7041372Z    |
2019-10-06T05:22:19.7041372Z    |
2019-10-06T05:22:19.7041630Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7041803Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7041876Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7042173Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:59:15
2019-10-06T05:22:19.7042240Z    |
2019-10-06T05:22:19.7042240Z    |
2019-10-06T05:22:19.7042287Z LL |     if true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7042500Z    |
2019-10-06T05:22:19.7042500Z    |
2019-10-06T05:22:19.7042760Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7042813Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7042902Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7054059Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:61:11
2019-10-06T05:22:19.7054186Z    |
2019-10-06T05:22:19.7054186Z    |
2019-10-06T05:22:19.7054281Z LL |     if ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7054382Z    |
2019-10-06T05:22:19.7054382Z    |
2019-10-06T05:22:19.7054737Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7054806Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7054899Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7055236Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:63:9
2019-10-06T05:22:19.7055297Z    |
2019-10-06T05:22:19.7055297Z    |
2019-10-06T05:22:19.7055353Z LL |     if (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7055475Z    |
2019-10-06T05:22:19.7055475Z    |
2019-10-06T05:22:19.7055809Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7055902Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7055994Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7056321Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:67:8
2019-10-06T05:22:19.7056395Z    |
2019-10-06T05:22:19.7056395Z    |
2019-10-06T05:22:19.7056450Z LL |     if let Range { start: _, end: _ } = true..true && false {}
2019-10-06T05:22:19.7056576Z    |
2019-10-06T05:22:19.7056576Z    |
2019-10-06T05:22:19.7057115Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7057200Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7057314Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7057685Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:71:8
2019-10-06T05:22:19.7057770Z    |
2019-10-06T05:22:19.7057770Z    |
2019-10-06T05:22:19.7057826Z LL |     if let Range { start: _, end: _ } = true..true || false {}
2019-10-06T05:22:19.7057933Z    |
2019-10-06T05:22:19.7057933Z    |
2019-10-06T05:22:19.7058264Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7058329Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7082400Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7082937Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:78:8
2019-10-06T05:22:19.7083024Z    |
2019-10-06T05:22:19.7083024Z    |
2019-10-06T05:22:19.7083080Z LL |     if let Range { start: F, end } = F..|| true {}
2019-10-06T05:22:19.7083185Z    |
2019-10-06T05:22:19.7083185Z    |
2019-10-06T05:22:19.7083552Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7083852Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7083957Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7084357Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:86:8
2019-10-06T05:22:19.7084416Z    |
2019-10-06T05:22:19.7084416Z    |
2019-10-06T05:22:19.7084481Z LL |     if let Range { start: true, end } = t..&&false {}
2019-10-06T05:22:19.7084587Z    |
2019-10-06T05:22:19.7084587Z    |
2019-10-06T05:22:19.7085014Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7085098Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7085188Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7085994Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:92:19
2019-10-06T05:22:19.7086070Z    |
2019-10-06T05:22:19.7086126Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7086126Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7086198Z    |                   ^^^^^^^^^^^^^^^
2019-10-06T05:22:19.7086247Z    |
2019-10-06T05:22:19.7086644Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7086726Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7086817Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7087155Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:96:12
2019-10-06T05:22:19.7087220Z    |
2019-10-06T05:22:19.7087220Z    |
2019-10-06T05:22:19.7087277Z LL |     while &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7087390Z    |
2019-10-06T05:22:19.7087390Z    |
2019-10-06T05:22:19.7087703Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7087779Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7087880Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7088200Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:99:12
2019-10-06T05:22:19.7088255Z    |
2019-10-06T05:22:19.7088255Z    |
2019-10-06T05:22:19.7088324Z LL |     while !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7088425Z    |
2019-10-06T05:22:19.7088425Z    |
2019-10-06T05:22:19.7088879Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7088961Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7089347Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7089778Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:100:12
2019-10-06T05:22:19.7089853Z    |
2019-10-06T05:22:19.7089853Z    |
2019-10-06T05:22:19.7089909Z LL |     while *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7090021Z    |
2019-10-06T05:22:19.7090021Z    |
2019-10-06T05:22:19.7090340Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7090412Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7090500Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7090820Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:102:12
2019-10-06T05:22:19.7090896Z    |
2019-10-06T05:22:19.7090896Z    |
2019-10-06T05:22:19.7091531Z LL |     while -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7091661Z    |
2019-10-06T05:22:19.7091661Z    |
2019-10-06T05:22:19.7091979Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7092212Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7092322Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7092688Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:110:12
2019-10-06T05:22:19.7092744Z    |
2019-10-06T05:22:19.7092744Z    |
2019-10-06T05:22:19.7092811Z LL |     while (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7092912Z    |
2019-10-06T05:22:19.7092912Z    |
2019-10-06T05:22:19.7093231Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7093308Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7093405Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7093726Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:114:19
2019-10-06T05:22:19.7093781Z    |
2019-10-06T05:22:19.7093781Z    |
2019-10-06T05:22:19.7093855Z LL |     while true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7093957Z    |
2019-10-06T05:22:19.7093957Z    |
2019-10-06T05:22:19.7094269Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7094342Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7094429Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7094761Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:115:20
2019-10-06T05:22:19.7094828Z    |
2019-10-06T05:22:19.7094828Z    |
2019-10-06T05:22:19.7094885Z LL |     while (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7095006Z    |
2019-10-06T05:22:19.7095006Z    |
2019-10-06T05:22:19.7095316Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7095391Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7095492Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7095814Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:116:28
2019-10-06T05:22:19.7095879Z    |
2019-10-06T05:22:19.7095879Z    |
2019-10-06T05:22:19.7095937Z LL |     while true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7096058Z    |
2019-10-06T05:22:19.7096058Z    |
2019-10-06T05:22:19.7096470Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7096544Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7096645Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7096999Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:117:28
2019-10-06T05:22:19.7097067Z    |
2019-10-06T05:22:19.7097067Z    |
2019-10-06T05:22:19.7097134Z LL |     while true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7097239Z    |
2019-10-06T05:22:19.7097239Z    |
2019-10-06T05:22:19.7097562Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7097625Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7097713Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7098048Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:120:15
2019-10-06T05:22:19.7098161Z    |
2019-10-06T05:22:19.7098161Z    |
2019-10-06T05:22:19.7098217Z LL |     while x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7098335Z    |
2019-10-06T05:22:19.7098335Z    |
2019-10-06T05:22:19.7098648Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7098832Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7098921Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7099607Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:123:18
2019-10-06T05:22:19.7099676Z    |
2019-10-06T05:22:19.7099676Z    |
2019-10-06T05:22:19.7099732Z LL |     while true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7099843Z    |
2019-10-06T05:22:19.7099843Z    |
2019-10-06T05:22:19.7100175Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7100243Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7100341Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7100660Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:125:14
2019-10-06T05:22:19.7100732Z    |
2019-10-06T05:22:19.7100732Z    |
2019-10-06T05:22:19.7100789Z LL |     while ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7100905Z    |
2019-10-06T05:22:19.7100905Z    |
2019-10-06T05:22:19.7101216Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7101280Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7101385Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7101713Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:127:12
2019-10-06T05:22:19.7101769Z    |
2019-10-06T05:22:19.7101769Z    |
2019-10-06T05:22:19.7101841Z LL |     while (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7101944Z    |
2019-10-06T05:22:19.7101944Z    |
2019-10-06T05:22:19.7102267Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7102340Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7102428Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7102755Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:131:11
2019-10-06T05:22:19.7102810Z    |
2019-10-06T05:22:19.7102810Z    |
2019-10-06T05:22:19.7102864Z LL |     while let Range { start: _, end: _ } = true..true && false {}
2019-10-06T05:22:19.7102984Z    |
2019-10-06T05:22:19.7102984Z    |
2019-10-06T05:22:19.7103421Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7103512Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7103599Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7103961Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:135:11
2019-10-06T05:22:19.7104041Z    |
2019-10-06T05:22:19.7104041Z    |
2019-10-06T05:22:19.7104095Z LL |     while let Range { start: _, end: _ } = true..true || false {}
2019-10-06T05:22:19.7104216Z    |
2019-10-06T05:22:19.7104216Z    |
2019-10-06T05:22:19.7104527Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7104593Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7104690Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7105016Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:142:11
2019-10-06T05:22:19.7105072Z    |
2019-10-06T05:22:19.7105072Z    |
2019-10-06T05:22:19.7105133Z LL |     while let Range { start: F, end } = F..|| true {}
2019-10-06T05:22:19.7105238Z    |
2019-10-06T05:22:19.7105238Z    |
2019-10-06T05:22:19.7105558Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7105732Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7105835Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7106191Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:150:11
2019-10-06T05:22:19.7106247Z    |
2019-10-06T05:22:19.7106247Z    |
2019-10-06T05:22:19.7106300Z LL |     while let Range { start: true, end } = t..&&false {}
2019-10-06T05:22:19.7106423Z    |
2019-10-06T05:22:19.7106423Z    |
2019-10-06T05:22:19.7106744Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7106821Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7106907Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7107233Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:156:22
2019-10-06T05:22:19.7107298Z    |
2019-10-06T05:22:19.7107356Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7107356Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7107414Z    |                      ^^^^^^^^^^^^^^^
2019-10-06T05:22:19.7107470Z    |
2019-10-06T05:22:19.7107779Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7107843Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7107939Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7108268Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:170:6
2019-10-06T05:22:19.7108335Z    |
2019-10-06T05:22:19.7108335Z    |
2019-10-06T05:22:19.7108389Z LL |     &let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7108489Z    |
2019-10-06T05:22:19.7108489Z    |
2019-10-06T05:22:19.7109178Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7109269Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7109375Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7109701Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:172:6
2019-10-06T05:22:19.7109757Z    |
2019-10-06T05:22:19.7109757Z    |
2019-10-06T05:22:19.7109826Z LL |     !let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7109923Z    |
2019-10-06T05:22:19.7109923Z    |
2019-10-06T05:22:19.7110213Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7110420Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7110515Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7110862Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:173:6
2019-10-06T05:22:19.7110927Z    |
2019-10-06T05:22:19.7110927Z    |
2019-10-06T05:22:19.7110978Z LL |     *let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7111086Z    |
2019-10-06T05:22:19.7111086Z    |
2019-10-06T05:22:19.7111374Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7111445Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7111528Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7111820Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:175:6
2019-10-06T05:22:19.7111881Z    |
2019-10-06T05:22:19.7111881Z    |
2019-10-06T05:22:19.7112169Z LL |     -let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7112275Z    |
2019-10-06T05:22:19.7112275Z    |
2019-10-06T05:22:19.7112561Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7112623Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7112820Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7113149Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:183:6
2019-10-06T05:22:19.7113202Z    |
2019-10-06T05:22:19.7113202Z    |
2019-10-06T05:22:19.7113262Z LL |     (let 0 = 0)?; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7113356Z    |
2019-10-06T05:22:19.7113356Z    |
2019-10-06T05:22:19.7113657Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7113729Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7113812Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7114121Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:187:13
2019-10-06T05:22:19.7114173Z    |
2019-10-06T05:22:19.7114173Z    |
2019-10-06T05:22:19.7114225Z LL |     true || let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7114345Z    |
2019-10-06T05:22:19.7114345Z    |
2019-10-06T05:22:19.7114631Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7114701Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7114782Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7115073Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:188:14
2019-10-06T05:22:19.7115137Z    |
2019-10-06T05:22:19.7115137Z    |
2019-10-06T05:22:19.7115200Z LL |     (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7115307Z    |
2019-10-06T05:22:19.7115307Z    |
2019-10-06T05:22:19.7115592Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7115652Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7115754Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7116046Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:189:22
2019-10-06T05:22:19.7116097Z    |
2019-10-06T05:22:19.7116097Z    |
2019-10-06T05:22:19.7116166Z LL |     true && (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7116266Z    |
2019-10-06T05:22:19.7116266Z    |
2019-10-06T05:22:19.7116564Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7116725Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7116834Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7117156Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:192:9
2019-10-06T05:22:19.7117209Z    |
2019-10-06T05:22:19.7117209Z    |
2019-10-06T05:22:19.7117273Z LL |     x = let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7117381Z    |
2019-10-06T05:22:19.7117381Z    |
2019-10-06T05:22:19.7117670Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7117744Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7117826Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7118128Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:194:12
2019-10-06T05:22:19.7118181Z    |
2019-10-06T05:22:19.7118181Z    |
2019-10-06T05:22:19.7118241Z LL |     true..(let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7118346Z    |
2019-10-06T05:22:19.7118346Z    |
2019-10-06T05:22:19.7118629Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7118690Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7118885Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7119506Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:195:8
2019-10-06T05:22:19.7119587Z    |
2019-10-06T05:22:19.7119587Z    |
2019-10-06T05:22:19.7119639Z LL |     ..(let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7119743Z    |
2019-10-06T05:22:19.7119743Z    |
2019-10-06T05:22:19.7120088Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7120151Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7120263Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7120559Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:196:6
2019-10-06T05:22:19.7120612Z    |
2019-10-06T05:22:19.7120612Z    |
2019-10-06T05:22:19.7120680Z LL |     (let 0 = 0)..; //~ ERROR `let` expressions are not supported here
2019-10-06T05:22:19.7120785Z    |
2019-10-06T05:22:19.7120785Z    |
2019-10-06T05:22:19.7121087Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7121148Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7121230Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7121535Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:198:6
2019-10-06T05:22:19.7121587Z    |
2019-10-06T05:22:19.7121587Z    |
2019-10-06T05:22:19.7121637Z LL |     (let Range { start: _, end: _ } = true..true || false);
2019-10-06T05:22:19.7121758Z    |
2019-10-06T05:22:19.7121758Z    |
2019-10-06T05:22:19.7122044Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7122119Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7122200Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7122500Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:202:6
2019-10-06T05:22:19.7122567Z    |
2019-10-06T05:22:19.7122613Z LL |     (let true = let true = true);
2019-10-06T05:22:19.7122613Z LL |     (let true = let true = true);
2019-10-06T05:22:19.7122663Z    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-06T05:22:19.7122723Z    |
2019-10-06T05:22:19.7123010Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T05:22:19.7123071Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T05:22:19.7123304Z error: `let` expressions are not supported here
2019-10-06T05:22:19.7123650Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:202:17
2019-10-06T05:22:19.7123705Z    |
2019-10-06T05:22:19.7123769Z LL |     (let true = let true = true);
---
2019-10-06T05:22:20.3002565Z test result: FAILED. 9064 passed; 2 failed; 38 ignored; 0 measured; 0 filtered out
2019-10-06T05:22:20.3002613Z 
2019-10-06T05:22:20.3002643Z 
2019-10-06T05:22:20.3002688Z 
2019-10-06T05:22:20.3004319Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-10-06T05:22:20.3004623Z 
2019-10-06T05:22:20.3004656Z 
2019-10-06T05:22:20.3004705Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-10-06T05:22:20.3004763Z Build completed unsuccessfully in 1:07:30
2019-10-06T05:22:20.3004763Z Build completed unsuccessfully in 1:07:30
2019-10-06T05:22:20.3005116Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:537:22
2019-10-06T05:22:20.3005184Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-10-06T05:22:20.3005255Z == clock drift check ==
2019-10-06T05:22:20.3005409Z   local time: Sun Oct  6 05:22:19 UTC 2019
2019-10-06T05:22:20.3005476Z   network time: Sun, 06 Oct 2019 05:22:19 GMT
2019-10-06T05:22:20.3005530Z == end clock drift check ==
2019-10-06T05:22:20.9545901Z ##[error]Bash exited with code '1'.
2019-10-06T05:22:20.9597930Z ##[section]Starting: Checkout
2019-10-06T05:22:20.9600457Z ==============================================================================
2019-10-06T05:22:20.9600541Z Task         : Get sources
2019-10-06T05:22:20.9600595Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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)

Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
@rust-highfive

This comment was marked as resolved.

Copy link
Collaborator

rust-highfive commented Oct 6, 2019

The job x86_64-gnu-llvm-6.0 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.
2019-10-06T09:13:14.3446736Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-10-06T09:13:14.3630369Z ##[command]git config gc.auto 0
2019-10-06T09:13:14.3707199Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-10-06T09:13:14.3769595Z ##[command]git config --get-all http.proxy
2019-10-06T09:13:14.3916478Z ##[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/65150/merge:refs/remotes/pull/65150/merge
---
2019-10-06T10:18:14.7826374Z .................................................................................................... 1500/9109
2019-10-06T10:18:22.0968297Z .................................................................................................... 1600/9109
2019-10-06T10:18:31.8515125Z .................................................................................................... 1700/9109
2019-10-06T10:18:41.6677943Z ........i...............i........................................................................... 1800/9109
2019-10-06T10:18:49.2465529Z ...................................................................................................i 1900/9109
2019-10-06T10:19:06.2143983Z iiii................................................................................................ 2000/9109
2019-10-06T10:19:15.6257581Z .................................................................................................... 2200/9109
2019-10-06T10:19:18.4681641Z .................................................................................................... 2300/9109
2019-10-06T10:19:25.1656868Z .................................................................................................... 2400/9109
2019-10-06T10:19:31.1146722Z .................................................................................................... 2500/9109
---
2019-10-06T10:22:35.1518965Z ........................................................................................i........... 4700/9109
2019-10-06T10:22:43.4193831Z ....i............................................................................................... 4800/9109
2019-10-06T10:22:54.5356554Z .................................................................................................... 4900/9109
2019-10-06T10:23:00.6503144Z .................................................................................................... 5000/9109
2019-10-06T10:23:13.5208656Z ..................................................................................ii.ii............. 5100/9109
2019-10-06T10:23:23.4770771Z .................................................................................................... 5300/9109
2019-10-06T10:23:34.2090909Z .................................................................................................... 5400/9109
2019-10-06T10:23:41.4356551Z ................................................i................................................... 5500/9109
2019-10-06T10:23:48.8634046Z .................................................................................................... 5600/9109
2019-10-06T10:23:48.8634046Z .................................................................................................... 5600/9109
2019-10-06T10:23:59.8440687Z .................................................................................................... 5700/9109
2019-10-06T10:24:08.2722677Z .............................................ii...i..ii...........i................................. 5800/9109
2019-10-06T10:24:35.4016827Z .................................................................................................... 6000/9109
2019-10-06T10:24:45.1750114Z .................................................................................................... 6100/9109
2019-10-06T10:24:45.1750114Z .................................................................................................... 6100/9109
2019-10-06T10:24:57.0056056Z ...................................................i..ii............................................ 6200/9109
2019-10-06T10:25:23.0807196Z .................................................................................................... 6400/9109
2019-10-06T10:25:25.3999098Z ...........i........................................................................................ 6500/9109
2019-10-06T10:25:27.7952151Z ....................................................................................i............... 6600/9109
2019-10-06T10:25:30.7267496Z .................................................................................................... 6700/9109
---
2019-10-06T10:29:55.0283372Z 
2019-10-06T10:29:55.0283552Z 73 error[E0308]: mismatched types
2019-10-06T10:29:55.0283963Z 74   --> $DIR/if-no-match-bindings.rs:26:11
2019-10-06T10:29:55.0284175Z 75    |
2019-10-06T10:29:55.0284514Z - 26 |     while &true {}
2019-10-06T10:29:55.0284689Z + LL |     while &true {}
2019-10-06T10:29:55.0285012Z 78    |           |
2019-10-06T10:29:55.0285012Z 78    |           |
2019-10-06T10:29:55.0285156Z 79    |           expected bool, found &bool
2019-10-06T10:29:55.0285434Z 85 error[E0308]: mismatched types
2019-10-06T10:29:55.0285784Z 86   --> $DIR/if-no-match-bindings.rs:27:11
2019-10-06T10:29:55.0285982Z 87    |
2019-10-06T10:29:55.0285982Z 87    |
2019-10-06T10:29:55.0286316Z - 27 |     while &mut true {}
2019-10-06T10:29:55.0287240Z + LL |     while &mut true {}
2019-10-06T10:29:55.0287712Z 90    |           |
2019-10-06T10:29:55.0287712Z 90    |           |
2019-10-06T10:29:55.0287877Z 91    |           expected bool, found &mut bool
2019-10-06T10:29:55.0288172Z 
2019-10-06T10:29:55.0288334Z The actual stderr differed from the expected stderr.
2019-10-06T10:29:55.0288911Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings/if-no-match-bindings.stderr
2019-10-06T10:29:55.0288911Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings/if-no-match-bindings.stderr
2019-10-06T10:29:55.0289414Z To update references, rerun the tests and pass the `--bless` flag
2019-10-06T10:29:55.0290185Z To only update this specific test, also pass `--test-args if/if-no-match-bindings.rs`
2019-10-06T10:29:55.0290584Z error: 1 errors occurred comparing output.
2019-10-06T10:29:55.0290747Z status: exit code: 1
2019-10-06T10:29:55.0290747Z status: exit code: 1
2019-10-06T10:29:55.0292102Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/if/if-no-match-bindings.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/if-no-match-bindings/auxiliary" "-A" "unused"
2019-10-06T10:29:55.0292771Z ------------------------------------------
2019-10-06T10:29:55.0292934Z 
2019-10-06T10:29:55.0293292Z ------------------------------------------
2019-10-06T10:29:55.0293492Z stderr:
2019-10-06T10:29:55.0293492Z stderr:
2019-10-06T10:29:55.0293824Z ------------------------------------------
2019-10-06T10:29:55.0293998Z error[E0308]: mismatched types
2019-10-06T10:29:55.0294373Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:18:8
2019-10-06T10:29:55.0294551Z    |
2019-10-06T10:29:55.0294717Z LL |     if b_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0294998Z    |        |
2019-10-06T10:29:55.0294998Z    |        |
2019-10-06T10:29:55.0295152Z    |        expected bool, found &bool
2019-10-06T10:29:55.0295296Z    |        help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T10:29:55.0295609Z    = note: expected type `bool`
2019-10-06T10:29:55.0295751Z               found type `&bool`
2019-10-06T10:29:55.0295870Z 
2019-10-06T10:29:55.0296024Z error[E0308]: mismatched types
2019-10-06T10:29:55.0296024Z error[E0308]: mismatched types
2019-10-06T10:29:55.0297334Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:19:8
2019-10-06T10:29:55.0297630Z    |
2019-10-06T10:29:55.0297823Z LL |     if b_mut_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0298145Z    |        |
2019-10-06T10:29:55.0298145Z    |        |
2019-10-06T10:29:55.0298323Z    |        expected bool, found &mut bool
2019-10-06T10:29:55.0298488Z    |        help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T10:29:55.0298822Z    = note: expected type `bool`
2019-10-06T10:29:55.0298983Z               found type `&mut bool`
2019-10-06T10:29:55.0299118Z 
2019-10-06T10:29:55.0299296Z error[E0308]: mismatched types
2019-10-06T10:29:55.0299296Z error[E0308]: mismatched types
2019-10-06T10:29:55.0299717Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:20:8
2019-10-06T10:29:55.0299918Z    |
2019-10-06T10:29:55.0300112Z LL |     if &true {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0300430Z    |        |
2019-10-06T10:29:55.0300430Z    |        |
2019-10-06T10:29:55.0300607Z    |        expected bool, found &bool
2019-10-06T10:29:55.0300781Z    |        help: consider dereferencing the borrow: `*&true`
2019-10-06T10:29:55.0301113Z    = note: expected type `bool`
2019-10-06T10:29:55.0301271Z               found type `&bool`
2019-10-06T10:29:55.0301404Z 
2019-10-06T10:29:55.0301602Z error[E0308]: mismatched types
2019-10-06T10:29:55.0301602Z error[E0308]: mismatched types
2019-10-06T10:29:55.0302335Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:21:8
2019-10-06T10:29:55.0302534Z    |
2019-10-06T10:29:55.0302679Z LL |     if &mut true {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0302976Z    |        |
2019-10-06T10:29:55.0302976Z    |        |
2019-10-06T10:29:55.0303117Z    |        expected bool, found &mut bool
2019-10-06T10:29:55.0303271Z    |        help: consider dereferencing the borrow: `*&mut true`
2019-10-06T10:29:55.0303562Z    = note: expected type `bool`
2019-10-06T10:29:55.0303699Z               found type `&mut bool`
2019-10-06T10:29:55.0303835Z 
2019-10-06T10:29:55.0304160Z error[E0308]: mismatched types
2019-10-06T10:29:55.0304160Z error[E0308]: mismatched types
2019-10-06T10:29:55.0304561Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:24:11
2019-10-06T10:29:55.0309268Z    |
2019-10-06T10:29:55.0309332Z LL |     while b_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0309443Z    |           |
2019-10-06T10:29:55.0309443Z    |           |
2019-10-06T10:29:55.0309490Z    |           expected bool, found &bool
2019-10-06T10:29:55.0309539Z    |           help: consider dereferencing the borrow: `*b_ref()`
2019-10-06T10:29:55.0309645Z    = note: expected type `bool`
2019-10-06T10:29:55.0309689Z               found type `&bool`
2019-10-06T10:29:55.0309719Z 
2019-10-06T10:29:55.0309780Z error[E0308]: mismatched types
2019-10-06T10:29:55.0309780Z error[E0308]: mismatched types
2019-10-06T10:29:55.0310325Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:25:11
2019-10-06T10:29:55.0310390Z    |
2019-10-06T10:29:55.0310437Z LL |     while b_mut_ref() {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0310557Z    |           |
2019-10-06T10:29:55.0310557Z    |           |
2019-10-06T10:29:55.0310603Z    |           expected bool, found &mut bool
2019-10-06T10:29:55.0310672Z    |           help: consider dereferencing the borrow: `*b_mut_ref()`
2019-10-06T10:29:55.0310760Z    = note: expected type `bool`
2019-10-06T10:29:55.0310823Z               found type `&mut bool`
2019-10-06T10:29:55.0310856Z 
2019-10-06T10:29:55.0310898Z error[E0308]: mismatched types
2019-10-06T10:29:55.0310898Z error[E0308]: mismatched types
2019-10-06T10:29:55.0311186Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:26:11
2019-10-06T10:29:55.0311254Z    |
2019-10-06T10:29:55.0311301Z LL |     while &true {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0311408Z    |           |
2019-10-06T10:29:55.0311408Z    |           |
2019-10-06T10:29:55.0311461Z    |           expected bool, found &bool
2019-10-06T10:29:55.0311511Z    |           help: consider dereferencing the borrow: `*&true`
2019-10-06T10:29:55.0311614Z    = note: expected type `bool`
2019-10-06T10:29:55.0311666Z               found type `&bool`
2019-10-06T10:29:55.0311694Z 
2019-10-06T10:29:55.0311752Z error[E0308]: mismatched types
2019-10-06T10:29:55.0311752Z error[E0308]: mismatched types
2019-10-06T10:29:55.0312002Z   --> /checkout/src/test/ui/if/if-no-match-bindings.rs:27:11
2019-10-06T10:29:55.0312050Z    |
2019-10-06T10:29:55.0312113Z LL |     while &mut true {} //~ ERROR mismatched types [E0308]
2019-10-06T10:29:55.0312203Z    |           |
2019-10-06T10:29:55.0312203Z    |           |
2019-10-06T10:29:55.0312248Z    |           expected bool, found &mut bool
2019-10-06T10:29:55.0312316Z    |           help: consider dereferencing the borrow: `*&mut true`
2019-10-06T10:29:55.0312403Z    = note: expected type `bool`
2019-10-06T10:29:55.0312473Z               found type `&mut bool`
2019-10-06T10:29:55.0312503Z 
2019-10-06T10:29:55.0312546Z error: aborting due to 8 previous errors
---
2019-10-06T10:29:55.0313468Z 
2019-10-06T10:29:55.0313700Z ---- [ui] ui/rfc-2497-if-let-chains/disallowed-positions.rs stdout ----
2019-10-06T10:29:55.0313743Z diff of stderr:
2019-10-06T10:29:55.0313769Z 
2019-10-06T10:29:55.0313828Z 513 LL | #![feature(let_chains)] // Avoid inflating `.stderr` with overzealous gates in this test.
2019-10-06T10:29:55.0313921Z 515 
2019-10-06T10:29:55.0314146Z - warning: unnecessary parentheses around `if` condition
2019-10-06T10:29:55.0314341Z -   --> $DIR/disallowed-positions.rs:51:8
2019-10-06T10:29:55.0314502Z -    |
2019-10-06T10:29:55.0314502Z -    |
2019-10-06T10:29:55.0314708Z - LL |     if (true || let 0 = 0) {}
2019-10-06T10:29:55.0314926Z -    |        ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0315287Z -    = note: `#[warn(unused_parens)]` on by default
2019-10-06T10:29:55.0315598Z - 
2019-10-06T10:29:55.0315805Z - warning: unnecessary parentheses around `while` condition
2019-10-06T10:29:55.0316001Z -   --> $DIR/disallowed-positions.rs:115:11
2019-10-06T10:29:55.0316001Z -   --> $DIR/disallowed-positions.rs:115:11
2019-10-06T10:29:55.0316182Z -    |
2019-10-06T10:29:55.0316738Z - LL |     while (true || let 0 = 0) {}
2019-10-06T10:29:55.0317075Z -    |           ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0317280Z - 
2019-10-06T10:29:55.0317519Z - wrning: unnecessary parentheses around `let` head expression
2019-10-06T10:29:55.0317925Z -    |
2019-10-06T10:29:55.0317925Z -    |
2019-10-06T10:29:55.0318191Z - LL |     if let Range { start: _, end: _ } = (true..true || false) { }
2019-10-06T10:29:55.0318619Z -    |                                         ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0319143Z - 
2019-10-06T10:29:55.0319454Z - warning: unnecessary parentheses around `let` head expression
2019-10-06T10:29:55.0320033Z -    |
2019-10-06T10:29:55.0320033Z -    |
2019-10-06T10:29:55.0320397Z - LL |     if let Range { start: _, end: _ } = (true..true && false) { }
2019-10-06T10:29:55.0320776Z -    |                                         ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0320959Z - 
2019-10-06T10:29:55.0321207Z - warning: unnecessary parentheses around `let` head expression
2019-10-06T10:29:55.0321615Z -    |
2019-10-06T10:29:55.0321615Z -    |
2019-10-06T10:29:55.0321874Z - LL |     while let Range { start: _, end: _ } = (true..true || false) { }
2019-10-06T10:29:55.0322162Z -    |                                            ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0322348Z - 
2019-10-06T10:29:55.0322596Z - warning: unnecessary parentheses around `let` head expression
2019-10-06T10:29:55.0323018Z -    |
2019-10-06T10:29:55.0323018Z -    |
2019-10-06T10:29:55.0323265Z - LL |     while let Range { start: _, end: _ } = (true..true && false) { }
2019-10-06T10:29:55.0323563Z -    |                                            ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
2019-10-06T10:29:55.0323793Z 554 error[E0308]: mismatched types
2019-10-06T10:29:55.0324034Z 555   --> $DIR/disallowed-positions.rs:32:8
2019-10-06T10:29:55.0324081Z 556    |
2019-10-06T10:29:55.0324110Z 
2019-10-06T10:29:55.0324110Z 
2019-10-06T10:29:55.0324242Z 
2019-10-06T10:29:55.0324303Z The actual stderr differed from the expected stderr.
2019-10-06T10:29:55.0324618Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions/disallowed-positions.stderr
2019-10-06T10:29:55.0324867Z To update references, rerun the tests and pass the `--bless` flag
2019-10-06T10:29:55.0325169Z To only update this specific test, also pass `--test-args rfc-2497-if-let-chains/disallowed-positions.rs`
2019-10-06T10:29:55.0325256Z error: 1 errors occurred comparing output.
2019-10-06T10:29:55.0325315Z status: exit code: 1
2019-10-06T10:29:55.0325315Z status: exit code: 1
2019-10-06T10:29:55.0326071Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/rfc-2497-if-let-chains/disallowed-positions/auxiliary" "-A" "unused"
2019-10-06T10:29:55.0326804Z ------------------------------------------
2019-10-06T10:29:55.0326851Z 
2019-10-06T10:29:55.0327161Z ------------------------------------------
2019-10-06T10:29:55.0327383Z stderr:
2019-10-06T10:29:55.0327383Z stderr:
2019-10-06T10:29:55.0327639Z ------------------------------------------
2019-10-06T10:29:55.0327713Z error: expected one of `,` or `>`, found `&&`
2019-10-06T10:29:55.0328034Z    |
2019-10-06T10:29:55.0328034Z    |
2019-10-06T10:29:55.0328102Z LL |         true && let 1 = 1 //~ ERROR expected one of `,` or `>`, found `&&`
2019-10-06T10:29:55.0328155Z    |              ^^ expected one of `,` or `>` here
2019-10-06T10:29:55.0328232Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0328512Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:32:9
2019-10-06T10:29:55.0328565Z    |
2019-10-06T10:29:55.0328565Z    |
2019-10-06T10:29:55.0328718Z LL |     if &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0328842Z    |
2019-10-06T10:29:55.0328842Z    |
2019-10-06T10:29:55.0329149Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0329237Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0329319Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0330049Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:35:9
2019-10-06T10:29:55.0330133Z    |
2019-10-06T10:29:55.0330133Z    |
2019-10-06T10:29:55.0330176Z LL |     if !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0330270Z    |
2019-10-06T10:29:55.0330270Z    |
2019-10-06T10:29:55.0330500Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0330564Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0330649Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0330878Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:36:9
2019-10-06T10:29:55.0330929Z    |
2019-10-06T10:29:55.0330929Z    |
2019-10-06T10:29:55.0330989Z LL |     if *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0331070Z    |
2019-10-06T10:29:55.0331070Z    |
2019-10-06T10:29:55.0331561Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0331617Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0331693Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0332084Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:38:9
2019-10-06T10:29:55.0332134Z    |
2019-10-06T10:29:55.0332134Z    |
2019-10-06T10:29:55.0332414Z LL |     if -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0332532Z    |
2019-10-06T10:29:55.0332532Z    |
2019-10-06T10:29:55.0332806Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0332890Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0332972Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0333256Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:46:9
2019-10-06T10:29:55.0333329Z    |
2019-10-06T10:29:55.0333329Z    |
2019-10-06T10:29:55.0333380Z LL |     if (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0333491Z    |
2019-10-06T10:29:55.0333491Z    |
2019-10-06T10:29:55.0333768Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0333828Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0333933Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0334276Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:50:16
2019-10-06T10:29:55.0334346Z    |
2019-10-06T10:29:55.0334346Z    |
2019-10-06T10:29:55.0334543Z LL |     if true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0334637Z    |
2019-10-06T10:29:55.0334637Z    |
2019-10-06T10:29:55.0335274Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0335326Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0335410Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0335645Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:51:17
2019-10-06T10:29:55.0335689Z    |
2019-10-06T10:29:55.0335689Z    |
2019-10-06T10:29:55.0335749Z LL |     if (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0335919Z    |
2019-10-06T10:29:55.0335919Z    |
2019-10-06T10:29:55.0360910Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0361068Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0361167Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0361503Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:52:25
2019-10-06T10:29:55.0361555Z    |
2019-10-06T10:29:55.0361555Z    |
2019-10-06T10:29:55.0361604Z LL |     if true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0361712Z    |
2019-10-06T10:29:55.0361712Z    |
2019-10-06T10:29:55.0361956Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0362029Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0362113Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0362360Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:53:25
2019-10-06T10:29:55.0362424Z    |
2019-10-06T10:29:55.0362424Z    |
2019-10-06T10:29:55.0362480Z LL |     if true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0362583Z    |
2019-10-06T10:29:55.0362583Z    |
2019-10-06T10:29:55.0362823Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0362877Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0362965Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0363207Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:56:12
2019-10-06T10:29:55.0363252Z    |
2019-10-06T10:29:55.0363252Z    |
2019-10-06T10:29:55.0363322Z LL |     if x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0363406Z    |
2019-10-06T10:29:55.0363406Z    |
2019-10-06T10:29:55.0363763Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0363822Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0363888Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0364135Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:59:15
2019-10-06T10:29:55.0364177Z    |
2019-10-06T10:29:55.0364177Z    |
2019-10-06T10:29:55.0364220Z LL |     if true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0364315Z    |
2019-10-06T10:29:55.0364315Z    |
2019-10-06T10:29:55.0364537Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0364722Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0364916Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0365186Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:61:11
2019-10-06T10:29:55.0365347Z    |
2019-10-06T10:29:55.0365347Z    |
2019-10-06T10:29:55.0365610Z LL |     if ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0365724Z    |
2019-10-06T10:29:55.0365724Z    |
2019-10-06T10:29:55.0366027Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0366084Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0366180Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0366716Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:63:9
2019-10-06T10:29:55.0366843Z    |
2019-10-06T10:29:55.0366843Z    |
2019-10-06T10:29:55.0366898Z LL |     if (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0367169Z    |
2019-10-06T10:29:55.0367169Z    |
2019-10-06T10:29:55.0367559Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0367621Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0367734Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0368023Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:67:8
2019-10-06T10:29:55.0368074Z    |
2019-10-06T10:29:55.0368074Z    |
2019-10-06T10:29:55.0368140Z LL |     if let Range { start: _, end: _ } = true..true && false {}
2019-10-06T10:29:55.0368241Z    |
2019-10-06T10:29:55.0368241Z    |
2019-10-06T10:29:55.0368518Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0368597Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0368687Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0368989Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:71:8
2019-10-06T10:29:55.0369042Z    |
2019-10-06T10:29:55.0369042Z    |
2019-10-06T10:29:55.0369091Z LL |     if let Range { start: _, end: _ } = true..true || false {}
2019-10-06T10:29:55.0369216Z    |
2019-10-06T10:29:55.0369216Z    |
2019-10-06T10:29:55.0369491Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0369566Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0369648Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0370241Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:78:8
2019-10-06T10:29:55.0370302Z    |
2019-10-06T10:29:55.0370302Z    |
2019-10-06T10:29:55.0370343Z LL |     if let Range { start: F, end } = F..|| true {}
2019-10-06T10:29:55.0370451Z    |
2019-10-06T10:29:55.0370451Z    |
2019-10-06T10:29:55.0370678Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0370729Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0370819Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0371048Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:86:8
2019-10-06T10:29:55.0371090Z    |
2019-10-06T10:29:55.0371090Z    |
2019-10-06T10:29:55.0371147Z LL |     if let Range { start: true, end } = t..&&false {}
2019-10-06T10:29:55.0371226Z    |
2019-10-06T10:29:55.0371226Z    |
2019-10-06T10:29:55.0371466Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0371517Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0371590Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0371837Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:92:19
2019-10-06T10:29:55.0371880Z    |
2019-10-06T10:29:55.0371924Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0371924Z LL |     if let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0372088Z    |                   ^^^^^^^^^^^^^^^
2019-10-06T10:29:55.0372125Z    |
2019-10-06T10:29:55.0372374Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0372440Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0372507Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0372732Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:96:12
2019-10-06T10:29:55.0372793Z    |
2019-10-06T10:29:55.0372793Z    |
2019-10-06T10:29:55.0372835Z LL |     while &let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0373002Z    |
2019-10-06T10:29:55.0373002Z    |
2019-10-06T10:29:55.0373254Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0373304Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0373397Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0373629Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:99:12
2019-10-06T10:29:55.0373689Z    |
2019-10-06T10:29:55.0373689Z    |
2019-10-06T10:29:55.0373732Z LL |     while !let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0373809Z    |
2019-10-06T10:29:55.0373809Z    |
2019-10-06T10:29:55.0374049Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0374099Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0374189Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0374419Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:100:12
2019-10-06T10:29:55.0374461Z    |
2019-10-06T10:29:55.0374461Z    |
2019-10-06T10:29:55.0374518Z LL |     while *let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0374602Z    |
2019-10-06T10:29:55.0374602Z    |
2019-10-06T10:29:55.0374823Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0374888Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0374954Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0375197Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:102:12
2019-10-06T10:29:55.0375241Z    |
2019-10-06T10:29:55.0375241Z    |
2019-10-06T10:29:55.0375460Z LL |     while -let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0375558Z    |
2019-10-06T10:29:55.0375558Z    |
2019-10-06T10:29:55.0376025Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0376080Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0376856Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0377213Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:110:12
2019-10-06T10:29:55.0377286Z    |
2019-10-06T10:29:55.0377286Z    |
2019-10-06T10:29:55.0377336Z LL |     while (let 0 = 0)? {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0377446Z    |
2019-10-06T10:29:55.0377446Z    |
2019-10-06T10:29:55.0377699Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0377756Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0377852Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0378120Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:114:19
2019-10-06T10:29:55.0378168Z    |
2019-10-06T10:29:55.0378168Z    |
2019-10-06T10:29:55.0378234Z LL |     while true || let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0378469Z    |
2019-10-06T10:29:55.0378469Z    |
2019-10-06T10:29:55.0378775Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0378834Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0378910Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0379189Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:115:20
2019-10-06T10:29:55.0379238Z    |
2019-10-06T10:29:55.0379238Z    |
2019-10-06T10:29:55.0379288Z LL |     while (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0379399Z    |
2019-10-06T10:29:55.0379399Z    |
2019-10-06T10:29:55.0379844Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0380050Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0380233Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0380486Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:116:28
2019-10-06T10:29:55.0380546Z    |
2019-10-06T10:29:55.0380546Z    |
2019-10-06T10:29:55.0380591Z LL |     while true && (true || let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0380690Z    |
2019-10-06T10:29:55.0380690Z    |
2019-10-06T10:29:55.0380913Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0380963Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0381052Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0381282Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:117:28
2019-10-06T10:29:55.0381340Z    |
2019-10-06T10:29:55.0381340Z    |
2019-10-06T10:29:55.0381385Z LL |     while true || (true && let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0381473Z    |
2019-10-06T10:29:55.0381473Z    |
2019-10-06T10:29:55.0381712Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0381762Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0381844Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0382072Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:120:15
2019-10-06T10:29:55.0382115Z    |
2019-10-06T10:29:55.0382115Z    |
2019-10-06T10:29:55.0382173Z LL |     while x = let 0 = 0 {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0382260Z    |
2019-10-06T10:29:55.0382260Z    |
2019-10-06T10:29:55.0382482Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0382549Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0382622Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0382869Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:123:18
2019-10-06T10:29:55.0382912Z    |
2019-10-06T10:29:55.0382912Z    |
2019-10-06T10:29:55.0382955Z LL |     while true..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0383052Z    |
2019-10-06T10:29:55.0383052Z    |
2019-10-06T10:29:55.0383273Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0383338Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0383411Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0383637Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:125:14
2019-10-06T10:29:55.0383696Z    |
2019-10-06T10:29:55.0383696Z    |
2019-10-06T10:29:55.0383738Z LL |     while ..(let 0 = 0) {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0383916Z    |
2019-10-06T10:29:55.0383916Z    |
2019-10-06T10:29:55.0384163Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0384213Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0384297Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0384527Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:127:12
2019-10-06T10:29:55.0384569Z    |
2019-10-06T10:29:55.0384569Z    |
2019-10-06T10:29:55.0384629Z LL |     while (let 0 = 0).. {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0384780Z    |
2019-10-06T10:29:55.0384780Z    |
2019-10-06T10:29:55.0385050Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0385100Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0385174Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0385420Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:131:11
2019-10-06T10:29:55.0385462Z    |
2019-10-06T10:29:55.0385462Z    |
2019-10-06T10:29:55.0385503Z LL |     while let Range { start: _, end: _ } = true..true && false {}
2019-10-06T10:29:55.0385604Z    |
2019-10-06T10:29:55.0385604Z    |
2019-10-06T10:29:55.0385826Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0385892Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0385965Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0386705Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:135:11
2019-10-06T10:29:55.0386788Z    |
2019-10-06T10:29:55.0386788Z    |
2019-10-06T10:29:55.0386835Z LL |     while let Range { start: _, end: _ } = true..true || false {}
2019-10-06T10:29:55.0386959Z    |
2019-10-06T10:29:55.0386959Z    |
2019-10-06T10:29:55.0387266Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0387323Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0387418Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0387680Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:142:11
2019-10-06T10:29:55.0387745Z    |
2019-10-06T10:29:55.0387745Z    |
2019-10-06T10:29:55.0387793Z LL |     while let Range { start: F, end } = F..|| true {}
2019-10-06T10:29:55.0387894Z    |
2019-10-06T10:29:55.0387894Z    |
2019-10-06T10:29:55.0388166Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0388222Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0388323Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0388584Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:150:11
2019-10-06T10:29:55.0388633Z    |
2019-10-06T10:29:55.0388633Z    |
2019-10-06T10:29:55.0388696Z LL |     while let Range { start: true, end } = t..&&false {}
2019-10-06T10:29:55.0388791Z    |
2019-10-06T10:29:55.0388791Z    |
2019-10-06T10:29:55.0389043Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0389118Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0389203Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0389482Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:156:22
2019-10-06T10:29:55.0389532Z    |
2019-10-06T10:29:55.0389582Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0389582Z LL |     while let true = let true = true {} //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0389793Z    |                      ^^^^^^^^^^^^^^^
2019-10-06T10:29:55.0389836Z    |
2019-10-06T10:29:55.0390121Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0390196Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0390274Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0390860Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:170:6
2019-10-06T10:29:55.0390919Z    |
2019-10-06T10:29:55.0390919Z    |
2019-10-06T10:29:55.0390961Z LL |     &let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0391156Z    |
2019-10-06T10:29:55.0391156Z    |
2019-10-06T10:29:55.0391414Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0391464Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0394198Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0394633Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:172:6
2019-10-06T10:29:55.0394680Z    |
2019-10-06T10:29:55.0394680Z    |
2019-10-06T10:29:55.0394748Z LL |     !let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0394825Z    |
2019-10-06T10:29:55.0394825Z    |
2019-10-06T10:29:55.0395072Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0395124Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0395189Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0395450Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:173:6
2019-10-06T10:29:55.0395492Z    |
2019-10-06T10:29:55.0395492Z    |
2019-10-06T10:29:55.0395533Z LL |     *let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0395634Z    |
2019-10-06T10:29:55.0395634Z    |
2019-10-06T10:29:55.0395858Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0395924Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0395991Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0399253Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:175:6
2019-10-06T10:29:55.0399364Z    |
2019-10-06T10:29:55.0399364Z    |
2019-10-06T10:29:55.0399711Z LL |     -let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0399824Z    |
2019-10-06T10:29:55.0399824Z    |
2019-10-06T10:29:55.0400098Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0400155Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0400248Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0400522Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:183:6
2019-10-06T10:29:55.0400571Z    |
2019-10-06T10:29:55.0400571Z    |
2019-10-06T10:29:55.0400635Z LL |     (let 0 = 0)?; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0400722Z    |
2019-10-06T10:29:55.0400722Z    |
2019-10-06T10:29:55.0400994Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0401051Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0401252Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0401634Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:187:13
2019-10-06T10:29:55.0401680Z    |
2019-10-06T10:29:55.0401680Z    |
2019-10-06T10:29:55.0401724Z LL |     true || let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0402012Z    |
2019-10-06T10:29:55.0402012Z    |
2019-10-06T10:29:55.0402393Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0402462Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0402529Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0402894Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:188:14
2019-10-06T10:29:55.0402941Z    |
2019-10-06T10:29:55.0402941Z    |
2019-10-06T10:29:55.0402986Z LL |     (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0403088Z    |
2019-10-06T10:29:55.0403088Z    |
2019-10-06T10:29:55.0403418Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0403479Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0403570Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0403963Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:189:22
2019-10-06T10:29:55.0404027Z    |
2019-10-06T10:29:55.0404027Z    |
2019-10-06T10:29:55.0404076Z LL |     true && (true || let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0404243Z    |
2019-10-06T10:29:55.0404243Z    |
2019-10-06T10:29:55.0404488Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0404542Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0404633Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0404892Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:192:9
2019-10-06T10:29:55.0404939Z    |
2019-10-06T10:29:55.0404939Z    |
2019-10-06T10:29:55.0405006Z LL |     x = let 0 = 0; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0405093Z    |
2019-10-06T10:29:55.0405093Z    |
2019-10-06T10:29:55.0405364Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0405419Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0405493Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0405763Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:194:12
2019-10-06T10:29:55.0405809Z    |
2019-10-06T10:29:55.0405809Z    |
2019-10-06T10:29:55.0405855Z LL |     true..(let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0406375Z    |
2019-10-06T10:29:55.0406375Z    |
2019-10-06T10:29:55.0406698Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0406790Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0406868Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0407142Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:195:8
2019-10-06T10:29:55.0407210Z    |
2019-10-06T10:29:55.0407210Z    |
2019-10-06T10:29:55.0407258Z LL |     ..(let 0 = 0); //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0407364Z    |
2019-10-06T10:29:55.0407364Z    |
2019-10-06T10:29:55.0407934Z    = note: only supported directly in conditions of `if`- and `while`-expressions
2019-10-06T10:29:55.0408000Z    = note: as well as when nested within `&&` and parenthesis in those conditions
2019-10-06T10:29:55.0408102Z error: `let` expressions are not supported here
2019-10-06T10:29:55.0409267Z   --> /checkout/src/test/ui/rfc-2497-if-let-chains/disallowed-positions.rs:196:6
2019-10-06T10:29:55.0409342Z    |
2019-10-06T10:29:55.0409342Z    |
2019-10-06T10:29:55.0409434Z LL |     (let 0 = 0)..; //~ ERROR `let` expressions are not supported here
2019-10-06T10:29:55.0409522Z    |
2019-10-06T10:29:55.0409522Z    |
2019-10-06T10:29:55.0409912Z    = note: only supported directly in conditions of `if`- and `while`-expressions
---
2019-10-06T10:29:55.0489902Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:537:22
2019-10-06T10:29:55.0490217Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-10-06T10:29:55.0490285Z 
2019-10-06T10:29:55.0490313Z 
2019-10-06T10:29:55.0492282Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-10-06T10:29:55.0492618Z 
2019-10-06T10:29:55.0492649Z 
2019-10-06T10:29:55.0492719Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-10-06T10:29:55.0492770Z Build completed unsuccessfully in 1:09:17
2019-10-06T10:29:55.0492770Z Build completed unsuccessfully in 1:09:17
2019-10-06T10:29:55.0493164Z == clock drift check ==
2019-10-06T10:29:55.0493325Z   local time: Sun Oct  6 10:29:55 UTC 2019
2019-10-06T10:29:55.2083775Z   network time: Sun, 06 Oct 2019 10:29:55 GMT
2019-10-06T10:29:55.2083951Z == end clock drift check ==
2019-10-06T10:29:56.6525278Z ##[error]Bash exited with code '1'.
2019-10-06T10:29:56.6597573Z ##[section]Starting: Checkout
2019-10-06T10:29:56.6600150Z ==============================================================================
2019-10-06T10:29:56.6600256Z Task         : Get sources
2019-10-06T10:29:56.6600310Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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)

Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
@csmoe

This comment has been minimized.

Copy link
Member

csmoe commented Oct 6, 2019

@rust-highfive rust-highfive assigned estebank and unassigned Aaron1011 Oct 6, 2019
| ^^^^^
| |
| expected bool, found &bool
| help: consider dereferencing the borrow: `*&true`

This comment has been minimized.

Copy link
@estebank

estebank Oct 6, 2019

Contributor

This tells me that suggest_ref_or_into needs to check for literal borrows before suggesting, but that can be done in a subsequent PR.

@estebank

This comment has been minimized.

Copy link
Contributor

estebank commented Oct 6, 2019

@bors r+

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Oct 6, 2019

📌 Commit bbb69d1 has been approved by estebank

@Aaron1011

This comment has been minimized.

Copy link
Contributor

Aaron1011 commented Oct 6, 2019

@XiangQingW: Note that I'm not a member of the Rust team, so requesting me as a reviewer won't be very useful 😄

Centril added a commit to Centril/rust that referenced this pull request Oct 7, 2019
Suggest dereferencing boolean reference when used in 'if' or 'while'

Implements rust-lang#64557
@Centril Centril referenced this pull request Oct 7, 2019
bors added a commit that referenced this pull request Oct 7, 2019
Rollup of 6 pull requests

Successful merges:

 - #64739 (Remove as_str if the type is already &str)
 - #65077 (Note when a mutable trait object is needed)
 - #65120 (Correctly estimate the required space for string in `StyledBuffer::prepend`)
 - #65150 (Suggest dereferencing boolean reference when used in 'if' or 'while')
 - #65164 (Add long error explanation for E0566)
 - #65173 (Update reference)

Failed merges:

r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Oct 8, 2019
Suggest dereferencing boolean reference when used in 'if' or 'while'

Implements rust-lang#64557
@Centril Centril referenced this pull request Oct 8, 2019
bors added a commit that referenced this pull request Oct 8, 2019
Rollup of 8 pull requests

Successful merges:

 - #64726 (rewrite documentation for unimplemented! to clarify use)
 - #65040 (syntax: more cleanups in item and function signature parsing)
 - #65046 (Make `Cell::new` method come first in documentation)
 - #65098 (Add long error explanation for E0561)
 - #65150 (Suggest dereferencing boolean reference when used in 'if' or 'while')
 - #65154 (Fix const generic arguments not displaying in types mismatch diagnostic)
 - #65181 (fix bug in folding for constants)
 - #65187 (use 'invalid argument' for vxWorks)

Failed merges:

 - #65179 (Add long error explanation for E0567)

r? @ghost
@bors bors merged commit bbb69d1 into rust-lang:master Oct 8, 2019
4 checks passed
4 checks passed
pr Build #20191006.31 succeeded
Details
pr (Linux mingw-check) Linux mingw-check succeeded
Details
pr (Linux x86_64-gnu-llvm-6.0) Linux x86_64-gnu-llvm-6.0 succeeded
Details
pr (LinuxTools) LinuxTools succeeded
Details
@bors

This comment has been minimized.

Copy link
Contributor

bors commented Oct 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.