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
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -892,9 +892,9 @@ dependencies = [
892
892
893
893
[[package ]]
894
894
name = " deranged"
895
- version = " 0.4.0 "
895
+ version = " 0.4.1 "
896
896
source = " registry+https://github.com/rust-lang/crates.io-index"
897
- checksum = " 9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e "
897
+ checksum = " 28cfac68e08048ae1883171632c2aef3ebc555621ae56fbccce1cbf22dd7f058 "
898
898
dependencies = [
899
899
" powerfmt" ,
900
900
]
Original file line number Diff line number Diff line change @@ -210,8 +210,8 @@ fn is_end_eq_array_len<'tcx>(
210
210
&& let Some ( arr_len) = arr_len_const. try_to_target_usize ( cx. tcx )
211
211
{
212
212
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 ,
215
215
} ;
216
216
}
217
217
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
169
169
return interp_ok ( ( ) ) ;
170
170
}
171
171
172
- if futex_val == value. into ( ) {
172
+ if futex_val == value as u128 {
173
173
// If the values are the same, we have to block.
174
174
let futex_ref = futex. futex . clone ( ) ;
175
175
let dest = dest. clone ( ) ;
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ impl server::Span for RaSpanServer {
336
336
if span. anchor . ast_id == FIXUP_ERASED_FILE_AST_ID_MARKER {
337
337
return Some ( span) ;
338
338
}
339
- let length = span. range . len ( ) . into ( ) ;
339
+ let length: u32 = span. range . len ( ) . into ( ) ;
340
340
341
341
let start: u32 = match start {
342
342
Bound :: Included ( lo) => lo,
@@ -355,7 +355,7 @@ impl server::Span for RaSpanServer {
355
355
. ok ( ) ?;
356
356
357
357
// 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 ( ) ;
359
359
if ( u32:: MAX - start) < span_start
360
360
|| ( u32:: MAX - end) < span_start
361
361
|| start >= end
You can’t perform that action at this time.
0 commit comments