diff options
| author | Alex Macleod <alex@macleod.io> | 2022-10-01 22:24:48 +0000 |
|---|---|---|
| committer | Alex Macleod <alex@macleod.io> | 2022-10-01 22:24:48 +0000 |
| commit | 5a54db1286b1cc535ae2f4ac6ec44310d354aabf (patch) | |
| tree | df0a1e87e00cd6837798745d03c789e8f0b248b2 | |
| parent | 64243c6f998df7cea3c86488c67481de09fec31c (diff) | |
| download | rust-5a54db1286b1cc535ae2f4ac6ec44310d354aabf.tar.gz rust-5a54db1286b1cc535ae2f4ac6ec44310d354aabf.zip | |
Remove unused .fixed files
| -rw-r--r-- | tests/ui/manual_assert.fixed | 45 | ||||
| -rw-r--r-- | tests/ui/option_take_on_temporary.fixed | 15 |
2 files changed, 0 insertions, 60 deletions
diff --git a/tests/ui/manual_assert.fixed b/tests/ui/manual_assert.fixed deleted file mode 100644 index a2393674fe6..00000000000 --- a/tests/ui/manual_assert.fixed +++ /dev/null @@ -1,45 +0,0 @@ -// revisions: edition2018 edition2021 -// [edition2018] edition:2018 -// [edition2021] edition:2021 -// run-rustfix - -#![warn(clippy::manual_assert)] -#![allow(clippy::nonminimal_bool)] - -fn main() { - let a = vec![1, 2, 3]; - let c = Some(2); - if !a.is_empty() - && a.len() == 3 - && c.is_some() - && !a.is_empty() - && a.len() == 3 - && !a.is_empty() - && a.len() == 3 - && !a.is_empty() - && a.len() == 3 - { - panic!("qaqaq{:?}", a); - } - assert!(a.is_empty(), "qaqaq{:?}", a); - assert!(a.is_empty(), "qwqwq"); - if a.len() == 3 { - println!("qwq"); - println!("qwq"); - println!("qwq"); - } - if let Some(b) = c { - panic!("orz {}", b); - } - if a.len() == 3 { - panic!("qaqaq"); - } else { - println!("qwq"); - } - let b = vec![1, 2, 3]; - assert!(!b.is_empty(), "panic1"); - assert!(!(b.is_empty() && a.is_empty()), "panic2"); - assert!(!(a.is_empty() && !b.is_empty()), "panic3"); - assert!(!(b.is_empty() || a.is_empty()), "panic4"); - assert!(!(a.is_empty() || !b.is_empty()), "panic5"); -} diff --git a/tests/ui/option_take_on_temporary.fixed b/tests/ui/option_take_on_temporary.fixed deleted file mode 100644 index 29691e81666..00000000000 --- a/tests/ui/option_take_on_temporary.fixed +++ /dev/null @@ -1,15 +0,0 @@ -// run-rustfix - -fn main() { - println!("Testing non erroneous option_take_on_temporary"); - let mut option = Some(1); - let _ = Box::new(move || option.take().unwrap()); - - println!("Testing non erroneous option_take_on_temporary"); - let x = Some(3); - x.as_ref(); - - println!("Testing erroneous option_take_on_temporary"); - let x = Some(3); - x.as_ref(); -} |
