Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For generic functions which are instantiated a lot, we can generate less LLVM IR and compile faster by handrolling Option::map. warning: manual implementation of `Option::map` --> src/punctuated.rs:1092:15 | 1092 | last: match punctuated.last { | _______________^ 1093 | | Some(t) => Some(Box::new(f(fold, *t))), 1094 | | None => None, 1095 | | }, | |_________^ help: try: `punctuated.last.map(|t| Box::new(f(fold, *t)))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_map = note: `-W clippy::manual-map` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::manual_map)]`
- Loading branch information