fix copy-paste error

This commit is contained in:
Jason Newcomb 2020-12-31 14:40:07 -05:00
parent 27c0d6c14b
commit bf028b3f4a
No known key found for this signature in database
GPG Key ID: DA59E8643A37ED06

View File

@ -1,7 +1,7 @@
use if_chain::if_chain;
use rustc_errors::Applicability;
use rustc_hir::{Expr, ExprKind, LangItem};
use rustc_lint::{LateContext, LateLintPass};
use rustc_lint::{LateContext, LateLintPass, LintContext};
use rustc_middle::{lint::in_external_macro, ty::TyS};
use rustc_session::{declare_lint_pass, declare_tool_lint};
@ -39,7 +39,7 @@
impl LateLintPass<'_> for RedundantSlicing {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
if in_external_macro(cx.sess, expr.span) {
if in_external_macro(cx.sess(), expr.span) {
return;
}