]> git.proxmox.com Git - cargo.git/commit
Auto merge of #8235 - badboy:8234-numbers-in-strings-are-numbers, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 12 May 2020 22:23:08 +0000 (22:23 +0000)
committerbors <bors@rust-lang.org>
Tue, 12 May 2020 22:23:08 +0000 (22:23 +0000)
commit55869de80ab8b7bd20cbb9a909e303fc03cf0125
tree00232f7c1d14878f2f271f549dc1bf6e0e911285
parent058baec9d9bba1d3417881ae1d5efc27c84d956b
parent09084a365f612192fa026754b448f5b0be231890
Auto merge of #8235 - badboy:8234-numbers-in-strings-are-numbers, r=alexcrichton

Expand error message to explain that a string was found

With `opt-level = "3"` this previously said:

    must be an integer, `z`, or `s`, but found: 3 for ...

The error message doesn't make that super clear.
This should now be a bit more clear.

Fixes #8234

---

We could even include a bit more saying that `"3"` should become 3 (either unconditionally or after trying to parse `"3"` into an integer?

cc @steveklabnik