Skip to content

[format_args!] Warn on whitespace before the } in a format specifier #71158

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

Closed
wants to merge 4 commits into from
Closed

Conversation

strega-nil
Copy link
Contributor

Fixes #71088.

@rust-highfive
Copy link
Contributor

r? @dtolnay

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 15, 2020
@Centril
Copy link
Contributor

Centril commented Apr 15, 2020

Please also add a test in src/test/ui/lint exercising the lint.

@rust-highfive
Copy link
Contributor

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

Click to expand the log.
2020-04-15T00:52:16.0854236Z ========================== Starting Command Output ===========================
2020-04-15T00:52:16.0856408Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/8b041405-3ad2-4fb8-8070-50b7d26647b8.sh
2020-04-15T00:52:16.0856625Z 
2020-04-15T00:52:16.0860374Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-15T00:52:16.0877559Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-15T00:52:16.0881932Z Task         : Get sources
2020-04-15T00:52:16.0882446Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-15T00:52:16.0882719Z Version      : 1.0.0
2020-04-15T00:52:16.0882924Z Author       : Microsoft
---
2020-04-15T00:52:17.4281034Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-15T00:52:17.4290506Z ##[command]git config gc.auto 0
2020-04-15T00:52:17.4295772Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-15T00:52:17.4298032Z ##[command]git config --get-all http.proxy
2020-04-15T00:52:17.4303044Z ##[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/71158/merge:refs/remotes/pull/71158/merge
---
2020-04-15T00:54:24.1672671Z  ---> f58a2bb1e753
2020-04-15T00:54:24.1674547Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-7       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-15T00:54:24.1681605Z  ---> Using cache
2020-04-15T00:54:24.1682243Z  ---> d079cc6b6db8
2020-04-15T00:54:24.1684017Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-15T00:54:24.1691233Z  ---> 4183ca46ee56
2020-04-15T00:54:24.1691627Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-15T00:54:24.1696400Z  ---> Using cache
2020-04-15T00:54:24.1696640Z  ---> 69e7f8a2a2fb
---
2020-04-15T00:54:24.2058580Z Looks like docker image is the same as before, not uploading
2020-04-15T00:54:30.4487490Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-15T00:54:30.9647933Z [CI_JOB_NAME=x86_64-gnu-llvm-7]
2020-04-15T00:54:30.9649578Z == clock drift check ==
2020-04-15T00:54:30.9649942Z   local time: Wed Apr 15 00:54:30 UTC 2020
2020-04-15T00:54:30.9650374Z   network time: Wed, 15 Apr 2020 00:54:30 GMT
2020-04-15T00:54:30.9651027Z Starting sccache server...
2020-04-15T00:54:30.9651397Z configure: processing command line
2020-04-15T00:54:30.9651693Z configure: 
2020-04-15T00:54:30.9652299Z configure: rust.dist-src        := False
---
2020-04-15T00:58:48.6868675Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-15T00:58:49.8257141Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-15T00:58:51.0210404Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-15T00:58:52.0989914Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-15T00:58:59.1041076Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-15T00:59:01.0541957Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-15T00:59:04.5737457Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-15T00:59:07.8874298Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-15T00:59:15.5575175Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-15T01:17:22.5704523Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-15T01:17:23.9993961Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-15T01:17:25.5804082Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-15T01:17:26.5367237Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-15T01:17:35.8870887Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-15T01:17:37.7460196Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-15T01:17:41.9963212Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-15T01:17:46.4974652Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-15T01:17:56.3090588Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-15T01:38:49.5174905Z .................................................................................................... 1700/9895
2020-04-15T01:38:53.1475595Z .................................................................................................... 1800/9895
2020-04-15T01:39:00.1493369Z .................................................................................................... 1900/9895
2020-04-15T01:39:07.3400444Z ......i............................................................................................. 2000/9895
2020-04-15T01:39:12.5945861Z ................................................................................................iiii 2100/9895
2020-04-15T01:39:24.6522125Z i................................................................................................... 2200/9895
2020-04-15T01:39:31.4292345Z .................................................................................................... 2400/9895
2020-04-15T01:39:33.2830688Z .................................................................................................... 2500/9895
2020-04-15T01:39:38.1000570Z .................................................................................................... 2600/9895
2020-04-15T01:39:53.9092612Z .................................................................................................... 2700/9895
---
2020-04-15T01:42:08.3806044Z .................................................................F.................................. 5100/9895
2020-04-15T01:42:14.6835908Z .................................................................................................... 5200/9895
2020-04-15T01:42:18.5707100Z .................i.................................................................................. 5300/9895
2020-04-15T01:42:27.0888530Z .......i............................................................................................ 5400/9895
2020-04-15T01:42:31.6556051Z .......ii.ii........i...i........................................................................... 5500/9895
2020-04-15T01:42:38.2830662Z .....................................................i.............................................. 5700/9895
2020-04-15T01:42:46.7444151Z .........................................................................ii......................... 5800/9895
2020-04-15T01:42:52.2926646Z ............i....................................................................................... 5900/9895
2020-04-15T01:42:56.8264096Z .................................................................................................... 6000/9895
2020-04-15T01:42:56.8264096Z .................................................................................................... 6000/9895
2020-04-15T01:43:05.6790007Z .................................................................................................... 6100/9895
2020-04-15T01:43:14.8903328Z ......ii...i..ii...........i........................................................................ 6200/9895
2020-04-15T01:43:26.0606794Z .................................................................................................... 6400/9895
2020-04-15T01:43:28.7305194Z .................................................................................................... 6500/9895
2020-04-15T01:43:28.7305194Z .................................................................................................... 6500/9895
2020-04-15T01:43:38.5516094Z ....................................i..ii........................................................... 6600/9895
2020-04-15T01:43:56.2468111Z .................................................................................................... 6800/9895
2020-04-15T01:43:57.9033056Z ....................................i............................................................... 6900/9895
2020-04-15T01:43:59.6372057Z .................................................................................................... 7000/9895
2020-04-15T01:44:01.3523224Z ...........................................................................i........................ 7100/9895
---
2020-04-15T01:45:21.3794038Z .................................................................................................... 7800/9895
2020-04-15T01:45:24.8237383Z .................................................................................................... 7900/9895
2020-04-15T01:45:30.2247639Z .................................................................................................... 8000/9895
2020-04-15T01:45:35.5169028Z .........................................i.......................................................... 8100/9895
2020-04-15T01:45:43.3603198Z .........................................................................................iiiiii.iiii 8200/9895
2020-04-15T01:45:48.5778412Z i.i................................................................................................. 8300/9895
2020-04-15T01:45:59.7581531Z .................................................................................................... 8500/9895
2020-04-15T01:46:08.1155303Z .................................................................................................... 8600/9895
2020-04-15T01:46:19.8118590Z .................................................................................................... 8700/9895
2020-04-15T01:46:25.1865812Z .................................................................................................... 8800/9895
---
2020-04-15T01:47:58.6067695Z ---- [ui] ui/fmt/format-string-error-2.rs stdout ----
2020-04-15T01:47:58.6069291Z diff of stderr:
2020-04-15T01:47:58.6069655Z 
2020-04-15T01:47:58.6069835Z 131    |
2020-04-15T01:47:58.6070087Z 132    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6070457Z 133 
2020-04-15T01:47:58.6070944Z + warning: format string warning: expected `'}'`, found `'\n'`
2020-04-15T01:47:58.6071784Z +    |
2020-04-15T01:47:58.6072061Z + LL |     {asdf
2020-04-15T01:47:58.6072308Z +    |          ^ expected `}` in format string
2020-04-15T01:47:58.6072514Z +    |
2020-04-15T01:47:58.6072514Z +    |
2020-04-15T01:47:58.6072814Z +    = note: Placing whitespace before the `}` in a format specifier is now deprecated.
2020-04-15T01:47:58.6073142Z + 
2020-04-15T01:47:58.6073547Z 134 error: invalid format string: expected `'}'`, found `'a'`
2020-04-15T01:47:58.6082935Z 136    |
2020-04-15T01:47:58.6083127Z 
2020-04-15T01:47:58.6083127Z 
2020-04-15T01:47:58.6083348Z 147 LL |     println!("\t{}");
2020-04-15T01:47:58.6083746Z 149 
2020-04-15T01:47:58.6083746Z 149 
2020-04-15T01:47:58.6084236Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6084577Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6085419Z 152    |
2020-04-15T01:47:58.6085419Z 152    |
2020-04-15T01:47:58.6085625Z 153 LL |     println!("\x7B}\u{8} {", 1);
2020-04-15T01:47:58.6085819Z 
2020-04-15T01:47:58.6086197Z -    |                          -^ expected `'}'` in format string
2020-04-15T01:47:58.6086636Z +    |                          -^ expected `}` in format string
2020-04-15T01:47:58.6087264Z 156    |                          because of this opening brace
2020-04-15T01:47:58.6087489Z 157    |
2020-04-15T01:47:58.6087649Z 
2020-04-15T01:47:58.6087807Z 173    |
2020-04-15T01:47:58.6087807Z 173    |
2020-04-15T01:47:58.6088054Z 174    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6088644Z - error: aborting due to 18 previous errors
2020-04-15T01:47:58.6088644Z - error: aborting due to 18 previous errors
2020-04-15T01:47:58.6088922Z + error: aborting due to 18 previous errors; 1 warning emitted
2020-04-15T01:47:58.6089316Z 178 
2020-04-15T01:47:58.6089456Z 
2020-04-15T01:47:58.6089612Z 
2020-04-15T01:47:58.6089822Z The actual stderr differed from the expected stderr.
2020-04-15T01:47:58.6089822Z The actual stderr differed from the expected stderr.
2020-04-15T01:47:58.6090357Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2/format-string-error-2.stderr
2020-04-15T01:47:58.6090886Z To update references, rerun the tests and pass the `--bless` flag
2020-04-15T01:47:58.6091371Z To only update this specific test, also pass `--test-args fmt/format-string-error-2.rs`
2020-04-15T01:47:58.6091822Z error: 1 errors occurred comparing output.
2020-04-15T01:47:58.6092048Z status: exit code: 1
2020-04-15T01:47:58.6092048Z status: exit code: 1
2020-04-15T01:47:58.6093418Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/fmt/format-string-error-2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2" "-A" "unused" "-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/fmt/format-string-error-2/auxiliary"
2020-04-15T01:47:58.6094600Z ------------------------------------------
2020-04-15T01:47:58.6094792Z 
2020-04-15T01:47:58.6095127Z ------------------------------------------
2020-04-15T01:47:58.6095341Z stderr:
2020-04-15T01:47:58.6095341Z stderr:
2020-04-15T01:47:58.6095864Z ------------------------------------------
2020-04-15T01:47:58.6096167Z error: incorrect unicode escape sequence
2020-04-15T01:47:58.6096833Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:77:20
2020-04-15T01:47:58.6097160Z    |
2020-04-15T01:47:58.6097594Z LL |     println!("\x7B}\u8 {", 1);
2020-04-15T01:47:58.6098423Z    |                      |
2020-04-15T01:47:58.6098423Z    |                      |
2020-04-15T01:47:58.6098855Z    |                      help: format of unicode escape sequences uses braces: `\u{8}`
2020-04-15T01:47:58.6099227Z 
2020-04-15T01:47:58.6099765Z error: invalid format string: expected `'}'`, found `'a'`
2020-04-15T01:47:58.6100769Z    |
2020-04-15T01:47:58.6101024Z LL |     format!("{
2020-04-15T01:47:58.6101556Z    |              - because of this opening brace
2020-04-15T01:47:58.6101888Z LL |     a");
2020-04-15T01:47:58.6101888Z LL |     a");
2020-04-15T01:47:58.6102205Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6102486Z    |
2020-04-15T01:47:58.6102823Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6103130Z 
2020-04-15T01:47:58.6103662Z error: invalid format string: expected `'}'`, found `'b'`
2020-04-15T01:47:58.6104667Z    |
2020-04-15T01:47:58.6104922Z LL |     format!("{ \
2020-04-15T01:47:58.6105435Z    |              - because of this opening brace
2020-04-15T01:47:58.6105848Z LL | 
2020-04-15T01:47:58.6105848Z LL | 
2020-04-15T01:47:58.6106106Z LL |     b");
2020-04-15T01:47:58.6106421Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6106704Z    |
2020-04-15T01:47:58.6107036Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6107358Z 
2020-04-15T01:47:58.6107947Z error: invalid format string: expected `'}'`, found `'\\'`
2020-04-15T01:47:58.6109089Z    |
2020-04-15T01:47:58.6109089Z    |
2020-04-15T01:47:58.6109331Z LL |     format!(r#"{ \
2020-04-15T01:47:58.6109991Z    |                - ^ expected `}` in format string
2020-04-15T01:47:58.6110470Z    |                because of this opening brace
2020-04-15T01:47:58.6110676Z    |
2020-04-15T01:47:58.6110676Z    |
2020-04-15T01:47:58.6110938Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6111151Z 
2020-04-15T01:47:58.6112154Z error: invalid format string: expected `'}'`, found `'\\'`
2020-04-15T01:47:58.6113401Z    |
2020-04-15T01:47:58.6113401Z    |
2020-04-15T01:47:58.6113665Z LL |     format!(r#"{ \n
2020-04-15T01:47:58.6114198Z    |                - ^ expected `}` in format string
2020-04-15T01:47:58.6114890Z    |                because of this opening brace
2020-04-15T01:47:58.6115206Z    |
2020-04-15T01:47:58.6115206Z    |
2020-04-15T01:47:58.6115619Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6115942Z 
2020-04-15T01:47:58.6116466Z error: invalid format string: expected `'}'`, found `'e'`
2020-04-15T01:47:58.6117472Z    |
2020-04-15T01:47:58.6117731Z LL |     format!("{ \n
2020-04-15T01:47:58.6118245Z    |              - because of this opening brace
2020-04-15T01:47:58.6118577Z LL | \n
2020-04-15T01:47:58.6118577Z LL | \n
2020-04-15T01:47:58.6118827Z LL |     e");
2020-04-15T01:47:58.6119134Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6119433Z    |
2020-04-15T01:47:58.6119768Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6120074Z 
2020-04-15T01:47:58.6120608Z error: invalid format string: expected `'}'`, found `'a'`
2020-04-15T01:47:58.6126421Z    |
2020-04-15T01:47:58.6126727Z LL |     {
2020-04-15T01:47:58.6127367Z    |     - because of this opening brace
2020-04-15T01:47:58.6127858Z LL |     a");
2020-04-15T01:47:58.6127858Z LL |     a");
2020-04-15T01:47:58.6128120Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6128264Z    |
2020-04-15T01:47:58.6133901Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6134089Z 
2020-04-15T01:47:58.6134601Z error: invalid format string: expected `'}'`, found `'a'`
2020-04-15T01:47:58.6135205Z    |
2020-04-15T01:47:58.6135339Z LL |     {
2020-04-15T01:47:58.6135636Z    |     - because of this opening brace
2020-04-15T01:47:58.6135930Z LL |     a
2020-04-15T01:47:58.6135930Z LL |     a
2020-04-15T01:47:58.6136096Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6136238Z    |
2020-04-15T01:47:58.6136419Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6136586Z 
2020-04-15T01:47:58.6136939Z error: invalid format string: expected `'}'`, found `'b'`
2020-04-15T01:47:58.6137529Z    |
2020-04-15T01:47:58.6137651Z LL |     { \
2020-04-15T01:47:58.6137938Z    |     - because of this opening brace
2020-04-15T01:47:58.6138094Z LL |         \
2020-04-15T01:47:58.6138094Z LL |         \
2020-04-15T01:47:58.6138229Z LL |     b");
2020-04-15T01:47:58.6138381Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6138522Z    |
2020-04-15T01:47:58.6138716Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6138880Z 
2020-04-15T01:47:58.6139324Z error: invalid format string: expected `'}'`, found `'b'`
2020-04-15T01:47:58.6139924Z    |
2020-04-15T01:47:58.6140033Z LL |     { \
2020-04-15T01:47:58.6140317Z    |     - because of this opening brace
2020-04-15T01:47:58.6140549Z LL |         \
2020-04-15T01:47:58.6140549Z LL |         \
2020-04-15T01:47:58.6140672Z LL |     b \
2020-04-15T01:47:58.6140822Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6140976Z    |
2020-04-15T01:47:58.6141157Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6141319Z 
2020-04-15T01:47:58.6141645Z error: invalid format string: expected `'}'`, found `'\\'`
2020-04-15T01:47:58.6142244Z    |
2020-04-15T01:47:58.6142244Z    |
2020-04-15T01:47:58.6142352Z LL | raw  { \
2020-04-15T01:47:58.6142658Z    |      - ^ expected `}` in format string
2020-04-15T01:47:58.6142967Z    |      because of this opening brace
2020-04-15T01:47:58.6143120Z    |
2020-04-15T01:47:58.6143120Z    |
2020-04-15T01:47:58.6143301Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6143461Z 
2020-04-15T01:47:58.6143776Z error: invalid format string: expected `'}'`, found `'\\'`
2020-04-15T01:47:58.6146021Z    |
2020-04-15T01:47:58.6146021Z    |
2020-04-15T01:47:58.6146131Z LL | raw  { \n
2020-04-15T01:47:58.6146479Z    |      - ^ expected `}` in format string
2020-04-15T01:47:58.6146785Z    |      because of this opening brace
2020-04-15T01:47:58.6146938Z    |
2020-04-15T01:47:58.6146938Z    |
2020-04-15T01:47:58.6147118Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6147278Z 
2020-04-15T01:47:58.6147599Z error: invalid format string: expected `'}'`, found `'e'`
2020-04-15T01:47:58.6148209Z    |
2020-04-15T01:47:58.6148315Z LL |   { \n
2020-04-15T01:47:58.6148608Z    |   - because of this opening brace
2020-04-15T01:47:58.6148753Z LL | \n
2020-04-15T01:47:58.6148753Z LL | \n
2020-04-15T01:47:58.6148865Z LL |     e");
2020-04-15T01:47:58.6149030Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6149172Z    |
2020-04-15T01:47:58.6149355Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6149515Z 
2020-04-15T01:47:58.6151630Z warning: format string warning: expected `'}'`, found `'\n'`
2020-04-15T01:47:58.6159656Z    |
2020-04-15T01:47:58.6159794Z LL |     {asdf
2020-04-15T01:47:58.6159955Z    |          ^ expected `}` in format string
2020-04-15T01:47:58.6160102Z    |
2020-04-15T01:47:58.6160102Z    |
2020-04-15T01:47:58.6160319Z    = note: Placing whitespace before the `}` in a format specifier is now deprecated.
2020-04-15T01:47:58.6160507Z 
2020-04-15T01:47:58.6161187Z error: invalid format string: expected `'}'`, found `'a'`
2020-04-15T01:47:58.6162499Z    |
2020-04-15T01:47:58.6162632Z LL |     {
2020-04-15T01:47:58.6163006Z    |     - because of this opening brace
2020-04-15T01:47:58.6163222Z LL |     asdf}
2020-04-15T01:47:58.6163222Z LL |     asdf}
2020-04-15T01:47:58.6163418Z    |     ^ expected `}` in format string
2020-04-15T01:47:58.6163595Z    |
2020-04-15T01:47:58.6163834Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6164260Z error: 1 positional argument in format string, but no arguments were given
2020-04-15T01:47:58.6164802Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:70:17
2020-04-15T01:47:58.6165027Z    |
2020-04-15T01:47:58.6165027Z    |
2020-04-15T01:47:58.6165183Z LL |     println!("\t{}");
2020-04-15T01:47:58.6165507Z 
2020-04-15T01:47:58.6165733Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6166254Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:74:27
2020-04-15T01:47:58.6166642Z    |
2020-04-15T01:47:58.6166642Z    |
2020-04-15T01:47:58.6166813Z LL |     println!("\x7B}\u{8} {", 1);
2020-04-15T01:47:58.6167265Z    |                          -^ expected `}` in format string
2020-04-15T01:47:58.6167839Z    |                          because of this opening brace
2020-04-15T01:47:58.6168047Z    |
2020-04-15T01:47:58.6168047Z    |
2020-04-15T01:47:58.6168285Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6168684Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6171043Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:81:21
2020-04-15T01:47:58.6171307Z    |
2020-04-15T01:47:58.6171307Z    |
2020-04-15T01:47:58.6171487Z LL |     println!(r#"\x7B}\u{8} {"#, 1);
2020-04-15T01:47:58.6171743Z    |                     ^ unmatched `}` in format string
2020-04-15T01:47:58.6171957Z    |
2020-04-15T01:47:58.6172182Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6172593Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6173108Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:84:21
2020-04-15T01:47:58.6173335Z    |
2020-04-15T01:47:58.6173335Z    |
2020-04-15T01:47:58.6173616Z LL |     println!(r#"\x7B}\u8 {"#, 1);
2020-04-15T01:47:58.6173870Z    |                     ^ unmatched `}` in format string
2020-04-15T01:47:58.6174054Z    |
2020-04-15T01:47:58.6174261Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6174457Z 
2020-04-15T01:47:58.6174645Z error: aborting due to 18 previous errors; 1 warning emitted
2020-04-15T01:47:58.6174903Z 
2020-04-15T01:47:58.6175240Z ------------------------------------------
2020-04-15T01:47:58.6175386Z 
2020-04-15T01:47:58.6175468Z 
2020-04-15T01:47:58.6175468Z 
2020-04-15T01:47:58.6175849Z ---- [ui] ui/fmt/format-string-error.rs stdout ----
2020-04-15T01:47:58.6176068Z diff of stderr:
2020-04-15T01:47:58.6176182Z 
2020-04-15T01:47:58.6176584Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6176914Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6177538Z 3    |
2020-04-15T01:47:58.6177687Z 4 LL |     println!("{");
2020-04-15T01:47:58.6177818Z 
2020-04-15T01:47:58.6177818Z 
2020-04-15T01:47:58.6178415Z -    |               -^ expected `'}'` in format string
2020-04-15T01:47:58.6178832Z +    |               -^ expected `}` in format string
2020-04-15T01:47:58.6179257Z 7    |               because of this opening brace
2020-04-15T01:47:58.6179434Z 8    |
2020-04-15T01:47:58.6179527Z 
2020-04-15T01:47:58.6179651Z 40    |
2020-04-15T01:47:58.6179651Z 40    |
2020-04-15T01:47:58.6179851Z 41    = note: argument name cannot be a single underscore
2020-04-15T01:47:58.6180041Z 42 
2020-04-15T01:47:58.6180455Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6180788Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6181425Z 45    |
2020-04-15T01:47:58.6181581Z 46 LL |     let _ = format!("{");
2020-04-15T01:47:58.6181713Z 
2020-04-15T01:47:58.6181713Z 
2020-04-15T01:47:58.6182075Z -    |                      -^ expected `'}'` in format string
2020-04-15T01:47:58.6182531Z +    |                      -^ expected `}` in format string
2020-04-15T01:47:58.6182984Z 49    |                      because of this opening brace
2020-04-15T01:47:58.6183187Z 50    |
2020-04-15T01:47:58.6183281Z 
2020-04-15T01:47:58.6183391Z 68    |
2020-04-15T01:47:58.6183391Z 68    |
2020-04-15T01:47:58.6183609Z 69    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6183834Z 70 
2020-04-15T01:47:58.6184232Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6184560Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6185340Z 73    |
2020-04-15T01:47:58.6185340Z 73    |
2020-04-15T01:47:58.6185514Z 74 LL |     let _ = format!("\n\n\n{\n\n\n");
2020-04-15T01:47:58.6185675Z 
2020-04-15T01:47:58.6186119Z -    |                            -      ^ expected `'}'` in format string
2020-04-15T01:47:58.6186611Z +    |                            -      ^ expected `}` in format string
2020-04-15T01:47:58.6187124Z 77    |                            because of this opening brace
2020-04-15T01:47:58.6187435Z 78    |
2020-04-15T01:47:58.6187518Z 
2020-04-15T01:47:58.6187518Z 
2020-04-15T01:47:58.6187896Z 79    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6188108Z 80 
2020-04-15T01:47:58.6188504Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6188847Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6189470Z 83    |
2020-04-15T01:47:58.6189470Z 83    |
2020-04-15T01:47:58.6189623Z 84 LL |     {"###);
2020-04-15T01:47:58.6189733Z 
2020-04-15T01:47:58.6190053Z -    |     -^ expected `'}'` in format string
2020-04-15T01:47:58.6190432Z +    |     -^ expected `}` in format string
2020-04-15T01:47:58.6190808Z 87    |     because of this opening brace
2020-04-15T01:47:58.6190975Z 88    |
2020-04-15T01:47:58.6191081Z 
2020-04-15T01:47:58.6191081Z 
2020-04-15T01:47:58.6191290Z 89    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6191502Z 90 
2020-04-15T01:47:58.6191915Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6192243Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6192874Z 93    |
2020-04-15T01:47:58.6193003Z 94 LL |     {
2020-04-15T01:47:58.6193109Z 
2020-04-15T01:47:58.6193425Z 95    |     - because of this opening brace
2020-04-15T01:47:58.6193425Z 95    |     - because of this opening brace
2020-04-15T01:47:58.6193614Z 96 LL | 
2020-04-15T01:47:58.6193746Z 97 LL | "###);
2020-04-15T01:47:58.6194073Z -    | ^ expected `'}'` in format string
2020-04-15T01:47:58.6194301Z +    | ^ expected `}` in format string
2020-04-15T01:47:58.6194462Z 99    |
2020-04-15T01:47:58.6194684Z 100    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6195000Z 
2020-04-15T01:47:58.6195084Z 
2020-04-15T01:47:58.6195259Z The actual stderr differed from the expected stderr.
2020-04-15T01:47:58.6195843Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error/format-string-error.stderr
2020-04-15T01:47:58.6195843Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error/format-string-error.stderr
2020-04-15T01:47:58.6196404Z To update references, rerun the tests and pass the `--bless` flag
2020-04-15T01:47:58.6196909Z To only update this specific test, also pass `--test-args fmt/format-string-error.rs`
2020-04-15T01:47:58.6197294Z error: 1 errors occurred comparing output.
2020-04-15T01:47:58.6197496Z status: exit code: 1
2020-04-15T01:47:58.6197496Z status: exit code: 1
2020-04-15T01:47:58.6199156Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/fmt/format-string-error.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error" "-A" "unused" "-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/fmt/format-string-error/auxiliary"
2020-04-15T01:47:58.6200472Z ------------------------------------------
2020-04-15T01:47:58.6200619Z 
2020-04-15T01:47:58.6201019Z ------------------------------------------
2020-04-15T01:47:58.6201171Z stderr:
2020-04-15T01:47:58.6201171Z stderr:
2020-04-15T01:47:58.6203674Z ------------------------------------------
2020-04-15T01:47:58.6203949Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6204433Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:4:16
2020-04-15T01:47:58.6204661Z    |
2020-04-15T01:47:58.6204802Z LL |     println!("{");
2020-04-15T01:47:58.6205262Z    |               -^ expected `}` in format string
2020-04-15T01:47:58.6205681Z    |               because of this opening brace
2020-04-15T01:47:58.6205854Z    |
2020-04-15T01:47:58.6205854Z    |
2020-04-15T01:47:58.6206078Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6206447Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6206925Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:7:15
2020-04-15T01:47:58.6207127Z    |
2020-04-15T01:47:58.6207267Z LL |     println!("}");
2020-04-15T01:47:58.6207267Z LL |     println!("}");
2020-04-15T01:47:58.6207470Z    |               ^ unmatched `}` in format string
2020-04-15T01:47:58.6207666Z    |
2020-04-15T01:47:58.6207875Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6208262Z error: invalid format string: invalid argument name `_`
2020-04-15T01:47:58.6208832Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:9:23
2020-04-15T01:47:58.6209010Z    |
2020-04-15T01:47:58.6209010Z    |
2020-04-15T01:47:58.6209170Z LL |     let _ = format!("{_}", _ = 6usize);
2020-04-15T01:47:58.6209392Z    |                       ^ invalid argument name in format string
2020-04-15T01:47:58.6209741Z    = note: argument name cannot be a single underscore
2020-04-15T01:47:58.6209884Z 
2020-04-15T01:47:58.6210050Z error: invalid format string: invalid argument name `_`
2020-04-15T01:47:58.6210449Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:11:25
2020-04-15T01:47:58.6210449Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:11:25
2020-04-15T01:47:58.6210641Z    |
2020-04-15T01:47:58.6210807Z LL |     let _ = format!("{a:_}", a = "", _ = 0);
2020-04-15T01:47:58.6211049Z    |                         ^ invalid argument name in format string
2020-04-15T01:47:58.6211406Z    = note: argument name cannot be a single underscore
2020-04-15T01:47:58.6211548Z 
2020-04-15T01:47:58.6211714Z error: invalid format string: invalid argument name `_`
2020-04-15T01:47:58.6212130Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:13:26
2020-04-15T01:47:58.6212130Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:13:26
2020-04-15T01:47:58.6212306Z    |
2020-04-15T01:47:58.6212474Z LL |     let _ = format!("{a:._$}", a = "", _ = 0);
2020-04-15T01:47:58.6212734Z    |                          ^ invalid argument name in format string
2020-04-15T01:47:58.6213072Z    = note: argument name cannot be a single underscore
2020-04-15T01:47:58.6213228Z 
2020-04-15T01:47:58.6213411Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6213918Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:15:23
2020-04-15T01:47:58.6213918Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:15:23
2020-04-15T01:47:58.6214085Z    |
2020-04-15T01:47:58.6214197Z LL |     let _ = format!("{");
2020-04-15T01:47:58.6214490Z    |                      -^ expected `}` in format string
2020-04-15T01:47:58.6214833Z    |                      because of this opening brace
2020-04-15T01:47:58.6214968Z    |
2020-04-15T01:47:58.6214968Z    |
2020-04-15T01:47:58.6215126Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6215414Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6215751Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:17:22
2020-04-15T01:47:58.6215917Z    |
2020-04-15T01:47:58.6216029Z LL |     let _ = format!("}");
2020-04-15T01:47:58.6216029Z LL |     let _ = format!("}");
2020-04-15T01:47:58.6216196Z    |                      ^ unmatched `}` in format string
2020-04-15T01:47:58.6216348Z    |
2020-04-15T01:47:58.6216503Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6216640Z 
2020-04-15T01:47:58.6216910Z error: invalid format string: expected `'}'`, found `'\\'`
2020-04-15T01:47:58.6217478Z    |
2020-04-15T01:47:58.6217478Z    |
2020-04-15T01:47:58.6217594Z LL |     let _ = format!("{\\}");
2020-04-15T01:47:58.6217901Z    |                      -^ expected `}` in format string
2020-04-15T01:47:58.6218264Z    |                      because of this opening brace
2020-04-15T01:47:58.6218418Z    |
2020-04-15T01:47:58.6218418Z    |
2020-04-15T01:47:58.6218572Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6218866Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6219243Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:21:35
2020-04-15T01:47:58.6219395Z    |
2020-04-15T01:47:58.6219395Z    |
2020-04-15T01:47:58.6219519Z LL |     let _ = format!("\n\n\n{\n\n\n");
2020-04-15T01:47:58.6219858Z    |                            -      ^ expected `}` in format string
2020-04-15T01:47:58.6220222Z    |                            because of this opening brace
2020-04-15T01:47:58.6220377Z    |
2020-04-15T01:47:58.6220377Z    |
2020-04-15T01:47:58.6220533Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6220840Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6221197Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:27:3
2020-04-15T01:47:58.6221349Z    |
2020-04-15T01:47:58.6221349Z    |
2020-04-15T01:47:58.6221447Z LL |     {"###);
2020-04-15T01:47:58.6221712Z    |     -^ expected `}` in format string
2020-04-15T01:47:58.6221970Z    |     because of this opening brace
2020-04-15T01:47:58.6222102Z    |
2020-04-15T01:47:58.6222102Z    |
2020-04-15T01:47:58.6222258Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6222565Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6222920Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:35:1
2020-04-15T01:47:58.6223074Z    |
2020-04-15T01:47:58.6223178Z LL |     {
2020-04-15T01:47:58.6223178Z LL |     {
2020-04-15T01:47:58.6223420Z    |     - because of this opening brace
2020-04-15T01:47:58.6223544Z LL | 
2020-04-15T01:47:58.6223637Z LL | "###);
2020-04-15T01:47:58.6223776Z    | ^ expected `}` in format string
2020-04-15T01:47:58.6223892Z    |
2020-04-15T01:47:58.6224049Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6224337Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6224673Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:41:2
2020-04-15T01:47:58.6224838Z    |
2020-04-15T01:47:58.6224928Z LL |     }
2020-04-15T01:47:58.6224928Z LL |     }
2020-04-15T01:47:58.6225056Z    |     ^ unmatched `}` in format string
2020-04-15T01:47:58.6225178Z    |
2020-04-15T01:47:58.6225346Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6225619Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6225970Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:49:9
2020-04-15T01:47:58.6226122Z    |
2020-04-15T01:47:58.6226217Z LL |         }
2020-04-15T01:47:58.6226217Z LL |         }
2020-04-15T01:47:58.6226355Z    |         ^ unmatched `}` in format string
2020-04-15T01:47:58.6226494Z    |
2020-04-15T01:47:58.6226837Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6227189Z error: 3 positional arguments in format string, but there are 2 arguments
2020-04-15T01:47:58.6227601Z   --> /checkout/src/test/ui/fmt/format-string-error.rs:53:15
2020-04-15T01:47:58.6227778Z    |
2020-04-15T01:47:58.6227928Z LL |     println!("{} {} {}", 1, 2);
2020-04-15T01:47:58.6227928Z LL |     println!("{} {} {}", 1, 2);
2020-04-15T01:47:58.6228230Z    |               ^^ ^^ ^^   -  -
2020-04-15T01:47:58.6228488Z error: aborting due to 14 previous errors
2020-04-15T01:47:58.6228627Z 
2020-04-15T01:47:58.6228700Z 
2020-04-15T01:47:58.6228972Z ------------------------------------------
---
2020-04-15T01:47:58.6229779Z 
2020-04-15T01:47:58.6229908Z 164    |             |
2020-04-15T01:47:58.6230083Z 165    |             formatting specifier missing
2020-04-15T01:47:58.6230234Z 166 
2020-04-15T01:47:58.6230619Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6230921Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6231297Z 168   --> $DIR/ifmt-bad-arg.rs:51:15
2020-04-15T01:47:58.6231594Z 170 LL |     format!("{");
2020-04-15T01:47:58.6231698Z 
2020-04-15T01:47:58.6231698Z 
2020-04-15T01:47:58.6231992Z -    |              -^ expected `'}'` in format string
2020-04-15T01:47:58.6232364Z +    |              -^ expected `}` in format string
2020-04-15T01:47:58.6232722Z 173    |              because of this opening brace
2020-04-15T01:47:58.6232899Z 174    |
2020-04-15T01:47:58.6232982Z 
2020-04-15T01:47:58.6233054Z 
2020-04-15T01:47:58.6233054Z 
2020-04-15T01:47:58.6233205Z The actual stderr differed from the expected stderr.
2020-04-15T01:47:58.6233692Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg/ifmt-bad-arg.stderr
2020-04-15T01:47:58.6234151Z To update references, rerun the tests and pass the `--bless` flag
2020-04-15T01:47:58.6234571Z To only update this specific test, also pass `--test-args if/ifmt-bad-arg.rs`
2020-04-15T01:47:58.6234893Z error: 1 errors occurred comparing output.
2020-04-15T01:47:58.6235067Z status: exit code: 1
2020-04-15T01:47:58.6235067Z status: exit code: 1
2020-04-15T01:47:58.6236453Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/if/ifmt-bad-arg.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg" "-A" "unused" "-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/ifmt-bad-arg/auxiliary"
2020-04-15T01:47:58.6237579Z ------------------------------------------
2020-04-15T01:47:58.6237707Z 
2020-04-15T01:47:58.6237978Z ------------------------------------------
2020-04-15T01:47:58.6238144Z stderr:
---
2020-04-15T01:47:58.6246466Z 
2020-04-15T01:47:58.6246620Z error: invalid reference to positional argument 2 (there are 2 arguments)
2020-04-15T01:47:58.6246970Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:22:28
2020-04-15T01:47:58.6247113Z    |
2020-04-15T01:47:58.6247247Z LL |     format!("{} {value} {} {}", 1, value=2);
2020-04-15T01:47:58.6247538Z    |
2020-04-15T01:47:58.6247787Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6247902Z 
2020-04-15T01:47:58.6247902Z 
2020-04-15T01:47:58.6248080Z error: invalid reference to positional arguments 3, 4 and 5 (there are 3 arguments)
2020-04-15T01:47:58.6248567Z    |
2020-04-15T01:47:58.6248567Z    |
2020-04-15T01:47:58.6248738Z LL |     format!("{name} {value} {} {} {} {} {} {}", 0, name=1, value=2);
2020-04-15T01:47:58.6248941Z    |                                      ^^ ^^ ^^
2020-04-15T01:47:58.6249336Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6249451Z 
2020-04-15T01:47:58.6249569Z error: there is no argument named `foo`
2020-04-15T01:47:58.6249871Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-15T01:47:58.6249871Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-15T01:47:58.6250025Z    |
2020-04-15T01:47:58.6250159Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-15T01:47:58.6250417Z 
2020-04-15T01:47:58.6250536Z error: there is no argument named `bar`
2020-04-15T01:47:58.6250838Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:26
2020-04-15T01:47:58.6250979Z    |
2020-04-15T01:47:58.6250979Z    |
2020-04-15T01:47:58.6251124Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-15T01:47:58.6251389Z 
2020-04-15T01:47:58.6251521Z error: there is no argument named `foo`
2020-04-15T01:47:58.6252030Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:31:14
2020-04-15T01:47:58.6252198Z    |
2020-04-15T01:47:58.6252198Z    |
2020-04-15T01:47:58.6252600Z LL |     format!("{foo}");                //~ ERROR: no argument named `foo`
2020-04-15T01:47:58.6252972Z 
2020-04-15T01:47:58.6253137Z error: multiple unused formatting arguments
2020-04-15T01:47:58.6253743Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:32:17
2020-04-15T01:47:58.6253945Z    |
2020-04-15T01:47:58.6253945Z    |
2020-04-15T01:47:58.6254228Z LL |     format!("", 1, 2);               //~ ERROR: multiple unused formatting arguments
2020-04-15T01:47:58.6254742Z    |             --  ^  ^ argument never used
2020-04-15T01:47:58.6255146Z    |             |   argument never used
2020-04-15T01:47:58.6255412Z    |             multiple missing formatting specifiers
2020-04-15T01:47:58.6255585Z 
2020-04-15T01:47:58.6255736Z error: argument never used
---
2020-04-15T01:47:58.6260106Z 
2020-04-15T01:47:58.6260266Z error: named argument never used
2020-04-15T01:47:58.6260691Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:35:26
2020-04-15T01:47:58.6260910Z    |
2020-04-15T01:47:58.6261172Z LL |     format!("{}", 1, foo=2);         //~ ERROR: named argument never used
2020-04-15T01:47:58.6261684Z    |             ----         ^ named argument never used
2020-04-15T01:47:58.6262129Z    |             formatting specifier missing
2020-04-15T01:47:58.6262287Z 
2020-04-15T01:47:58.6262442Z error: argument never used
2020-04-15T01:47:58.6262873Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-15T01:47:58.6262873Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-15T01:47:58.6263079Z    |
2020-04-15T01:47:58.6263322Z LL |     format!("{foo}", 1, foo=2);      //~ ERROR: argument never used
2020-04-15T01:47:58.6263797Z    |             -------  ^ argument never used
2020-04-15T01:47:58.6264204Z    |             formatting specifier missing
2020-04-15T01:47:58.6264362Z 
2020-04-15T01:47:58.6264537Z error: named argument never used
2020-04-15T01:47:58.6265050Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-15T01:47:58.6265050Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-15T01:47:58.6265241Z    |
2020-04-15T01:47:58.6265497Z LL |     format!("", foo=2);              //~ ERROR: named argument never used
2020-04-15T01:47:58.6266011Z    |             --      ^ named argument never used
2020-04-15T01:47:58.6266359Z    |             formatting specifier missing
2020-04-15T01:47:58.6266484Z 
2020-04-15T01:47:58.6266629Z error: multiple unused formatting arguments
2020-04-15T01:47:58.6266985Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-15T01:47:58.6266985Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-15T01:47:58.6267161Z    |
2020-04-15T01:47:58.6267395Z LL |     format!("{} {}", 1, 2, foo=1, bar=2);  //~ ERROR: multiple unused formatting arguments
2020-04-15T01:47:58.6268268Z    |             -------            ^      ^ named argument never used
2020-04-15T01:47:58.6269136Z    |             |                  named argument never used
2020-04-15T01:47:58.6269420Z    |             multiple missing formatting specifiers
2020-04-15T01:47:58.6269607Z 
2020-04-15T01:47:58.6269779Z error: duplicate argument named `foo`
2020-04-15T01:47:58.6269779Z error: duplicate argument named `foo`
2020-04-15T01:47:58.6270236Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:40:33
2020-04-15T01:47:58.6270456Z    |
2020-04-15T01:47:58.6270697Z LL |     format!("{foo}", foo=1, foo=2);  //~ ERROR: duplicate argument
2020-04-15T01:47:58.6271188Z    |                          -      ^ duplicate argument
2020-04-15T01:47:58.6271673Z    |                          previously here
2020-04-15T01:47:58.6271831Z 
2020-04-15T01:47:58.6272029Z error: positional arguments cannot follow named arguments
2020-04-15T01:47:58.6272508Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-15T01:47:58.6272508Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-15T01:47:58.6272712Z    |
2020-04-15T01:47:58.6272995Z LL |     format!("{foo} {} {}", foo=1, 2);   //~ ERROR: positional arguments cannot follow
2020-04-15T01:47:58.6273617Z    |                                -  ^ positional arguments must be before named arguments
2020-04-15T01:47:58.6274237Z    |                                named argument
2020-04-15T01:47:58.6274418Z 
2020-04-15T01:47:58.6274594Z error: there is no argument named `valueb`
2020-04-15T01:47:58.6275086Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-15T01:47:58.6275086Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-15T01:47:58.6275304Z    |
2020-04-15T01:47:58.6275559Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-15T01:47:58.6275957Z 
2020-04-15T01:47:58.6276131Z error: named argument never used
2020-04-15T01:47:58.6276567Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:51
2020-04-15T01:47:58.6276771Z    |
2020-04-15T01:47:58.6276771Z    |
2020-04-15T01:47:58.6276987Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-15T01:47:58.6277508Z    |             -------------------                   ^ named argument never used
2020-04-15T01:47:58.6277988Z    |             formatting specifier missing
2020-04-15T01:47:58.6278146Z 
2020-04-15T01:47:58.6278378Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6278868Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-15T01:47:58.6278868Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-15T01:47:58.6279086Z    |
2020-04-15T01:47:58.6279542Z LL |     format!("{"); //~ ERROR: expected `'}'` but string was terminated
2020-04-15T01:47:58.6280048Z    |              -^ expected `}` in format string
2020-04-15T01:47:58.6280489Z    |              because of this opening brace
2020-04-15T01:47:58.6280674Z    |
2020-04-15T01:47:58.6280674Z    |
2020-04-15T01:47:58.6281016Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6281701Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6282142Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:53:18
2020-04-15T01:47:58.6282349Z    |
2020-04-15T01:47:58.6282349Z    |
2020-04-15T01:47:58.6282559Z LL |     format!("foo } bar"); //~ ERROR: unmatched `}` found
2020-04-15T01:47:58.6282825Z    |                  ^ unmatched `}` in format string
2020-04-15T01:47:58.6283020Z    |
2020-04-15T01:47:58.6283229Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6283612Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6284048Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:54:18
2020-04-15T01:47:58.6284239Z    |
2020-04-15T01:47:58.6284239Z    |
2020-04-15T01:47:58.6284459Z LL |     format!("foo }"); //~ ERROR: unmatched `}` found
2020-04-15T01:47:58.6284723Z    |                  ^ unmatched `}` in format string
2020-04-15T01:47:58.6284898Z    |
2020-04-15T01:47:58.6285121Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6285950Z error: argument never used
2020-04-15T01:47:58.6286316Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:56:27
2020-04-15T01:47:58.6286494Z    |
2020-04-15T01:47:58.6286494Z    |
2020-04-15T01:47:58.6286688Z LL |     format!("foo %s baz", "bar"); //~ ERROR: argument never used
2020-04-15T01:47:58.6287280Z    |                  |
2020-04-15T01:47:58.6287280Z    |                  |
2020-04-15T01:47:58.6287496Z    |                  help: format specifiers use curly braces: `{}`
2020-04-15T01:47:58.6287923Z    = note: printf formatting not supported; see the documentation for `std::fmt`
2020-04-15T01:47:58.6288125Z 
2020-04-15T01:47:58.6288264Z error: there is no argument named `foo`
2020-04-15T01:47:58.6288618Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-15T01:47:58.6288618Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-15T01:47:58.6288797Z    |
2020-04-15T01:47:58.6288915Z LL |         {foo}
2020-04-15T01:47:58.6289047Z    |         ^^^^^
2020-04-15T01:47:58.6289155Z 
2020-04-15T01:47:58.6289471Z error: invalid format string: expected `'}'`, found `'t'`
2020-04-15T01:47:58.6290017Z    |
2020-04-15T01:47:58.6290017Z    |
2020-04-15T01:47:58.6290157Z LL | ninth number: {
2020-04-15T01:47:58.6290476Z    |               - because of this opening brace
2020-04-15T01:47:58.6290738Z LL | tenth number: {}",
2020-04-15T01:47:58.6290921Z    | ^ expected `}` in format string
2020-04-15T01:47:58.6291057Z    |
2020-04-15T01:47:58.6291237Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6291648Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-15T01:47:58.6292056Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:15
2020-04-15T01:47:58.6292221Z    |
2020-04-15T01:47:58.6292221Z    |
2020-04-15T01:47:58.6292393Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-15T01:47:58.6292730Z    |               ^^ ^^--^ ^^   -  ---  -
2020-04-15T01:47:58.6293167Z    |                    |           this parameter corresponds to the precision flag
2020-04-15T01:47:58.6293167Z    |                    |           this parameter corresponds to the precision flag
2020-04-15T01:47:58.6293522Z    |                    this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-15T01:47:58.6294092Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6294092Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6294572Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-15T01:47:58.6294987Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-15T01:47:58.6295384Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:15
2020-04-15T01:47:58.6295550Z    |
2020-04-15T01:47:58.6295550Z    |
2020-04-15T01:47:58.6295723Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-15T01:47:58.6296068Z    |               ^^ ^^^----^ ^^   -  ---  -
2020-04-15T01:47:58.6296522Z    |                     | |           this parameter corresponds to the precision flag
2020-04-15T01:47:58.6296522Z    |                     | |           this parameter corresponds to the precision flag
2020-04-15T01:47:58.6296881Z    |                     | this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-15T01:47:58.6297344Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-15T01:47:58.6297807Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6297807Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6298214Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-15T01:47:58.6298574Z error: invalid reference to positional argument 7 (there are 3 arguments)
2020-04-15T01:47:58.6298916Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:84:18
2020-04-15T01:47:58.6299071Z    |
2020-04-15T01:47:58.6299071Z    |
2020-04-15T01:47:58.6299207Z LL |     println!("{} {:07$} {}", 1, 3.2, 4);
2020-04-15T01:47:58.6299475Z    |                  ^^^--^
2020-04-15T01:47:58.6299624Z    |                     |
2020-04-15T01:47:58.6299842Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-15T01:47:58.6300298Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6300298Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6300708Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-15T01:47:58.6301011Z error: unknown format trait `foo`
2020-04-15T01:47:58.6301321Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:86:17
2020-04-15T01:47:58.6301464Z    |
2020-04-15T01:47:58.6301464Z    |
2020-04-15T01:47:58.6301626Z LL |     println!("{:foo}", 1); //~ ERROR unknown format trait `foo`
2020-04-15T01:47:58.6301926Z    |
2020-04-15T01:47:58.6302080Z    = note: the only appropriate formatting traits are:
2020-04-15T01:47:58.6302412Z            - ``, which uses the `Display` trait
2020-04-15T01:47:58.6302704Z            - `?`, which uses the `Debug` trait
2020-04-15T01:47:58.6302704Z            - `?`, which uses the `Debug` trait
2020-04-15T01:47:58.6302997Z            - `e`, which uses the `LowerExp` trait
2020-04-15T01:47:58.6303309Z            - `E`, which uses the `UpperExp` trait
2020-04-15T01:47:58.6303603Z            - `o`, which uses the `Octal` trait
2020-04-15T01:47:58.6303898Z            - `p`, which uses the `Pointer` trait
2020-04-15T01:47:58.6304250Z            - `b`, which uses the `Binary` trait
2020-04-15T01:47:58.6304643Z            - `x`, which uses the `LowerHex` trait
2020-04-15T01:47:58.6304940Z            - `X`, which uses the `UpperHex` trait
2020-04-15T01:47:58.6305055Z 
2020-04-15T01:47:58.6305271Z error: invalid reference to positional arguments 4, 5, 6 and 7 (there is 1 argument)
2020-04-15T01:47:58.6305777Z    |
2020-04-15T01:47:58.6305777Z    |
2020-04-15T01:47:58.6305927Z LL |     println!("{5} {:4$} {6:7$}", 1);
2020-04-15T01:47:58.6306206Z    |               ^^^ ^^--^ ^^^--^
2020-04-15T01:47:58.6306355Z    |                     |      |
2020-04-15T01:47:58.6306601Z    |                     |      this width flag expects an `usize` argument at position 7, but there is 1 argument
2020-04-15T01:47:58.6306910Z    |                     this width flag expects an `usize` argument at position 4, but there is 1 argument
2020-04-15T01:47:58.6307372Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6307372Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6307778Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-15T01:47:58.6308142Z error: 2 positional arguments in format string, but no arguments were given
2020-04-15T01:47:58.6308484Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:92:15
2020-04-15T01:47:58.6308627Z    |
2020-04-15T01:47:58.6308627Z    |
2020-04-15T01:47:58.6308757Z LL |     println!("{:.*}");
2020-04-15T01:47:58.6308998Z    |               ^^--^
2020-04-15T01:47:58.6309125Z    |                 |
2020-04-15T01:47:58.6309363Z    |                 this precision flag adds an extra required argument at position 0, which is why there are 2 arguments expected
2020-04-15T01:47:58.6309844Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6309844Z    = note: positional arguments are zero-based
2020-04-15T01:47:58.6310249Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-15T01:47:58.6310571Z error[E0308]: mismatched types
2020-04-15T01:47:58.6310869Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:32
2020-04-15T01:47:58.6311025Z    |
2020-04-15T01:47:58.6311025Z    |
2020-04-15T01:47:58.6311160Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-15T01:47:58.6311525Z    |                                ^^^ expected `usize`, found floating-point number
2020-04-15T01:47:58.6311832Z    = note: expected reference `&usize`
2020-04-15T01:47:58.6311832Z    = note: expected reference `&usize`
2020-04-15T01:47:58.6311992Z               found reference `&{float}`
2020-04-15T01:47:58.6312576Z 
2020-04-15T01:47:58.6312689Z error[E0308]: mismatched types
2020-04-15T01:47:58.6312987Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:35
2020-04-15T01:47:58.6313142Z    |
2020-04-15T01:47:58.6313142Z    |
2020-04-15T01:47:58.6313280Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-15T01:47:58.6313651Z    |                                   ^^^ expected `usize`, found floating-point number
2020-04-15T01:47:58.6313960Z    = note: expected reference `&usize`
2020-04-15T01:47:58.6313960Z    = note: expected reference `&usize`
2020-04-15T01:47:58.6314122Z               found reference `&{float}`
2020-04-15T01:47:58.6314706Z 
2020-04-15T01:47:58.6314828Z error: aborting due to 36 previous errors
2020-04-15T01:47:58.6314935Z 
2020-04-15T01:47:58.6315227Z For more information about this error, try `rustc --explain E0308`.
2020-04-15T01:47:58.6315227Z For more information about this error, try `rustc --explain E0308`.
2020-04-15T01:47:58.6315363Z 
2020-04-15T01:47:58.6315598Z ------------------------------------------
2020-04-15T01:47:58.6315706Z 
2020-04-15T01:47:58.6315782Z 
2020-04-15T01:47:58.6316025Z ---- [ui] ui/issues/issue-51848.rs stdout ----
2020-04-15T01:47:58.6316172Z diff of stderr:
2020-04-15T01:47:58.6316256Z 
2020-04-15T01:47:58.6316564Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-15T01:47:58.6316847Z + error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6317302Z 3    |
2020-04-15T01:47:58.6317417Z 4 LL |         println!("{");
2020-04-15T01:47:58.6317510Z 
2020-04-15T01:47:58.6317510Z 
2020-04-15T01:47:58.6317997Z -    |                   -^ expected `'}'` in format string
2020-04-15T01:47:58.6318565Z +    |                   -^ expected `}` in format string
2020-04-15T01:47:58.6318997Z 7    |                   because of this opening brace
2020-04-15T01:47:58.6319197Z 8 ...
2020-04-15T01:47:58.6319288Z 
2020-04-15T01:47:58.6319371Z 
2020-04-15T01:47:58.6319371Z 
2020-04-15T01:47:58.6319544Z The actual stderr differed from the expected stderr.
2020-04-15T01:47:58.6320107Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/issue-51848.stderr
2020-04-15T01:47:58.6320632Z To update references, rerun the tests and pass the `--bless` flag
2020-04-15T01:47:58.6321127Z To only update this specific test, also pass `--test-args issues/issue-51848.rs`
2020-04-15T01:47:58.6321605Z error: 1 errors occurred comparing output.
2020-04-15T01:47:58.6321888Z status: exit code: 1
2020-04-15T01:47:58.6321888Z status: exit code: 1
2020-04-15T01:47:58.6323515Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-51848.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/auxiliary"
2020-04-15T01:47:58.6324814Z ------------------------------------------
2020-04-15T01:47:58.6324964Z 
2020-04-15T01:47:58.6325278Z ------------------------------------------
2020-04-15T01:47:58.6325467Z stderr:
2020-04-15T01:47:58.6325467Z stderr:
2020-04-15T01:47:58.6325791Z ------------------------------------------
2020-04-15T01:47:58.6326061Z error: invalid format string: expected `}` but string was terminated
2020-04-15T01:47:58.6326542Z   --> /checkout/src/test/ui/issues/issue-51848.rs:6:20
2020-04-15T01:47:58.6326737Z    |
2020-04-15T01:47:58.6326907Z LL |         println!("{"); //~ ERROR invalid
2020-04-15T01:47:58.6327328Z    |                   -^ expected `}` in format string
2020-04-15T01:47:58.6327749Z    |                   because of this opening brace
2020-04-15T01:47:58.6327939Z ...
2020-04-15T01:47:58.6328086Z LL |     macro_with_error!();
2020-04-15T01:47:58.6328462Z    |     -------------------- in this macro invocation
2020-04-15T01:47:58.6328462Z    |     -------------------- in this macro invocation
2020-04-15T01:47:58.6328658Z    |
2020-04-15T01:47:58.6328868Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-15T01:47:58.6329670Z 
2020-04-15T01:47:58.6329869Z error: invalid format string: unmatched `}` found
2020-04-15T01:47:58.6330385Z   --> /checkout/src/test/ui/issues/issue-51848.rs:18:15
2020-04-15T01:47:58.6330556Z    |
2020-04-15T01:47:58.6330556Z    |
2020-04-15T01:47:58.6330715Z LL |     println!("}"); //~ ERROR invalid
2020-04-15T01:47:58.6331040Z    |               ^ unmatched `}` in format string
2020-04-15T01:47:58.6331173Z    |
2020-04-15T01:47:58.6331341Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-15T01:47:58.6331599Z error: aborting due to 2 previous errors
2020-04-15T01:47:58.6331707Z 
2020-04-15T01:47:58.6331783Z 
2020-04-15T01:47:58.6332019Z ------------------------------------------
---
2020-04-15T01:47:58.6334418Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-15T01:47:58.6334675Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-04-15T01:47:58.6334834Z 
2020-04-15T01:47:58.6334896Z 
2020-04-15T01:47:58.6337261Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-7/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "7.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-15T01:47:58.6338907Z 
2020-04-15T01:47:58.6338971Z 
2020-04-15T01:47:58.6339299Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-15T01:47:58.6339548Z Build completed unsuccessfully in 0:52:05
2020-04-15T01:47:58.6339548Z Build completed unsuccessfully in 0:52:05
2020-04-15T01:47:58.6339739Z == clock drift check ==
2020-04-15T01:47:58.6339896Z   local time: Wed Apr 15 01:47:58 UTC 2020
2020-04-15T01:47:58.9093153Z   network time: Wed, 15 Apr 2020 01:47:58 GMT
2020-04-15T01:47:59.3160205Z 
2020-04-15T01:47:59.3160205Z 
2020-04-15T01:47:59.3222836Z ##[error]Bash exited with code '1'.
2020-04-15T01:47:59.3246476Z ##[section]Finishing: Run build
2020-04-15T01:47:59.3295457Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-15T01:47:59.3300851Z Task         : Get sources
2020-04-15T01:47:59.3301184Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-15T01:47:59.3301488Z Version      : 1.0.0
2020-04-15T01:47:59.3301691Z Author       : Microsoft
2020-04-15T01:47:59.3301691Z Author       : Microsoft
2020-04-15T01:47:59.3302015Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-15T01:47:59.3302400Z ==============================================================================
2020-04-15T01:47:59.5994497Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-15T01:47:59.6038327Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-15T01:47:59.6107431Z Cleaning up task key
2020-04-15T01:47:59.6108632Z Start cleaning up orphan processes.
2020-04-15T01:47:59.6256367Z Terminate orphan process: pid (3501) (python)
2020-04-15T01:47:59.6387997Z ##[section]Finishing: Finalize Job

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

@crlf0710
Copy link
Member

@strega-nil Ping from triage, could you address the comments above? Thanks.

r? @petrochenkov

@strega-nil
Copy link
Contributor Author

@crlf0710 yeah, sorry, life and work got in the way.

@petrochenkov
Copy link
Contributor

Seems like a bug that we might just fix.
Could you turn this into an error so we could run this through crater?

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

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-04-27T04:47:43.5067524Z ========================== Starting Command Output ===========================
2020-04-27T04:47:43.5070491Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/275a8ecf-d203-47cf-b342-450176940255.sh
2020-04-27T04:47:43.5070748Z 
2020-04-27T04:47:43.5074559Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-27T04:47:43.5090788Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T04:47:43.5093660Z Task         : Get sources
2020-04-27T04:47:43.5093919Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T04:47:43.5094190Z Version      : 1.0.0
2020-04-27T04:47:43.5094364Z Author       : Microsoft
---
2020-04-27T04:47:44.7469424Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-27T04:47:44.7479057Z ##[command]git config gc.auto 0
2020-04-27T04:47:44.7484106Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-27T04:47:44.7488817Z ##[command]git config --get-all http.proxy
2020-04-27T04:47:44.7497576Z ##[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/71158/merge:refs/remotes/pull/71158/merge
---
2020-04-27T04:51:20.6166573Z  ---> f7353ccad5b1
2020-04-27T04:51:20.6166992Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-27T04:51:20.6168610Z  ---> Using cache
2020-04-27T04:51:20.6169201Z  ---> ed38efbaa060
2020-04-27T04:51:20.6170624Z Step 7/7 : ENV SCRIPT python3 ../x.py test src/tools/expand-yaml-anchors &&            python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python3 ../x.py build --stage 0 src/tools/build-manifest &&            python3 ../x.py test --stage 0 src/tools/compiletest &&            python3 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-27T04:51:20.6173548Z  ---> c5008ef7ae8e
2020-04-27T04:51:20.6215099Z Successfully built c5008ef7ae8e
2020-04-27T04:51:20.6240412Z Successfully tagged rust-ci:latest
2020-04-27T04:51:20.6895883Z Built container sha256:c5008ef7ae8e94d7ef502e3cef26e61208e14ebdb36913f3a8bb86291bd6430b
2020-04-27T04:51:20.6895883Z Built container sha256:c5008ef7ae8e94d7ef502e3cef26e61208e14ebdb36913f3a8bb86291bd6430b
2020-04-27T04:51:20.6911688Z Looks like docker image is the same as before, not uploading
2020-04-27T04:51:29.3688291Z [CI_JOB_NAME=mingw-check]
2020-04-27T04:51:29.3941606Z [CI_JOB_NAME=mingw-check]
2020-04-27T04:51:29.3958378Z == clock drift check ==
2020-04-27T04:51:29.3967075Z   local time: Mon Apr 27 04:51:29 UTC 2020
2020-04-27T04:51:29.6750963Z   network time: Mon, 27 Apr 2020 04:51:29 GMT
2020-04-27T04:51:29.6778952Z Starting sccache server...
2020-04-27T04:51:29.7882540Z configure: processing command line
2020-04-27T04:51:29.7882823Z configure: 
2020-04-27T04:51:29.7884269Z configure: rust.parallel-compiler := True
---
2020-04-27T04:53:38.1099297Z     Checking unicode-width v0.1.6
2020-04-27T04:53:38.1863968Z     Checking getopts v0.2.21
2020-04-27T04:53:40.1784543Z     Checking test v0.0.0 (/checkout/src/libtest)
2020-04-27T04:53:40.8386652Z     Finished release [optimized] target(s) in 25.91s
2020-04-27T04:53:40.8390933Z {"reason":"build-finished","success":true}
2020-04-27T04:53:41.8405142Z     Checking cfg-if v0.1.10
2020-04-27T04:53:41.8407374Z    Compiling libc v0.2.69
2020-04-27T04:53:41.8408219Z    Compiling semver-parser v0.7.0
2020-04-27T04:53:42.3036644Z     Checking lazy_static v1.4.0
---
2020-04-27T04:55:13.8010315Z error: could not compile `fmt_macros`.
2020-04-27T04:55:13.8015483Z 
2020-04-27T04:55:13.8016502Z To learn more, run the command again with --verbose.
2020-04-27T04:55:13.8032628Z warning: build failed, waiting for other jobs to finish...
2020-04-27T04:55:14.3170886Z {"reason":"build-finished","success":false}
2020-04-27T04:55:14.3284961Z error: build failed
2020-04-27T04:55:14.3315876Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "check" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--color" "always" "--features" " llvm" "--manifest-path" "/checkout/src/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
2020-04-27T04:55:14.3331022Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap check
2020-04-27T04:55:14.3331445Z Build completed unsuccessfully in 0:03:44
2020-04-27T04:55:14.3438500Z == clock drift check ==
2020-04-27T04:55:14.3464555Z   local time: Mon Apr 27 04:55:14 UTC 2020
2020-04-27T04:55:14.3464555Z   local time: Mon Apr 27 04:55:14 UTC 2020
2020-04-27T04:55:14.4320995Z   network time: Mon, 27 Apr 2020 04:55:14 GMT
2020-04-27T04:55:15.3121015Z 
2020-04-27T04:55:15.3121015Z 
2020-04-27T04:55:15.3191372Z ##[error]Bash exited with code '1'.
2020-04-27T04:55:15.3203977Z ##[section]Finishing: Run build
2020-04-27T04:55:15.3266680Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T04:55:15.3271454Z Task         : Get sources
2020-04-27T04:55:15.3271765Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T04:55:15.3272067Z Version      : 1.0.0
2020-04-27T04:55:15.3272274Z Author       : Microsoft
2020-04-27T04:55:15.3272274Z Author       : Microsoft
2020-04-27T04:55:15.3272612Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-27T04:55:15.3272990Z ==============================================================================
2020-04-27T04:55:15.6583458Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-27T04:55:15.6634472Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T04:55:15.6722614Z Cleaning up task key
2020-04-27T04:55:15.6723875Z Start cleaning up orphan processes.
2020-04-27T04:55:15.6899491Z Terminate orphan process: pid (3657) (python)
2020-04-27T04:55:15.7101800Z ##[section]Finishing: Finalize Job

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

@strega-nil
Copy link
Contributor Author

@petrochenkov done :)

@petrochenkov
Copy link
Contributor

@strega-nil
This needs to pass CI for a crater run.

@rust-highfive
Copy link
Contributor

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-04-27T20:23:15.2533744Z ========================== Starting Command Output ===========================
2020-04-27T20:23:15.2537251Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/3562ae0b-fb6b-40e6-9b03-1e9f2a60a8da.sh
2020-04-27T20:23:15.2537544Z 
2020-04-27T20:23:15.2542573Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-27T20:23:15.2560207Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T20:23:15.2563266Z Task         : Get sources
2020-04-27T20:23:15.2563546Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T20:23:15.2563837Z Version      : 1.0.0
2020-04-27T20:23:15.2564027Z Author       : Microsoft
---
2020-04-27T20:23:16.2433087Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-27T20:23:16.2439886Z ##[command]git config gc.auto 0
2020-04-27T20:23:16.2444044Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-27T20:23:16.2447895Z ##[command]git config --get-all http.proxy
2020-04-27T20:23:16.2455029Z ##[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/71158/merge:refs/remotes/pull/71158/merge
---
2020-04-27T20:26:16.6226931Z  ---> f7353ccad5b1
2020-04-27T20:26:16.6227192Z Step 6/7 : ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
2020-04-27T20:26:16.6231028Z  ---> Using cache
2020-04-27T20:26:16.6231454Z  ---> ed38efbaa060
2020-04-27T20:26:16.6232913Z Step 7/7 : ENV SCRIPT python3 ../x.py test src/tools/expand-yaml-anchors &&            python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu &&            python3 ../x.py build --stage 0 src/tools/build-manifest &&            python3 ../x.py test --stage 0 src/tools/compiletest &&            python3 ../x.py test src/tools/tidy &&            /scripts/validate-toolstate.sh
2020-04-27T20:26:16.6236561Z  ---> c5008ef7ae8e
2020-04-27T20:26:16.6299799Z Successfully built c5008ef7ae8e
2020-04-27T20:26:16.6327782Z Successfully tagged rust-ci:latest
2020-04-27T20:26:16.6796223Z Built container sha256:c5008ef7ae8e94d7ef502e3cef26e61208e14ebdb36913f3a8bb86291bd6430b
2020-04-27T20:26:16.6796223Z Built container sha256:c5008ef7ae8e94d7ef502e3cef26e61208e14ebdb36913f3a8bb86291bd6430b
2020-04-27T20:26:16.6821356Z Looks like docker image is the same as before, not uploading
2020-04-27T20:26:24.7822284Z [CI_JOB_NAME=mingw-check]
2020-04-27T20:26:24.8102531Z [CI_JOB_NAME=mingw-check]
2020-04-27T20:26:24.8129047Z == clock drift check ==
2020-04-27T20:26:24.8129310Z   local time: Mon Apr 27 20:26:24 UTC 2020
2020-04-27T20:26:24.9728504Z   network time: Mon, 27 Apr 2020 20:26:24 GMT
2020-04-27T20:26:24.9774316Z Starting sccache server...
2020-04-27T20:26:25.0936241Z configure: processing command line
2020-04-27T20:26:25.0936474Z configure: 
2020-04-27T20:26:25.0937582Z configure: rust.parallel-compiler := True
---
2020-04-27T20:28:33.9290855Z     Checking term v0.0.0 (/checkout/src/libterm)
2020-04-27T20:28:34.2098259Z     Checking unicode-width v0.1.6
2020-04-27T20:28:34.3084085Z     Checking getopts v0.2.21
2020-04-27T20:28:36.2435961Z     Checking test v0.0.0 (/checkout/src/libtest)
2020-04-27T20:28:36.9343537Z {"reason":"build-finished","success":true}
2020-04-27T20:28:36.9579166Z Checking compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T20:28:37.5367640Z     Checking cfg-if v0.1.10
2020-04-27T20:28:37.5368159Z    Compiling libc v0.2.69
2020-04-27T20:28:37.5682475Z    Compiling semver-parser v0.7.0
---
2020-04-27T20:30:11.6247415Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-27T20:30:11.7295561Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-27T20:30:11.9151467Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-27T20:30:12.0453000Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-27T20:30:12.5138801Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-27T20:30:14.8277970Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-27T20:30:15.2948363Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-27T20:30:17.2952284Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-27T20:30:17.7174000Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-27T20:30:56.9386315Z     Checking rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-27T20:31:00.5159810Z     Checking rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-27T20:31:03.5663860Z     Checking rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-27T20:31:03.6559968Z     Finished release [optimized] target(s) in 2m 26s
2020-04-27T20:31:03.6562346Z {"reason":"build-finished","success":true}
2020-04-27T20:31:03.9610386Z     Checking cfg-if v0.1.10
2020-04-27T20:31:03.9610941Z    Compiling libc v0.2.69
2020-04-27T20:31:04.0006647Z    Compiling semver-parser v0.7.0
2020-04-27T20:31:04.8330801Z    Compiling proc-macro2 v0.4.30
---
2020-04-27T20:31:56.6668153Z     Checking serde_json v1.0.40
2020-04-27T20:31:57.9286180Z     Checking rustdoc v0.0.0 (/checkout/src/librustdoc)
2020-04-27T20:32:02.7223220Z     Checking rustdoc-tool v0.0.0 (/checkout/src/tools/rustdoc)
2020-04-27T20:32:02.8228673Z     Finished release [optimized] target(s) in 59.10s
2020-04-27T20:32:02.8235940Z {"reason":"build-finished","success":true}
2020-04-27T20:32:03.0952642Z configure: processing command line
2020-04-27T20:32:03.0953397Z configure: 
2020-04-27T20:32:03.0953831Z configure: build.submodules     := False
2020-04-27T20:32:03.0954938Z configure: rust.dist-src        := False
---
2020-04-27T20:32:03.0958232Z configure: rust.debug-assertions := True
2020-04-27T20:32:03.0958881Z configure: dist.missing-tools   := True
2020-04-27T20:32:03.0959524Z configure: rust.codegen-units-std := 1
2020-04-27T20:32:03.0960990Z configure: rust.verify-llvm-ir  := True
2020-04-27T20:32:03.0961777Z configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ...
2020-04-27T20:32:03.0962777Z configure: writing `config.toml` in current directory
2020-04-27T20:32:03.0963099Z configure: 
2020-04-27T20:32:03.0963645Z configure: run `python /checkout/x.py --help`
2020-04-27T20:32:03.0963976Z configure: 
---
2020-04-27T20:33:38.4459386Z Hugepagesize:       2048 kB
2020-04-27T20:33:38.4459583Z DirectMap4k:      143296 kB
2020-04-27T20:33:38.4459794Z DirectMap2M:     5099520 kB
2020-04-27T20:33:38.4460822Z DirectMap1G:     4194304 kB
2020-04-27T20:33:38.4485923Z + python3 ../x.py test src/tools/expand-yaml-anchors
2020-04-27T20:33:39.9139966Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-27T20:33:39.9139966Z Ensuring the YAML anchors in the GitHub Actions config were expanded
2020-04-27T20:33:39.9219868Z Building stage0 tool expand-yaml-anchors (x86_64-unknown-linux-gnu)
2020-04-27T20:33:40.1761250Z    Compiling unicode-xid v0.2.0
2020-04-27T20:33:40.3020682Z    Compiling syn v1.0.11
2020-04-27T20:33:41.1458670Z    Compiling linked-hash-map v0.5.2
2020-04-27T20:33:41.1802823Z    Compiling lazy_static v1.4.0
2020-04-27T20:33:41.1802823Z    Compiling lazy_static v1.4.0
2020-04-27T20:33:41.3731734Z    Compiling yaml-rust v0.4.3
2020-04-27T20:33:45.5346145Z    Compiling quote v1.0.2
2020-04-27T20:33:59.3878552Z    Compiling thiserror-impl v1.0.5
2020-04-27T20:34:04.0253829Z    Compiling thiserror v1.0.5
2020-04-27T20:34:04.0823749Z    Compiling yaml-merge-keys v0.4.0
2020-04-27T20:34:05.2716044Z    Compiling expand-yaml-anchors v0.1.0 (/checkout/src/tools/expand-yaml-anchors)
2020-04-27T20:34:07.3119873Z    {"reason":"build-finished","success":true}
2020-04-27T20:34:07.3355441Z Build completed successfully in 0:00:28
2020-04-27T20:34:07.3456470Z + python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu
2020-04-27T20:34:07.6483202Z     Finished dev [unoptimized] target(s) in 0.21s
2020-04-27T20:34:08.8180027Z Checking rustdoc artifacts (x86_64-unknown-linux-gnu -> i686-pc-windows-gnu)
---
2020-04-27T20:34:32.3026391Z     Checking proc_macro v0.0.0 (/checkout/src/libproc_macro)
2020-04-27T20:34:32.5936812Z     Checking unicode-width v0.1.6
2020-04-27T20:34:32.6717475Z     Checking getopts v0.2.21
2020-04-27T20:34:34.8130025Z     Checking test v0.0.0 (/checkout/src/libtest)
2020-04-27T20:34:35.5018136Z {"reason":"build-finished","success":true}
2020-04-27T20:34:35.5159197Z Checking compiler artifacts (x86_64-unknown-linux-gnu -> i686-pc-windows-gnu)
2020-04-27T20:34:36.1475073Z     Checking cfg-if v0.1.10
2020-04-27T20:34:36.1483710Z    Compiling semver-parser v0.7.0
2020-04-27T20:34:36.1918774Z    Compiling winapi-i686-pc-windows-gnu v0.4.0
---
2020-04-27T20:36:14.8766263Z     Checking rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-27T20:36:15.0076247Z     Checking fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-27T20:36:15.1966178Z     Checking rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-27T20:36:15.2722354Z     Checking rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-27T20:36:15.8005911Z     Checking rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-27T20:36:18.0761342Z     Checking rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-27T20:36:18.5548475Z     Checking rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-27T20:36:20.5863251Z     Checking rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-27T20:36:21.0367855Z     Checking rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-27T20:37:02.0758536Z     Checking rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-27T20:37:02.2494547Z     Checking rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-27T20:37:06.4405497Z     Checking rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-27T20:37:06.5300576Z     Finished release [optimized] target(s) in 2m 31s
2020-04-27T20:37:06.5305091Z {"reason":"build-finished","success":true}
2020-04-27T20:37:06.8479094Z     Checking cfg-if v0.1.10
2020-04-27T20:37:06.8484401Z    Compiling semver-parser v0.7.0
2020-04-27T20:37:06.8858353Z    Compiling proc-macro2 v0.4.30
2020-04-27T20:37:07.8312019Z     Checking lazy_static v1.4.0
---
2020-04-27T20:37:35.2723907Z    Compiling serde_derive v1.0.81
2020-04-27T20:38:01.1481262Z     Checking serde_json v1.0.40
2020-04-27T20:38:02.3629304Z     Checking rustdoc v0.0.0 (/checkout/src/librustdoc)
2020-04-27T20:38:07.2386321Z     Checking rustdoc-tool v0.0.0 (/checkout/src/tools/rustdoc)
2020-04-27T20:38:07.3415750Z     Finished release [optimized] target(s) in 1m 00s{"reason":"build-finished","success":true}
2020-04-27T20:38:07.3611619Z Build completed successfully in 0:03:59
2020-04-27T20:38:07.3729229Z + python3 ../x.py build --stage 0 src/tools/build-manifest
2020-04-27T20:38:07.6700821Z     Finished dev [unoptimized] target(s) in 0.20s
2020-04-27T20:38:08.8557104Z Building stage0 tool build-manifest (x86_64-unknown-linux-gnu)
---
2020-04-27T20:38:51.3468074Z    Compiling serde_json v1.0.40
2020-04-27T20:38:51.9529232Z    Compiling toml v0.5.3
2020-04-27T20:38:58.9910934Z    Compiling build-manifest v0.1.0 (/checkout/src/tools/build-manifest)
2020-04-27T20:39:03.3969330Z     Finished release [optimized] target(s) in 54.53s
2020-04-27T20:39:03.3972189Z {"reason":"build-finished","success":true}
2020-04-27T20:39:03.4163806Z + python3 ../x.py test --stage 0 src/tools/compiletest
2020-04-27T20:39:03.7196775Z     Finished dev [unoptimized] target(s) in 0.21s
2020-04-27T20:39:05.1183370Z    Compiling log v0.4.8
2020-04-27T20:39:05.1183953Z    Compiling memchr v2.3.2
---
2020-04-27T20:39:54.4562067Z    Compiling semver v0.9.0
2020-04-27T20:39:56.0669574Z    Compiling cargo_metadata v0.9.1
2020-04-27T20:39:59.6585592Z    Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
2020-04-27T20:40:10.5194751Z     Finished release [optimized] target(s) in 24.60s
2020-04-27T20:40:10.5200739Z {"reason":"build-finished","success":true}
2020-04-27T20:40:17.7457820Z * 596 error codes
2020-04-27T20:40:17.7458627Z * highest error code: E0753
2020-04-27T20:40:18.1263579Z * 283 features
2020-04-27T20:40:20.4393692Z Checking which error codes lack tests...
---
2020-04-27T20:40:22.6273224Z skip untracked path cpu-usage.csv during rustfmt invocations
2020-04-27T20:40:22.6273656Z skip untracked path src/doc/book/ during rustfmt invocations
2020-04-27T20:40:22.6274232Z skip untracked path src/doc/rust-by-example/ during rustfmt invocations
2020-04-27T20:40:22.6279602Z skip untracked path src/llvm-project/ during rustfmt invocations
2020-04-27T20:40:23.8360769Z Diff in /checkout/src/libfmt_macros/lib.rs at line 322:
2020-04-27T20:40:23.8361188Z                  let pos = self.to_span_index(pos);
2020-04-27T20:40:23.8362254Z                  let description = format!("expected `'}}'`, found `{:?}`", maybe);
2020-04-27T20:40:23.8362602Z                  let label = "expected `}`".to_owned();
2020-04-27T20:40:23.8363058Z -                let note = Some(
2020-04-27T20:40:23.8363603Z -                        "if you intended to print `{`, you can escape it using `{{`".to_owned(),
2020-04-27T20:40:23.8364397Z -                let secondary_label =
2020-04-27T20:40:23.8364830Z -                    self.last_opening_brace
2020-04-27T20:40:23.8364830Z -                    self.last_opening_brace
2020-04-27T20:40:23.8365343Z -                        .map(|sp| ("because of this opening brace".to_owned(), sp));
2020-04-27T20:40:23.8365619Z +                let note =
2020-04-27T20:40:23.8365930Z +                    Some("if you intended to print `{`, you can escape it using `{{`".to_owned());
2020-04-27T20:40:23.8366250Z +                let secondary_label = self
2020-04-27T20:40:23.8366482Z +                    .last_opening_brace
2020-04-27T20:40:23.8366786Z +                    .map(|sp| ("because of this opening brace".to_owned(), sp));
2020-04-27T20:40:23.8367080Z                  self.errors.push(ParseError {
2020-04-27T20:40:23.8367519Z                      note,
2020-04-27T20:40:23.8367519Z                      note,
2020-04-27T20:40:23.8376205Z Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt" "--config-path" "/checkout" "--edition" "2018" "--unstable-features" "--skip-children" "--check" "/checkout/src/libfmt_macros/lib.rs"` failed.
2020-04-27T20:40:23.8377550Z If you're running `tidy`, try again with `--bless` flag. Or, you just want to format code, run `./x.py fmt` instead.
2020-04-27T20:40:23.8391266Z Build completed unsuccessfully in 0:00:39
2020-04-27T20:40:23.8500767Z == clock drift check ==
2020-04-27T20:40:23.8521923Z   local time: Mon Apr 27 20:40:23 UTC 2020
2020-04-27T20:40:23.8521923Z   local time: Mon Apr 27 20:40:23 UTC 2020
2020-04-27T20:40:24.0118928Z   network time: Mon, 27 Apr 2020 20:40:24 GMT
2020-04-27T20:40:25.4988647Z 
2020-04-27T20:40:25.4988647Z 
2020-04-27T20:40:25.5063500Z ##[error]Bash exited with code '1'.
2020-04-27T20:40:25.5079556Z ##[section]Finishing: Run build
2020-04-27T20:40:25.5129830Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T20:40:25.5135369Z Task         : Get sources
2020-04-27T20:40:25.5135693Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T20:40:25.5135976Z Version      : 1.0.0
2020-04-27T20:40:25.5136181Z Author       : Microsoft
2020-04-27T20:40:25.5136181Z Author       : Microsoft
2020-04-27T20:40:25.5136519Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-27T20:40:25.5137353Z ==============================================================================
2020-04-27T20:40:25.8575807Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-27T20:40:25.8621475Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T20:40:25.8708457Z Cleaning up task key
2020-04-27T20:40:25.8709691Z Start cleaning up orphan processes.
2020-04-27T20:40:25.8911788Z Terminate orphan process: pid (3651) (python)
2020-04-27T20:40:25.9066845Z ##[section]Finishing: Finalize Job

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

@petrochenkov
Copy link
Contributor

x.py fmt formats the codebase, x.py test tidy --bless formats the codebase and makes sure there are no other style violations.

@rust-highfive
Copy link
Contributor

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-04-27T21:36:10.5849539Z ========================== Starting Command Output ===========================
2020-04-27T21:36:10.5854305Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/70670c4f-2b1e-4599-97d0-6dcb0fe707b6.sh
2020-04-27T21:36:10.5854721Z 
2020-04-27T21:36:10.5858961Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-27T21:36:10.5876532Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T21:36:10.5879557Z Task         : Get sources
2020-04-27T21:36:10.5879845Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T21:36:10.5880108Z Version      : 1.0.0
2020-04-27T21:36:10.5880294Z Author       : Microsoft
---
2020-04-27T21:36:11.7886178Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-27T21:36:11.7894623Z ##[command]git config gc.auto 0
2020-04-27T21:36:11.7898759Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-27T21:36:11.7902027Z ##[command]git config --get-all http.proxy
2020-04-27T21:36:11.7909626Z ##[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/71158/merge:refs/remotes/pull/71158/merge
---
2020-04-27T21:38:16.6798473Z  ---> cb2676f08729
2020-04-27T21:38:16.6799547Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-27T21:38:16.6804569Z  ---> Using cache
2020-04-27T21:38:16.6805163Z  ---> df25ce111862
2020-04-27T21:38:16.6806547Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-27T21:38:16.6812296Z  ---> 599b9ac96b27
2020-04-27T21:38:16.6812629Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-27T21:38:16.6817180Z  ---> Using cache
2020-04-27T21:38:16.6817909Z  ---> 091087e35a36
---
2020-04-27T21:38:16.7437203Z Looks like docker image is the same as before, not uploading
2020-04-27T21:38:25.0087912Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-27T21:38:25.0312218Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-27T21:38:25.0340960Z == clock drift check ==
2020-04-27T21:38:25.0350492Z   local time: Mon Apr 27 21:38:25 UTC 2020
2020-04-27T21:38:25.0771641Z   network time: Mon, 27 Apr 2020 21:38:25 GMT
2020-04-27T21:38:25.0808992Z Starting sccache server...
2020-04-27T21:38:25.1606422Z configure: processing command line
2020-04-27T21:38:25.1607091Z configure: 
2020-04-27T21:38:25.1608250Z configure: rust.dist-src        := False
---
2020-04-27T21:40:42.8654090Z    Compiling unicode-width v0.1.6
2020-04-27T21:40:42.9510694Z    Compiling getopts v0.2.21
2020-04-27T21:40:52.6785624Z    Compiling test v0.0.0 (/checkout/src/libtest)
2020-04-27T21:41:00.9640138Z     Finished release [optimized] target(s) in 1m 00s
2020-04-27T21:41:00.9641146Z {"reason":"build-finished","success":true}
2020-04-27T21:41:00.9910296Z Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T21:41:01.5434320Z    Compiling cfg-if v0.1.10
2020-04-27T21:41:01.5434767Z    Compiling libc v0.2.69
2020-04-27T21:41:01.5918995Z    Compiling semver-parser v0.7.0
---
2020-04-27T21:43:33.7809961Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-27T21:43:35.2358406Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-27T21:43:36.6622430Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-27T21:43:37.7087973Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-27T21:43:46.4711559Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-27T21:43:48.8989308Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-27T21:43:53.3118865Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-27T21:43:57.3847377Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-27T21:44:07.0103827Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-27T21:57:27.5820837Z    Compiling rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-27T21:57:57.3935799Z    Compiling rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-27T22:02:00.4631815Z    Compiling rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-27T22:02:01.0432045Z     Finished release [optimized] target(s) in 21m 00s
2020-04-27T22:02:01.0433291Z {"reason":"build-finished","success":true}
2020-04-27T22:02:01.0960254Z Assembling stage1 compiler (x86_64-unknown-linux-gnu)
2020-04-27T22:02:01.0977952Z Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T22:02:01.3797069Z    Compiling cc v1.0.50
2020-04-27T22:02:01.3814798Z    Compiling core v0.0.0 (/checkout/src/libcore)
---
2020-04-27T22:02:45.7718258Z    Compiling term v0.0.0 (/checkout/src/libterm)
2020-04-27T22:02:50.0419802Z    Compiling unicode-width v0.1.6
2020-04-27T22:02:50.1376321Z    Compiling getopts v0.2.21
2020-04-27T22:03:01.7836992Z    Compiling test v0.0.0 (/checkout/src/libtest)
2020-04-27T22:03:10.8529772Z     Finished release [optimized] target(s) in 1m 09s{"reason":"build-finished","success":true}
2020-04-27T22:03:10.8627679Z Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
2020-04-27T22:03:10.8643501Z Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T22:03:11.3897938Z    Compiling cfg-if v0.1.10
2020-04-27T22:03:11.3898496Z    Compiling libc v0.2.69
---
2020-04-27T22:05:58.1959498Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-27T22:05:59.7887450Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-27T22:06:01.5341597Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-27T22:06:02.5325202Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-27T22:06:12.4976930Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-27T22:06:15.4217451Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-27T22:06:20.0164877Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-27T22:06:24.3147669Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-27T22:06:33.9048076Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-27T22:22:24.0714105Z    Compiling rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-27T22:22:31.7941374Z    Compiling rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-27T22:25:26.5902285Z    Compiling rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-27T22:25:27.1853818Z     Finished release [optimized] target(s) in 22m 16s
2020-04-27T22:25:27.1856558Z {"reason":"build-finished","success":true}
2020-04-27T22:25:27.2367725Z Assembling stage2 compiler (x86_64-unknown-linux-gnu)
2020-04-27T22:25:27.2383769Z Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T22:25:27.2384616Z Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
2020-04-27T22:25:27.2393883Z Building test helpers
---
2020-04-27T22:26:07.9577876Z    Compiling serde_derive v1.0.81
2020-04-27T22:26:34.0789924Z    Compiling serde_json v1.0.40
2020-04-27T22:26:35.4668243Z    Compiling rustfix v0.5.0
2020-04-27T22:26:38.6098999Z    Compiling compiletest v0.0.0 (/checkout/src/tools/compiletest)
2020-04-27T22:26:52.0482325Z    {"reason":"build-finished","success":true}
2020-04-27T22:26:52.0727717Z Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-27T22:26:54.8254101Z 
2020-04-27T22:26:54.8254428Z running 9927 tests
2020-04-27T22:27:07.1660724Z .................................................................................................... 100/9927
---
2020-04-27T22:28:47.8880196Z .................................................................................................... 1700/9927
2020-04-27T22:28:51.9261333Z .................................................................................................... 1800/9927
2020-04-27T22:28:59.2447615Z .................................................................................................... 1900/9927
2020-04-27T22:29:07.1108056Z ........i........................................................................................... 2000/9927
2020-04-27T22:29:13.0383790Z ..................................................................................................ii 2100/9927
2020-04-27T22:29:25.7094430Z iii................................................................................................. 2200/9927
2020-04-27T22:29:33.7115345Z .................................................................................................... 2400/9927
2020-04-27T22:29:35.8692037Z .................................................................................................... 2500/9927
2020-04-27T22:29:41.0726823Z .................................................................................................... 2600/9927
2020-04-27T22:29:58.3176519Z .................................................................................................... 2700/9927
---
2020-04-27T22:32:26.1275923Z .....................................................................F.............................. 5100/9927
2020-04-27T22:32:32.6589318Z .................................................................................................... 5200/9927
2020-04-27T22:32:36.8974684Z .....................i.............................................................................. 5300/9927
2020-04-27T22:32:45.9618569Z ............i....................................................................................... 5400/9927
2020-04-27T22:32:51.3315648Z .............ii.ii........i...i..................................................................... 5500/9927
2020-04-27T22:32:58.6518512Z ............................................................i....................................... 5700/9927
2020-04-27T22:33:06.7636025Z .............................................................................................ii..... 5800/9927
2020-04-27T22:33:12.9328760Z ................................i................................................................... 5900/9927
2020-04-27T22:33:18.2928442Z .................................................................................................... 6000/9927
2020-04-27T22:33:18.2928442Z .................................................................................................... 6000/9927
2020-04-27T22:33:28.0431082Z .................................................................................................... 6100/9927
2020-04-27T22:33:37.5370645Z ..........................ii...i..ii...........i.................................................... 6200/9927
2020-04-27T22:33:52.6920582Z .................................................................................................... 6400/9927
2020-04-27T22:33:59.0360995Z .................................................................................................... 6500/9927
2020-04-27T22:33:59.0360995Z .................................................................................................... 6500/9927
2020-04-27T22:34:08.3232467Z ........................................................i..ii....................................... 6600/9927
2020-04-27T22:34:30.4139311Z .................................................................................................... 6800/9927
2020-04-27T22:34:34.5614524Z .........................................................i.......................................... 6900/9927
2020-04-27T22:34:36.4787338Z .................................................................................................... 7000/9927
2020-04-27T22:34:38.4429216Z ...................................................................................................i 7100/9927
---
2020-04-27T22:36:11.0155971Z .................................................................................................... 7900/9927
2020-04-27T22:36:15.8629753Z .................................................................................................... 8000/9927
2020-04-27T22:36:21.7857214Z ...................................................................i................................ 8100/9927
2020-04-27T22:36:30.9089605Z .................................................................................................... 8200/9927
2020-04-27T22:36:35.9167904Z ................iiiiii.iiiii.i...................................................................... 8300/9927
2020-04-27T22:36:48.6908517Z .................................................................................................... 8500/9927
2020-04-27T22:36:53.9579588Z .................................................................................................... 8600/9927
2020-04-27T22:37:07.2820878Z .................................................................................................... 8700/9927
2020-04-27T22:37:13.6872305Z .................................................................................................... 8800/9927
---
2020-04-27T22:38:55.8664064Z ---- [ui] ui/fmt/format-string-error-2.rs stdout ----
2020-04-27T22:38:55.8664425Z diff of stderr:
2020-04-27T22:38:55.8664638Z 
2020-04-27T22:38:55.8664899Z 6    |                      |
2020-04-27T22:38:55.8665298Z 7    |                      help: format of unicode escape sequences uses braces: `\u{8}`
2020-04-27T22:38:55.8665877Z 8 
2020-04-27T22:38:55.8666469Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-27T22:38:55.8667064Z -   --> $DIR/format-string-error-2.rs:5:5
2020-04-27T22:38:55.8667659Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8668887Z 11    |
2020-04-27T22:38:55.8669807Z 12 LL |     format!("{
2020-04-27T22:38:55.8671409Z -    |              - because of this opening brace
2020-04-27T22:38:55.8672895Z - LL |     a");
2020-04-27T22:38:55.8672895Z - LL |     a");
2020-04-27T22:38:55.8676668Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8679026Z +    |              -^ expected `}` in format string
2020-04-27T22:38:55.8681782Z +    |              because of this opening brace
2020-04-27T22:38:55.8683034Z 16    |
2020-04-27T22:38:55.8683034Z 16    |
2020-04-27T22:38:55.8683450Z 17    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8684959Z 
2020-04-27T22:38:55.8684959Z 
2020-04-27T22:38:55.8685851Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-27T22:38:55.8688170Z -   --> $DIR/format-string-error-2.rs:9:5
2020-04-27T22:38:55.8689931Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8692840Z 21    |
2020-04-27T22:38:55.8693125Z 22 LL |     format!("{ \
2020-04-27T22:38:55.8694504Z -    |              - because of this opening brace
2020-04-27T22:38:55.8695948Z - LL | 
2020-04-27T22:38:55.8695948Z - LL | 
2020-04-27T22:38:55.8696570Z - LL |     b");
2020-04-27T22:38:55.8698248Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8699769Z +    |              -^ expected `}` in format string
2020-04-27T22:38:55.8701351Z +    |              because of this opening brace
2020-04-27T22:38:55.8701814Z 27    |
2020-04-27T22:38:55.8701814Z 27    |
2020-04-27T22:38:55.8702150Z 28    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8702928Z 
2020-04-27T22:38:55.8702928Z 
2020-04-27T22:38:55.8703746Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-27T22:38:55.8704396Z -   --> $DIR/format-string-error-2.rs:11:18
2020-04-27T22:38:55.8704989Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8705907Z 32    |
2020-04-27T22:38:55.8705907Z 32    |
2020-04-27T22:38:55.8706153Z 33 LL |     format!(r#"{ \
2020-04-27T22:38:55.8706686Z -    |                - ^ expected `}` in format string
2020-04-27T22:38:55.8707258Z +    |                -^ expected `}` in format string
2020-04-27T22:38:55.8707917Z 36    |                because of this opening brace
2020-04-27T22:38:55.8708193Z 37    |
2020-04-27T22:38:55.8708383Z 
2020-04-27T22:38:55.8708383Z 
2020-04-27T22:38:55.8708706Z 38    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8709019Z 39 
2020-04-27T22:38:55.8709521Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-27T22:38:55.8710131Z -   --> $DIR/format-string-error-2.rs:15:18
2020-04-27T22:38:55.8710718Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8711622Z 42    |
2020-04-27T22:38:55.8711622Z 42    |
2020-04-27T22:38:55.8711869Z 43 LL |     format!(r#"{ \n
2020-04-27T22:38:55.8712390Z -    |                - ^ expected `}` in format string
2020-04-27T22:38:55.8712963Z +    |                -^ expected `}` in format string
2020-04-27T22:38:55.8713711Z 46    |                because of this opening brace
2020-04-27T22:38:55.8717575Z 47    |
2020-04-27T22:38:55.8717678Z 
2020-04-27T22:38:55.8717678Z 
2020-04-27T22:38:55.8717893Z 48    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8718095Z 49 
2020-04-27T22:38:55.8719821Z - error: invalid format string: expected `'}'`, found `'e'`
2020-04-27T22:38:55.8720543Z -   --> $DIR/format-string-error-2.rs:21:5
2020-04-27T22:38:55.8720975Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8721576Z 52    |
2020-04-27T22:38:55.8723454Z 53 LL |     format!("{ \n
2020-04-27T22:38:55.8723934Z -    |              - because of this opening brace
2020-04-27T22:38:55.8724259Z - LL | \n
2020-04-27T22:38:55.8724259Z - LL | \n
2020-04-27T22:38:55.8724517Z - LL |     e");
2020-04-27T22:38:55.8724834Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8725340Z +    |              -^ expected `}` in format string
2020-04-27T22:38:55.8725756Z +    |              because of this opening brace
2020-04-27T22:38:55.8725925Z 58    |
2020-04-27T22:38:55.8725925Z 58    |
2020-04-27T22:38:55.8726150Z 59    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8726438Z 
2020-04-27T22:38:55.8726438Z 
2020-04-27T22:38:55.8726844Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-27T22:38:55.8727266Z -   --> $DIR/format-string-error-2.rs:25:5
2020-04-27T22:38:55.8727685Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8728279Z 63    |
2020-04-27T22:38:55.8728401Z 64 LL |     {
2020-04-27T22:38:55.8728717Z -    |     - because of this opening brace
2020-04-27T22:38:55.8729030Z - LL |     a");
2020-04-27T22:38:55.8729030Z - LL |     a");
2020-04-27T22:38:55.8729345Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8729703Z +    |     -^ expected `}` in format string
2020-04-27T22:38:55.8730055Z +    |     because of this opening brace
2020-04-27T22:38:55.8730211Z 68    |
2020-04-27T22:38:55.8730211Z 68    |
2020-04-27T22:38:55.8730668Z 69    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8730959Z 
2020-04-27T22:38:55.8730959Z 
2020-04-27T22:38:55.8731354Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-27T22:38:55.8731789Z -   --> $DIR/format-string-error-2.rs:29:5
2020-04-27T22:38:55.8732208Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8732800Z 73    |
2020-04-27T22:38:55.8732921Z 74 LL |     {
2020-04-27T22:38:55.8733236Z -    |     - because of this opening brace
2020-04-27T22:38:55.8733539Z - LL |     a
2020-04-27T22:38:55.8733539Z - LL |     a
2020-04-27T22:38:55.8733851Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8734204Z +    |     -^ expected `}` in format string
2020-04-27T22:38:55.8734559Z +    |     because of this opening brace
2020-04-27T22:38:55.8734715Z 78    |
2020-04-27T22:38:55.8734715Z 78    |
2020-04-27T22:38:55.8734938Z 79    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8735222Z 
2020-04-27T22:38:55.8735222Z 
2020-04-27T22:38:55.8735720Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-27T22:38:55.8736149Z -   --> $DIR/format-string-error-2.rs:35:5
2020-04-27T22:38:55.8736575Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8737168Z 83    |
2020-04-27T22:38:55.8737292Z 84 LL |     { \
2020-04-27T22:38:55.8737928Z -    |     - because of this opening brace
2020-04-27T22:38:55.8738406Z - LL |         \
2020-04-27T22:38:55.8738406Z - LL |         \
2020-04-27T22:38:55.8739458Z - LL |     b");
2020-04-27T22:38:55.8739788Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8740142Z +    |     -^ expected `}` in format string
2020-04-27T22:38:55.8741108Z +    |     because of this opening brace
2020-04-27T22:38:55.8741439Z 89    |
2020-04-27T22:38:55.8741439Z 89    |
2020-04-27T22:38:55.8741671Z 90    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8741953Z 
2020-04-27T22:38:55.8741953Z 
2020-04-27T22:38:55.8742424Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-27T22:38:55.8743025Z -   --> $DIR/format-string-error-2.rs:40:5
2020-04-27T22:38:55.8743648Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8744252Z 94    |
2020-04-27T22:38:55.8749932Z 95 LL |     { \
2020-04-27T22:38:55.8752180Z -    |     - because of this opening brace
2020-04-27T22:38:55.8752607Z - LL |         \
2020-04-27T22:38:55.8752607Z - LL |         \
2020-04-27T22:38:55.8752913Z - LL |     b \
2020-04-27T22:38:55.8753278Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8753708Z +    |     -^ expected `}` in format string
2020-04-27T22:38:55.8754285Z +    |     because of this opening brace
2020-04-27T22:38:55.8754488Z 100    |
2020-04-27T22:38:55.8754488Z 100    |
2020-04-27T22:38:55.8754731Z 101    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8755067Z 
2020-04-27T22:38:55.8755067Z 
2020-04-27T22:38:55.8755788Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-27T22:38:55.8756310Z -   --> $DIR/format-string-error-2.rs:45:8
2020-04-27T22:38:55.8756735Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8757335Z 105    |
2020-04-27T22:38:55.8757335Z 105    |
2020-04-27T22:38:55.8757463Z 106 LL | raw  { \
2020-04-27T22:38:55.8757805Z -    |      - ^ expected `}` in format string
2020-04-27T22:38:55.8758168Z +    |      -^ expected `}` in format string
2020-04-27T22:38:55.8758530Z 109    |      because of this opening brace
2020-04-27T22:38:55.8758691Z 110    |
2020-04-27T22:38:55.8758786Z 
2020-04-27T22:38:55.8758786Z 
2020-04-27T22:38:55.8758988Z 111    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8759208Z 112 
2020-04-27T22:38:55.8759567Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-27T22:38:55.8759973Z -   --> $DIR/format-string-error-2.rs:50:8
2020-04-27T22:38:55.8760407Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8760991Z 115    |
2020-04-27T22:38:55.8760991Z 115    |
2020-04-27T22:38:55.8761136Z 116 LL | raw  { \n
2020-04-27T22:38:55.8761466Z -    |      - ^ expected `}` in format string
2020-04-27T22:38:55.8761826Z +    |      -^ expected `}` in format string
2020-04-27T22:38:55.8762190Z 119    |      because of this opening brace
2020-04-27T22:38:55.8762352Z 120    |
2020-04-27T22:38:55.8762442Z 
2020-04-27T22:38:55.8762442Z 
2020-04-27T22:38:55.8762658Z 121    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8762862Z 122 
2020-04-27T22:38:55.8763221Z - error: invalid format string: expected `'}'`, found `'e'`
2020-04-27T22:38:55.8763643Z -   --> $DIR/format-string-error-2.rs:57:5
2020-04-27T22:38:55.8764060Z + error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8764653Z 125    |
2020-04-27T22:38:55.8764778Z 126 LL |   { \n
2020-04-27T22:38:55.8765099Z -    |   - because of this opening brace
2020-04-27T22:38:55.8765394Z - LL | \n
2020-04-27T22:38:55.8765394Z - LL | \n
2020-04-27T22:38:55.8765648Z - LL |     e");
2020-04-27T22:38:55.8765965Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8766316Z +    |   -^ expected `}` in format string
2020-04-27T22:38:55.8766658Z +    |   because of this opening brace
2020-04-27T22:38:55.8766814Z 131    |
2020-04-27T22:38:55.8766814Z 131    |
2020-04-27T22:38:55.8767039Z 132    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8767329Z 
2020-04-27T22:38:55.8767329Z 
2020-04-27T22:38:55.8767702Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-27T22:38:55.8768111Z -   --> $DIR/format-string-error-2.rs:67:5
2020-04-27T22:38:55.8768528Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8769126Z 136    |
2020-04-27T22:38:55.8769254Z + LL |     {asdf
2020-04-27T22:38:55.8769703Z +    |     -    ^ expected `}` in format string
2020-04-27T22:38:55.8769895Z +    |     |
2020-04-27T22:38:55.8769895Z +    |     |
2020-04-27T22:38:55.8770060Z +    |     because of this opening brace
2020-04-27T22:38:55.8770215Z +    |
2020-04-27T22:38:55.8770437Z +    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8770667Z + 
2020-04-27T22:38:55.8771036Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8771634Z +    |
2020-04-27T22:38:55.8771757Z 137 LL |     {
2020-04-27T22:38:55.8772155Z -    |     - because of this opening brace
2020-04-27T22:38:55.8772488Z - LL |     asdf}
2020-04-27T22:38:55.8772488Z - LL |     asdf}
2020-04-27T22:38:55.8772807Z -    |     ^ expected `}` in format string
2020-04-27T22:38:55.8773163Z +    |     -^ expected `}` in format string
2020-04-27T22:38:55.8773516Z +    |     because of this opening brace
2020-04-27T22:38:55.8773675Z 141    |
2020-04-27T22:38:55.8773675Z 141    |
2020-04-27T22:38:55.8773902Z 142    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8774198Z 
2020-04-27T22:38:55.8774198Z 
2020-04-27T22:38:55.8774351Z 147 LL |     println!("\t{}");
2020-04-27T22:38:55.8774659Z 149 
2020-04-27T22:38:55.8774659Z 149 
2020-04-27T22:38:55.8775049Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8775528Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8776123Z 152    |
2020-04-27T22:38:55.8776123Z 152    |
2020-04-27T22:38:55.8776302Z 153 LL |     println!("\x7B}\u{8} {", 1);
2020-04-27T22:38:55.8776435Z 
2020-04-27T22:38:55.8776789Z -    |                          -^ expected `'}'` in format string
2020-04-27T22:38:55.8777237Z +    |                          -^ expected `}` in format string
2020-04-27T22:38:55.8777693Z 156    |                          because of this opening brace
2020-04-27T22:38:55.8777903Z 157    |
2020-04-27T22:38:55.8777993Z 
2020-04-27T22:38:55.8778097Z 173    |
2020-04-27T22:38:55.8778097Z 173    |
2020-04-27T22:38:55.8778306Z 174    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.8778843Z - error: aborting due to 18 previous errors
2020-04-27T22:38:55.8779062Z + error: aborting due to 19 previous errors
2020-04-27T22:38:55.8779238Z 177 
2020-04-27T22:38:55.8779342Z 178 
2020-04-27T22:38:55.8779342Z 178 
2020-04-27T22:38:55.8779427Z 
2020-04-27T22:38:55.8779506Z 
2020-04-27T22:38:55.8779695Z The actual stderr differed from the expected stderr.
2020-04-27T22:38:55.8780262Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2/format-string-error-2.stderr
2020-04-27T22:38:55.8780786Z To update references, rerun the tests and pass the `--bless` flag
2020-04-27T22:38:55.8781282Z To only update this specific test, also pass `--test-args fmt/format-string-error-2.rs`
2020-04-27T22:38:55.8781641Z error: 1 errors occurred comparing output.
2020-04-27T22:38:55.8781831Z status: exit code: 1
2020-04-27T22:38:55.8781831Z status: exit code: 1
2020-04-27T22:38:55.8784100Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/fmt/format-string-error-2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2" "-A" "unused" "-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/fmt/format-string-error-2/auxiliary"
2020-04-27T22:38:55.8785586Z ------------------------------------------
2020-04-27T22:38:55.8785738Z 
2020-04-27T22:38:55.8786079Z ------------------------------------------
2020-04-27T22:38:55.8786255Z stderr:
2020-04-27T22:38:55.8786255Z stderr:
2020-04-27T22:38:55.8786728Z ------------------------------------------
2020-04-27T22:38:55.8786953Z error: incorrect unicode escape sequence
2020-04-27T22:38:55.8787417Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:77:20
2020-04-27T22:38:55.8787630Z    |
2020-04-27T22:38:55.8787791Z LL |     println!("\x7B}\u8 {", 1);
2020-04-27T22:38:55.8788321Z    |                      |
2020-04-27T22:38:55.8788321Z    |                      |
2020-04-27T22:38:55.8788624Z    |                      help: format of unicode escape sequences uses braces: `\u{8}`
2020-04-27T22:38:55.8788885Z 
2020-04-27T22:38:55.8789324Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8790127Z    |
2020-04-27T22:38:55.8790254Z LL |     format!("{
2020-04-27T22:38:55.8790254Z LL |     format!("{
2020-04-27T22:38:55.8790596Z    |              -^ expected `}` in format string
2020-04-27T22:38:55.8790984Z    |              because of this opening brace
2020-04-27T22:38:55.8791151Z    |
2020-04-27T22:38:55.8791151Z    |
2020-04-27T22:38:55.8791365Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8791541Z 
2020-04-27T22:38:55.8791887Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8792536Z    |
2020-04-27T22:38:55.8792665Z LL |     format!("{ \
2020-04-27T22:38:55.8792665Z LL |     format!("{ \
2020-04-27T22:38:55.8793007Z    |              -^ expected `}` in format string
2020-04-27T22:38:55.8793401Z    |              because of this opening brace
2020-04-27T22:38:55.8793562Z    |
2020-04-27T22:38:55.8793562Z    |
2020-04-27T22:38:55.8793776Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8793951Z 
2020-04-27T22:38:55.8794297Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8794961Z    |
2020-04-27T22:38:55.8794961Z    |
2020-04-27T22:38:55.8795094Z LL |     format!(r#"{ \
2020-04-27T22:38:55.8795446Z    |                -^ expected `}` in format string
2020-04-27T22:38:55.8795847Z    |                because of this opening brace
2020-04-27T22:38:55.8796011Z    |
2020-04-27T22:38:55.8796011Z    |
2020-04-27T22:38:55.8796224Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8796398Z 
2020-04-27T22:38:55.8796740Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8797404Z    |
2020-04-27T22:38:55.8797404Z    |
2020-04-27T22:38:55.8797538Z LL |     format!(r#"{ \n
2020-04-27T22:38:55.8797891Z    |                -^ expected `}` in format string
2020-04-27T22:38:55.8798289Z    |                because of this opening brace
2020-04-27T22:38:55.8798452Z    |
2020-04-27T22:38:55.8798452Z    |
2020-04-27T22:38:55.8798665Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8798844Z 
2020-04-27T22:38:55.8799189Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8799845Z    |
2020-04-27T22:38:55.8799976Z LL |     format!("{ \n
2020-04-27T22:38:55.8799976Z LL |     format!("{ \n
2020-04-27T22:38:55.8800320Z    |              -^ expected `}` in format string
2020-04-27T22:38:55.8800708Z    |              because of this opening brace
2020-04-27T22:38:55.8800869Z    |
2020-04-27T22:38:55.8800869Z    |
2020-04-27T22:38:55.8801086Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8801260Z 
2020-04-27T22:38:55.8801608Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8802261Z    |
2020-04-27T22:38:55.8802376Z LL |     {
2020-04-27T22:38:55.8802376Z LL |     {
2020-04-27T22:38:55.8802684Z    |     -^ expected `}` in format string
2020-04-27T22:38:55.8803095Z    |     because of this opening brace
2020-04-27T22:38:55.8803245Z    |
2020-04-27T22:38:55.8803245Z    |
2020-04-27T22:38:55.8803458Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8803633Z 
2020-04-27T22:38:55.8804000Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8804659Z    |
2020-04-27T22:38:55.8804772Z LL |     {
2020-04-27T22:38:55.8804772Z LL |     {
2020-04-27T22:38:55.8805078Z    |     -^ expected `}` in format string
2020-04-27T22:38:55.8805477Z    |     because of this opening brace
2020-04-27T22:38:55.8805626Z    |
2020-04-27T22:38:55.8805626Z    |
2020-04-27T22:38:55.8805836Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8806010Z 
2020-04-27T22:38:55.8806375Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8807036Z    |
2020-04-27T22:38:55.8807153Z LL |     { \
2020-04-27T22:38:55.8807153Z LL |     { \
2020-04-27T22:38:55.8807466Z    |     -^ expected `}` in format string
2020-04-27T22:38:55.8807810Z    |     because of this opening brace
2020-04-27T22:38:55.8807960Z    |
2020-04-27T22:38:55.8807960Z    |
2020-04-27T22:38:55.8808174Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8808350Z 
2020-04-27T22:38:55.8808695Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8809350Z    |
2020-04-27T22:38:55.8809465Z LL |     { \
2020-04-27T22:38:55.8809465Z LL |     { \
2020-04-27T22:38:55.8809797Z    |     -^ expected `}` in format string
2020-04-27T22:38:55.8810122Z    |     because of this opening brace
2020-04-27T22:38:55.8810272Z    |
2020-04-27T22:38:55.8810272Z    |
2020-04-27T22:38:55.8810486Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8810666Z 
2020-04-27T22:38:55.8811011Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8811664Z    |
2020-04-27T22:38:55.8811664Z    |
2020-04-27T22:38:55.8811781Z LL | raw  { \
2020-04-27T22:38:55.8812110Z    |      -^ expected `}` in format string
2020-04-27T22:38:55.8812440Z    |      because of this opening brace
2020-04-27T22:38:55.8812589Z    |
2020-04-27T22:38:55.8812589Z    |
2020-04-27T22:38:55.8812804Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8812978Z 
2020-04-27T22:38:55.8813325Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8813978Z    |
2020-04-27T22:38:55.8813978Z    |
2020-04-27T22:38:55.8814097Z LL | raw  { \n
2020-04-27T22:38:55.8814430Z    |      -^ expected `}` in format string
2020-04-27T22:38:55.8814761Z    |      because of this opening brace
2020-04-27T22:38:55.8814916Z    |
2020-04-27T22:38:55.8814916Z    |
2020-04-27T22:38:55.8815129Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8815304Z 
2020-04-27T22:38:55.8815647Z error: invalid format string: expected `'}'`, found `' '`
2020-04-27T22:38:55.8816296Z    |
2020-04-27T22:38:55.8816410Z LL |   { \n
2020-04-27T22:38:55.8816410Z LL |   { \n
2020-04-27T22:38:55.8816736Z    |   -^ expected `}` in format string
2020-04-27T22:38:55.8817053Z    |   because of this opening brace
2020-04-27T22:38:55.8817200Z    |
2020-04-27T22:38:55.8817200Z    |
2020-04-27T22:38:55.8817413Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8817587Z 
2020-04-27T22:38:55.8817936Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8818591Z    |
2020-04-27T22:38:55.8818709Z LL |     {asdf
2020-04-27T22:38:55.8819133Z    |     -    ^ expected `}` in format string
2020-04-27T22:38:55.8819305Z    |     |
2020-04-27T22:38:55.8819305Z    |     |
2020-04-27T22:38:55.8819463Z    |     because of this opening brace
2020-04-27T22:38:55.8819611Z    |
2020-04-27T22:38:55.8819826Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8820001Z 
2020-04-27T22:38:55.8820349Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8821000Z    |
2020-04-27T22:38:55.8821113Z LL |     {
2020-04-27T22:38:55.8821113Z LL |     {
2020-04-27T22:38:55.8821507Z    |     -^ expected `}` in format string
2020-04-27T22:38:55.8821838Z    |     because of this opening brace
2020-04-27T22:38:55.8821987Z    |
2020-04-27T22:38:55.8821987Z    |
2020-04-27T22:38:55.8822197Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8822568Z error: 1 positional argument in format string, but no arguments were given
2020-04-27T22:38:55.8823425Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:70:17
2020-04-27T22:38:55.8823628Z    |
2020-04-27T22:38:55.8823628Z    |
2020-04-27T22:38:55.8823762Z LL |     println!("\t{}");
2020-04-27T22:38:55.8824050Z 
2020-04-27T22:38:55.8824050Z 
2020-04-27T22:38:55.8824405Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8825064Z    |
2020-04-27T22:38:55.8825064Z    |
2020-04-27T22:38:55.8825214Z LL |     println!("\x7B}\u{8} {", 1);
2020-04-27T22:38:55.8825610Z    |                          -^ expected `}` in format string
2020-04-27T22:38:55.8826066Z    |                          because of this opening brace
2020-04-27T22:38:55.8826243Z    |
2020-04-27T22:38:55.8826243Z    |
2020-04-27T22:38:55.8826456Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8826804Z error: invalid format string: unmatched `}` found
2020-04-27T22:38:55.8827249Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:81:21
2020-04-27T22:38:55.8827461Z    |
2020-04-27T22:38:55.8827461Z    |
2020-04-27T22:38:55.8827617Z LL |     println!(r#"\x7B}\u{8} {"#, 1);
2020-04-27T22:38:55.8827842Z    |                     ^ unmatched `}` in format string
2020-04-27T22:38:55.8828033Z    |
2020-04-27T22:38:55.8828230Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.8828595Z error: invalid format string: unmatched `}` found
2020-04-27T22:38:55.8829036Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:84:21
2020-04-27T22:38:55.8829232Z    |
2020-04-27T22:38:55.8829232Z    |
2020-04-27T22:38:55.8829399Z LL |     println!(r#"\x7B}\u8 {"#, 1);
2020-04-27T22:38:55.8829621Z    |                     ^ unmatched `}` in format string
2020-04-27T22:38:55.8829794Z    |
2020-04-27T22:38:55.8829990Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.8830336Z error: aborting due to 19 previous errors
2020-04-27T22:38:55.8830473Z 
2020-04-27T22:38:55.8830551Z 
2020-04-27T22:38:55.8830873Z ------------------------------------------
2020-04-27T22:38:55.8830873Z ------------------------------------------
2020-04-27T22:38:55.8831010Z 
2020-04-27T22:38:55.8831088Z 
2020-04-27T22:38:55.8831403Z ---- [ui] ui/fmt/format-string-error.rs stdout ----
2020-04-27T22:38:55.8831613Z diff of stderr:
2020-04-27T22:38:55.8831720Z 
2020-04-27T22:38:55.8832094Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8832568Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8833148Z 3    |
2020-04-27T22:38:55.8833284Z 4 LL |     println!("{");
2020-04-27T22:38:55.8833412Z 
2020-04-27T22:38:55.8833412Z 
2020-04-27T22:38:55.8833742Z -    |               -^ expected `'}'` in format string
2020-04-27T22:38:55.8834135Z +    |               -^ expected `}` in format string
2020-04-27T22:38:55.8834631Z 7    |               because of this opening brace
2020-04-27T22:38:55.8834800Z 8    |
2020-04-27T22:38:55.8834887Z 
2020-04-27T22:38:55.8835005Z 40    |
2020-04-27T22:38:55.8835005Z 40    |
2020-04-27T22:38:55.8835193Z 41    = note: argument name cannot be a single underscore
2020-04-27T22:38:55.8835372Z 42 
2020-04-27T22:38:55.8835801Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8836115Z + error: invalid format string: expected `}` but string was terminated
2020-04-27T22:38:55.8836852Z 45    |
2020-04-27T22:38:55.8837205Z 46 LL |     let _ = format!("{");
2020-04-27T22:38:55.8837347Z 
2020-04-27T22:38:55.8837347Z 
2020-04-27T22:38:55.8837748Z -    |                      -^ expected `'}'` in format string
2020-04-27T22:38:55.8838228Z +    |                      -^ expected `}` in format string
2020-04-27T22:38:55.8838704Z 49    |                      because of this opening brace
2020-04-27T22:38:55.8838925Z 50    |
2020-04-27T22:38:55.8839023Z 
2020-04-27T22:38:55.8839136Z 68    |
2020-04-27T22:38:55.8839136Z 68    |
2020-04-27T22:38:55.8839382Z 69    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8839602Z 70 
2020-04-27T22:38:55.8840251Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8840672Z -   --> $DIR/format-string-error.rs:21:35
2020-04-27T22:38:55.8841105Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8841680Z 73    |
2020-04-27T22:38:55.8841680Z 73    |
2020-04-27T22:38:55.8841864Z 74 LL |     let _ = format!("\n\n\n{\n\n\n");
2020-04-27T22:38:55.8842289Z -    |                            -      ^ expected `'}'` in format string
2020-04-27T22:38:55.8842736Z +    |                            -^ expected `}` in format string
2020-04-27T22:38:55.8843214Z 77    |                            because of this opening brace
2020-04-27T22:38:55.8843405Z 78    |
2020-04-27T22:38:55.8843510Z 
2020-04-27T22:38:55.8843510Z 
2020-04-27T22:38:55.8843707Z 79    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8843905Z 80 
2020-04-27T22:38:55.8844303Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8844617Z + error: invalid format string: expected `}` but string was terminated
2020-04-27T22:38:55.8845219Z 83    |
2020-04-27T22:38:55.8845219Z 83    |
2020-04-27T22:38:55.8845349Z 84 LL |     {"###);
2020-04-27T22:38:55.8845454Z 
2020-04-27T22:38:55.8845763Z -    |     -^ expected `'}'` in format string
2020-04-27T22:38:55.8846139Z +    |     -^ expected `}` in format string
---
2020-04-27T22:38:55.8897206Z 
2020-04-27T22:38:55.8897329Z 164    |             |
2020-04-27T22:38:55.8897519Z 165    |             formatting specifier missing
2020-04-27T22:38:55.8897701Z 166 
2020-04-27T22:38:55.8898086Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.8898398Z + error: invalid format string: expected `}` but string was terminated
2020-04-27T22:38:55.8898823Z 168   --> $DIR/ifmt-bad-arg.rs:51:15
2020-04-27T22:38:55.8899127Z 170 LL |     format!("{");
2020-04-27T22:38:55.8899257Z 
2020-04-27T22:38:55.8899257Z 
2020-04-27T22:38:55.8899582Z -    |              -^ expected `'}'` in format string
2020-04-27T22:38:55.8899972Z +    |              -^ expected `}` in format string
2020-04-27T22:38:55.8900379Z 173    |              because of this opening brace
2020-04-27T22:38:55.8900552Z 174    |
2020-04-27T22:38:55.8900642Z 
2020-04-27T22:38:55.8900787Z 206 LL |         {foo}
2020-04-27T22:38:55.8900787Z 206 LL |         {foo}
2020-04-27T22:38:55.8900940Z 207    |         ^^^^^
2020-04-27T22:38:55.8901068Z 208 
2020-04-27T22:38:55.8901441Z - error: invalid format string: expected `'}'`, found `'t'`
2020-04-27T22:38:55.8901824Z -   --> $DIR/ifmt-bad-arg.rs:75:1
2020-04-27T22:38:55.8902226Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8902625Z +   --> $DIR/ifmt-bad-arg.rs:74:16
2020-04-27T22:38:55.8902792Z 211    |
2020-04-27T22:38:55.8903468Z 212 LL | ninth number: {
2020-04-27T22:38:55.8903887Z -    |               - because of this opening brace
2020-04-27T22:38:55.8904251Z - LL | tenth number: {}",
2020-04-27T22:38:55.8905091Z -    | ^ expected `}` in format string
2020-04-27T22:38:55.8905526Z +    |               -^ expected `}` in format string
2020-04-27T22:38:55.8905990Z +    |               because of this opening brace
2020-04-27T22:38:55.8906187Z 216    |
2020-04-27T22:38:55.8906187Z 216    |
2020-04-27T22:38:55.8906454Z 217    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8906787Z 
2020-04-27T22:38:55.8906877Z 
2020-04-27T22:38:55.8907084Z The actual stderr differed from the expected stderr.
2020-04-27T22:38:55.8907690Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg/ifmt-bad-arg.stderr
2020-04-27T22:38:55.8907690Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg/ifmt-bad-arg.stderr
2020-04-27T22:38:55.8908264Z To update references, rerun the tests and pass the `--bless` flag
2020-04-27T22:38:55.8908977Z To only update this specific test, also pass `--test-args if/ifmt-bad-arg.rs`
2020-04-27T22:38:55.8909368Z error: 1 errors occurred comparing output.
2020-04-27T22:38:55.8909601Z status: exit code: 1
2020-04-27T22:38:55.8909601Z status: exit code: 1
2020-04-27T22:38:55.8911408Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/if/ifmt-bad-arg.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg" "-A" "unused" "-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/ifmt-bad-arg/auxiliary"
2020-04-27T22:38:55.8913052Z ------------------------------------------
2020-04-27T22:38:55.8913215Z 
2020-04-27T22:38:55.8913567Z ------------------------------------------
2020-04-27T22:38:55.8913751Z stderr:
---
2020-04-27T22:38:55.8925210Z 
2020-04-27T22:38:55.8925423Z error: invalid reference to positional argument 2 (there are 2 arguments)
2020-04-27T22:38:55.8925852Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:22:28
2020-04-27T22:38:55.8926121Z    |
2020-04-27T22:38:55.8926302Z LL |     format!("{} {value} {} {}", 1, value=2);
2020-04-27T22:38:55.8926735Z    |
2020-04-27T22:38:55.8927107Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8927256Z 
2020-04-27T22:38:55.8927256Z 
2020-04-27T22:38:55.8927466Z error: invalid reference to positional arguments 3, 4 and 5 (there are 3 arguments)
2020-04-27T22:38:55.8928109Z    |
2020-04-27T22:38:55.8928109Z    |
2020-04-27T22:38:55.8928307Z LL |     format!("{name} {value} {} {} {} {} {} {}", 0, name=1, value=2);
2020-04-27T22:38:55.8928625Z    |                                      ^^ ^^ ^^
2020-04-27T22:38:55.8929153Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8929302Z 
2020-04-27T22:38:55.8929469Z error: there is no argument named `foo`
2020-04-27T22:38:55.8929858Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-27T22:38:55.8929858Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-27T22:38:55.8930037Z    |
2020-04-27T22:38:55.8930203Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-27T22:38:55.8930533Z 
2020-04-27T22:38:55.8930683Z error: there is no argument named `bar`
2020-04-27T22:38:55.8931091Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:26
2020-04-27T22:38:55.8931270Z    |
2020-04-27T22:38:55.8931270Z    |
2020-04-27T22:38:55.8931437Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-27T22:38:55.8931784Z 
2020-04-27T22:38:55.8931932Z error: there is no argument named `foo`
2020-04-27T22:38:55.8932325Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:31:14
2020-04-27T22:38:55.8932518Z    |
2020-04-27T22:38:55.8932518Z    |
2020-04-27T22:38:55.8932745Z LL |     format!("{foo}");                //~ ERROR: no argument named `foo`
2020-04-27T22:38:55.8933250Z 
2020-04-27T22:38:55.8933416Z error: multiple unused formatting arguments
2020-04-27T22:38:55.8933839Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:32:17
2020-04-27T22:38:55.8934030Z    |
2020-04-27T22:38:55.8934030Z    |
2020-04-27T22:38:55.8934316Z LL |     format!("", 1, 2);               //~ ERROR: multiple unused formatting arguments
2020-04-27T22:38:55.8934796Z    |             --  ^  ^ argument never used
2020-04-27T22:38:55.8935202Z    |             |   argument never used
2020-04-27T22:38:55.8935541Z    |             multiple missing formatting specifiers
2020-04-27T22:38:55.8935692Z 
2020-04-27T22:38:55.8935838Z error: argument never used
---
2020-04-27T22:38:55.8939414Z 
2020-04-27T22:38:55.8939554Z error: named argument never used
2020-04-27T22:38:55.8939946Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:35:26
2020-04-27T22:38:55.8940125Z    |
2020-04-27T22:38:55.8940356Z LL |     format!("{}", 1, foo=2);         //~ ERROR: named argument never used
2020-04-27T22:38:55.8940829Z    |             ----         ^ named argument never used
2020-04-27T22:38:55.8941205Z    |             formatting specifier missing
2020-04-27T22:38:55.8941358Z 
2020-04-27T22:38:55.8941490Z error: argument never used
2020-04-27T22:38:55.8941954Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-27T22:38:55.8941954Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-27T22:38:55.8942134Z    |
2020-04-27T22:38:55.8942361Z LL |     format!("{foo}", 1, foo=2);      //~ ERROR: argument never used
2020-04-27T22:38:55.8942782Z    |             -------  ^ argument never used
2020-04-27T22:38:55.8943336Z    |             formatting specifier missing
2020-04-27T22:38:55.8943475Z 
2020-04-27T22:38:55.8943615Z error: named argument never used
2020-04-27T22:38:55.8944056Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-27T22:38:55.8944056Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-27T22:38:55.8944236Z    |
2020-04-27T22:38:55.8944555Z LL |     format!("", foo=2);              //~ ERROR: named argument never used
2020-04-27T22:38:55.8945048Z    |             --      ^ named argument never used
2020-04-27T22:38:55.8945416Z    |             formatting specifier missing
2020-04-27T22:38:55.8945554Z 
2020-04-27T22:38:55.8945724Z error: multiple unused formatting arguments
2020-04-27T22:38:55.8946125Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-27T22:38:55.8946125Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-27T22:38:55.8946304Z    |
2020-04-27T22:38:55.8946576Z LL |     format!("{} {}", 1, 2, foo=1, bar=2);  //~ ERROR: multiple unused formatting arguments
2020-04-27T22:38:55.8947090Z    |             -------            ^      ^ named argument never used
2020-04-27T22:38:55.8947571Z    |             |                  named argument never used
2020-04-27T22:38:55.8947822Z    |             multiple missing formatting specifiers
2020-04-27T22:38:55.8947978Z 
2020-04-27T22:38:55.8948125Z error: duplicate argument named `foo`
2020-04-27T22:38:55.8948125Z error: duplicate argument named `foo`
2020-04-27T22:38:55.8948528Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:40:33
2020-04-27T22:38:55.8948708Z    |
2020-04-27T22:38:55.8948920Z LL |     format!("{foo}", foo=1, foo=2);  //~ ERROR: duplicate argument
2020-04-27T22:38:55.8949377Z    |                          -      ^ duplicate argument
2020-04-27T22:38:55.8949794Z    |                          previously here
2020-04-27T22:38:55.8949948Z 
2020-04-27T22:38:55.8950121Z error: positional arguments cannot follow named arguments
2020-04-27T22:38:55.8950535Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-27T22:38:55.8950535Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-27T22:38:55.8950730Z    |
2020-04-27T22:38:55.8950978Z LL |     format!("{foo} {} {}", foo=1, 2);   //~ ERROR: positional arguments cannot follow
2020-04-27T22:38:55.8951529Z    |                                -  ^ positional arguments must be before named arguments
2020-04-27T22:38:55.8952031Z    |                                named argument
2020-04-27T22:38:55.8952176Z 
2020-04-27T22:38:55.8952329Z error: there is no argument named `valueb`
2020-04-27T22:38:55.8952739Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-27T22:38:55.8952739Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-27T22:38:55.8952918Z    |
2020-04-27T22:38:55.8953096Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-27T22:38:55.8953461Z 
2020-04-27T22:38:55.8953601Z error: named argument never used
2020-04-27T22:38:55.8953984Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:51
2020-04-27T22:38:55.8954179Z    |
2020-04-27T22:38:55.8954179Z    |
2020-04-27T22:38:55.8954356Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-27T22:38:55.8954816Z    |             -------------------                   ^ named argument never used
2020-04-27T22:38:55.8955240Z    |             formatting specifier missing
2020-04-27T22:38:55.8955383Z 
2020-04-27T22:38:55.8955597Z error: invalid format string: expected `}` but string was terminated
2020-04-27T22:38:55.8956033Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-27T22:38:55.8956033Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-27T22:38:55.8956213Z    |
2020-04-27T22:38:55.8956630Z LL |     format!("{"); //~ ERROR: expected `'}'` but string was terminated
2020-04-27T22:38:55.8957078Z    |              -^ expected `}` in format string
2020-04-27T22:38:55.8957545Z    |              because of this opening brace
2020-04-27T22:38:55.8957708Z    |
2020-04-27T22:38:55.8957708Z    |
2020-04-27T22:38:55.8957906Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8958272Z error: invalid format string: unmatched `}` found
2020-04-27T22:38:55.8958706Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:53:18
2020-04-27T22:38:55.8958885Z    |
2020-04-27T22:38:55.8958885Z    |
2020-04-27T22:38:55.8959099Z LL |     format!("foo } bar"); //~ ERROR: unmatched `}` found
2020-04-27T22:38:55.8959418Z    |                  ^ unmatched `}` in format string
2020-04-27T22:38:55.8959593Z    |
2020-04-27T22:38:55.8959804Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.8960151Z error: invalid format string: unmatched `}` found
2020-04-27T22:38:55.8960585Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:54:18
2020-04-27T22:38:55.8960780Z    |
2020-04-27T22:38:55.8960780Z    |
2020-04-27T22:38:55.8960980Z LL |     format!("foo }"); //~ ERROR: unmatched `}` found
2020-04-27T22:38:55.8961237Z    |                  ^ unmatched `}` in format string
2020-04-27T22:38:55.8961422Z    |
2020-04-27T22:38:55.8961618Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.8961924Z error: argument never used
2020-04-27T22:38:55.8962322Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:56:27
2020-04-27T22:38:55.8962503Z    |
2020-04-27T22:38:55.8962503Z    |
2020-04-27T22:38:55.8962712Z LL |     format!("foo %s baz", "bar"); //~ ERROR: argument never used
2020-04-27T22:38:55.8963376Z    |                  |
2020-04-27T22:38:55.8963376Z    |                  |
2020-04-27T22:38:55.8963621Z    |                  help: format specifiers use curly braces: `{}`
2020-04-27T22:38:55.8964092Z    = note: printf formatting not supported; see the documentation for `std::fmt`
2020-04-27T22:38:55.8964309Z 
2020-04-27T22:38:55.8964477Z error: there is no argument named `foo`
2020-04-27T22:38:55.8964866Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-27T22:38:55.8964866Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-27T22:38:55.8965045Z    |
2020-04-27T22:38:55.8965169Z LL |         {foo}
2020-04-27T22:38:55.8965326Z    |         ^^^^^
2020-04-27T22:38:55.8965429Z 
2020-04-27T22:38:55.8965775Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.8966389Z    |
2020-04-27T22:38:55.8966389Z    |
2020-04-27T22:38:55.8966523Z LL | ninth number: {
2020-04-27T22:38:55.8966896Z    |               -^ expected `}` in format string
2020-04-27T22:38:55.8967275Z    |               because of this opening brace
2020-04-27T22:38:55.8967437Z    |
2020-04-27T22:38:55.8967437Z    |
2020-04-27T22:38:55.8967649Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.8968018Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-27T22:38:55.8968514Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:15
2020-04-27T22:38:55.8968691Z    |
2020-04-27T22:38:55.8968691Z    |
2020-04-27T22:38:55.8968861Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-27T22:38:55.8969244Z    |               ^^ ^^--^ ^^   -  ---  -
2020-04-27T22:38:55.8969704Z    |                    |           this parameter corresponds to the precision flag
2020-04-27T22:38:55.8969704Z    |                    |           this parameter corresponds to the precision flag
2020-04-27T22:38:55.8970107Z    |                    this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-27T22:38:55.8970721Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8970721Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8971256Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-27T22:38:55.8971693Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-27T22:38:55.8972139Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:15
2020-04-27T22:38:55.8972399Z    |
2020-04-27T22:38:55.8972399Z    |
2020-04-27T22:38:55.8972573Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-27T22:38:55.8972992Z    |               ^^ ^^^----^ ^^   -  ---  -
2020-04-27T22:38:55.8973468Z    |                     | |           this parameter corresponds to the precision flag
2020-04-27T22:38:55.8973468Z    |                     | |           this parameter corresponds to the precision flag
2020-04-27T22:38:55.8973878Z    |                     | this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-27T22:38:55.8974364Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-27T22:38:55.8974970Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8974970Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8975490Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-27T22:38:55.8975926Z error: invalid reference to positional argument 7 (there are 3 arguments)
2020-04-27T22:38:55.8976381Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:84:18
2020-04-27T22:38:55.8976561Z    |
2020-04-27T22:38:55.8976561Z    |
2020-04-27T22:38:55.8976733Z LL |     println!("{} {:07$} {}", 1, 3.2, 4);
2020-04-27T22:38:55.8977090Z    |                  ^^^--^
2020-04-27T22:38:55.8977260Z    |                     |
2020-04-27T22:38:55.8977536Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-27T22:38:55.8978119Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8978119Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8978637Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-27T22:38:55.8979037Z error: unknown format trait `foo`
2020-04-27T22:38:55.8979414Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:86:17
2020-04-27T22:38:55.8979608Z    |
2020-04-27T22:38:55.8979608Z    |
2020-04-27T22:38:55.8979810Z LL |     println!("{:foo}", 1); //~ ERROR unknown format trait `foo`
2020-04-27T22:38:55.8980173Z    |
2020-04-27T22:38:55.8980383Z    = note: the only appropriate formatting traits are:
2020-04-27T22:38:55.8980791Z            - ``, which uses the `Display` trait
2020-04-27T22:38:55.8981161Z            - `?`, which uses the `Debug` trait
2020-04-27T22:38:55.8981161Z            - `?`, which uses the `Debug` trait
2020-04-27T22:38:55.8981553Z            - `e`, which uses the `LowerExp` trait
2020-04-27T22:38:55.8981930Z            - `E`, which uses the `UpperExp` trait
2020-04-27T22:38:55.8982303Z            - `o`, which uses the `Octal` trait
2020-04-27T22:38:55.8982698Z            - `p`, which uses the `Pointer` trait
2020-04-27T22:38:55.8983208Z            - `b`, which uses the `Binary` trait
2020-04-27T22:38:55.8983585Z            - `x`, which uses the `LowerHex` trait
2020-04-27T22:38:55.8983981Z            - `X`, which uses the `UpperHex` trait
2020-04-27T22:38:55.8984127Z 
2020-04-27T22:38:55.8984338Z error: invalid reference to positional arguments 4, 5, 6 and 7 (there is 1 argument)
2020-04-27T22:38:55.8984988Z    |
2020-04-27T22:38:55.8984988Z    |
2020-04-27T22:38:55.8985159Z LL |     println!("{5} {:4$} {6:7$}", 1);
2020-04-27T22:38:55.8985513Z    |               ^^^ ^^--^ ^^^--^
2020-04-27T22:38:55.8985718Z    |                     |      |
2020-04-27T22:38:55.8986013Z    |                     |      this width flag expects an `usize` argument at position 7, but there is 1 argument
2020-04-27T22:38:55.8986424Z    |                     this width flag expects an `usize` argument at position 4, but there is 1 argument
2020-04-27T22:38:55.8986989Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8986989Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8987519Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-27T22:38:55.8987960Z error: 2 positional arguments in format string, but no arguments were given
2020-04-27T22:38:55.8988393Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:92:15
2020-04-27T22:38:55.8988674Z    |
2020-04-27T22:38:55.8988674Z    |
2020-04-27T22:38:55.8988820Z LL |     println!("{:.*}");
2020-04-27T22:38:55.8989150Z    |               ^^--^
2020-04-27T22:38:55.8989328Z    |                 |
2020-04-27T22:38:55.8989629Z    |                 this precision flag adds an extra required argument at position 0, which is why there are 2 arguments expected
2020-04-27T22:38:55.8990236Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8990236Z    = note: positional arguments are zero-based
2020-04-27T22:38:55.8990818Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-27T22:38:55.8991207Z error[E0308]: mismatched types
2020-04-27T22:38:55.8991625Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:32
2020-04-27T22:38:55.8991804Z    |
2020-04-27T22:38:55.8991804Z    |
2020-04-27T22:38:55.8991974Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-27T22:38:55.8992449Z    |                                ^^^ expected `usize`, found floating-point number
2020-04-27T22:38:55.8993082Z    = note: expected reference `&usize`
2020-04-27T22:38:55.8993082Z    = note: expected reference `&usize`
2020-04-27T22:38:55.8993441Z               found reference `&{float}`
2020-04-27T22:38:55.8994273Z 
2020-04-27T22:38:55.8994450Z error[E0308]: mismatched types
2020-04-27T22:38:55.8994884Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:35
2020-04-27T22:38:55.8995089Z    |
2020-04-27T22:38:55.8995089Z    |
2020-04-27T22:38:55.8995295Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-27T22:38:55.8995849Z    |                                   ^^^ expected `usize`, found floating-point number
2020-04-27T22:38:55.8996279Z    = note: expected reference `&usize`
2020-04-27T22:38:55.8996279Z    = note: expected reference `&usize`
2020-04-27T22:38:55.8996528Z               found reference `&{float}`
2020-04-27T22:38:55.8997356Z 
2020-04-27T22:38:55.8997547Z error: aborting due to 36 previous errors
2020-04-27T22:38:55.8997704Z 
2020-04-27T22:38:55.8998351Z For more information about this error, try `rustc --explain E0308`.
2020-04-27T22:38:55.8998351Z For more information about this error, try `rustc --explain E0308`.
2020-04-27T22:38:55.8998526Z 
2020-04-27T22:38:55.8998857Z ------------------------------------------
2020-04-27T22:38:55.8999003Z 
2020-04-27T22:38:55.8999087Z 
2020-04-27T22:38:55.8999414Z ---- [ui] ui/issues/issue-51848.rs stdout ----
2020-04-27T22:38:55.8999627Z diff of stderr:
2020-04-27T22:38:55.8999742Z 
2020-04-27T22:38:55.9000148Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-27T22:38:55.9000640Z + error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.9001235Z 3    |
2020-04-27T22:38:55.9001388Z 4 LL |         println!("{");
2020-04-27T22:38:55.9001530Z 
2020-04-27T22:38:55.9001530Z 
2020-04-27T22:38:55.9001887Z -    |                   -^ expected `'}'` in format string
2020-04-27T22:38:55.9002331Z +    |                   -^ expected `}` in format string
2020-04-27T22:38:55.9002785Z 7    |                   because of this opening brace
2020-04-27T22:38:55.9002970Z 8 ...
2020-04-27T22:38:55.9003062Z 
2020-04-27T22:38:55.9003161Z 
2020-04-27T22:38:55.9003161Z 
2020-04-27T22:38:55.9003337Z The actual stderr differed from the expected stderr.
2020-04-27T22:38:55.9003897Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/issue-51848.stderr
2020-04-27T22:38:55.9004451Z To update references, rerun the tests and pass the `--bless` flag
2020-04-27T22:38:55.9004956Z To only update this specific test, also pass `--test-args issues/issue-51848.rs`
2020-04-27T22:38:55.9005322Z error: 1 errors occurred comparing output.
2020-04-27T22:38:55.9005539Z status: exit code: 1
2020-04-27T22:38:55.9005539Z status: exit code: 1
2020-04-27T22:38:55.9007175Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-51848.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/auxiliary"
2020-04-27T22:38:55.9008652Z ------------------------------------------
2020-04-27T22:38:55.9008808Z 
2020-04-27T22:38:55.9009168Z ------------------------------------------
2020-04-27T22:38:55.9009345Z stderr:
2020-04-27T22:38:55.9009345Z stderr:
2020-04-27T22:38:55.9009674Z ------------------------------------------
2020-04-27T22:38:55.9010119Z error: invalid format string: expected `'}'`, found `'\n'`
2020-04-27T22:38:55.9010782Z    |
2020-04-27T22:38:55.9010972Z LL |         println!("{"); //~ ERROR invalid
2020-04-27T22:38:55.9010972Z LL |         println!("{"); //~ ERROR invalid
2020-04-27T22:38:55.9011388Z    |                   -^ expected `}` in format string
2020-04-27T22:38:55.9011835Z    |                   because of this opening brace
2020-04-27T22:38:55.9012013Z ...
2020-04-27T22:38:55.9012160Z LL |     macro_with_error!();
2020-04-27T22:38:55.9012563Z    |     -------------------- in this macro invocation
2020-04-27T22:38:55.9012563Z    |     -------------------- in this macro invocation
2020-04-27T22:38:55.9012748Z    |
2020-04-27T22:38:55.9012964Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-27T22:38:55.9013801Z 
2020-04-27T22:38:55.9013988Z error: invalid format string: unmatched `}` found
2020-04-27T22:38:55.9014454Z   --> /checkout/src/test/ui/issues/issue-51848.rs:18:15
2020-04-27T22:38:55.9014649Z    |
2020-04-27T22:38:55.9014649Z    |
2020-04-27T22:38:55.9014816Z LL |     println!("}"); //~ ERROR invalid
2020-04-27T22:38:55.9015054Z    |               ^ unmatched `}` in format string
2020-04-27T22:38:55.9015248Z    |
2020-04-27T22:38:55.9015459Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-27T22:38:55.9015822Z error: aborting due to 2 previous errors
2020-04-27T22:38:55.9015967Z 
2020-04-27T22:38:55.9016051Z 
2020-04-27T22:38:55.9016373Z ------------------------------------------
---
2020-04-27T22:38:55.9018835Z test result: FAILED. 9862 passed; 4 failed; 61 ignored; 0 measured; 0 filtered out
2020-04-27T22:38:55.9019064Z 
2020-04-27T22:38:55.9019148Z 
2020-04-27T22:38:55.9019233Z 
2020-04-27T22:38:55.9022462Z 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-8/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "8.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-27T22:38:55.9025285Z 
2020-04-27T22:38:55.9025379Z 
2020-04-27T22:38:55.9026008Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-27T22:38:55.9026362Z Build completed unsuccessfully in 0:58:56
2020-04-27T22:38:55.9026362Z Build completed unsuccessfully in 0:58:56
2020-04-27T22:38:55.9030434Z == clock drift check ==
2020-04-27T22:38:55.9030875Z   local time: Mon Apr 27 22:38:55 UTC 2020
2020-04-27T22:38:55.9525371Z   network time: Mon, 27 Apr 2020 22:38:55 GMT
2020-04-27T22:38:56.4850974Z 
2020-04-27T22:38:56.4850974Z 
2020-04-27T22:38:56.4934097Z ##[error]Bash exited with code '1'.
2020-04-27T22:38:56.4947415Z ##[section]Finishing: Run build
2020-04-27T22:38:56.4988006Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T22:38:56.4992742Z Task         : Get sources
2020-04-27T22:38:56.4993043Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-27T22:38:56.4993337Z Version      : 1.0.0
2020-04-27T22:38:56.4993532Z Author       : Microsoft
2020-04-27T22:38:56.4993532Z Author       : Microsoft
2020-04-27T22:38:56.4993976Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-27T22:38:56.4994360Z ==============================================================================
2020-04-27T22:38:56.8213356Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-27T22:38:56.8256122Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-27T22:38:56.8339910Z Cleaning up task key
2020-04-27T22:38:56.8341016Z Start cleaning up orphan processes.
2020-04-27T22:38:56.8522922Z Terminate orphan process: pid (4375) (python)
2020-04-27T22:38:56.8671263Z ##[section]Finishing: Finalize Job

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

@rust-highfive
Copy link
Contributor

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2020-04-28T07:10:23.7510669Z ========================== Starting Command Output ===========================
2020-04-28T07:10:23.7514438Z [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/e730dcb9-c0f4-43c7-bb93-9c33cc5665c2.sh
2020-04-28T07:10:23.7514720Z 
2020-04-28T07:10:23.7518444Z ##[section]Finishing: Disable git automatic line ending conversion
2020-04-28T07:10:23.7537718Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-28T07:10:23.7541224Z Task         : Get sources
2020-04-28T07:10:23.7541500Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-28T07:10:23.7541755Z Version      : 1.0.0
2020-04-28T07:10:23.7541929Z Author       : Microsoft
---
2020-04-28T07:10:26.4293475Z ##[command]git remote add origin https://github.com/rust-lang/rust
2020-04-28T07:10:26.4303419Z ##[command]git config gc.auto 0
2020-04-28T07:10:26.4309668Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2020-04-28T07:10:26.4315292Z ##[command]git config --get-all http.proxy
2020-04-28T07:10:26.4327500Z ##[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/71158/merge:refs/remotes/pull/71158/merge
---
2020-04-28T07:14:13.1656995Z  ---> cb2676f08729
2020-04-28T07:14:13.1657735Z Step 5/8 : ENV RUST_CONFIGURE_ARGS       --build=x86_64-unknown-linux-gnu       --llvm-root=/usr/lib/llvm-8       --enable-llvm-link-shared       --set rust.thin-lto-import-instr-limit=10
2020-04-28T07:14:13.1658560Z  ---> Using cache
2020-04-28T07:14:13.1658875Z  ---> df25ce111862
2020-04-28T07:14:13.1660006Z Step 6/8 : ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy &&            python2.7 ../x.py test src/test/mir-opt --pass=build                                   --target=armv5te-unknown-linux-gnueabi &&            python2.7 ../x.py test src/tools/tidy
2020-04-28T07:14:13.1661102Z  ---> 599b9ac96b27
2020-04-28T07:14:13.1661316Z Step 7/8 : ENV NO_DEBUG_ASSERTIONS=1
2020-04-28T07:14:13.1661654Z  ---> Using cache
2020-04-28T07:14:13.1661963Z  ---> 091087e35a36
---
2020-04-28T07:14:13.2307209Z Looks like docker image is the same as before, not uploading
2020-04-28T07:14:21.8121493Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-28T07:14:21.8436013Z [CI_JOB_NAME=x86_64-gnu-llvm-8]
2020-04-28T07:14:21.8460571Z == clock drift check ==
2020-04-28T07:14:21.8467450Z   local time: Tue Apr 28 07:14:21 UTC 2020
2020-04-28T07:14:21.9076313Z   network time: Tue, 28 Apr 2020 07:14:21 GMT
2020-04-28T07:14:21.9102949Z Starting sccache server...
2020-04-28T07:14:21.9882335Z configure: processing command line
2020-04-28T07:14:21.9894646Z configure: 
2020-04-28T07:14:21.9896244Z configure: rust.dist-src        := False
---
2020-04-28T07:16:36.3331842Z    Compiling unicode-width v0.1.6
2020-04-28T07:16:36.4152081Z    Compiling getopts v0.2.21
2020-04-28T07:16:45.7859787Z    Compiling test v0.0.0 (/checkout/src/libtest)
2020-04-28T07:16:53.1626280Z     Finished release [optimized] target(s) in 55.96s
2020-04-28T07:16:53.1627874Z {"reason":"build-finished","success":true}
2020-04-28T07:16:53.1854654Z Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-28T07:16:54.0299207Z    Compiling cfg-if v0.1.10
2020-04-28T07:16:54.0300563Z    Compiling libc v0.2.69
2020-04-28T07:16:54.0301537Z    Compiling semver-parser v0.7.0
---
2020-04-28T07:19:09.9121558Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-28T07:19:11.2698792Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-28T07:19:12.6355521Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-28T07:19:12.9264912Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-28T07:19:21.3085987Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-28T07:19:22.7713372Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-28T07:19:26.7384041Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-28T07:19:30.3827127Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-28T07:19:39.8987893Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-28T07:32:35.8031264Z    Compiling rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-28T07:32:42.8615315Z    Compiling rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-28T07:36:32.5701502Z    Compiling rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-28T07:36:33.1817647Z     Finished release [optimized] target(s) in 19m 39s
2020-04-28T07:36:33.1818816Z {"reason":"build-finished","success":true}
2020-04-28T07:36:33.2377750Z Assembling stage1 compiler (x86_64-unknown-linux-gnu)
2020-04-28T07:36:33.2396974Z Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-28T07:36:33.5300355Z    Compiling cc v1.0.50
2020-04-28T07:36:33.5301012Z    Compiling core v0.0.0 (/checkout/src/libcore)
---
2020-04-28T07:37:18.4375895Z    Compiling unicode-width v0.1.6
2020-04-28T07:37:18.5287478Z    Compiling getopts v0.2.21
2020-04-28T07:37:29.0608754Z    Compiling test v0.0.0 (/checkout/src/libtest)
2020-04-28T07:37:37.8869997Z     Finished release [optimized] target(s) in 1m 04s
2020-04-28T07:37:37.8871162Z {"reason":"build-finished","success":true}
2020-04-28T07:37:37.8995615Z Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-28T07:37:38.4544191Z    Compiling cfg-if v0.1.10
2020-04-28T07:37:38.4973302Z    Compiling libc v0.2.69
2020-04-28T07:37:38.4973841Z    Compiling semver-parser v0.7.0
---
2020-04-28T07:40:15.7167101Z    Compiling rustc_feature v0.0.0 (/checkout/src/librustc_feature)
2020-04-28T07:40:17.1919381Z    Compiling fmt_macros v0.0.0 (/checkout/src/libfmt_macros)
2020-04-28T07:40:18.7945428Z    Compiling rustc_ast_pretty v0.0.0 (/checkout/src/librustc_ast_pretty)
2020-04-28T07:40:18.7967307Z    Compiling rustc_hir v0.0.0 (/checkout/src/librustc_hir)
2020-04-28T07:40:28.8502563Z    Compiling rustc_query_system v0.0.0 (/checkout/src/librustc_query_system)
2020-04-28T07:40:30.6164435Z    Compiling rustc_hir_pretty v0.0.0 (/checkout/src/librustc_hir_pretty)
2020-04-28T07:40:34.8525354Z    Compiling rustc_attr v0.0.0 (/checkout/src/librustc_attr)
2020-04-28T07:40:38.8331128Z    Compiling rustc_parse v0.0.0 (/checkout/src/librustc_parse)
2020-04-28T07:40:48.8248105Z    Compiling rustc_ast_lowering v0.0.0 (/checkout/src/librustc_ast_lowering)
---
2020-04-28T07:53:45.6055380Z    Compiling rustc_passes v0.0.0 (/checkout/src/librustc_passes)
2020-04-28T07:55:28.4379462Z    Compiling rustc_plugin_impl v0.0.0 (/checkout/src/librustc_plugin_impl)
2020-04-28T07:55:32.3423567Z    Compiling rustc_privacy v0.0.0 (/checkout/src/librustc_privacy)
2020-04-28T07:58:05.3313335Z    Compiling rustc-main v0.0.0 (/checkout/src/rustc)
2020-04-28T07:58:05.9689777Z {"reason":"build-finished","success":true}
2020-04-28T07:58:06.0157182Z Copying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
2020-04-28T07:58:06.0197007Z Assembling stage2 compiler (x86_64-unknown-linux-gnu)
2020-04-28T07:58:06.0216196Z Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-28T07:58:06.0217241Z Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2020-04-28T07:58:44.8235695Z    Compiling serde_derive v1.0.81
2020-04-28T07:59:10.4868665Z    Compiling serde_json v1.0.40
2020-04-28T07:59:11.8265302Z    Compiling rustfix v0.5.0
2020-04-28T07:59:14.7538484Z    Compiling compiletest v0.0.0 (/checkout/src/tools/compiletest)
2020-04-28T07:59:27.9845164Z {"reason":"build-finished","success":true}
2020-04-28T07:59:28.0101029Z Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2020-04-28T07:59:31.2607095Z 
2020-04-28T07:59:31.2607406Z running 9928 tests
2020-04-28T07:59:44.1341183Z .................................................................................................... 100/9928
---
2020-04-28T08:01:29.5550290Z .................................................................................................... 1700/9928
2020-04-28T08:01:34.2014293Z .................................................................................................... 1800/9928
2020-04-28T08:01:41.9792416Z .................................................................................................... 1900/9928
2020-04-28T08:01:50.6254017Z .........i.......................................................................................... 2000/9928
2020-04-28T08:01:57.0814450Z ...................................................................................................i 2100/9928
2020-04-28T08:02:09.8117471Z iiii................................................................................................ 2200/9928
2020-04-28T08:02:18.4020587Z .................................................................................................... 2400/9928
2020-04-28T08:02:20.8000101Z .................................................................................................... 2500/9928
2020-04-28T08:02:26.3782935Z .................................................................................................... 2600/9928
2020-04-28T08:02:44.2532456Z .................................................................................................... 2700/9928
---
2020-04-28T08:05:26.4079862Z ......................................................................F............................. 5100/9928
2020-04-28T08:05:33.5612737Z .................................................................................................... 5200/9928
2020-04-28T08:05:38.2287613Z ......................i............................................................................. 5300/9928
2020-04-28T08:05:47.8480487Z .............i...................................................................................... 5400/9928
2020-04-28T08:05:53.4168316Z ..............ii.ii........i...i.................................................................... 5500/9928
2020-04-28T08:06:01.2253188Z .............................................................i...................................... 5700/9928
2020-04-28T08:06:09.7027856Z ..............................................................................................ii.... 5800/9928
2020-04-28T08:06:16.4296878Z .................................i.................................................................. 5900/9928
2020-04-28T08:06:22.0886975Z .................................................................................................... 6000/9928
2020-04-28T08:06:22.0886975Z .................................................................................................... 6000/9928
2020-04-28T08:06:32.2199050Z .................................................................................................... 6100/9928
2020-04-28T08:06:42.3153346Z ...........................ii...i..ii...........i................................................... 6200/9928
2020-04-28T08:06:58.7970908Z .................................................................................................... 6400/9928
2020-04-28T08:07:02.2975992Z .................................................................................................... 6500/9928
2020-04-28T08:07:02.2975992Z .................................................................................................... 6500/9928
2020-04-28T08:07:08.3451147Z .........................................................i..ii...................................... 6600/9928
2020-04-28T08:07:31.3948055Z .................................................................................................... 6800/9928
2020-04-28T08:07:35.6736729Z ..........................................................i......................................... 6900/9928
2020-04-28T08:07:37.7155630Z .................................................................................................... 7000/9928
2020-04-28T08:07:39.8041747Z .................................................................................................... 7100/9928
---
2020-04-28T08:09:13.2689513Z .................................................................................................... 7900/9928
2020-04-28T08:09:18.6750768Z .................................................................................................... 8000/9928
2020-04-28T08:09:24.9019836Z ....................................................................i............................... 8100/9928
2020-04-28T08:09:35.0936043Z .................................................................................................... 8200/9928
2020-04-28T08:09:40.3476271Z .................iiiiii.iiiii.i..................................................................... 8300/9928
2020-04-28T08:09:53.2079499Z .................................................................................................... 8500/9928
2020-04-28T08:09:58.7012463Z .................................................................................................... 8600/9928
2020-04-28T08:10:12.9340771Z .................................................................................................... 8700/9928
2020-04-28T08:10:19.5203476Z .................................................................................................... 8800/9928
---
2020-04-28T08:12:00.5956737Z ---- [ui] ui/fmt/format-string-error-2.rs stdout ----
2020-04-28T08:12:00.5956974Z diff of stderr:
2020-04-28T08:12:00.5957102Z 
2020-04-28T08:12:00.5957258Z 6    |                      |
2020-04-28T08:12:00.5957601Z 7    |                      help: format of unicode escape sequences uses braces: `\u{8}`
2020-04-28T08:12:00.5957884Z 8 
2020-04-28T08:12:00.5958318Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-28T08:12:00.5958805Z -   --> $DIR/format-string-error-2.rs:5:5
2020-04-28T08:12:00.5959499Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.5960270Z 11    |
2020-04-28T08:12:00.5960426Z 12 LL |     format!("{
2020-04-28T08:12:00.5960837Z -    |              - because of this opening brace
2020-04-28T08:12:00.5961210Z - LL |     a");
2020-04-28T08:12:00.5961210Z - LL |     a");
2020-04-28T08:12:00.5961572Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.5961999Z +    |              -^ expected `}` in format string
2020-04-28T08:12:00.5962450Z +    |              because of this opening brace
2020-04-28T08:12:00.5962641Z 16    |
2020-04-28T08:12:00.5962641Z 16    |
2020-04-28T08:12:00.5962897Z 17    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.5963223Z 
2020-04-28T08:12:00.5963223Z 
2020-04-28T08:12:00.5963622Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-28T08:12:00.5964096Z -   --> $DIR/format-string-error-2.rs:9:5
2020-04-28T08:12:00.5964567Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.5965241Z 21    |
2020-04-28T08:12:00.5965399Z 22 LL |     format!("{ \
2020-04-28T08:12:00.5965799Z -    |              - because of this opening brace
2020-04-28T08:12:00.5966146Z - LL | 
2020-04-28T08:12:00.5966146Z - LL | 
2020-04-28T08:12:00.5966431Z - LL |     b");
2020-04-28T08:12:00.5966789Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.5967230Z +    |              -^ expected `}` in format string
2020-04-28T08:12:00.5967663Z +    |              because of this opening brace
2020-04-28T08:12:00.5967870Z 27    |
2020-04-28T08:12:00.5967870Z 27    |
2020-04-28T08:12:00.5968103Z 28    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.5968424Z 
2020-04-28T08:12:00.5968424Z 
2020-04-28T08:12:00.5968838Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-28T08:12:00.5969309Z -   --> $DIR/format-string-error-2.rs:11:18
2020-04-28T08:12:00.5969781Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6014798Z 32    |
2020-04-28T08:12:00.6014798Z 32    |
2020-04-28T08:12:00.6014963Z 33 LL |     format!(r#"{ \
2020-04-28T08:12:00.6015415Z -    |                - ^ expected `}` in format string
2020-04-28T08:12:00.6015872Z +    |                -^ expected `}` in format string
2020-04-28T08:12:00.6016343Z 36    |                because of this opening brace
2020-04-28T08:12:00.6016540Z 37    |
2020-04-28T08:12:00.6016646Z 
2020-04-28T08:12:00.6016646Z 
2020-04-28T08:12:00.6016877Z 38    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6017121Z 39 
2020-04-28T08:12:00.6017533Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-28T08:12:00.6017999Z -   --> $DIR/format-string-error-2.rs:15:18
2020-04-28T08:12:00.6018503Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6019169Z 42    |
2020-04-28T08:12:00.6019169Z 42    |
2020-04-28T08:12:00.6019348Z 43 LL |     format!(r#"{ \n
2020-04-28T08:12:00.6019761Z -    |                - ^ expected `}` in format string
2020-04-28T08:12:00.6020210Z +    |                -^ expected `}` in format string
2020-04-28T08:12:00.6020677Z 46    |                because of this opening brace
2020-04-28T08:12:00.6020872Z 47    |
2020-04-28T08:12:00.6020974Z 
2020-04-28T08:12:00.6020974Z 
2020-04-28T08:12:00.6021212Z 48    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6021437Z 49 
2020-04-28T08:12:00.6021839Z - error: invalid format string: expected `'}'`, found `'e'`
2020-04-28T08:12:00.6022315Z -   --> $DIR/format-string-error-2.rs:21:5
2020-04-28T08:12:00.6022785Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6023594Z 52    |
2020-04-28T08:12:00.6023753Z 53 LL |     format!("{ \n
2020-04-28T08:12:00.6024234Z -    |              - because of this opening brace
2020-04-28T08:12:00.6024608Z - LL | \n
2020-04-28T08:12:00.6024608Z - LL | \n
2020-04-28T08:12:00.6024901Z - LL |     e");
2020-04-28T08:12:00.6025262Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6025688Z +    |              -^ expected `}` in format string
2020-04-28T08:12:00.6026140Z +    |              because of this opening brace
2020-04-28T08:12:00.6026333Z 58    |
2020-04-28T08:12:00.6026333Z 58    |
2020-04-28T08:12:00.6026582Z 59    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6026905Z 
2020-04-28T08:12:00.6026905Z 
2020-04-28T08:12:00.6027319Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-28T08:12:00.6027781Z -   --> $DIR/format-string-error-2.rs:25:5
2020-04-28T08:12:00.6028255Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6028932Z 63    |
2020-04-28T08:12:00.6029074Z 64 LL |     {
2020-04-28T08:12:00.6029437Z -    |     - because of this opening brace
2020-04-28T08:12:00.6029794Z - LL |     a");
2020-04-28T08:12:00.6029794Z - LL |     a");
2020-04-28T08:12:00.6030157Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6030559Z +    |     -^ expected `}` in format string
2020-04-28T08:12:00.6030956Z +    |     because of this opening brace
2020-04-28T08:12:00.6031135Z 68    |
2020-04-28T08:12:00.6031135Z 68    |
2020-04-28T08:12:00.6031381Z 69    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6031704Z 
2020-04-28T08:12:00.6031704Z 
2020-04-28T08:12:00.6032103Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-28T08:12:00.6032582Z -   --> $DIR/format-string-error-2.rs:29:5
2020-04-28T08:12:00.6033052Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6033732Z 73    |
2020-04-28T08:12:00.6033871Z 74 LL |     {
2020-04-28T08:12:00.6034232Z -    |     - because of this opening brace
2020-04-28T08:12:00.6034579Z - LL |     a
2020-04-28T08:12:00.6034579Z - LL |     a
2020-04-28T08:12:00.6034936Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6035336Z +    |     -^ expected `}` in format string
2020-04-28T08:12:00.6035734Z +    |     because of this opening brace
2020-04-28T08:12:00.6035911Z 78    |
2020-04-28T08:12:00.6035911Z 78    |
2020-04-28T08:12:00.6036159Z 79    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6036480Z 
2020-04-28T08:12:00.6036480Z 
2020-04-28T08:12:00.6036873Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-28T08:12:00.6037348Z -   --> $DIR/format-string-error-2.rs:35:5
2020-04-28T08:12:00.6037816Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6038485Z 83    |
2020-04-28T08:12:00.6038628Z 84 LL |     { \
2020-04-28T08:12:00.6038988Z -    |     - because of this opening brace
2020-04-28T08:12:00.6039346Z - LL |         \
2020-04-28T08:12:00.6039346Z - LL |         \
2020-04-28T08:12:00.6039648Z - LL |     b");
2020-04-28T08:12:00.6040008Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6040410Z +    |     -^ expected `}` in format string
2020-04-28T08:12:00.6040806Z +    |     because of this opening brace
2020-04-28T08:12:00.6040984Z 89    |
2020-04-28T08:12:00.6040984Z 89    |
2020-04-28T08:12:00.6041232Z 90    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6041553Z 
2020-04-28T08:12:00.6041553Z 
2020-04-28T08:12:00.6041964Z - error: invalid format string: expected `'}'`, found `'b'`
2020-04-28T08:12:00.6042425Z -   --> $DIR/format-string-error-2.rs:40:5
2020-04-28T08:12:00.6042892Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6043610Z 94    |
2020-04-28T08:12:00.6043751Z 95 LL |     { \
2020-04-28T08:12:00.6044124Z -    |     - because of this opening brace
2020-04-28T08:12:00.6044525Z - LL |         \
2020-04-28T08:12:00.6044525Z - LL |         \
2020-04-28T08:12:00.6044837Z - LL |     b \
2020-04-28T08:12:00.6045197Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6045616Z +    |     -^ expected `}` in format string
2020-04-28T08:12:00.6045994Z +    |     because of this opening brace
2020-04-28T08:12:00.6046190Z 100    |
2020-04-28T08:12:00.6046190Z 100    |
2020-04-28T08:12:00.6046428Z 101    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6046756Z 
2020-04-28T08:12:00.6046756Z 
2020-04-28T08:12:00.6047169Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-28T08:12:00.6047627Z -   --> $DIR/format-string-error-2.rs:45:8
2020-04-28T08:12:00.6048092Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6048769Z 105    |
2020-04-28T08:12:00.6048769Z 105    |
2020-04-28T08:12:00.6048916Z 106 LL | raw  { \
2020-04-28T08:12:00.6049305Z -    |      - ^ expected `}` in format string
2020-04-28T08:12:00.6049716Z +    |      -^ expected `}` in format string
2020-04-28T08:12:00.6050441Z 109    |      because of this opening brace
2020-04-28T08:12:00.6050626Z 110    |
2020-04-28T08:12:00.6050730Z 
2020-04-28T08:12:00.6050730Z 
2020-04-28T08:12:00.6050955Z 111    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6051199Z 112 
2020-04-28T08:12:00.6051615Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-28T08:12:00.6052072Z -   --> $DIR/format-string-error-2.rs:50:8
2020-04-28T08:12:00.6052555Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6053205Z 115    |
2020-04-28T08:12:00.6053205Z 115    |
2020-04-28T08:12:00.6053371Z 116 LL | raw  { \n
2020-04-28T08:12:00.6053743Z -    |      - ^ expected `}` in format string
2020-04-28T08:12:00.6054154Z +    |      -^ expected `}` in format string
2020-04-28T08:12:00.6054568Z 119    |      because of this opening brace
2020-04-28T08:12:00.6054752Z 120    |
2020-04-28T08:12:00.6054855Z 
2020-04-28T08:12:00.6054855Z 
2020-04-28T08:12:00.6055096Z 121    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6055323Z 122 
2020-04-28T08:12:00.6055726Z - error: invalid format string: expected `'}'`, found `'e'`
2020-04-28T08:12:00.6056201Z -   --> $DIR/format-string-error-2.rs:57:5
2020-04-28T08:12:00.6056667Z + error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6057338Z 125    |
2020-04-28T08:12:00.6057481Z 126 LL |   { \n
2020-04-28T08:12:00.6057835Z -    |   - because of this opening brace
2020-04-28T08:12:00.6058170Z - LL | \n
2020-04-28T08:12:00.6058170Z - LL | \n
2020-04-28T08:12:00.6058461Z - LL |     e");
2020-04-28T08:12:00.6058820Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6059218Z +    |   -^ expected `}` in format string
2020-04-28T08:12:00.6059604Z +    |   because of this opening brace
2020-04-28T08:12:00.6059780Z 131    |
2020-04-28T08:12:00.6059780Z 131    |
2020-04-28T08:12:00.6060032Z 132    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6060359Z 
2020-04-28T08:12:00.6060359Z 
2020-04-28T08:12:00.6060771Z - error: invalid format string: expected `'}'`, found `'a'`
2020-04-28T08:12:00.6061230Z -   --> $DIR/format-string-error-2.rs:67:5
2020-04-28T08:12:00.6061698Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6062371Z 136    |
2020-04-28T08:12:00.6062516Z + LL |     {asdf
2020-04-28T08:12:00.6062890Z +    |     -    ^ expected `}` in format string
2020-04-28T08:12:00.6063104Z +    |     |
2020-04-28T08:12:00.6063104Z +    |     |
2020-04-28T08:12:00.6063290Z +    |     because of this opening brace
2020-04-28T08:12:00.6063466Z +    |
2020-04-28T08:12:00.6063779Z +    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6064000Z + 
2020-04-28T08:12:00.6064458Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6065142Z +    |
2020-04-28T08:12:00.6065281Z 137 LL |     {
2020-04-28T08:12:00.6065655Z -    |     - because of this opening brace
2020-04-28T08:12:00.6065995Z - LL |     asdf}
2020-04-28T08:12:00.6065995Z - LL |     asdf}
2020-04-28T08:12:00.6066356Z -    |     ^ expected `}` in format string
2020-04-28T08:12:00.6066773Z +    |     -^ expected `}` in format string
2020-04-28T08:12:00.6067152Z +    |     because of this opening brace
2020-04-28T08:12:00.6067332Z 141    |
2020-04-28T08:12:00.6067332Z 141    |
2020-04-28T08:12:00.6067584Z 142    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6067910Z 
2020-04-28T08:12:00.6067910Z 
2020-04-28T08:12:00.6068079Z 147 LL |     println!("\t{}");
2020-04-28T08:12:00.6068432Z 149 
2020-04-28T08:12:00.6068432Z 149 
2020-04-28T08:12:00.6068873Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-28T08:12:00.6069406Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6070076Z 152    |
2020-04-28T08:12:00.6070076Z 152    |
2020-04-28T08:12:00.6070274Z 153 LL |     println!("\x7B}\u{8} {", 1);
2020-04-28T08:12:00.6070425Z 
2020-04-28T08:12:00.6070820Z -    |                          -^ expected `'}'` in format string
2020-04-28T08:12:00.6071320Z +    |                          -^ expected `}` in format string
2020-04-28T08:12:00.6071835Z 156    |                          because of this opening brace
2020-04-28T08:12:00.6072062Z 157    |
2020-04-28T08:12:00.6072166Z 
2020-04-28T08:12:00.6072287Z 173    |
2020-04-28T08:12:00.6072287Z 173    |
2020-04-28T08:12:00.6072522Z 174    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6073123Z - error: aborting due to 18 previous errors
2020-04-28T08:12:00.6073374Z + error: aborting due to 19 previous errors
2020-04-28T08:12:00.6073573Z 177 
2020-04-28T08:12:00.6073693Z 178 
2020-04-28T08:12:00.6073693Z 178 
2020-04-28T08:12:00.6073789Z 
2020-04-28T08:12:00.6073880Z 
2020-04-28T08:12:00.6074086Z The actual stderr differed from the expected stderr.
2020-04-28T08:12:00.6074718Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2/format-string-error-2.stderr
2020-04-28T08:12:00.6075308Z To update references, rerun the tests and pass the `--bless` flag
2020-04-28T08:12:00.6075877Z To only update this specific test, also pass `--test-args fmt/format-string-error-2.rs`
2020-04-28T08:12:00.6076637Z error: 1 errors occurred comparing output.
2020-04-28T08:12:00.6076869Z status: exit code: 1
2020-04-28T08:12:00.6076869Z status: exit code: 1
2020-04-28T08:12:00.6079087Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/fmt/format-string-error-2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/fmt/format-string-error-2" "-A" "unused" "-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/fmt/format-string-error-2/auxiliary"
2020-04-28T08:12:00.6080760Z ------------------------------------------
2020-04-28T08:12:00.6080920Z 
2020-04-28T08:12:00.6081279Z ------------------------------------------
2020-04-28T08:12:00.6081465Z stderr:
2020-04-28T08:12:00.6081465Z stderr:
2020-04-28T08:12:00.6082007Z ------------------------------------------
2020-04-28T08:12:00.6082264Z error: incorrect unicode escape sequence
2020-04-28T08:12:00.6082746Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:77:20
2020-04-28T08:12:00.6083076Z    |
2020-04-28T08:12:00.6083264Z LL |     println!("\x7B}\u8 {", 1);
2020-04-28T08:12:00.6083880Z    |                      |
2020-04-28T08:12:00.6083880Z    |                      |
2020-04-28T08:12:00.6084212Z    |                      help: format of unicode escape sequences uses braces: `\u{8}`
2020-04-28T08:12:00.6084473Z 
2020-04-28T08:12:00.6084873Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6085615Z    |
2020-04-28T08:12:00.6085760Z LL |     format!("{
2020-04-28T08:12:00.6085760Z LL |     format!("{
2020-04-28T08:12:00.6086146Z    |              -^ expected `}` in format string
2020-04-28T08:12:00.6086584Z    |              because of this opening brace
2020-04-28T08:12:00.6086769Z    |
2020-04-28T08:12:00.6086769Z    |
2020-04-28T08:12:00.6087008Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6087204Z 
2020-04-28T08:12:00.6087588Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6088329Z    |
2020-04-28T08:12:00.6088476Z LL |     format!("{ \
2020-04-28T08:12:00.6088476Z LL |     format!("{ \
2020-04-28T08:12:00.6088865Z    |              -^ expected `}` in format string
2020-04-28T08:12:00.6089304Z    |              because of this opening brace
2020-04-28T08:12:00.6089487Z    |
2020-04-28T08:12:00.6089487Z    |
2020-04-28T08:12:00.6089723Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6103404Z 
2020-04-28T08:12:00.6104089Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6104870Z    |
2020-04-28T08:12:00.6104870Z    |
2020-04-28T08:12:00.6105024Z LL |     format!(r#"{ \
2020-04-28T08:12:00.6105435Z    |                -^ expected `}` in format string
2020-04-28T08:12:00.6105892Z    |                because of this opening brace
2020-04-28T08:12:00.6107926Z    |
2020-04-28T08:12:00.6107926Z    |
2020-04-28T08:12:00.6109178Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6109383Z 
2020-04-28T08:12:00.6109893Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6110643Z    |
2020-04-28T08:12:00.6110643Z    |
2020-04-28T08:12:00.6110799Z LL |     format!(r#"{ \n
2020-04-28T08:12:00.6111220Z    |                -^ expected `}` in format string
2020-04-28T08:12:00.6111658Z    |                because of this opening brace
2020-04-28T08:12:00.6111845Z    |
2020-04-28T08:12:00.6111845Z    |
2020-04-28T08:12:00.6112083Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6112281Z 
2020-04-28T08:12:00.6112667Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6113413Z    |
2020-04-28T08:12:00.6113564Z LL |     format!("{ \n
2020-04-28T08:12:00.6113564Z LL |     format!("{ \n
2020-04-28T08:12:00.6113976Z    |              -^ expected `}` in format string
2020-04-28T08:12:00.6114407Z    |              because of this opening brace
2020-04-28T08:12:00.6114605Z    |
2020-04-28T08:12:00.6114605Z    |
2020-04-28T08:12:00.6114828Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6115025Z 
2020-04-28T08:12:00.6115413Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6116150Z    |
2020-04-28T08:12:00.6116282Z LL |     {
2020-04-28T08:12:00.6116282Z LL |     {
2020-04-28T08:12:00.6116927Z    |     -^ expected `}` in format string
2020-04-28T08:12:00.6117300Z    |     because of this opening brace
2020-04-28T08:12:00.6117485Z    |
2020-04-28T08:12:00.6117485Z    |
2020-04-28T08:12:00.6117709Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6118045Z 
2020-04-28T08:12:00.6118446Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6119264Z    |
2020-04-28T08:12:00.6119395Z LL |     {
2020-04-28T08:12:00.6119395Z LL |     {
2020-04-28T08:12:00.6119774Z    |     -^ expected `}` in format string
2020-04-28T08:12:00.6120143Z    |     because of this opening brace
2020-04-28T08:12:00.6120332Z    |
2020-04-28T08:12:00.6120332Z    |
2020-04-28T08:12:00.6120555Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6120754Z 
2020-04-28T08:12:00.6121141Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6121878Z    |
2020-04-28T08:12:00.6122013Z LL |     { \
2020-04-28T08:12:00.6122013Z LL |     { \
2020-04-28T08:12:00.6122543Z    |     -^ expected `}` in format string
2020-04-28T08:12:00.6122917Z    |     because of this opening brace
2020-04-28T08:12:00.6123114Z    |
2020-04-28T08:12:00.6123114Z    |
2020-04-28T08:12:00.6123341Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6123539Z 
2020-04-28T08:12:00.6123926Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6124661Z    |
2020-04-28T08:12:00.6124794Z LL |     { \
2020-04-28T08:12:00.6124794Z LL |     { \
2020-04-28T08:12:00.6126582Z    |     -^ expected `}` in format string
2020-04-28T08:12:00.6126980Z    |     because of this opening brace
2020-04-28T08:12:00.6129151Z    |
2020-04-28T08:12:00.6129151Z    |
2020-04-28T08:12:00.6129385Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6129586Z 
2020-04-28T08:12:00.6130302Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6131049Z    |
2020-04-28T08:12:00.6131049Z    |
2020-04-28T08:12:00.6131186Z LL | raw  { \
2020-04-28T08:12:00.6131569Z    |      -^ expected `}` in format string
2020-04-28T08:12:00.6131950Z    |      because of this opening brace
2020-04-28T08:12:00.6139133Z    |
2020-04-28T08:12:00.6139133Z    |
2020-04-28T08:12:00.6139378Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6139580Z 
2020-04-28T08:12:00.6140159Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6140921Z    |
2020-04-28T08:12:00.6140921Z    |
2020-04-28T08:12:00.6141060Z LL | raw  { \n
2020-04-28T08:12:00.6141573Z    |      -^ expected `}` in format string
2020-04-28T08:12:00.6141951Z    |      because of this opening brace
2020-04-28T08:12:00.6142141Z    |
2020-04-28T08:12:00.6142141Z    |
2020-04-28T08:12:00.6143549Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6143757Z 
2020-04-28T08:12:00.6144226Z error: invalid format string: expected `}`, found `' '`
2020-04-28T08:12:00.6144987Z    |
2020-04-28T08:12:00.6145125Z LL |   { \n
2020-04-28T08:12:00.6145125Z LL |   { \n
2020-04-28T08:12:00.6145495Z    |   -^ expected `}` in format string
2020-04-28T08:12:00.6146521Z    |   because of this opening brace
2020-04-28T08:12:00.6146707Z    |
2020-04-28T08:12:00.6146707Z    |
2020-04-28T08:12:00.6146934Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6147134Z 
2020-04-28T08:12:00.6147646Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6154053Z    |
2020-04-28T08:12:00.6154201Z LL |     {asdf
2020-04-28T08:12:00.6154632Z    |     -    ^ expected `}` in format string
2020-04-28T08:12:00.6154827Z    |     |
2020-04-28T08:12:00.6154827Z    |     |
2020-04-28T08:12:00.6155007Z    |     because of this opening brace
2020-04-28T08:12:00.6155196Z    |
2020-04-28T08:12:00.6155422Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6155777Z 
2020-04-28T08:12:00.6156252Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6157013Z    |
2020-04-28T08:12:00.6157144Z LL |     {
2020-04-28T08:12:00.6157144Z LL |     {
2020-04-28T08:12:00.6157514Z    |     -^ expected `}` in format string
2020-04-28T08:12:00.6157884Z    |     because of this opening brace
2020-04-28T08:12:00.6158071Z    |
2020-04-28T08:12:00.6158071Z    |
2020-04-28T08:12:00.6158295Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6158718Z error: 1 positional argument in format string, but no arguments were given
2020-04-28T08:12:00.6159253Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:70:17
2020-04-28T08:12:00.6159474Z    |
2020-04-28T08:12:00.6159474Z    |
2020-04-28T08:12:00.6159783Z LL |     println!("\t{}");
2020-04-28T08:12:00.6160126Z 
2020-04-28T08:12:00.6160126Z 
2020-04-28T08:12:00.6160526Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6161276Z    |
2020-04-28T08:12:00.6161276Z    |
2020-04-28T08:12:00.6161449Z LL |     println!("\x7B}\u{8} {", 1);
2020-04-28T08:12:00.6161889Z    |                          -^ expected `}` in format string
2020-04-28T08:12:00.6162398Z    |                          because of this opening brace
2020-04-28T08:12:00.6162599Z    |
2020-04-28T08:12:00.6162599Z    |
2020-04-28T08:12:00.6162838Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6163233Z error: invalid format string: unmatched `}` found
2020-04-28T08:12:00.6163882Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:81:21
2020-04-28T08:12:00.6164105Z    |
2020-04-28T08:12:00.6164105Z    |
2020-04-28T08:12:00.6164282Z LL |     println!(r#"\x7B}\u{8} {"#, 1);
2020-04-28T08:12:00.6164556Z    |                     ^ unmatched `}` in format string
2020-04-28T08:12:00.6164754Z    |
2020-04-28T08:12:00.6164978Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6165388Z error: invalid format string: unmatched `}` found
2020-04-28T08:12:00.6165879Z   --> /checkout/src/test/ui/fmt/format-string-error-2.rs:84:21
2020-04-28T08:12:00.6166100Z    |
2020-04-28T08:12:00.6166100Z    |
2020-04-28T08:12:00.6166293Z LL |     println!(r#"\x7B}\u8 {"#, 1);
2020-04-28T08:12:00.6166543Z    |                     ^ unmatched `}` in format string
2020-04-28T08:12:00.6166740Z    |
2020-04-28T08:12:00.6166978Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6167349Z error: aborting due to 19 previous errors
2020-04-28T08:12:00.6167630Z 
2020-04-28T08:12:00.6167724Z 
2020-04-28T08:12:00.6168092Z ------------------------------------------
2020-04-28T08:12:00.6168092Z ------------------------------------------
2020-04-28T08:12:00.6168248Z 
2020-04-28T08:12:00.6168338Z 
2020-04-28T08:12:00.6168703Z ---- [ui] ui/fmt/format-string-error.rs stdout ----
2020-04-28T08:12:00.6168938Z diff of stderr:
2020-04-28T08:12:00.6169060Z 
2020-04-28T08:12:00.6169496Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-28T08:12:00.6170308Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6170983Z 3    |
2020-04-28T08:12:00.6171158Z 4 LL |     println!("{");
2020-04-28T08:12:00.6171287Z 
2020-04-28T08:12:00.6171287Z 
2020-04-28T08:12:00.6171659Z -    |               -^ expected `'}'` in format string
2020-04-28T08:12:00.6172106Z +    |               -^ expected `}` in format string
2020-04-28T08:12:00.6172562Z 7    |               because of this opening brace
2020-04-28T08:12:00.6172753Z 8    |
2020-04-28T08:12:00.6172869Z 
2020-04-28T08:12:00.6172989Z 40    |
2020-04-28T08:12:00.6172989Z 40    |
2020-04-28T08:12:00.6173202Z 41    = note: argument name cannot be a single underscore
2020-04-28T08:12:00.6173491Z 42 
2020-04-28T08:12:00.6173946Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-28T08:12:00.6174370Z + error: invalid format string: expected `}` but string was terminated
2020-04-28T08:12:00.6175072Z 45    |
2020-04-28T08:12:00.6175371Z 46 LL |     let _ = format!("{");
2020-04-28T08:12:00.6175512Z 
2020-04-28T08:12:00.6175512Z 
2020-04-28T08:12:00.6175927Z -    |                      -^ expected `'}'` in format string
2020-04-28T08:12:00.6176401Z +    |                      -^ expected `}` in format string
2020-04-28T08:12:00.6176902Z 49    |                      because of this opening brace
2020-04-28T08:12:00.6177107Z 50    |
2020-04-28T08:12:00.6177209Z 
2020-04-28T08:12:00.6177328Z 58    |
2020-04-28T08:12:00.6177328Z 58    |
2020-04-28T08:12:00.6177576Z 59    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6177801Z 60 
2020-04-28T08:12:00.6178203Z - error: invalid format string: expected `'}'`, found `'\'`
2020-04-28T08:12:00.6178841Z + error: invalid format string: expected `}`, found `'\'`
2020-04-28T08:12:00.6179508Z 63    |
2020-04-28T08:12:00.6179508Z 63    |
2020-04-28T08:12:00.6179695Z 64 LL |     let _ = format!("{\}");
2020-04-28T08:12:00.6179959Z 68    |
2020-04-28T08:12:00.6179959Z 68    |
2020-04-28T08:12:00.6180191Z 69    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6180431Z 70 
2020-04-28T08:12:00.6180860Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-28T08:12:00.6181334Z -   --> $DIR/format-string-error.rs:21:35
2020-04-28T08:12:00.6181815Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6182463Z 73    |
2020-04-28T08:12:00.6182463Z 73    |
2020-04-28T08:12:00.6182666Z 74 LL |     let _ = format!("\n\n\n{\n\n\n");
2020-04-28T08:12:00.6183147Z -    |                            -      ^ expected `'}'` in format string
2020-04-28T08:12:00.6183654Z +    |                            -^ expected `}` in format string
2020-04-28T08:12:00.6184193Z 77    |                            because of this opening brace
2020-04-28T08:12:00.6184537Z 78    |
2020-04-28T08:12:00.6184640Z 
2020-04-28T08:12:00.6184640Z 
2020-04-28T08:12:00.6184881Z 79    = note: if you intended to print `{`, you can escape it using `{{`
---
2020-04-28T08:12:00.6235248Z 
2020-04-28T08:12:00.6235391Z 164    |             |
2020-04-28T08:12:00.6235611Z 165    |             formatting specifier missing
2020-04-28T08:12:00.6235814Z 166 
2020-04-28T08:12:00.6236250Z - error: invalid format string: expected `'}'` but string was terminated
2020-04-28T08:12:00.6236600Z + error: invalid format string: expected `}` but string was terminated
2020-04-28T08:12:00.6237077Z 168   --> $DIR/ifmt-bad-arg.rs:51:15
2020-04-28T08:12:00.6237430Z 170 LL |     format!("{");
2020-04-28T08:12:00.6237560Z 
2020-04-28T08:12:00.6237560Z 
2020-04-28T08:12:00.6237943Z -    |              -^ expected `'}'` in format string
2020-04-28T08:12:00.6238390Z +    |              -^ expected `}` in format string
2020-04-28T08:12:00.6238849Z 173    |              because of this opening brace
2020-04-28T08:12:00.6239045Z 174    |
2020-04-28T08:12:00.6239149Z 
2020-04-28T08:12:00.6239292Z 206 LL |         {foo}
2020-04-28T08:12:00.6239292Z 206 LL |         {foo}
2020-04-28T08:12:00.6239481Z 207    |         ^^^^^
2020-04-28T08:12:00.6239628Z 208 
2020-04-28T08:12:00.6240029Z - error: invalid format string: expected `'}'`, found `'t'`
2020-04-28T08:12:00.6240484Z -   --> $DIR/ifmt-bad-arg.rs:75:1
2020-04-28T08:12:00.6240938Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6241372Z +   --> $DIR/ifmt-bad-arg.rs:74:16
2020-04-28T08:12:00.6241571Z 211    |
2020-04-28T08:12:00.6241740Z 212 LL | ninth number: {
2020-04-28T08:12:00.6242152Z -    |               - because of this opening brace
2020-04-28T08:12:00.6242552Z - LL | tenth number: {}",
2020-04-28T08:12:00.6242936Z -    | ^ expected `}` in format string
2020-04-28T08:12:00.6243359Z +    |               -^ expected `}` in format string
2020-04-28T08:12:00.6243813Z +    |               because of this opening brace
2020-04-28T08:12:00.6244007Z 216    |
2020-04-28T08:12:00.6244007Z 216    |
2020-04-28T08:12:00.6244245Z 217    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6244588Z 
2020-04-28T08:12:00.6244678Z 
2020-04-28T08:12:00.6244939Z The actual stderr differed from the expected stderr.
2020-04-28T08:12:00.6245705Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg/ifmt-bad-arg.stderr
2020-04-28T08:12:00.6245705Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg/ifmt-bad-arg.stderr
2020-04-28T08:12:00.6246241Z To update references, rerun the tests and pass the `--bless` flag
2020-04-28T08:12:00.6246745Z To only update this specific test, also pass `--test-args if/ifmt-bad-arg.rs`
2020-04-28T08:12:00.6247101Z error: 1 errors occurred comparing output.
2020-04-28T08:12:00.6247299Z status: exit code: 1
2020-04-28T08:12:00.6247299Z status: exit code: 1
2020-04-28T08:12:00.6248906Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/if/ifmt-bad-arg.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/if/ifmt-bad-arg" "-A" "unused" "-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/ifmt-bad-arg/auxiliary"
2020-04-28T08:12:00.6250406Z ------------------------------------------
2020-04-28T08:12:00.6250553Z 
2020-04-28T08:12:00.6250866Z ------------------------------------------
2020-04-28T08:12:00.6251054Z stderr:
---
2020-04-28T08:12:00.6264573Z 
2020-04-28T08:12:00.6264797Z error: invalid reference to positional argument 2 (there are 2 arguments)
2020-04-28T08:12:00.6265315Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:22:28
2020-04-28T08:12:00.6265509Z    |
2020-04-28T08:12:00.6265685Z LL |     format!("{} {value} {} {}", 1, value=2);
2020-04-28T08:12:00.6266068Z    |
2020-04-28T08:12:00.6266411Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6266580Z 
2020-04-28T08:12:00.6266580Z 
2020-04-28T08:12:00.6266799Z error: invalid reference to positional arguments 3, 4 and 5 (there are 3 arguments)
2020-04-28T08:12:00.6267467Z    |
2020-04-28T08:12:00.6267467Z    |
2020-04-28T08:12:00.6267674Z LL |     format!("{name} {value} {} {} {} {} {} {}", 0, name=1, value=2);
2020-04-28T08:12:00.6267941Z    |                                      ^^ ^^ ^^
2020-04-28T08:12:00.6268462Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6268619Z 
2020-04-28T08:12:00.6268777Z error: there is no argument named `foo`
2020-04-28T08:12:00.6269203Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-28T08:12:00.6269203Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:17
2020-04-28T08:12:00.6269391Z    |
2020-04-28T08:12:00.6269567Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-28T08:12:00.6270127Z 
2020-04-28T08:12:00.6270300Z error: there is no argument named `bar`
2020-04-28T08:12:00.6270741Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:27:26
2020-04-28T08:12:00.6270958Z    |
2020-04-28T08:12:00.6270958Z    |
2020-04-28T08:12:00.6271149Z LL |     format!("{} {foo} {} {bar} {}", 1, 2, 3);
2020-04-28T08:12:00.6271545Z 
2020-04-28T08:12:00.6271717Z error: there is no argument named `foo`
2020-04-28T08:12:00.6272153Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:31:14
2020-04-28T08:12:00.6272356Z    |
2020-04-28T08:12:00.6272356Z    |
2020-04-28T08:12:00.6272629Z LL |     format!("{foo}");                //~ ERROR: no argument named `foo`
2020-04-28T08:12:00.6273127Z 
2020-04-28T08:12:00.6273309Z error: multiple unused formatting arguments
2020-04-28T08:12:00.6273722Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:32:17
2020-04-28T08:12:00.6273912Z    |
2020-04-28T08:12:00.6273912Z    |
2020-04-28T08:12:00.6274185Z LL |     format!("", 1, 2);               //~ ERROR: multiple unused formatting arguments
2020-04-28T08:12:00.6274657Z    |             --  ^  ^ argument never used
2020-04-28T08:12:00.6275055Z    |             |   argument never used
2020-04-28T08:12:00.6275286Z    |             multiple missing formatting specifiers
2020-04-28T08:12:00.6275444Z 
2020-04-28T08:12:00.6275587Z error: argument never used
---
2020-04-28T08:12:00.6279340Z 
2020-04-28T08:12:00.6279488Z error: named argument never used
2020-04-28T08:12:00.6279899Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:35:26
2020-04-28T08:12:00.6280086Z    |
2020-04-28T08:12:00.6280321Z LL |     format!("{}", 1, foo=2);         //~ ERROR: named argument never used
2020-04-28T08:12:00.6280795Z    |             ----         ^ named argument never used
2020-04-28T08:12:00.6281284Z    |             formatting specifier missing
2020-04-28T08:12:00.6281433Z 
2020-04-28T08:12:00.6281591Z error: argument never used
2020-04-28T08:12:00.6281988Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-28T08:12:00.6281988Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:36:22
2020-04-28T08:12:00.6282177Z    |
2020-04-28T08:12:00.6282419Z LL |     format!("{foo}", 1, foo=2);      //~ ERROR: argument never used
2020-04-28T08:12:00.6282861Z    |             -------  ^ argument never used
2020-04-28T08:12:00.6283252Z    |             formatting specifier missing
2020-04-28T08:12:00.6283397Z 
2020-04-28T08:12:00.6283546Z error: named argument never used
2020-04-28T08:12:00.6283942Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-28T08:12:00.6283942Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:37:21
2020-04-28T08:12:00.6284144Z    |
2020-04-28T08:12:00.6284379Z LL |     format!("", foo=2);              //~ ERROR: named argument never used
2020-04-28T08:12:00.6284845Z    |             --      ^ named argument never used
2020-04-28T08:12:00.6285250Z    |             formatting specifier missing
2020-04-28T08:12:00.6285396Z 
2020-04-28T08:12:00.6285559Z error: multiple unused formatting arguments
2020-04-28T08:12:00.6285988Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-28T08:12:00.6285988Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:38:32
2020-04-28T08:12:00.6286175Z    |
2020-04-28T08:12:00.6286441Z LL |     format!("{} {}", 1, 2, foo=1, bar=2);  //~ ERROR: multiple unused formatting arguments
2020-04-28T08:12:00.6286989Z    |             -------            ^      ^ named argument never used
2020-04-28T08:12:00.6287478Z    |             |                  named argument never used
2020-04-28T08:12:00.6287753Z    |             multiple missing formatting specifiers
2020-04-28T08:12:00.6287911Z 
2020-04-28T08:12:00.6288066Z error: duplicate argument named `foo`
2020-04-28T08:12:00.6288066Z error: duplicate argument named `foo`
2020-04-28T08:12:00.6288484Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:40:33
2020-04-28T08:12:00.6288675Z    |
2020-04-28T08:12:00.6288896Z LL |     format!("{foo}", foo=1, foo=2);  //~ ERROR: duplicate argument
2020-04-28T08:12:00.6289374Z    |                          -      ^ duplicate argument
2020-04-28T08:12:00.6289804Z    |                          previously here
2020-04-28T08:12:00.6290392Z 
2020-04-28T08:12:00.6290584Z error: positional arguments cannot follow named arguments
2020-04-28T08:12:00.6291032Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-28T08:12:00.6291032Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:41:35
2020-04-28T08:12:00.6291221Z    |
2020-04-28T08:12:00.6291499Z LL |     format!("{foo} {} {}", foo=1, 2);   //~ ERROR: positional arguments cannot follow
2020-04-28T08:12:00.6292078Z    |                                -  ^ positional arguments must be before named arguments
2020-04-28T08:12:00.6292781Z    |                                named argument
2020-04-28T08:12:00.6292949Z 
2020-04-28T08:12:00.6293132Z error: there is no argument named `valueb`
2020-04-28T08:12:00.6293575Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-28T08:12:00.6293575Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:23
2020-04-28T08:12:00.6293797Z    |
2020-04-28T08:12:00.6293999Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-28T08:12:00.6294408Z 
2020-04-28T08:12:00.6294569Z error: named argument never used
2020-04-28T08:12:00.6294997Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:45:51
2020-04-28T08:12:00.6295214Z    |
2020-04-28T08:12:00.6295214Z    |
2020-04-28T08:12:00.6295416Z LL |     format!("{valuea} {valueb}", valuea=5, valuec=7);
2020-04-28T08:12:00.6295936Z    |             -------------------                   ^ named argument never used
2020-04-28T08:12:00.6296411Z    |             formatting specifier missing
2020-04-28T08:12:00.6296569Z 
2020-04-28T08:12:00.6296795Z error: invalid format string: expected `}` but string was terminated
2020-04-28T08:12:00.6297380Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-28T08:12:00.6297380Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:51:15
2020-04-28T08:12:00.6297617Z    |
2020-04-28T08:12:00.6298131Z LL |     format!("{"); //~ ERROR: expected `'}'` but string was terminated
2020-04-28T08:12:00.6298664Z    |              -^ expected `}` in format string
2020-04-28T08:12:00.6299085Z    |              because of this opening brace
2020-04-28T08:12:00.6299284Z    |
2020-04-28T08:12:00.6299284Z    |
2020-04-28T08:12:00.6299510Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6299906Z error: invalid format string: unmatched `}` found
2020-04-28T08:12:00.6300382Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:53:18
2020-04-28T08:12:00.6300587Z    |
2020-04-28T08:12:00.6300587Z    |
2020-04-28T08:12:00.6300815Z LL |     format!("foo } bar"); //~ ERROR: unmatched `}` found
2020-04-28T08:12:00.6301130Z    |                  ^ unmatched `}` in format string
2020-04-28T08:12:00.6301323Z    |
2020-04-28T08:12:00.6301548Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6301970Z error: invalid format string: unmatched `}` found
2020-04-28T08:12:00.6302438Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:54:18
2020-04-28T08:12:00.6302656Z    |
2020-04-28T08:12:00.6302656Z    |
2020-04-28T08:12:00.6302877Z LL |     format!("foo }"); //~ ERROR: unmatched `}` found
2020-04-28T08:12:00.6303168Z    |                  ^ unmatched `}` in format string
2020-04-28T08:12:00.6303361Z    |
2020-04-28T08:12:00.6303599Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6303950Z error: argument never used
2020-04-28T08:12:00.6304383Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:56:27
2020-04-28T08:12:00.6304586Z    |
2020-04-28T08:12:00.6304586Z    |
2020-04-28T08:12:00.6304824Z LL |     format!("foo %s baz", "bar"); //~ ERROR: argument never used
2020-04-28T08:12:00.6305564Z    |                  |
2020-04-28T08:12:00.6305564Z    |                  |
2020-04-28T08:12:00.6305844Z    |                  help: format specifiers use curly braces: `{}`
2020-04-28T08:12:00.6306377Z    = note: printf formatting not supported; see the documentation for `std::fmt`
2020-04-28T08:12:00.6306622Z 
2020-04-28T08:12:00.6306794Z error: there is no argument named `foo`
2020-04-28T08:12:00.6307243Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-28T08:12:00.6307243Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:60:9
2020-04-28T08:12:00.6307449Z    |
2020-04-28T08:12:00.6307591Z LL |         {foo}
2020-04-28T08:12:00.6307769Z    |         ^^^^^
2020-04-28T08:12:00.6307888Z 
2020-04-28T08:12:00.6308276Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6308964Z    |
2020-04-28T08:12:00.6308964Z    |
2020-04-28T08:12:00.6309121Z LL | ninth number: {
2020-04-28T08:12:00.6309521Z    |               -^ expected `}` in format string
2020-04-28T08:12:00.6309966Z    |               because of this opening brace
2020-04-28T08:12:00.6310155Z    |
2020-04-28T08:12:00.6310155Z    |
2020-04-28T08:12:00.6310393Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6310818Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-28T08:12:00.6311453Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:15
2020-04-28T08:12:00.6311677Z    |
2020-04-28T08:12:00.6311677Z    |
2020-04-28T08:12:00.6311875Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-28T08:12:00.6312305Z    |               ^^ ^^--^ ^^   -  ---  -
2020-04-28T08:12:00.6312841Z    |                    |           this parameter corresponds to the precision flag
2020-04-28T08:12:00.6312841Z    |                    |           this parameter corresponds to the precision flag
2020-04-28T08:12:00.6313274Z    |                    this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-28T08:12:00.6313990Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6313990Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6314577Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-28T08:12:00.6315188Z error: 4 positional arguments in format string, but there are 3 arguments
2020-04-28T08:12:00.6315691Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:15
2020-04-28T08:12:00.6315895Z    |
2020-04-28T08:12:00.6315895Z    |
2020-04-28T08:12:00.6316110Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-28T08:12:00.6316535Z    |               ^^ ^^^----^ ^^   -  ---  -
2020-04-28T08:12:00.6317086Z    |                     | |           this parameter corresponds to the precision flag
2020-04-28T08:12:00.6317086Z    |                     | |           this parameter corresponds to the precision flag
2020-04-28T08:12:00.6317525Z    |                     | this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
2020-04-28T08:12:00.6317998Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-28T08:12:00.6318653Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6318653Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6319237Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-28T08:12:00.6319746Z error: invalid reference to positional argument 7 (there are 3 arguments)
2020-04-28T08:12:00.6320232Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:84:18
2020-04-28T08:12:00.6320451Z    |
2020-04-28T08:12:00.6320451Z    |
2020-04-28T08:12:00.6320647Z LL |     println!("{} {:07$} {}", 1, 3.2, 4);
2020-04-28T08:12:00.6321031Z    |                  ^^^--^
2020-04-28T08:12:00.6321226Z    |                     |
2020-04-28T08:12:00.6321557Z    |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
2020-04-28T08:12:00.6322191Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6322191Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6322790Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-28T08:12:00.6323226Z error: unknown format trait `foo`
2020-04-28T08:12:00.6323671Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:86:17
2020-04-28T08:12:00.6323873Z    |
2020-04-28T08:12:00.6323873Z    |
2020-04-28T08:12:00.6324103Z LL |     println!("{:foo}", 1); //~ ERROR unknown format trait `foo`
2020-04-28T08:12:00.6324528Z    |
2020-04-28T08:12:00.6324751Z    = note: the only appropriate formatting traits are:
2020-04-28T08:12:00.6325206Z            - ``, which uses the `Display` trait
2020-04-28T08:12:00.6325641Z            - `?`, which uses the `Debug` trait
2020-04-28T08:12:00.6325641Z            - `?`, which uses the `Debug` trait
2020-04-28T08:12:00.6326066Z            - `e`, which uses the `LowerExp` trait
2020-04-28T08:12:00.6326492Z            - `E`, which uses the `UpperExp` trait
2020-04-28T08:12:00.6326929Z            - `o`, which uses the `Octal` trait
2020-04-28T08:12:00.6327349Z            - `p`, which uses the `Pointer` trait
2020-04-28T08:12:00.6327770Z            - `b`, which uses the `Binary` trait
2020-04-28T08:12:00.6328214Z            - `x`, which uses the `LowerHex` trait
2020-04-28T08:12:00.6328646Z            - `X`, which uses the `UpperHex` trait
2020-04-28T08:12:00.6328811Z 
2020-04-28T08:12:00.6329064Z error: invalid reference to positional arguments 4, 5, 6 and 7 (there is 1 argument)
2020-04-28T08:12:00.6329768Z    |
2020-04-28T08:12:00.6329768Z    |
2020-04-28T08:12:00.6330076Z LL |     println!("{5} {:4$} {6:7$}", 1);
2020-04-28T08:12:00.6330488Z    |               ^^^ ^^--^ ^^^--^
2020-04-28T08:12:00.6330702Z    |                     |      |
2020-04-28T08:12:00.6331045Z    |                     |      this width flag expects an `usize` argument at position 7, but there is 1 argument
2020-04-28T08:12:00.6331483Z    |                     this width flag expects an `usize` argument at position 4, but there is 1 argument
2020-04-28T08:12:00.6332130Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6332130Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6332789Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-28T08:12:00.6333340Z error: 2 positional arguments in format string, but no arguments were given
2020-04-28T08:12:00.6333861Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:92:15
2020-04-28T08:12:00.6334065Z    |
2020-04-28T08:12:00.6334065Z    |
2020-04-28T08:12:00.6334234Z LL |     println!("{:.*}");
2020-04-28T08:12:00.6334604Z    |               ^^--^
2020-04-28T08:12:00.6334786Z    |                 |
2020-04-28T08:12:00.6335124Z    |                 this precision flag adds an extra required argument at position 0, which is why there are 2 arguments expected
2020-04-28T08:12:00.6335803Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6335803Z    = note: positional arguments are zero-based
2020-04-28T08:12:00.6336383Z    = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
2020-04-28T08:12:00.6336834Z error[E0308]: mismatched types
2020-04-28T08:12:00.6337267Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:78:32
2020-04-28T08:12:00.6337483Z    |
2020-04-28T08:12:00.6337483Z    |
2020-04-28T08:12:00.6337682Z LL |     println!("{} {:.*} {}", 1, 3.2, 4);
2020-04-28T08:12:00.6338203Z    |                                ^^^ expected `usize`, found floating-point number
2020-04-28T08:12:00.6338637Z    = note: expected reference `&usize`
2020-04-28T08:12:00.6338637Z    = note: expected reference `&usize`
2020-04-28T08:12:00.6338868Z               found reference `&{float}`
2020-04-28T08:12:00.6339695Z 
2020-04-28T08:12:00.6339858Z error[E0308]: mismatched types
2020-04-28T08:12:00.6340286Z   --> /checkout/src/test/ui/if/ifmt-bad-arg.rs:81:35
2020-04-28T08:12:00.6340505Z    |
2020-04-28T08:12:00.6340505Z    |
2020-04-28T08:12:00.6340702Z LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
2020-04-28T08:12:00.6341234Z    |                                   ^^^ expected `usize`, found floating-point number
2020-04-28T08:12:00.6341679Z    = note: expected reference `&usize`
2020-04-28T08:12:00.6341679Z    = note: expected reference `&usize`
2020-04-28T08:12:00.6341914Z               found reference `&{float}`
2020-04-28T08:12:00.6342742Z 
2020-04-28T08:12:00.6342915Z error: aborting due to 36 previous errors
2020-04-28T08:12:00.6343072Z 
2020-04-28T08:12:00.6343490Z For more information about this error, try `rustc --explain E0308`.
2020-04-28T08:12:00.6343490Z For more information about this error, try `rustc --explain E0308`.
2020-04-28T08:12:00.6343683Z 
2020-04-28T08:12:00.6344022Z ------------------------------------------
2020-04-28T08:12:00.6344177Z 
2020-04-28T08:12:00.6344269Z 
2020-04-28T08:12:00.6344636Z ---- [ui] ui/issues/issue-51848.rs stdout ----
2020-04-28T08:12:00.6344847Z diff of stderr:
2020-04-28T08:12:00.6344970Z 
2020-04-28T08:12:00.6345403Z - error: invalid format string: expected `}` but string was terminated
2020-04-28T08:12:00.6345914Z + error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6346545Z 3    |
2020-04-28T08:12:00.6346712Z 4 LL |         println!("{");
2020-04-28T08:12:00.6346847Z 
2020-04-28T08:12:00.6346938Z 
2020-04-28T08:12:00.6346938Z 
2020-04-28T08:12:00.6347123Z The actual stderr differed from the expected stderr.
2020-04-28T08:12:00.6347730Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/issue-51848.stderr
2020-04-28T08:12:00.6348288Z To update references, rerun the tests and pass the `--bless` flag
2020-04-28T08:12:00.6348831Z To only update this specific test, also pass `--test-args issues/issue-51848.rs`
2020-04-28T08:12:00.6349220Z error: 1 errors occurred comparing output.
2020-04-28T08:12:00.6349436Z status: exit code: 1
2020-04-28T08:12:00.6349436Z status: exit code: 1
2020-04-28T08:12:00.6351224Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-51848.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848" "-A" "unused" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-51848/auxiliary"
2020-04-28T08:12:00.6352673Z ------------------------------------------
2020-04-28T08:12:00.6352833Z 
2020-04-28T08:12:00.6353173Z ------------------------------------------
2020-04-28T08:12:00.6353376Z stderr:
2020-04-28T08:12:00.6353376Z stderr:
2020-04-28T08:12:00.6353729Z ------------------------------------------
2020-04-28T08:12:00.6354176Z error: invalid format string: expected `}`, found `'\n'`
2020-04-28T08:12:00.6354881Z    |
2020-04-28T08:12:00.6355064Z LL |         println!("{"); //~ ERROR invalid
2020-04-28T08:12:00.6355064Z LL |         println!("{"); //~ ERROR invalid
2020-04-28T08:12:00.6355521Z    |                   -^ expected `}` in format string
2020-04-28T08:12:00.6355975Z    |                   because of this opening brace
2020-04-28T08:12:00.6356179Z ...
2020-04-28T08:12:00.6356337Z LL |     macro_with_error!();
2020-04-28T08:12:00.6356746Z    |     -------------------- in this macro invocation
2020-04-28T08:12:00.6356746Z    |     -------------------- in this macro invocation
2020-04-28T08:12:00.6356958Z    |
2020-04-28T08:12:00.6357185Z    = note: if you intended to print `{`, you can escape it using `{{`
2020-04-28T08:12:00.6358042Z 
2020-04-28T08:12:00.6358258Z error: invalid format string: unmatched `}` found
2020-04-28T08:12:00.6358731Z   --> /checkout/src/test/ui/issues/issue-51848.rs:18:15
2020-04-28T08:12:00.6358938Z    |
2020-04-28T08:12:00.6358938Z    |
2020-04-28T08:12:00.6359131Z LL |     println!("}"); //~ ERROR invalid
2020-04-28T08:12:00.6359378Z    |               ^ unmatched `}` in format string
2020-04-28T08:12:00.6359571Z    |
2020-04-28T08:12:00.6359807Z    = note: if you intended to print `}`, you can escape it using `}}`
2020-04-28T08:12:00.6360183Z error: aborting due to 2 previous errors
2020-04-28T08:12:00.6360337Z 
2020-04-28T08:12:00.6360442Z 
2020-04-28T08:12:00.6360785Z ------------------------------------------
---
2020-04-28T08:12:00.6364145Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:348:22
2020-04-28T08:12:00.6364521Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2020-04-28T08:12:00.6364747Z 
2020-04-28T08:12:00.6364838Z 
2020-04-28T08:12:00.6368240Z 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-8/bin/FileCheck" "--nodejs" "/usr/bin/node" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "8.0.0" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2020-04-28T08:12:00.6370659Z 
2020-04-28T08:12:00.6370753Z 
2020-04-28T08:12:00.6371240Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --exclude src/tools/tidy
2020-04-28T08:12:00.6371590Z Build completed unsuccessfully in 0:56:04
2020-04-28T08:12:00.6371590Z Build completed unsuccessfully in 0:56:04
2020-04-28T08:12:00.6371816Z == clock drift check ==
2020-04-28T08:12:00.6372055Z   local time: Tue Apr 28 08:12:00 UTC 2020
2020-04-28T08:12:00.6839935Z   network time: Tue, 28 Apr 2020 08:12:00 GMT
2020-04-28T08:12:01.2983031Z 
2020-04-28T08:12:01.2983031Z 
2020-04-28T08:12:01.3051155Z ##[error]Bash exited with code '1'.
2020-04-28T08:12:01.3064646Z ##[section]Finishing: Run build
2020-04-28T08:12:01.3106128Z ##[section]Starting: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-28T08:12:01.3111906Z Task         : Get sources
2020-04-28T08:12:01.3112217Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2020-04-28T08:12:01.3112499Z Version      : 1.0.0
2020-04-28T08:12:01.3112717Z Author       : Microsoft
2020-04-28T08:12:01.3112717Z Author       : Microsoft
2020-04-28T08:12:01.3113035Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2020-04-28T08:12:01.3113396Z ==============================================================================
2020-04-28T08:12:01.6197183Z Cleaning any cached credential from repository: rust-lang/rust (GitHub)
2020-04-28T08:12:01.6257188Z ##[section]Finishing: Checkout rust-lang/rust@refs/pull/71158/merge to s
2020-04-28T08:12:01.6344017Z Cleaning up task key
2020-04-28T08:12:01.6345111Z Start cleaning up orphan processes.
2020-04-28T08:12:01.6510517Z Terminate orphan process: pid (4328) (python)
2020-04-28T08:12:01.6791971Z ##[section]Finishing: Finalize Job

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

@Dylan-DPC-zz
Copy link

@strega-nil any updates?

@strega-nil
Copy link
Contributor Author

not as of right now, I'll see if I can fix it this weekend, sorry.

@petrochenkov
Copy link
Contributor

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Format string parser does not fail on invalid input
7 participants