Skip to content

Commit 1b08850

Browse files
Fix import
1 parent e3d27ec commit 1b08850

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_lint/levels.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use rustc_errors::{struct_span_err, Applicability};
99
use rustc_hir as hir;
1010
use rustc_hir::def_id::{CrateNum, LOCAL_CRATE};
1111
use rustc_hir::{intravisit, HirId};
12-
use rustc_lint::builtin::UNSAFE_OP_IN_UNSAFE_FN;
1312
use rustc_middle::hir::map::Map;
1413
use rustc_middle::lint::LintDiagnosticBuilder;
1514
use rustc_middle::lint::{struct_lint_level, LintLevelMap, LintLevelSets, LintSet, LintSource};
@@ -388,7 +387,7 @@ impl<'s> LintLevelsBuilder<'s> {
388387
}
389388

390389
fn check_gated_lint(&self, name: Symbol, span: Span) {
391-
if name.as_str() == UNSAFE_OP_IN_UNSAFE_FN.name
390+
if name.as_str() == builtin::UNSAFE_OP_IN_UNSAFE_FN.name
392391
&& !self.sess.features_untracked().unsafe_block_in_unsafe_fn
393392
{
394393
feature_err(

0 commit comments

Comments
 (0)