File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
compiler/rustc_builtin_macros/src Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -562,15 +562,13 @@ pub(crate) mod printf {
562
562
}
563
563
564
564
if let Type = state {
565
- drop ( c) ;
566
565
type_ = at. slice_between ( next) . unwrap ( ) ;
567
566
568
567
// Don't use `move_to!` here, as we *can* be at the end of the input.
569
568
at = next;
570
569
}
571
570
572
- drop ( c) ;
573
- drop ( next) ;
571
+ let _ = c; // to avoid never used value
574
572
575
573
end = at;
576
574
let position = InnerSpan :: new ( start. at , end. at ) ;
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl<T> Poll<T> {
116
116
/// let fut = Pin::new(&mut fut);
117
117
///
118
118
/// let num = fut.poll(cx).ready()?;
119
- /// # drop( num);
119
+ /// # let _ = num; // to silence unused warning
120
120
/// // ... use num
121
121
///
122
122
/// Poll::Ready(())
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use core::task::Poll;
22
22
/// let fut = Pin::new(&mut fut);
23
23
///
24
24
/// let num = ready!(fut.poll(cx));
25
- /// # drop( num) ;
25
+ /// # let _ = num;
26
26
/// // ... use num
27
27
///
28
28
/// Poll::Ready(())
@@ -44,7 +44,7 @@ use core::task::Poll;
44
44
/// Poll::Ready(t) => t,
45
45
/// Poll::Pending => return Poll::Pending,
46
46
/// };
47
- /// # drop( num);
47
+ /// # let _ = num; // to silence unused warning
48
48
/// # // ... use num
49
49
/// #
50
50
/// # Poll::Ready(())
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ pub fn begin_panic_handler(info: &PanicInfo<'_>) -> ! {
541
541
// Lazily, the first time this gets called, run the actual string formatting.
542
542
self . string . get_or_insert_with ( || {
543
543
let mut s = String :: new ( ) ;
544
- drop ( s. write_fmt ( * inner) ) ;
544
+ let _err = s. write_fmt ( * inner) ;
545
545
s
546
546
} )
547
547
}
You can’t perform that action at this time.
0 commit comments