Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 874f406

Browse files
committedJul 2, 2020
Use 'tcx for references to AccessLevels wherever possible.
1 parent 3503f56 commit 874f406

File tree

173 files changed

+1143
-1267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+1143
-1267
lines changed
 

‎src/librustc_lint/array_into_iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ declare_lint_pass!(
2121
ArrayIntoIter => [ARRAY_INTO_ITER]
2222
);
2323

24-
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ArrayIntoIter {
25-
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr<'tcx>) {
24+
impl<'tcx> LateLintPass<'tcx> for ArrayIntoIter {
25+
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'tcx>) {
2626
// We only care about method call expressions.
2727
if let hir::ExprKind::MethodCall(call, span, args, _) = &expr.kind {
2828
if call.ident.name != sym::into_iter {

‎src/librustc_lint/builtin.rs

Lines changed: 53 additions & 61 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.