Move things to rustc_type_ir
This commit is contained in:
parent
4f39fb1f34
commit
a7015fe816
25 changed files with 1030 additions and 241 deletions
|
@ -2489,7 +2489,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
|
|||
ty: Ty<'tcx>,
|
||||
init: InitKind,
|
||||
) -> Option<InitError> {
|
||||
use rustc_middle::ty::TyKind::*;
|
||||
use rustc_type_ir::sty::TyKind::*;
|
||||
match ty.kind() {
|
||||
// Primitive types that don't like 0 as a value.
|
||||
Ref(..) => Some(("references must be non-null".to_string(), None)),
|
||||
|
@ -2801,7 +2801,7 @@ impl ClashingExternDeclarations {
|
|||
true
|
||||
} else {
|
||||
// Do a full, depth-first comparison between the two.
|
||||
use rustc_middle::ty::TyKind::*;
|
||||
use rustc_type_ir::sty::TyKind::*;
|
||||
let a_kind = a.kind();
|
||||
let b_kind = b.kind();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue