2019-10-16 11:25:42 +00:00
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2020-01-29 14:47:22 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:42:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(bool_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-29 14:47:22 +00:00
|
|
|
= note: `-D clippy::debug-assert-with-mut-call` implied by `-D warnings`
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:45:20
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(!bool_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:48:25
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(0, u32_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:50:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(u32_mut(&mut 3), 0);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:53:25
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(1, u32_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:55:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(u32_mut(&mut 3), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:71:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(S.bool_self_mut());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:73:20
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(!S.bool_self_mut());
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:75:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(S.bool_self_ref_arg_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:77:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(S.bool_self_mut_arg_ref(&3));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:79:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(S.bool_self_mut_arg_mut(&mut 3));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:82:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(S.u32_self_mut(), 0);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:84:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(S.u32_self_mut_arg_ref(&3), 0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:86:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(S.u32_self_ref_arg_mut(&mut 3), 0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:88:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(S.u32_self_mut_arg_mut(&mut 3), 0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:91:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(S.u32_self_mut(), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:93:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(S.u32_self_mut_arg_ref(&3), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:95:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(S.u32_self_ref_arg_mut(&mut 3), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:97:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(S.u32_self_mut_arg_mut(&mut 3), 1);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:106:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(v.pop(), Some(1));
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_ne!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:108:31
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_ne!(Some(3), v.pop());
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:112:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(bool_mut(a));
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:116:31
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(!(bool_ref(&u32_mut(&mut 3))));
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert_eq!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:120:22
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert_eq!(v.pop().unwrap(), 3);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:125:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(bool_mut(&mut 3), "w/o format");
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:128:19
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | debug_assert!(bool_mut(&mut 3), "{} format", "w/");
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:134:9
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | bool_mut(&mut x);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: do not call a function with mutable arguments inside of `debug_assert!`
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/debug_assert_with_mut_call.rs:142:9
|
2019-10-16 11:25:42 +00:00
|
|
|
|
|
|
|
|
LL | bool_mut(&mut x);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 28 previous errors
|
|
|
|
|