Advertisement
TerfyHorizon

Aiode Discord Bot - Build Compile Error (Self-Hosted)

Feb 18th, 2024
1,278
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 13.53 KB | Help | 0 0
  1. [cargo-make] INFO - cargo make 0.37.9
  2. [cargo-make] INFO - Calling cargo metadata to extract project info
  3. [cargo-make] INFO - Cargo metadata done
  4. [cargo-make] INFO - Project: webapp
  5. [cargo-make] INFO - Build File: Makefile.toml
  6. [cargo-make] INFO - Task: build
  7. [cargo-make] INFO - Profile: development
  8. [cargo-make] INFO - Running Task: legacy-migration
  9. [cargo-make] INFO - Execute Command: "cargo" "build"
  10.    Compiling proc-macro2 v1.0.78
  11.    Compiling unicode-ident v1.0.12
  12.    Compiling wasm-bindgen-shared v0.2.91
  13.    Compiling autocfg v1.1.0
  14.    Compiling bumpalo v3.15.0
  15.    Compiling serde v1.0.196
  16.    Compiling once_cell v1.19.0
  17.    Compiling log v0.4.20
  18.    Compiling cfg-if v1.0.0
  19.    Compiling serde_json v1.0.113
  20.    Compiling ryu v1.0.16
  21.    Compiling wasm-bindgen v0.2.91
  22.    Compiling itoa v1.0.10
  23.    Compiling version_check v0.9.4
  24.    Compiling libc v0.2.153
  25.    Compiling tinyvec_macros v0.1.1
  26.    Compiling futures-sink v0.3.30
  27.    Compiling tinyvec v1.6.0
  28.    Compiling futures-core v0.3.30
  29.    Compiling slab v0.4.9
  30.    Compiling memchr v2.7.1
  31.    Compiling futures-channel v0.3.30
  32.    Compiling pin-utils v0.1.0
  33.    Compiling version_check v0.1.5
  34.    Compiling matches v0.1.10
  35.    Compiling unicase v2.7.0
  36.    Compiling futures-task v0.3.30
  37.    Compiling pin-project-lite v0.2.13
  38.    Compiling quote v1.0.35
  39.    Compiling futures-io v0.3.30
  40.    Compiling unicode-bidi v0.3.15
  41.    Compiling dbg v1.0.4
  42.    Compiling indexmap v1.9.3
  43.    Compiling syn v2.0.49
  44.    Compiling unicode-width v0.1.11
  45.    Compiling percent-encoding v1.0.1
  46.    Compiling pulldown-cmark v0.6.1
  47.    Compiling getopts v0.2.21
  48.    Compiling unicode-normalization v0.1.22
  49.    Compiling seed v0.6.0
  50.    Compiling time v0.1.45
  51.    Compiling bitflags v1.3.2
  52.    Compiling hashbrown v0.12.3
  53.    Compiling getrandom v0.2.12
  54.    Compiling idna v0.1.5
  55.    Compiling enclose v1.1.8
  56.    Compiling uuid v0.8.2
  57.    Compiling url v1.7.2
  58.    Compiling cookie v0.12.0
  59.    Compiling wasm-bindgen-backend v0.2.91
  60.    Compiling serde_derive v1.0.196
  61.    Compiling futures-macro v0.3.30
  62.    Compiling wasm-bindgen-macro-support v0.2.91
  63.    Compiling wasm-bindgen-macro v0.2.91
  64.    Compiling futures-util v0.3.30
  65.    Compiling futures-executor v0.3.30
  66.    Compiling futures v0.3.30
  67.    Compiling js-sys v0.3.68
  68.    Compiling console_error_panic_hook v0.1.7
  69.    Compiling web-sys v0.3.68
  70.    Compiling wasm-bindgen-futures v0.4.41
  71.    Compiling gloo-timers v0.2.6
  72. error[E0283]: type annotations needed for `Closure<T>`
  73.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  74.     |
  75. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  76.     |         ^^^^^^^   ------------ type must be known at this point
  77.     |
  78.     = note: cannot satisfy `_: WasmClosure`
  79.     = help: the following types implement trait `WasmClosure`:
  80.               (dyn Fn() -> R + 'static)
  81.              (dyn for<'a> Fn(&'a A) -> R + 'static)
  82.               (dyn Fn(A) -> R + 'static)
  83.              (dyn Fn(A, B) -> R + 'static)
  84.               (dyn Fn(A, B, C) -> R + 'static)
  85.              (dyn Fn(A, B, C, D) -> R + 'static)
  86.               (dyn Fn(A, B, C, D, E) -> R + 'static)
  87.              (dyn Fn(A, B, C, D, E, F) -> R + 'static)
  88.             and 12 others
  89. note: required by a bound in `Closure::<T>::new`
  90.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:253:17
  91.     |
  92. 253 |     T: ?Sized + WasmClosure,
  93.     |                 ^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  94. ...
  95. 271 |     pub fn new<F>(t: F) -> Closure<T>
  96.     |            --- required by a bound in this associated function
  97. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  98.     |
  99. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  100.     |                ++++++++++++
  101.  
  102. error[E0283]: type annotations needed for `Closure<T>`
  103.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  104.     |
  105. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  106.     |         ^^^^^^^   ------------ type must be known at this point
  107.     |
  108.     = note: multiple `impl`s satisfying `{closure@/home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:32: 113:60}: IntoWasmClosure<_>` found in the `wasm_bindgen` crate:
  109.             - impl<T, A, R> IntoWasmClosure<(dyn Fn(A) -> R + 'static)> for T
  110.              where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: Fn(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  111.             - impl<T, A, R> IntoWasmClosure<(dyn FnMut(A) -> R + 'static)> for T
  112.              where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: FnMut(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  113. note: required by a bound in `Closure::<T>::new`
  114.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:273:12
  115.     |
  116. 271 |     pub fn new<F>(t: F) -> Closure<T>
  117.     |            --- required by a bound in this associated function
  118. 272 |     where
  119. 273 |         F: IntoWasmClosure<T> + 'static,
  120.    |            ^^^^^^^^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  121. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  122.    |
  123. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  124.    |                ++++++++++++
  125.  
  126. For more information about this error, try `rustc --explain E0283`.
  127. error: could not compile `seed` (lib) due to 2 previous errors
  128. warning: build failed, waiting for other jobs to finish...
  129. [cargo-make] ERROR - Error while executing command, exit code: 101
  130. [cargo-make] WARN - Build Failed.
  131. terfy@srv667508:~/aiode/src/main/webapp$ cargo make build
  132. [cargo-make] INFO - cargo make 0.37.9
  133. [cargo-make] INFO - Calling cargo metadata to extract project info
  134. [cargo-make] INFO - Cargo metadata done
  135. [cargo-make] INFO - Project: webapp
  136. [cargo-make] INFO - Build File: Makefile.toml
  137. [cargo-make] INFO - Task: build
  138. [cargo-make] INFO - Profile: development
  139. [cargo-make] INFO - Running Task: legacy-migration
  140. [cargo-make] INFO - Execute Command: "cargo" "build"
  141.   Compiling seed v0.6.0
  142. error[E0283]: type annotations needed for `Closure<T>`
  143.   --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  144.    |
  145. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  146.    |         ^^^^^^^   ------------ type must be known at this point
  147.    |
  148.    = note: cannot satisfy `_: WasmClosure`
  149.    = help: the following types implement trait `WasmClosure`:
  150.              (dyn Fn() -> R + 'static)
  151.               (dyn for<'a> Fn(&'a A) -> R + 'static)
  152.              (dyn Fn(A) -> R + 'static)
  153.               (dyn Fn(A, B) -> R + 'static)
  154.              (dyn Fn(A, B, C) -> R + 'static)
  155.               (dyn Fn(A, B, C, D) -> R + 'static)
  156.              (dyn Fn(A, B, C, D, E) -> R + 'static)
  157.               (dyn Fn(A, B, C, D, E, F) -> R + 'static)
  158.            and 12 others
  159. note: required by a bound in `Closure::<T>::new`
  160.   --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:253:17
  161.    |
  162. 253 |     T: ?Sized + WasmClosure,
  163.    |                 ^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  164. ...
  165. 271 |     pub fn new<F>(t: F) -> Closure<T>
  166.    |            --- required by a bound in this associated function
  167. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  168.    |
  169. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  170.    |                ++++++++++++
  171.  
  172. error[E0283]: type annotations needed for `Closure<T>`
  173.   --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  174.    |
  175. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  176.    |         ^^^^^^^   ------------ type must be known at this point
  177.    |
  178.    = note: multiple `impl`s satisfying `{closure@/home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:32: 113:60}: IntoWasmClosure<_>` found in the `wasm_bindgen` crate:
  179.            - impl<T, A, R> IntoWasmClosure<(dyn Fn(A) -> R + 'static)> for T
  180.               where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: Fn(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  181.            - impl<T, A, R> IntoWasmClosure<(dyn FnMut(A) -> R + 'static)> for T
  182.               where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: FnMut(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  183. note: required by a bound in `Closure::<T>::new`
  184.   --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:273:12
  185.    |
  186. 271 |     pub fn new<F>(t: F) -> Closure<T>
  187.    |            --- required by a bound in this associated function
  188. 272 |     where
  189. 273 |         F: IntoWasmClosure<T> + 'static,
  190.     |            ^^^^^^^^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  191. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  192.     |
  193. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  194.     |                ++++++++++++
  195.  
  196. For more information about this error, try `rustc --explain E0283`.
  197. error: could not compile `seed` (lib) due to 2 previous errors
  198. [cargo-make] ERROR - Error while executing command, exit code: 101
  199. [cargo-make] WARN - Build Failed.
  200. terfy@srv667508:~/aiode/src/main/webapp$ rustc --explain E0283                                                                                                                                                                         cargo make buildE0283
  201. [cargo-make] INFO - cargo make 0.37.9
  202. [cargo-make] INFO - Calling cargo metadata to extract project info
  203. [cargo-make] INFO - Cargo metadata done
  204. [cargo-make] INFO - Project: webapp
  205. [cargo-make] INFO - Build File: Makefile.toml
  206. [cargo-make] INFO - Task: build
  207. [cargo-make] INFO - Profile: development
  208. [cargo-make] INFO - Running Task: legacy-migration
  209. [cargo-make] INFO - Execute Command: "cargo" "build"
  210.    Compiling seed v0.6.0
  211. error[E0283]: type annotations needed for `Closure<T>`
  212.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  213.     |
  214. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  215.     |         ^^^^^^^   ------------ type must be known at this point
  216.     |
  217.     = note: cannot satisfy `_: WasmClosure`
  218.     = help: the following types implement trait `WasmClosure`:
  219.               (dyn Fn() -> R + 'static)
  220.              (dyn for<'a> Fn(&'a A) -> R + 'static)
  221.               (dyn Fn(A) -> R + 'static)
  222.              (dyn Fn(A, B) -> R + 'static)
  223.               (dyn Fn(A, B, C) -> R + 'static)
  224.              (dyn Fn(A, B, C, D) -> R + 'static)
  225.               (dyn Fn(A, B, C, D, E) -> R + 'static)
  226.              (dyn Fn(A, B, C, D, E, F) -> R + 'static)
  227.             and 12 others
  228. note: required by a bound in `Closure::<T>::new`
  229.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:253:17
  230.     |
  231. 253 |     T: ?Sized + WasmClosure,
  232.     |                 ^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  233. ...
  234. 271 |     pub fn new<F>(t: F) -> Closure<T>
  235.     |            --- required by a bound in this associated function
  236. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  237.     |
  238. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  239.     |                ++++++++++++
  240.  
  241. error[E0283]: type annotations needed for `Closure<T>`
  242.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:9
  243.     |
  244. 113 |     let closure = Closure::new(move |event: web_sys::Event| {
  245.     |         ^^^^^^^   ------------ type must be known at this point
  246.     |
  247.     = note: multiple `impl`s satisfying `{closure@/home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seed-0.6.0/src/browser/service/routing.rs:113:32: 113:60}: IntoWasmClosure<_>` found in the `wasm_bindgen` crate:
  248.             - impl<T, A, R> IntoWasmClosure<(dyn Fn(A) -> R + 'static)> for T
  249.              where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: Fn(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  250.             - impl<T, A, R> IntoWasmClosure<(dyn FnMut(A) -> R + 'static)> for T
  251.              where <T as FnOnce<(A,)>>::Output == R, T: 'static, T: FnMut(A), A: FromWasmAbi, A: 'static, R: ReturnWasmAbi, R: 'static;
  252. note: required by a bound in `Closure::<T>::new`
  253.    --> /home/terfy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-0.2.91/src/closure.rs:273:12
  254.     |
  255. 271 |     pub fn new<F>(t: F) -> Closure<T>
  256.     |            --- required by a bound in this associated function
  257. 272 |     where
  258. 273 |         F: IntoWasmClosure<T> + 'static,
  259.    |            ^^^^^^^^^^^^^^^^^^ required by this bound in `Closure::<T>::new`
  260. help: consider giving `closure` an explicit type, where the type for type parameter `T` is specified
  261.    |
  262. 113 |     let closure: Closure<T> = Closure::new(move |event: web_sys::Event| {
  263.    |                ++++++++++++
  264.  
  265. For more information about this error, try `rustc --explain E0283`.
  266. error: could not compile `seed` (lib) due to 2 previous errors
  267. [cargo-make] ERROR - Error while executing command, exit code: 101
  268. [cargo-make] WARN - Build Failed.
  269.  
Advertisement
Comments
  • TerfyHorizon
    90 days (edited)
    # text 0.12 KB | 0 0
    1. I don't have any knowledge of cargo or rust, so I've got no idea how to fix this.
    2. I'm just trying to host a music bot
Add Comment
Please, Sign In to add comment
Advertisement