1 error: do not call a function with mutable arguments inside of `debug_assert!`
2 --> $DIR/debug_assert_with_mut_call.rs:42:19
4 LL | debug_assert!(bool_mut(&mut 3));
7 = note: `-D clippy::debug-assert-with-mut-call` implied by `-D warnings`
9 error: do not call a function with mutable arguments inside of `debug_assert!`
10 --> $DIR/debug_assert_with_mut_call.rs:43:20
12 LL | debug_assert!(!bool_mut(&mut 3));
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
18 LL | debug_assert_eq!(0, u32_mut(&mut 3));
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
24 LL | debug_assert_eq!(u32_mut(&mut 3), 0);
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
30 LL | debug_assert_ne!(1, u32_mut(&mut 3));
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
36 LL | debug_assert_ne!(u32_mut(&mut 3), 1);
39 error: do not call a function with mutable arguments inside of `debug_assert!`
40 --> $DIR/debug_assert_with_mut_call.rs:64:19
42 LL | debug_assert!(S.bool_self_mut());
45 error: do not call a function with mutable arguments inside of `debug_assert!`
46 --> $DIR/debug_assert_with_mut_call.rs:65:20
48 LL | debug_assert!(!S.bool_self_mut());
51 error: do not call a function with mutable arguments inside of `debug_assert!`
52 --> $DIR/debug_assert_with_mut_call.rs:66:19
54 LL | debug_assert!(S.bool_self_ref_arg_mut(&mut 3));
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 error: do not call a function with mutable arguments inside of `debug_assert!`
58 --> $DIR/debug_assert_with_mut_call.rs:67:19
60 LL | debug_assert!(S.bool_self_mut_arg_ref(&3));
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
63 error: do not call a function with mutable arguments inside of `debug_assert!`
64 --> $DIR/debug_assert_with_mut_call.rs:68:19
66 LL | debug_assert!(S.bool_self_mut_arg_mut(&mut 3));
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
72 LL | debug_assert_eq!(S.u32_self_mut(), 0);
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
78 LL | debug_assert_eq!(S.u32_self_mut_arg_ref(&3), 0);
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
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
84 LL | debug_assert_eq!(S.u32_self_ref_arg_mut(&mut 3), 0);
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
90 LL | debug_assert_eq!(S.u32_self_mut_arg_mut(&mut 3), 0);
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
96 LL | debug_assert_ne!(S.u32_self_mut(), 1);
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
102 LL | debug_assert_ne!(S.u32_self_mut_arg_ref(&3), 1);
103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
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
108 LL | debug_assert_ne!(S.u32_self_ref_arg_mut(&mut 3), 1);
109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
114 LL | debug_assert_ne!(S.u32_self_mut_arg_mut(&mut 3), 1);
115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
120 LL | debug_assert_eq!(v.pop(), Some(1));
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
126 LL | debug_assert_ne!(Some(3), v.pop());
129 error: do not call a function with mutable arguments inside of `debug_assert!`
130 --> $DIR/debug_assert_with_mut_call.rs:90:19
132 LL | debug_assert!(bool_mut(a));
135 error: do not call a function with mutable arguments inside of `debug_assert!`
136 --> $DIR/debug_assert_with_mut_call.rs:93:31
138 LL | debug_assert!(!(bool_ref(&u32_mut(&mut 3))));
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
144 LL | debug_assert_eq!(v.pop().unwrap(), 3);
147 error: do not call a function with mutable arguments inside of `debug_assert!`
148 --> $DIR/debug_assert_with_mut_call.rs:100:19
150 LL | debug_assert!(bool_mut(&mut 3), "w/o format");
153 error: do not call a function with mutable arguments inside of `debug_assert!`
154 --> $DIR/debug_assert_with_mut_call.rs:102:19
156 LL | debug_assert!(bool_mut(&mut 3), "{} format", "w/");
159 error: do not call a function with mutable arguments inside of `debug_assert!`
160 --> $DIR/debug_assert_with_mut_call.rs:107:9
162 LL | bool_mut(&mut x);
165 error: do not call a function with mutable arguments inside of `debug_assert!`
166 --> $DIR/debug_assert_with_mut_call.rs:114:9
168 LL | bool_mut(&mut x);
171 error: aborting due to 28 previous errors