Adjust imports
This commit is contained in:
parent
274455a9d1
commit
5ceda6b016
10 changed files with 12 additions and 12 deletions
|
@ -2475,7 +2475,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
|
|||
ty: Ty<'tcx>,
|
||||
init: InitKind,
|
||||
) -> Option<InitError> {
|
||||
use rustc_type_ir::sty::TyKind::*;
|
||||
use rustc_type_ir::TyKind::*;
|
||||
match ty.kind() {
|
||||
// Primitive types that don't like 0 as a value.
|
||||
Ref(..) => Some("references must be non-null".into()),
|
||||
|
|
|
@ -262,7 +262,7 @@ fn structurally_same_type_impl<'tcx>(
|
|||
true
|
||||
} else {
|
||||
// Do a full, depth-first comparison between the two.
|
||||
use rustc_type_ir::sty::TyKind::*;
|
||||
use rustc_type_ir::TyKind::*;
|
||||
let a_kind = a.kind();
|
||||
let b_kind = b.kind();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue