Skip to content

Commit 5ceda6b

Browse files
Adjust imports
1 parent 274455a commit 5ceda6b

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

compiler/rustc_const_eval/src/interpret/cast.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_middle::ty::adjustment::PointerCoercion;
88
use rustc_middle::ty::layout::{IntegerExt, LayoutOf, TyAndLayout};
99
use rustc_middle::ty::{self, FloatTy, Ty, TypeAndMut};
1010
use rustc_target::abi::Integer;
11-
use rustc_type_ir::sty::TyKind::*;
11+
use rustc_type_ir::TyKind::*;
1212

1313
use super::{
1414
util::ensure_monomorphic_enough, FnVal, ImmTy, Immediate, InterpCx, Machine, OpTy, PlaceTy,
@@ -185,7 +185,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
185185
src: &ImmTy<'tcx, M::Provenance>,
186186
cast_to: TyAndLayout<'tcx>,
187187
) -> InterpResult<'tcx, ImmTy<'tcx, M::Provenance>> {
188-
use rustc_type_ir::sty::TyKind::*;
188+
use rustc_type_ir::TyKind::*;
189189

190190
let val = match src.layout.ty.kind() {
191191
// Floating point
@@ -310,7 +310,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
310310
where
311311
F: Float + Into<Scalar<M::Provenance>> + FloatConvert<Single> + FloatConvert<Double>,
312312
{
313-
use rustc_type_ir::sty::TyKind::*;
313+
use rustc_type_ir::TyKind::*;
314314

315315
fn adjust_nan<
316316
'mir,

compiler/rustc_hir_analysis/src/coherence/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn visit_implementation_of_dispatch_from_dyn(tcx: TyCtxt<'_>, impl_did: LocalDef
162162
// trait, they *do* satisfy the repr(transparent) rules, and then we assume that everything else
163163
// in the compiler (in particular, all the call ABI logic) will treat them as repr(transparent)
164164
// even if they do not carry that attribute.
165-
use rustc_type_ir::sty::TyKind::*;
165+
use rustc_type_ir::TyKind::*;
166166
match (source.kind(), target.kind()) {
167167
(&Ref(r_a, _, mutbl_a), Ref(r_b, _, mutbl_b))
168168
if infcx.at(&cause, param_env).eq(DefineOpaqueTypes::No, r_a, *r_b).is_ok()

compiler/rustc_hir_typeck/src/op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use rustc_span::Span;
2020
use rustc_trait_selection::infer::InferCtxtExt;
2121
use rustc_trait_selection::traits::error_reporting::suggestions::TypeErrCtxtExt as _;
2222
use rustc_trait_selection::traits::{self, FulfillmentError, ObligationCtxt};
23-
use rustc_type_ir::sty::TyKind::*;
23+
use rustc_type_ir::TyKind::*;
2424

2525
impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
2626
/// Checks a `a <op>= b`

compiler/rustc_lint/src/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
24752475
ty: Ty<'tcx>,
24762476
init: InitKind,
24772477
) -> Option<InitError> {
2478-
use rustc_type_ir::sty::TyKind::*;
2478+
use rustc_type_ir::TyKind::*;
24792479
match ty.kind() {
24802480
// Primitive types that don't like 0 as a value.
24812481
Ref(..) => Some("references must be non-null".into()),

compiler/rustc_lint/src/foreign_modules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn structurally_same_type_impl<'tcx>(
262262
true
263263
} else {
264264
// Do a full, depth-first comparison between the two.
265-
use rustc_type_ir::sty::TyKind::*;
265+
use rustc_type_ir::TyKind::*;
266266
let a_kind = a.kind();
267267
let b_kind = b.kind();
268268

compiler/rustc_middle/src/ty/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use rustc_span::symbol::{kw, sym, Ident, Symbol};
6565
use rustc_span::{Span, DUMMY_SP};
6666
use rustc_target::abi::{FieldIdx, Layout, LayoutS, TargetDataLayout, VariantIdx};
6767
use rustc_target::spec::abi;
68-
use rustc_type_ir::sty::TyKind::*;
68+
use rustc_type_ir::TyKind::*;
6969
use rustc_type_ir::WithCachedTypeInfo;
7070
use rustc_type_ir::{CollectAndApply, Interner, TypeFlags};
7171

compiler/rustc_middle/src/ty/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use rustc_hir::def::DefKind;
1717
use rustc_hir::def_id::DefId;
1818
use rustc_hir::{PredicateOrigin, WherePredicate};
1919
use rustc_span::{BytePos, Span};
20-
use rustc_type_ir::sty::TyKind::*;
20+
use rustc_type_ir::TyKind::*;
2121

2222
impl<'tcx> IntoDiagnosticArg for Ty<'tcx> {
2323
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {

compiler/rustc_middle/src/ty/inhabitedness/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ use crate::query::Providers;
4747
use crate::ty::context::TyCtxt;
4848
use crate::ty::{self, DefId, Ty, VariantDef, Visibility};
4949

50-
use rustc_type_ir::sty::TyKind::*;
50+
use rustc_type_ir::TyKind::*;
5151

5252
pub mod inhabited_predicate;
5353

compiler/rustc_middle/src/ty/sty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ use std::marker::PhantomData;
3333
use std::ops::{ControlFlow, Deref, Range};
3434
use ty::util::IntTypeExt;
3535

36-
use rustc_type_ir::sty::TyKind::*;
3736
use rustc_type_ir::CollectAndApply;
3837
use rustc_type_ir::ConstKind as IrConstKind;
3938
use rustc_type_ir::DebugWithInfcx;
4039
use rustc_type_ir::DynKind;
4140
use rustc_type_ir::RegionKind as IrRegionKind;
4241
use rustc_type_ir::TyKind as IrTyKind;
42+
use rustc_type_ir::TyKind::*;
4343

4444
use super::GenericParamDefKind;
4545

compiler/rustc_ty_utils/src/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn sized_constraint_for_ty<'tcx>(
1414
adtdef: ty::AdtDef<'tcx>,
1515
ty: Ty<'tcx>,
1616
) -> Vec<Ty<'tcx>> {
17-
use rustc_type_ir::sty::TyKind::*;
17+
use rustc_type_ir::TyKind::*;
1818

1919
let result = match ty.kind() {
2020
Bool | Char | Int(..) | Uint(..) | Float(..) | RawPtr(..) | Ref(..) | FnDef(..)

0 commit comments

Comments
 (0)