Adjust imports

This commit is contained in:
Michael Goulet 2023-10-19 18:10:19 +00:00
parent 274455a9d1
commit 5ceda6b016
10 changed files with 12 additions and 12 deletions

View file

@ -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()),