about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-11-09 07:18:32 +0100
committerGitHub <noreply@github.com>2019-11-09 07:18:32 +0100
commit12c1e9a193e860090ec3a306964392acae8f7699 (patch)
treed48872ee5cfa207b386c0eb32d48cc758f3fb2d4 /src/test/debuginfo/enum-thinlto.rs
parenta1fc485e64502e51e9fe6c1422e496bedde5875c (diff)
parent543fe5b413bee7f7637c028b4b67b5daa97e1b8e (diff)
downloadrust-12c1e9a193e860090ec3a306964392acae8f7699.tar.gz
rust-12c1e9a193e860090ec3a306964392acae8f7699.zip
Rollup merge of #66134 - estebank:unknown-formatting-trait, r=nikomatsakis
Point at formatting descriptor string when it is invalid

When a formatting string contains an invalid descriptor, point at it
instead of the argument:

```
error: unknown format trait `foo`
  --> $DIR/ifmt-bad-arg.rs:86:17
   |
LL |     println!("{:foo}", 1);
   |                 ^^^
   |
   = note: the only appropriate formatting traits are:
           - ``, which uses the `Display` trait
           - `?`, which uses the `Debug` trait
           - `e`, which uses the `LowerExp` trait
           - `E`, which uses the `UpperExp` trait
           - `o`, which uses the `Octal` trait
           - `p`, which uses the `Pointer` trait
           - `b`, which uses the `Binary` trait
           - `x`, which uses the `LowerHex` trait
           - `X`, which uses the `UpperHex` trait
```
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions