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