forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only calculate
trait_ref.self_ty()
once in get_blanket_impls
On crates with many blanket impls, such as `stm32`, this inner closure is executed many hundreds of thousands of times. This makes it very slightly faster. Unfortunately, I don't have a good test case for showing that it's faster until rust-lang/rustc-perf#802 is merged.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters