about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/zombie_processes.stderr
blob: 0374d097b1b5a026a2d2d11be536942adc01214c (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
error: spawned process is never `wait()`ed on
  --> tests/ui/zombie_processes.rs:14:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider calling `.wait()`
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning
   = note: `-D clippy::zombie-processes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::zombie_processes)]`

error: spawned process is never `wait()`ed on
  --> tests/ui/zombie_processes.rs:42:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider calling `.wait()`
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is never `wait()`ed on
  --> tests/ui/zombie_processes.rs:68:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider calling `.wait()`
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is never `wait()`ed on
  --> tests/ui/zombie_processes.rs:76:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider calling `.wait()`
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is not `wait()`ed on in all code paths
  --> tests/ui/zombie_processes.rs:103:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: no `wait()` call exists on the code path to this early return
  --> tests/ui/zombie_processes.rs:107:13
   |
LL |             return;
   |             ^^^^^^
note: `wait()` call exists, but it is unreachable due to the early return
  --> tests/ui/zombie_processes.rs:109:9
   |
LL |         x.wait().unwrap();
   |         ^
   = help: consider calling `.wait()` in all code paths
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is not `wait()`ed on in all code paths
  --> tests/ui/zombie_processes.rs:113:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: this if expression has a `wait()` call, but it is missing an else block
  --> tests/ui/zombie_processes.rs:116:9
   |
LL | /         if true {
LL | |             x.wait().unwrap();
LL | |         }
   | |_________^
note: `wait()` called here
  --> tests/ui/zombie_processes.rs:117:13
   |
LL |             x.wait().unwrap();
   |             ^
   = help: consider calling `.wait()` in all code paths
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is not `wait()`ed on in all code paths
  --> tests/ui/zombie_processes.rs:122:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: `wait()` is not called in this if branch
  --> tests/ui/zombie_processes.rs:127:10
   |
LL |           } else {
   |  __________^
LL | |             // this else block exists to test the other help message
LL | |         }
   | |_________^
note: `wait()` is called in the other branch
  --> tests/ui/zombie_processes.rs:126:13
   |
LL |             x.wait().unwrap();
   |             ^
   = help: consider calling `.wait()` in all code paths
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: spawned process is not `wait()`ed on in all code paths
  --> tests/ui/zombie_processes.rs:133:21
   |
LL |         let mut x = Command::new("").spawn().unwrap();
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: `wait()` is not called in this if branch
  --> tests/ui/zombie_processes.rs:136:9
   |
LL | /         if true {
LL | |             // this else block exists to test the other help message
LL | |         } else {
   | |_________^
note: `wait()` is called in the other branch
  --> tests/ui/zombie_processes.rs:139:13
   |
LL |             x.wait().unwrap();
   |             ^
   = help: consider calling `.wait()` in all code paths
   = note: not doing so might leave behind zombie processes
   = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning

error: aborting due to 8 previous errors