21a870515b
`x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.