1
- error: this could be a `const_fn `
1
+ error: this could be a `const fn `
2
2
--> $DIR/could_be_const.rs:12:5
3
3
|
4
4
LL | / pub fn new() -> Self {
@@ -8,15 +8,15 @@ LL | | }
8
8
|
9
9
= note: `-D clippy::missing-const-for-fn` implied by `-D warnings`
10
10
11
- error: this could be a `const_fn `
11
+ error: this could be a `const fn `
12
12
--> $DIR/could_be_const.rs:18:1
13
13
|
14
14
LL | / fn one() -> i32 {
15
15
LL | | 1
16
16
LL | | }
17
17
| |_^
18
18
19
- error: this could be a `const_fn `
19
+ error: this could be a `const fn `
20
20
--> $DIR/could_be_const.rs:23:1
21
21
|
22
22
LL | / fn two() -> i32 {
@@ -25,39 +25,39 @@ LL | | abc
25
25
LL | | }
26
26
| |_^
27
27
28
- error: this could be a `const_fn `
28
+ error: this could be a `const fn `
29
29
--> $DIR/could_be_const.rs:30:1
30
30
|
31
31
LL | / fn string() -> String {
32
32
LL | | String::new()
33
33
LL | | }
34
34
| |_^
35
35
36
- error: this could be a `const_fn `
36
+ error: this could be a `const fn `
37
37
--> $DIR/could_be_const.rs:35:1
38
38
|
39
39
LL | / unsafe fn four() -> i32 {
40
40
LL | | 4
41
41
LL | | }
42
42
| |_^
43
43
44
- error: this could be a `const_fn `
44
+ error: this could be a `const fn `
45
45
--> $DIR/could_be_const.rs:40:1
46
46
|
47
47
LL | / fn generic<T>(t: T) -> T {
48
48
LL | | t
49
49
LL | | }
50
50
| |_^
51
51
52
- error: this could be a `const_fn `
52
+ error: this could be a `const fn `
53
53
--> $DIR/could_be_const.rs:44:1
54
54
|
55
55
LL | / fn sub(x: u32) -> usize {
56
56
LL | | unsafe { transmute(&x) }
57
57
LL | | }
58
58
| |_^
59
59
60
- error: this could be a `const_fn `
60
+ error: this could be a `const fn `
61
61
--> $DIR/could_be_const.rs:63:9
62
62
|
63
63
LL | / pub fn b(self, a: &A) -> B {
0 commit comments