]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #37014 - nnethercote:avoid-pat_to_string, r=arielb1
authorbors <bors@rust-lang.org>
Sat, 8 Oct 2016 05:51:04 +0000 (22:51 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2016 05:51:04 +0000 (22:51 -0700)
Avoid some `pat_to_string` calls.

`ty_of_method_or_bare_fn` currently calls `pat_to_string` even when it
doesn't need to. Fixing this avoids hundreds of large allocations (e.g.
171,600 bytes, in `mk_printer`) in several of rustc-benchmarks.


Trivial merge