aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/rust/rust-analyzer/no-match-unsizing-in-const-fn.patch
blob: 3bdd4c8a727b01d57726c68da6e196bb56a8ee67 (plain)
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
diff --git a/crates/assists/src/handlers/convert_integer_literal.rs b/crates/assists/src/handlers/convert_integer_literal.rs
index ea35e833a..4df80a3c0 100644
--- a/crates/assists/src/handlers/convert_integer_literal.rs
+++ b/crates/assists/src/handlers/convert_integer_literal.rs
@@ -105,7 +105,7 @@ impl IntegerLiteralBase {
         }
     }

-    const fn base(&self) -> u32 {
+    fn base(&self) -> u32 {
         match self {
             Self::Binary => 2,
             Self::Octal => 8,
@@ -114,14 +114,14 @@ impl IntegerLiteralBase {
         }
     }

-    const fn prefix_len(&self) -> usize {
+    fn prefix_len(&self) -> usize {
         match self {
             Self::Decimal => 0,
             _ => 2,
         }
     }

-    const fn bases() -> &'static [IntegerLiteralBase] {
+    fn bases() -> &'static [IntegerLiteralBase] {
         &[
             IntegerLiteralBase::Binary,
             IntegerLiteralBase::Octal,