about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/assertions_on_result_states.stderr
blob: 826f049555cae01df20c1ec3e0cb2a78b378b26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:24:5
   |
LL |     assert!(r.is_ok());
   |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`
   |
   = note: `-D clippy::assertions-on-result-states` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::assertions_on_result_states)]`

error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:43:5
   |
LL |     assert!(get_ok().is_ok());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok().unwrap()`

error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:47:5
   |
LL |     assert!(get_ok_macro!().is_ok());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `get_ok_macro!().unwrap()`

error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:61:5
   |
LL |     assert!(r.is_ok());
   |     ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`

error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:68:9
   |
LL |         assert!(r.is_ok());
   |         ^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap()`

error: called `assert!` with `Result::is_err`
  --> tests/ui/assertions_on_result_states.rs:77:5
   |
LL |     assert!(r.is_err());
   |     ^^^^^^^^^^^^^^^^^^^ help: replace with: `r.unwrap_err()`

error: called `assert!` with `Result::is_err`
  --> tests/ui/assertions_on_result_states.rs:87:5
   |
LL |     assert!(res.is_err())
   |     ^^^^^^^^^^^^^^^^^^^^^ help: replace with: `res.unwrap_err();`

error: called `assert!` with `Result::is_ok`
  --> tests/ui/assertions_on_result_states.rs:95:14
   |
LL |         1 => assert!(res.is_ok()),
   |              ^^^^^^^^^^^^^^^^^^^^ help: replace with: `{ res.unwrap(); }`

error: aborting due to 8 previous errors