@@ -911,28 +911,28 @@ pub fn get_arg_name(pat: &Pat) -> Option<ast::Name> {
911911 }
912912}
913913
914- pub fn int_bits ( tcx : TyCtxt < ' _ , ' _ , ' _ > , ity : ast:: IntTy ) -> u64 {
914+ pub fn int_bits ( tcx : TyCtxt < ' _ , ' _ > , ity : ast:: IntTy ) -> u64 {
915915 layout:: Integer :: from_attr ( & tcx, attr:: IntType :: SignedInt ( ity) )
916916 . size ( )
917917 . bits ( )
918918}
919919
920920#[ allow( clippy:: cast_possible_wrap) ]
921921/// Turn a constant int byte representation into an i128
922- pub fn sext ( tcx : TyCtxt < ' _ , ' _ , ' _ > , u : u128 , ity : ast:: IntTy ) -> i128 {
922+ pub fn sext ( tcx : TyCtxt < ' _ , ' _ > , u : u128 , ity : ast:: IntTy ) -> i128 {
923923 let amt = 128 - int_bits ( tcx, ity) ;
924924 ( ( u as i128 ) << amt) >> amt
925925}
926926
927927#[ allow( clippy:: cast_sign_loss) ]
928928/// clip unused bytes
929- pub fn unsext ( tcx : TyCtxt < ' _ , ' _ , ' _ > , u : i128 , ity : ast:: IntTy ) -> u128 {
929+ pub fn unsext ( tcx : TyCtxt < ' _ , ' _ > , u : i128 , ity : ast:: IntTy ) -> u128 {
930930 let amt = 128 - int_bits ( tcx, ity) ;
931931 ( ( u as u128 ) << amt) >> amt
932932}
933933
934934/// clip unused bytes
935- pub fn clip ( tcx : TyCtxt < ' _ , ' _ , ' _ > , u : u128 , ity : ast:: UintTy ) -> u128 {
935+ pub fn clip ( tcx : TyCtxt < ' _ , ' _ > , u : u128 , ity : ast:: UintTy ) -> u128 {
936936 let bits = layout:: Integer :: from_attr ( & tcx, attr:: IntType :: UnsignedInt ( ity) )
937937 . size ( )
938938 . bits ( ) ;
@@ -973,7 +973,7 @@ pub fn without_block_comments(lines: Vec<&str>) -> Vec<&str> {
973973 without
974974}
975975
976- pub fn any_parent_is_automatically_derived ( tcx : TyCtxt < ' _ , ' _ , ' _ > , node : HirId ) -> bool {
976+ pub fn any_parent_is_automatically_derived ( tcx : TyCtxt < ' _ , ' _ > , node : HirId ) -> bool {
977977 let map = & tcx. hir ( ) ;
978978 let mut prev_enclosing_node = None ;
979979 let mut enclosing_node = node;
0 commit comments