|
1 | 1 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
2 |
| - --> $DIR/debug_assert_with_mut_call.rs:42:19 |
| 2 | + --> $DIR/debug_assert_with_mut_call.rs:43:19 |
3 | 3 | |
|
4 | 4 | LL | debug_assert!(bool_mut(&mut 3));
|
5 | 5 | | ^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::debug-assert-with-mut-call` implied by `-D warnings`
|
8 | 8 |
|
9 |
| -error: do not call a function with mutable arguments inside of `debug_assert!` |
10 |
| - --> $DIR/debug_assert_with_mut_call.rs:43:20 |
| 9 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 10 | + --> $DIR/debug_assert_with_mut_call.rs:44:30 |
11 | 11 | |
|
12 |
| -LL | debug_assert!(!bool_mut(&mut 3)); |
13 |
| - | ^^^^^^^^^^^^^^^^ |
| 12 | +LL | debug_assert_eq!(false, !bool_mut(&mut 3)); |
| 13 | + | ^^^^^^^^^^^^^^^^ |
14 | 14 |
|
15 | 15 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
16 |
| - --> $DIR/debug_assert_with_mut_call.rs:45:25 |
| 16 | + --> $DIR/debug_assert_with_mut_call.rs:45:23 |
| 17 | + | |
| 18 | +LL | debug_assert_eq!(!bool_mut(&mut 3), false); |
| 19 | + | ^^^^^^^^^^^^^^^^ |
| 20 | + |
| 21 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 22 | + --> $DIR/debug_assert_with_mut_call.rs:47:25 |
17 | 23 | |
|
18 | 24 | LL | debug_assert_eq!(0, u32_mut(&mut 3));
|
19 | 25 | | ^^^^^^^^^^^^^^^
|
20 | 26 |
|
21 | 27 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
22 |
| - --> $DIR/debug_assert_with_mut_call.rs:46:22 |
| 28 | + --> $DIR/debug_assert_with_mut_call.rs:48:22 |
23 | 29 | |
|
24 | 30 | LL | debug_assert_eq!(u32_mut(&mut 3), 0);
|
25 | 31 | | ^^^^^^^^^^^^^^^
|
26 | 32 |
|
27 | 33 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
28 |
| - --> $DIR/debug_assert_with_mut_call.rs:48:25 |
| 34 | + --> $DIR/debug_assert_with_mut_call.rs:50:25 |
29 | 35 | |
|
30 | 36 | LL | debug_assert_ne!(1, u32_mut(&mut 3));
|
31 | 37 | | ^^^^^^^^^^^^^^^
|
32 | 38 |
|
33 | 39 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
34 |
| - --> $DIR/debug_assert_with_mut_call.rs:49:22 |
| 40 | + --> $DIR/debug_assert_with_mut_call.rs:51:22 |
35 | 41 | |
|
36 | 42 | LL | debug_assert_ne!(u32_mut(&mut 3), 1);
|
37 | 43 | | ^^^^^^^^^^^^^^^
|
38 | 44 |
|
39 | 45 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
40 |
| - --> $DIR/debug_assert_with_mut_call.rs:64:19 |
| 46 | + --> $DIR/debug_assert_with_mut_call.rs:66:19 |
41 | 47 | |
|
42 | 48 | LL | debug_assert!(S.bool_self_mut());
|
43 | 49 | | ^^^^^^^^^^^^^^^^^
|
44 | 50 |
|
45 |
| -error: do not call a function with mutable arguments inside of `debug_assert!` |
46 |
| - --> $DIR/debug_assert_with_mut_call.rs:65:20 |
| 51 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 52 | + --> $DIR/debug_assert_with_mut_call.rs:67:30 |
| 53 | + | |
| 54 | +LL | debug_assert_eq!(false, !S.bool_self_mut()); |
| 55 | + | ^^^^^^^^^^^^^^^^^ |
| 56 | + |
| 57 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 58 | + --> $DIR/debug_assert_with_mut_call.rs:68:23 |
47 | 59 | |
|
48 |
| -LL | debug_assert!(!S.bool_self_mut()); |
49 |
| - | ^^^^^^^^^^^^^^^^^ |
| 60 | +LL | debug_assert_eq!(!S.bool_self_mut(), false); |
| 61 | + | ^^^^^^^^^^^^^^^^^ |
50 | 62 |
|
51 | 63 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
52 |
| - --> $DIR/debug_assert_with_mut_call.rs:66:19 |
| 64 | + --> $DIR/debug_assert_with_mut_call.rs:69:19 |
53 | 65 | |
|
54 | 66 | LL | debug_assert!(S.bool_self_ref_arg_mut(&mut 3));
|
55 | 67 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
56 | 68 |
|
57 | 69 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
58 |
| - --> $DIR/debug_assert_with_mut_call.rs:67:19 |
| 70 | + --> $DIR/debug_assert_with_mut_call.rs:70:19 |
59 | 71 | |
|
60 | 72 | LL | debug_assert!(S.bool_self_mut_arg_ref(&3));
|
61 | 73 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
62 | 74 |
|
63 | 75 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
64 |
| - --> $DIR/debug_assert_with_mut_call.rs:68:19 |
| 76 | + --> $DIR/debug_assert_with_mut_call.rs:71:19 |
65 | 77 | |
|
66 | 78 | LL | debug_assert!(S.bool_self_mut_arg_mut(&mut 3));
|
67 | 79 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
68 | 80 |
|
69 | 81 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
70 |
| - --> $DIR/debug_assert_with_mut_call.rs:70:22 |
| 82 | + --> $DIR/debug_assert_with_mut_call.rs:73:22 |
71 | 83 | |
|
72 | 84 | LL | debug_assert_eq!(S.u32_self_mut(), 0);
|
73 | 85 | | ^^^^^^^^^^^^^^^^
|
74 | 86 |
|
75 | 87 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
76 |
| - --> $DIR/debug_assert_with_mut_call.rs:71:22 |
| 88 | + --> $DIR/debug_assert_with_mut_call.rs:74:22 |
77 | 89 | |
|
78 | 90 | LL | debug_assert_eq!(S.u32_self_mut_arg_ref(&3), 0);
|
79 | 91 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
80 | 92 |
|
81 | 93 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
82 |
| - --> $DIR/debug_assert_with_mut_call.rs:72:22 |
| 94 | + --> $DIR/debug_assert_with_mut_call.rs:75:22 |
83 | 95 | |
|
84 | 96 | LL | debug_assert_eq!(S.u32_self_ref_arg_mut(&mut 3), 0);
|
85 | 97 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
86 | 98 |
|
87 | 99 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
88 |
| - --> $DIR/debug_assert_with_mut_call.rs:73:22 |
| 100 | + --> $DIR/debug_assert_with_mut_call.rs:76:22 |
89 | 101 | |
|
90 | 102 | LL | debug_assert_eq!(S.u32_self_mut_arg_mut(&mut 3), 0);
|
91 | 103 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
92 | 104 |
|
93 | 105 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
94 |
| - --> $DIR/debug_assert_with_mut_call.rs:75:22 |
| 106 | + --> $DIR/debug_assert_with_mut_call.rs:78:22 |
95 | 107 | |
|
96 | 108 | LL | debug_assert_ne!(S.u32_self_mut(), 1);
|
97 | 109 | | ^^^^^^^^^^^^^^^^
|
98 | 110 |
|
99 | 111 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
100 |
| - --> $DIR/debug_assert_with_mut_call.rs:76:22 |
| 112 | + --> $DIR/debug_assert_with_mut_call.rs:79:22 |
101 | 113 | |
|
102 | 114 | LL | debug_assert_ne!(S.u32_self_mut_arg_ref(&3), 1);
|
103 | 115 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
104 | 116 |
|
105 | 117 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
106 |
| - --> $DIR/debug_assert_with_mut_call.rs:77:22 |
| 118 | + --> $DIR/debug_assert_with_mut_call.rs:80:22 |
107 | 119 | |
|
108 | 120 | LL | debug_assert_ne!(S.u32_self_ref_arg_mut(&mut 3), 1);
|
109 | 121 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
110 | 122 |
|
111 | 123 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
112 |
| - --> $DIR/debug_assert_with_mut_call.rs:78:22 |
| 124 | + --> $DIR/debug_assert_with_mut_call.rs:81:22 |
113 | 125 | |
|
114 | 126 | LL | debug_assert_ne!(S.u32_self_mut_arg_mut(&mut 3), 1);
|
115 | 127 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
116 | 128 |
|
117 | 129 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
118 |
| - --> $DIR/debug_assert_with_mut_call.rs:86:22 |
| 130 | + --> $DIR/debug_assert_with_mut_call.rs:89:22 |
119 | 131 | |
|
120 | 132 | LL | debug_assert_eq!(v.pop(), Some(1));
|
121 | 133 | | ^^^^^^^
|
122 | 134 |
|
123 | 135 | error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
124 |
| - --> $DIR/debug_assert_with_mut_call.rs:87:31 |
| 136 | + --> $DIR/debug_assert_with_mut_call.rs:90:31 |
125 | 137 | |
|
126 | 138 | LL | debug_assert_ne!(Some(3), v.pop());
|
127 | 139 | | ^^^^^^^
|
128 | 140 |
|
129 | 141 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
130 |
| - --> $DIR/debug_assert_with_mut_call.rs:90:19 |
| 142 | + --> $DIR/debug_assert_with_mut_call.rs:93:19 |
131 | 143 | |
|
132 | 144 | LL | debug_assert!(bool_mut(a));
|
133 | 145 | | ^^^^^^^^^^^
|
134 | 146 |
|
135 |
| -error: do not call a function with mutable arguments inside of `debug_assert!` |
136 |
| - --> $DIR/debug_assert_with_mut_call.rs:93:31 |
| 147 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 148 | + --> $DIR/debug_assert_with_mut_call.rs:96:41 |
| 149 | + | |
| 150 | +LL | debug_assert_eq!(false, !(bool_ref(&u32_mut(&mut 3)))); |
| 151 | + | ^^^^^^^^^^^^^^^ |
| 152 | + |
| 153 | +error: do not call a function with mutable arguments inside of `debug_assert_eq!` |
| 154 | + --> $DIR/debug_assert_with_mut_call.rs:97:34 |
137 | 155 | |
|
138 |
| -LL | debug_assert!(!(bool_ref(&u32_mut(&mut 3)))); |
139 |
| - | ^^^^^^^^^^^^^^^ |
| 156 | +LL | debug_assert_eq!(!(bool_ref(&u32_mut(&mut 3))), false); |
| 157 | + | ^^^^^^^^^^^^^^^ |
140 | 158 |
|
141 | 159 | error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
142 |
| - --> $DIR/debug_assert_with_mut_call.rs:96:22 |
| 160 | + --> $DIR/debug_assert_with_mut_call.rs:100:22 |
143 | 161 | |
|
144 | 162 | LL | debug_assert_eq!(v.pop().unwrap(), 3);
|
145 | 163 | | ^^^^^^^
|
146 | 164 |
|
147 | 165 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
148 |
| - --> $DIR/debug_assert_with_mut_call.rs:100:19 |
| 166 | + --> $DIR/debug_assert_with_mut_call.rs:104:19 |
149 | 167 | |
|
150 | 168 | LL | debug_assert!(bool_mut(&mut 3), "w/o format");
|
151 | 169 | | ^^^^^^^^^^^^^^^^
|
152 | 170 |
|
153 | 171 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
154 |
| - --> $DIR/debug_assert_with_mut_call.rs:102:19 |
| 172 | + --> $DIR/debug_assert_with_mut_call.rs:106:19 |
155 | 173 | |
|
156 | 174 | LL | debug_assert!(bool_mut(&mut 3), "{} format", "w/");
|
157 | 175 | | ^^^^^^^^^^^^^^^^
|
158 | 176 |
|
159 | 177 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
160 |
| - --> $DIR/debug_assert_with_mut_call.rs:107:9 |
| 178 | + --> $DIR/debug_assert_with_mut_call.rs:111:9 |
161 | 179 | |
|
162 | 180 | LL | bool_mut(&mut x);
|
163 | 181 | | ^^^^^^^^^^^^^^^^
|
164 | 182 |
|
165 | 183 | error: do not call a function with mutable arguments inside of `debug_assert!`
|
166 |
| - --> $DIR/debug_assert_with_mut_call.rs:114:9 |
| 184 | + --> $DIR/debug_assert_with_mut_call.rs:118:9 |
167 | 185 | |
|
168 | 186 | LL | bool_mut(&mut x);
|
169 | 187 | | ^^^^^^^^^^^^^^^^
|
170 | 188 |
|
171 |
| -error: aborting due to 28 previous errors |
| 189 | +error: aborting due to 31 previous errors |
172 | 190 |
|
0 commit comments