summary refs log tree commit diff
path: root/src/libstd/fmt/parse.rs
AgeCommit message (Collapse)AuthorLines
2014-01-03Remove std::eitherAlex Crichton-13/+22
2013-12-11Make 'self lifetime illegal.Erik Price-38/+38
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-11-28Register new snapshotsAlex Crichton-9/+9
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-1/+1
2013-11-05Clarify which errors are format string errorsAlex Crichton-15/+15
There were a few ambiguous error messages which look like they could have cropped up from either the rust compiler for the format string parser. To differentiate, the prefix 'invalid format string' is now added in front of all format string errors. cc #9970
2013-10-18Try to improve format! error messagesAlex Crichton-24/+27
Instead of just saying "unterminated format string" and friends, instead print information about what was expected and what was found. Closes #9931
2013-10-17Register new snapshotsAlex Crichton-47/+0
2013-10-15Build a few extra features into format! parsingAlex Crichton-2/+85
* Allow named parameters to specify width/precision * Intepret the format string '0$' as "width is the 0th argument" instead of thinking the lone '0' was the sign-aware-zero-padding flag. To get both you'd need to put '00$' which makes more sense if you want both to happen. Closes #9669
2013-10-15Require module documentation with missing_docAlex Crichton-0/+6
Closes #9824
2013-10-02Check enums in missing_doc lintSteven Fackler-0/+5
Closes #9671
2013-09-30std: Remove usage of fmt!Alex Crichton-5/+6
2013-09-12Parse underscores in identifiers for format!Alex Crichton-2/+2
Closes #9119
2013-09-09rename `std::iterator` to `std::iter`Daniel Micay-2/+1
The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general.
2013-09-03Raise errors on format strings with unmatched `}`Alex Crichton-0/+11
Otherwise extra stuff after a lone '}' character is simply ignored, which is very bad. Closes #8938
2013-08-30fix various warningsErick Tryzelaar-1/+0
2013-08-19auto merge of #8564 : alexcrichton/rust/ifmt+++, r=graydonbors-1/+5
See discussion in #8489, but this selects option 3 by adding a `Default` trait to be implemented by various basic types. Once this makes it into a snapshot I think it's about time to start overhauling all current use-cases of `fmt!` to move towards `ifmt!`. The goal is to replace `%X` with `{}` in 90% of situations, and this commit should enable that.
2013-08-16Delegate `{}` to Default instead of PolyAlex Crichton-1/+5
By using a separate trait this is overridable on a per-type basis and makes room for the possibility of even more arguments passed in for the future.
2013-08-16doc: correct spelling in documentation.Huon Wilson-1/+1
2013-08-12Correct the padding on integer types for formattingAlex Crichton-17/+21
2013-08-07Add initial support for a new formatting syntaxAlex Crichton-0/+896
The new macro is available under the name ifmt! (only an intermediate name)