@@ -3,6 +3,8 @@ use std::ops::Deref;
33use std:: { iter, ptr} ;
44
55use libc:: { c_char, c_uint} ;
6+ use rustc_abi as abi;
7+ use rustc_abi:: { Align , Size , WrappingRange } ;
68use rustc_codegen_ssa:: MemFlags ;
79use rustc_codegen_ssa:: common:: { IntPredicate , RealPredicate , SynchronizationScope , TypeKind } ;
810use rustc_codegen_ssa:: mir:: operand:: { OperandRef , OperandValue } ;
@@ -20,7 +22,6 @@ use rustc_sanitizers::{cfi, kcfi};
2022use rustc_session:: config:: OptLevel ;
2123use rustc_span:: Span ;
2224use rustc_target:: abi:: call:: FnAbi ;
23- use rustc_target:: abi:: { self , Align , Size , WrappingRange } ;
2425use rustc_target:: spec:: { HasTargetSpec , SanitizerSet , Target } ;
2526use smallvec:: SmallVec ;
2627use tracing:: { debug, instrument} ;
@@ -505,12 +506,12 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
505506 }
506507
507508 match scalar. primitive ( ) {
508- abi:: Int ( ..) => {
509+ abi:: Primitive :: Int ( ..) => {
509510 if !scalar. is_always_valid ( bx) {
510511 bx. range_metadata ( load, scalar. valid_range ( bx) ) ;
511512 }
512513 }
513- abi:: Pointer ( _) => {
514+ abi:: Primitive :: Pointer ( _) => {
514515 if !scalar. valid_range ( bx) . contains ( 0 ) {
515516 bx. nonnull_metadata ( load) ;
516517 }
@@ -521,7 +522,7 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
521522 }
522523 }
523524 }
524- abi:: Float ( _) => { }
525+ abi:: Primitive :: Float ( _) => { }
525526 }
526527 }
527528
0 commit comments