File size: 7,706 Bytes
3167e93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
��cargo : warning: unused imports: `Arc` 

and `Mutex`

zvu4X@b L�:1 �eW[:1

+ cargo check 2> final_errors.log

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpeci 

   fied: (warning: unused...rc` and `  

  Mutex`:String) [], RemoteException

    + FullyQualifiedErrorId : NativeCo 

   mmandError

 

  --> C:\Users\trios\.gemini\antigravit

y\vscode\loveca-copy\engine_rust_src\sr

c\core\mcts.rs:18:17

   |

18 | use std::sync::{Arc, Mutex};

   |                 ^^^  ^^^^^

   |

   = note: `#[warn(unused_imports)]` (p

art of `#[warn(unused)]`) on by default



warning: `engine_rust` (lib) generated 

1 warning (run `cargo fix --lib -p engi

ne_rust` to apply 1 suggestion)

    Checking loveca_launcher v0.1.0 (C:

\Users\trios\.gemini\antigravity\vscode

\loveca-copy\launcher)

error[E0425]: cannot find value `body` 

in this scope

   --> src\main.rs:408:92

    |

404 | ...   if let (Some(rid_raw), Ok(_

body)) = (room_id, parse_body::<AiSugge

stReq>(&mut request)) {

    |                                 -

---- `_body` defined here

...

408 | ...           let suggestions = r

oom.state.get_mcts_suggestions(&state.c

ard_db, body.sims, SearchHorizon::GameE

nd, EvalMode::Normal);

    |                                  

                                       

        ^^^^

    |

help: the leading underscore in `_body`

 marks it as unused, consider renaming 

it to `body`

    |

404 -                  if let (Some(rid

_raw), Ok(_body)) = (room_id, parse_bod

y::<AiSuggestReq>(&mut request)) {

404 +                  if let (Some(rid

_raw), Ok(body)) = (room_id, parse_body

::<AiSuggestReq>(&mut request)) {

    |



warning: unused import: `Serialize`

 --> src\main.rs:8:26

  |

8 | use serde::{Deserialize, Serialize}

;

  |                          ^^^^^^^^^

  |

  = note: `#[warn(unused_imports)]` (pa

rt of `#[warn(unused)]`) on by default



error[E0308]: mismatched types

   --> src\main.rs:609:79

    |

609 |             c["is_new"] = json!(p

.hand_added_turn.get(i).map(|&t| t as u

32 == gs.turn).unwrap_or(false));

    |                                  

                                       

      ^^^^^^^ expected `u32`, found `u1

6`



error[E0277]: can't compare `u32` with 

`u16`

   --> src\main.rs:609:76

    |

609 |             c["is_new"] = json!(p

.hand_added_turn.get(i).map(|&t| t as u

32 == gs.turn).unwrap_or(false));

    |                                  

                                       

   ^^ no implementation for `u32 == u16

`

    |

    = help: the trait `PartialEq<u16>` 

is not implemented for `u32`

help: the following other types impleme

nt trait `PartialEq<Rhs>`

   --> /rustc/254b59607d4417e9dffbc3071

38ae5c86280fe4c\library\core\src\cmp.rs

:1885:5

   ::: /rustc/254b59607d4417e9dffbc3071

38ae5c86280fe4c\library\core\src\cmp.rs

:1887:5

    |

    = note: `u32` implements `PartialEq

`

    |

   ::: C:\Users\trios\.cargo\registry\s

rc\index.crates.io-1949cf8c6b5b557f\ser

de_json-1.0.149\src\value\partial_eq.rs

:97:1

    |

 97 | / partialeq_numeric! {

 98 | |     eq_i64[i8 i16 i32 i64 isize

]

 99 | |     eq_u64[u8 u16 u32 u64 usize

]

100 | |     eq_f32[f32]

101 | |     eq_f64[f64]

102 | |     eq_bool[bool]

103 | | }

    | |_^ `u32` implements `PartialEq<V

alue>`

    = note: this error originates in th

e macro `partial_eq_impl` which comes f

rom the expansion of the macro `partial

eq_numeric` (in Nightly builds, run wit

h -Z macro-backtrace for more info)



Some errors have detailed explanations:

 E0277, E0308, E0425.

For more information about an error, tr

y `rustc --explain E0277`.

warning: `loveca_launcher` (bin "loveca

_launcher") generated 1 warning

error: could not compile `loveca_launch

er` (bin "loveca_launcher") due to 3 pr

evious errors; 1 warning emitted