| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
|
|
|
|
|
|
methods.
|
|
|
|
|
|
|
|
|
|
This removes some unnecessary allocations in the lexer, the typechecker and the metadata decoder. Reduces the time spent in the parsing and typechecking passes by about 10% for me.
|
|
|
|
|
|
|
|
|
|
|
|
As the comment said, the subtraction is bogus for multibyte characters.
Fortunately, we can just use last_pos instead of pos to get the correct
position without any subtraction hackery.
|
|
|
|
|
|
|
|
|
|
|
|
lt and gt are implement directly in terms of the corresponding
method on their elements, and le and ge are the negations of these.
|
|
|
|
These are now only called in generic and can be private. This
includes manually inlining/merging some that are called once.
|
|
I encountered this. A straight fail is not useful and most people aren't going to happily spelunk in `parser.rs`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|