rust/src/libcoretest
bors a1f4973090 auto merge of #16662 : pczarn/rust/format-fmtstr-opt, r=brson
Based on an observation that strings and arguments are always interleaved, thanks to #15832. Additionally optimize invocations where formatting parameters are unspecified for all arguments, e.g. `"{} {:?} {:x}"`, by emptying the `__STATIC_FMTARGS` array. Next, `Arguments::new` replaces an empty slice with `None` so that passing empty `__STATIC_FMTARGS` generates slightly less machine code when `Arguments::new` is inlined. Furthermore, formatting itself treats these cases separately without making redundant copies of formatting parameters.

All in all, this adds a single mov instruction per `write!` in most cases. That's why code size has increased.
2014-09-09 23:55:43 +00:00
..
fmt coretest: Ensure that pointer formatting flags are cleaned up 2014-09-09 20:34:41 +01:00
num Make integer bit count methods return uints 2014-09-05 14:01:41 +10:00
any.rs Remove some test warnings. 2014-09-09 11:32:58 +02:00
atomic.rs stabilize atomics (now atomic) 2014-08-04 16:03:21 -07:00
cell.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
char.rs Optimized IR generation for UTF-8 and UTF-16 encoding 2014-08-16 21:13:39 +02:00
clone.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
cmp.rs core: add a reverse method to Ordering. 2014-08-03 11:50:19 +10:00
finally.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
iter.rs Flip arguments to std::iter::iterate. 2014-09-07 19:44:30 +02:00
lib.rs Add a test for the fix of issue 16589 2014-08-19 00:37:34 -04:00
mem.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
ops.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
option.rs Remove some test warnings. 2014-09-09 11:32:58 +02:00
ptr.rs Rename RawPtr::to_option() to RawPtr::as_ref() 2014-08-31 13:33:55 -05:00
raw.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00
result.rs Remove some test warnings. 2014-09-09 11:32:58 +02:00
slice.rs core: Add binary_search and binary_search_elem methods to slices. 2014-08-13 11:30:15 -07:00
str.rs Fix TwoWaySearcher to work when used with periodic needles. 2014-08-20 02:51:22 -04:00
tuple.rs Extract tests from libcore to a separate crate 2014-06-29 15:57:21 -07:00