]> git.lizzy.rs Git - rust.git/commit
Add `check_local` to `TypePass` for `BORROWED_BOX`
authorscott-linder <scott.b.linder@wmich.edu>
Sun, 11 Jun 2017 16:11:20 +0000 (12:11 -0400)
committerscott-linder <scott.b.linder@wmich.edu>
Sun, 11 Jun 2017 16:20:20 +0000 (12:20 -0400)
commit74ebe6e69e41ad3b3efaf9095fd45d63c3a76dd0
tree1e4210e8226e80fde037e16a980dad2f7bfb65c7
parentc29f5ea83b7184b575bb23abac4b47553f807b54
Add `check_local` to `TypePass` for `BORROWED_BOX`

Adds a boolean flag to indicate whether the current type in `check_ty`
is in a local declaration, as only the borrowed box lint should consider
these types.
clippy_lints/src/types.rs
clippy_tests/examples/borrow_box.stderr