fixup! Provide suggestion to convert numeric op LHS rather than unwrapping RHS
This commit is contained in:
parent
e243f62317
commit
0c02f8aea9
3 changed files with 463 additions and 138 deletions
|
@ -1,3 +1,9 @@
|
|||
// run-rustfix
|
||||
|
||||
// The `try_into` suggestion doesn't include this, but we do suggest it after applying it
|
||||
use std::convert::TryInto;
|
||||
|
||||
#[allow(unused_must_use)]
|
||||
fn main() {
|
||||
let x_usize: usize = 1;
|
||||
let x_u128: u128 = 2;
|
||||
|
@ -6,12 +12,11 @@ fn main() {
|
|||
let x_u16: u16 = 5;
|
||||
let x_u8: u8 = 6;
|
||||
let x_isize: isize = 7;
|
||||
let x_i128: i128 = 8;
|
||||
let x_i64: i64 = 9;
|
||||
let x_i32: i32 = 10;
|
||||
let x_i16: i16 = 11;
|
||||
let x_i8: i8 = 12;
|
||||
let x_i128: i128 = 13;
|
||||
let x_i64: i64 = 8;
|
||||
let x_i32: i32 = 9;
|
||||
let x_i16: i16 = 10;
|
||||
let x_i8: i8 = 11;
|
||||
let x_i128: i128 = 12;
|
||||
|
||||
/* u<->u */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue