diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-26 13:44:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-27 09:39:05 -0700 |
| commit | b74663e027521d351b5920e6ce95d5c58221cef5 (patch) | |
| tree | 9ec6ac34f33dc92e1c7fcd46c201d7ca22ceb144 /src/rustllvm/RustWrapper.cpp | |
| parent | c4866341182503b1343934e2663f2b0cc1d7c5ac (diff) | |
| download | rust-b74663e027521d351b5920e6ce95d5c58221cef5.tar.gz rust-b74663e027521d351b5920e6ce95d5c58221cef5.zip | |
Remove the notion of an "unknown format"
As mentioned in #9456, the format! syntax extension would previously consider an
empty format as a 'Unknown' format which could then also get coerced into a
different style of format on another argument.
This is unusual behavior because `{}` is a very common format and if you have
`{0} {0:?}` you wouldn't expect them both to be coereced to the `Poly`
formatter. This commit removes this coercion, but still retains the requirement
that each argument has exactly one format specified for it (an empty format now
counts as well).
Perhaps at a later date we can add support for multiple formats of one argument,
but this puts us in at least a backwards-compatible situation if we decide to do
that.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
