Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit fda60fa

Browse files
committed
tracked rustc changes
1 parent b936e29 commit fda60fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/hacspec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use crate::utils::span_lint;
88
//might use crate::utils::higher to look into loops
9-
use rustc::lint::in_external_macro;
9+
use rustc_middle::lint::in_external_macro;
1010
use rustc_hir::{
1111
intravisit, BindingAnnotation, Body, Expr, ExprKind, FnDecl, HirId, Item, ItemKind, Mod, Param, Pat,
1212
PatKind, Path, PathSegment, Ty, TyKind, StructField,
@@ -217,7 +217,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Hacspec {
217217
| ExprKind::Closure(_, _, _, _, _)
218218
| ExprKind::Box(_)
219219
| ExprKind::Continue(_)
220-
| ExprKind::InlineAsm(_)
220+
| ExprKind::LlvmInlineAsm(_)
221221
| ExprKind::Err => span_lint(cx, HACSPEC, expr.span, &"[HACSPEC] Unauthorized expression"),
222222
}
223223
}

0 commit comments

Comments
 (0)