1- error: this could be a `const_fn `
1+ error: this could be a `const fn `
22 --> $DIR/could_be_const.rs:12:5
33 |
44LL | / pub fn new() -> Self {
@@ -8,15 +8,15 @@ LL | | }
88 |
99 = note: `-D clippy::missing-const-for-fn` implied by `-D warnings`
1010
11- error: this could be a `const_fn `
11+ error: this could be a `const fn `
1212 --> $DIR/could_be_const.rs:18:1
1313 |
1414LL | / fn one() -> i32 {
1515LL | | 1
1616LL | | }
1717 | |_^
1818
19- error: this could be a `const_fn `
19+ error: this could be a `const fn `
2020 --> $DIR/could_be_const.rs:23:1
2121 |
2222LL | / fn two() -> i32 {
@@ -25,39 +25,39 @@ LL | | abc
2525LL | | }
2626 | |_^
2727
28- error: this could be a `const_fn `
28+ error: this could be a `const fn `
2929 --> $DIR/could_be_const.rs:30:1
3030 |
3131LL | / fn string() -> String {
3232LL | | String::new()
3333LL | | }
3434 | |_^
3535
36- error: this could be a `const_fn `
36+ error: this could be a `const fn `
3737 --> $DIR/could_be_const.rs:35:1
3838 |
3939LL | / unsafe fn four() -> i32 {
4040LL | | 4
4141LL | | }
4242 | |_^
4343
44- error: this could be a `const_fn `
44+ error: this could be a `const fn `
4545 --> $DIR/could_be_const.rs:40:1
4646 |
4747LL | / fn generic<T>(t: T) -> T {
4848LL | | t
4949LL | | }
5050 | |_^
5151
52- error: this could be a `const_fn `
52+ error: this could be a `const fn `
5353 --> $DIR/could_be_const.rs:44:1
5454 |
5555LL | / fn sub(x: u32) -> usize {
5656LL | | unsafe { transmute(&x) }
5757LL | | }
5858 | |_^
5959
60- error: this could be a `const_fn `
60+ error: this could be a `const fn `
6161 --> $DIR/could_be_const.rs:63:9
6262 |
6363LL | / pub fn b(self, a: &A) -> B {
0 commit comments