11error: this could be a `const fn`
2- --> $DIR/could_be_const.rs:14 :5
2+ --> $DIR/could_be_const.rs:13 :5
33 |
44LL | / pub fn new() -> Self {
55LL | | Self { guess: 42 }
@@ -9,23 +9,23 @@ LL | | }
99 = note: `-D clippy::missing-const-for-fn` implied by `-D warnings`
1010
1111error: this could be a `const fn`
12- --> $DIR/could_be_const.rs:18 :5
12+ --> $DIR/could_be_const.rs:17 :5
1313 |
1414LL | / fn const_generic_params<'a, T, const N: usize>(&self, b: &'a [T; N]) -> &'a [T; N] {
1515LL | | b
1616LL | | }
1717 | |_____^
1818
1919error: this could be a `const fn`
20- --> $DIR/could_be_const.rs:24 :1
20+ --> $DIR/could_be_const.rs:23 :1
2121 |
2222LL | / fn one() -> i32 {
2323LL | | 1
2424LL | | }
2525 | |_^
2626
2727error: this could be a `const fn`
28- --> $DIR/could_be_const.rs:29 :1
28+ --> $DIR/could_be_const.rs:28 :1
2929 |
3030LL | / fn two() -> i32 {
3131LL | | let abc = 2;
@@ -34,39 +34,39 @@ LL | | }
3434 | |_^
3535
3636error: this could be a `const fn`
37- --> $DIR/could_be_const.rs:35 :1
37+ --> $DIR/could_be_const.rs:34 :1
3838 |
3939LL | / fn string() -> String {
4040LL | | String::new()
4141LL | | }
4242 | |_^
4343
4444error: this could be a `const fn`
45- --> $DIR/could_be_const.rs:40 :1
45+ --> $DIR/could_be_const.rs:39 :1
4646 |
4747LL | / unsafe fn four() -> i32 {
4848LL | | 4
4949LL | | }
5050 | |_^
5151
5252error: this could be a `const fn`
53- --> $DIR/could_be_const.rs:45 :1
53+ --> $DIR/could_be_const.rs:44 :1
5454 |
5555LL | / fn generic<T>(t: T) -> T {
5656LL | | t
5757LL | | }
5858 | |_^
5959
6060error: this could be a `const fn`
61- --> $DIR/could_be_const.rs:68 :9
61+ --> $DIR/could_be_const.rs:67 :9
6262 |
6363LL | / pub fn b(self, a: &A) -> B {
6464LL | | B
6565LL | | }
6666 | |_________^
6767
6868error: this could be a `const fn`
69- --> $DIR/could_be_const.rs:78 :5
69+ --> $DIR/could_be_const.rs:77 :5
7070 |
7171LL | / fn const_fn_stabilized_before_msrv(byte: u8) {
7272LL | | byte.is_ascii_digit();
0 commit comments