-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathinteger_division_remainder_used.stderr
More file actions
89 lines (74 loc) · 2.56 KB
/
Copy pathinteger_division_remainder_used.stderr
File metadata and controls
89 lines (74 loc) · 2.56 KB
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
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:9:14
|
LL | Self(self.0 / rhs.0)
| ^^^^^^^^^^^^^^
|
= note: `-D clippy::integer-division-remainder-used` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::integer_division_remainder_used)]`
error: use of `%` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:17:14
|
LL | Self(self.0 % rhs.0)
| ^^^^^^^^^^^^^^
error: use of `div_ceil` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:24:15
|
LL | let _ = x.div_ceil(3);
| ^^^^^^^^^^^
error: use of `wrapping_div` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:27:15
|
LL | let _ = x.wrapping_div(3);
| ^^^^^^^^^^^^^^^
error: use of `checked_rem` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:30:15
|
LL | let _ = x.checked_rem(3);
| ^^^^^^^^^^^^^^
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:41:13
|
LL | let c = a / b;
| ^^^^^
error: use of `%` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:43:13
|
LL | let d = a % b;
| ^^^^^
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:45:13
|
LL | let e = &a / b;
| ^^^^^^
error: use of `%` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:47:13
|
LL | let f = a % &b;
| ^^^^^^
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:49:13
|
LL | let g = &a / &b;
| ^^^^^^^
error: use of `%` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:51:13
|
LL | let h = &10 % b;
| ^^^^^^^
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:53:13
|
LL | let i = a / &4;
| ^^^^^^
error: use of `/` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:58:5
|
LL | j /= 2;
| ^^^^^^
error: use of `%` has been disallowed in this context
--> tests/ui/integer_division_remainder_used.rs:60:5
|
LL | j %= 3;
| ^^^^^^
error: aborting due to 14 previous errors