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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue