Merge commit 'b40ea209e7' into clippyup
This commit is contained in:
parent
cde58f7174
commit
f6d1f368db
349 changed files with 10420 additions and 6013 deletions
|
|
@ -7,7 +7,7 @@ use rustc_span::sym;
|
|||
use super::SKIP_WHILE_NEXT;
|
||||
|
||||
/// lint use of `skip_while().next()` for `Iterators`
|
||||
pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>, _skip_while_args: &'tcx [hir::Expr<'_>]) {
|
||||
pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
|
||||
// lint if caller of `.skip_while().next()` is an Iterator
|
||||
if is_trait_method(cx, expr, sym::Iterator) {
|
||||
span_lint_and_help(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue