rust/src/librustc_traits
bors 023fd7e74a Auto merge of #52767 - ljedrz:avoid_format, r=petrochenkov
Prefer to_string() to format!()

Simple benchmarks suggest in some cases it can be faster by even 37%:
```
test converting_f64_long  ... bench:         339 ns/iter (+/- 199)
test converting_f64_short ... bench:         136 ns/iter (+/- 34)
test converting_i32_long  ... bench:          87 ns/iter (+/- 16)
test converting_i32_short ... bench:          87 ns/iter (+/- 49)
test converting_str       ... bench:          54 ns/iter (+/- 15)
test formatting_f64_long  ... bench:         349 ns/iter (+/- 176)
test formatting_f64_short ... bench:         145 ns/iter (+/- 14)
test formatting_i32_long  ... bench:          98 ns/iter (+/- 14)
test formatting_i32_short ... bench:          93 ns/iter (+/- 15)
test formatting_str       ... bench:          86 ns/iter (+/- 23)
```
2018-07-29 09:33:37 +00:00
..
Cargo.toml
chalk_context.rs Avoid most allocations in Canonicalizer. 2018-07-17 13:42:11 +10:00
dropck_outlives.rs change the enter_canonical_trait_query method to give a fulfill cx 2018-06-27 16:04:32 -04:00
evaluate_obligation.rs move into provide methods 2018-06-27 09:42:21 -04:00
implied_outlives_bounds.rs Convert implied_outlives_bounds to a query 2018-07-21 15:56:44 +03:00
lib.rs Deny bare_trait_objects globally 2018-07-25 10:25:29 +09:00
lowering.rs Prefer to_string() to format!() 2018-07-27 11:11:18 +02:00
normalize_erasing_regions.rs move into provide methods 2018-06-27 09:42:21 -04:00
normalize_projection_ty.rs change the enter_canonical_trait_query method to give a fulfill cx 2018-06-27 16:04:32 -04:00
type_op.rs rustfmt various files 2018-06-27 16:30:38 -04:00