File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
clippy/clippy_lints/src/loops
miri/src/shims/unix/macos
rust-analyzer/crates/proc-macro-srv/src/server_impl Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -892,9 +892,9 @@ dependencies = [
892892
893893[[package ]]
894894name = " deranged"
895- version = " 0.4.0 "
895+ version = " 0.4.1 "
896896source = " registry+https://github.com/rust-lang/crates.io-index"
897- checksum = " 9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e "
897+ checksum = " 28cfac68e08048ae1883171632c2aef3ebc555621ae56fbccce1cbf22dd7f058 "
898898dependencies = [
899899 " powerfmt" ,
900900]
Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ fn is_end_eq_array_len<'tcx>(
210210 && let Some ( arr_len) = arr_len_const. try_to_target_usize ( cx. tcx )
211211 {
212212 return match limits {
213- ast:: RangeLimits :: Closed => end_int. get ( ) + 1 >= arr_len. into ( ) ,
214- ast:: RangeLimits :: HalfOpen => end_int. get ( ) >= arr_len. into ( ) ,
213+ ast:: RangeLimits :: Closed => end_int. get ( ) + 1 >= arr_len as u128 ,
214+ ast:: RangeLimits :: HalfOpen => end_int. get ( ) >= arr_len as u128 ,
215215 } ;
216216 }
217217
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
169169 return interp_ok ( ( ) ) ;
170170 }
171171
172- if futex_val == value. into ( ) {
172+ if futex_val == value as u128 {
173173 // If the values are the same, we have to block.
174174 let futex_ref = futex. futex . clone ( ) ;
175175 let dest = dest. clone ( ) ;
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl server::Span for RaSpanServer {
336336 if span. anchor . ast_id == FIXUP_ERASED_FILE_AST_ID_MARKER {
337337 return Some ( span) ;
338338 }
339- let length = span. range . len ( ) . into ( ) ;
339+ let length: u32 = span. range . len ( ) . into ( ) ;
340340
341341 let start: u32 = match start {
342342 Bound :: Included ( lo) => lo,
@@ -355,7 +355,7 @@ impl server::Span for RaSpanServer {
355355 . ok ( ) ?;
356356
357357 // Bounds check the values, preventing addition overflow and OOB spans.
358- let span_start = span. range . start ( ) . into ( ) ;
358+ let span_start: u32 = span. range . start ( ) . into ( ) ;
359359 if ( u32:: MAX - start) < span_start
360360 || ( u32:: MAX - end) < span_start
361361 || start >= end
You can’t perform that action at this time.
0 commit comments