]> git.lizzy.rs Git - rust.git/commit
Prevent infinite (exponential) recursion in only_used_in_recursion
authorflip1995 <philipp.krones@embecosm.com>
Tue, 12 Apr 2022 13:27:28 +0000 (15:27 +0200)
committerflip1995 <philipp.krones@embecosm.com>
Tue, 12 Apr 2022 13:27:28 +0000 (15:27 +0200)
commit214fba7ed4a8e2199d42733cc191b956f0c2b017
tree552a89b560b28f81f48837df93039d29370bebab
parentabc59bb9144a97ec23d187dcb2cb28dd88271297
Prevent infinite (exponential) recursion in only_used_in_recursion

This simplifies the visitor code a bit and prevents checking expressions
multiple times. I still think this lint should be removed for now,
because its code isn't really tested.
clippy_lints/src/only_used_in_recursion.rs