Skip to content

Commit 3f73fe7

Browse files
compiler: Depend on rustc_abi in rustc_lint
1 parent 4839d6e commit 3f73fe7

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -3908,6 +3908,7 @@ dependencies = [
39083908
name = "rustc_lint"
39093909
version = "0.0.0"
39103910
dependencies = [
3911+
"rustc_abi",
39113912
"rustc_ast",
39123913
"rustc_ast_pretty",
39133914
"rustc_attr",

compiler/rustc_lint/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
# tidy-alphabetical-start
8+
rustc_abi = { path = "../rustc_abi" }
89
rustc_ast = { path = "../rustc_ast" }
910
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
1011
rustc_attr = { path = "../rustc_attr" }

compiler/rustc_lint/src/context.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ use rustc_data_structures::sync;
2222
use rustc_data_structures::unord::UnordMap;
2323
use rustc_errors::{Diag, LintDiagnostic, MultiSpan};
2424
use rustc_feature::Features;
25-
use rustc_hir as hir;
2625
use rustc_hir::def::Res;
2726
use rustc_hir::def_id::{CrateNum, DefId};
2827
use rustc_hir::definitions::{DefPathData, DisambiguatedDefPathData};
@@ -38,8 +37,8 @@ use rustc_session::{LintStoreMarker, Session};
3837
use rustc_span::Span;
3938
use rustc_span::edit_distance::find_best_match_for_names;
4039
use rustc_span::symbol::{Ident, Symbol, sym};
41-
use rustc_target::abi;
4240
use tracing::debug;
41+
use {rustc_abi as abi, rustc_hir as hir};
4342

4443
use self::TargetLint::*;
4544
use crate::levels::LintLevelsBuilder;

compiler/rustc_lint/src/foreign_modules.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use rustc_abi::FIRST_VARIANT;
12
use rustc_data_structures::stack::ensure_sufficient_stack;
23
use rustc_data_structures::unord::{UnordMap, UnordSet};
34
use rustc_hir as hir;
@@ -6,7 +7,6 @@ use rustc_middle::query::Providers;
67
use rustc_middle::ty::{self, AdtDef, Instance, Ty, TyCtxt};
78
use rustc_session::declare_lint;
89
use rustc_span::{Span, Symbol, sym};
9-
use rustc_target::abi::FIRST_VARIANT;
1010
use tracing::{debug, instrument};
1111

1212
use crate::lints::{BuiltinClashingExtern, BuiltinClashingExternSub};

compiler/rustc_lint/src/types/literal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use hir::{ExprKind, Node, is_range_literal};
2+
use rustc_abi::{Integer, Size};
23
use rustc_middle::ty::Ty;
34
use rustc_middle::ty::layout::IntegerExt;
45
use rustc_middle::{bug, ty};
5-
use rustc_target::abi::{Integer, Size};
66
use {rustc_ast as ast, rustc_attr as attr, rustc_hir as hir};
77

88
use crate::LateContext;

0 commit comments

Comments
 (0)