Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from source failed: error[E0716]: temporary value dropped while borrowed --> apis/rust/node/src/event_stream/scheduler.rs:51:19 #736

Open
GoAMATEUR opened this issue Dec 25, 2024 · 0 comments
Labels
bug Something isn't working cli CLI coordinator linux rust

Comments

@GoAMATEUR
Copy link

GoAMATEUR commented Dec 25, 2024

I am trying to build from source on Ubuntu 22.04 but encountered this error while building the source code:

error[E0716]: temporary value dropped while borrowed
  --> apis/rust/node/src/event_stream/scheduler.rs:51:19
   |
41 |         let event_id = match &event {
   |             -------- borrow later stored here
...
51 |             _ => &DataId::from(NON_INPUT_EVENT.to_string()),
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                   |                                       |
   |                   |                                       temporary value is freed at the end of this statement
   |                   creates a temporary value which is freed while still in use
   |
help: consider using a `let` binding to create a longer lived value
   |
41 ~         let binding = DataId::from(NON_INPUT_EVENT.to_string());
42 ~         let event_id = match &event {
43 |             EventItem::NodeEvent {
 ...
51 |             } => id,
52 ~             _ => &binding,
   |

For more information about this error, try `rustc --explain E0716`.
error: could not compile `dora-node-api` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

The whole building log is:

~/workspace/dora main ❯ cargo build --release -p dora-cli             8s  base
    Updating crates.io index
  Downloaded deranged v0.3.11
  Downloaded atty v0.2.14
  Downloaded async-stream-impl v0.3.5
  Downloaded const-random v0.1.18
  Downloaded atoi v2.0.0
  Downloaded base64 v0.21.7
  Downloaded bitflags v1.3.2
  Downloaded crossbeam-deque v0.8.5
  Downloaded crc32fast v1.4.2
  Downloaded errno v0.3.9
  Downloaded csv-core v0.1.11
  Downloaded byteorder v1.5.0
  Downloaded env_logger v0.11.5
  Downloaded anstream v0.6.14
  Downloaded bitflags v2.6.0
  Downloaded eyre v0.6.12
  Downloaded clap v4.5.20
  Downloaded bytes v1.6.0
  Downloaded bytemuck v1.20.0
  Downloaded arrow-schema v53.2.0
warning: spurious network error (3 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/unicode-bidi/0.3.15/download` (2a04:4e42:600::649), got 502
body:
I/O error
warning: spurious network error (3 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/futures-util/0.3.31/download` (2a04:4e42:600::649), got 502
body:
I/O error
warning: spurious network error (3 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/futures-channel/0.3.31/download` (2a04:4e42:600::649), got 502
body:
I/O error
  Downloaded ahash v0.8.11
  Downloaded sync_wrapper v1.0.1
  Downloaded colorchoice v1.0.1
  Downloaded autocfg v1.3.0
  Downloaded axum-core v0.3.4
  Downloaded async-stream v0.3.5
  Downloaded anstyle-query v1.1.0
  Downloaded aho-corasick v1.1.3
  Downloaded anstyle-parse v0.2.4
  Downloaded async-trait v0.1.83
  Downloaded adler v1.0.2
  Downloaded anstyle v1.0.8
  Downloaded crossbeam-utils v0.8.20
  Downloaded encoding_rs v0.8.34
  Downloaded dirs-sys v0.3.7
  Downloaded const-random-macro v0.1.16
  Downloaded dirs v4.0.0
  Downloaded clap_lex v0.7.1
  Downloaded aligned-vec v0.5.0
  Downloaded arrayvec v0.7.4
  Downloaded anyhow v1.0.91
  Downloaded bugreport v0.5.0
  Downloaded indenter v0.3.3
  Downloaded axum v0.6.20
  Downloaded equivalent v1.0.1
  Downloaded crossbeam v0.8.4
  Downloaded clap_lex v0.2.4
  Downloaded clap_derive v4.5.18
  Downloaded ctrlc v3.4.5
  Downloaded cfg-if v1.0.0
  Downloaded clap_derive v3.2.25
  Downloaded crossbeam-epoch v0.9.18
  Downloaded darling v0.20.9
  Downloaded crunchy v0.2.2
  Downloaded content_inspector v0.2.4
  Downloaded bytesize v1.3.0
  Downloaded filetime v0.2.23
  Downloaded console v0.15.8
  Downloaded darling_core v0.20.9
  Downloaded dashmap v5.5.3
  Downloaded cfg_aliases v0.2.1
  Downloaded clap_builder v4.5.20
  Downloaded base64 v0.22.1
  Downloaded fastrand v1.9.0
  Downloaded macro_rules_attribute v0.1.3
  Downloaded etcetera v0.8.0
  Downloaded either v1.12.0
  Downloaded env_filter v0.1.0
  Downloaded bitvec v1.0.1
  Downloaded bincode v1.3.3
  Downloaded dyn-clone v1.0.17
  Downloaded crossbeam-queue v0.3.11
  Downloaded crossbeam-channel v0.5.13
  Downloaded clircle v0.4.0
  Downloaded crossterm v0.25.0
  Downloaded chrono v0.4.38
  Downloaded want v0.3.1
  Downloaded urlencoding v2.1.3
  Downloaded colored v2.1.0
  Downloaded shellexpand v2.1.2
  Downloaded onig v6.4.0
  Downloaded clap v3.2.25
  Downloaded bstr v1.9.1
  Downloaded time-core v0.1.2
  Downloaded wild v2.2.1
  Downloaded tinyvec_macros v0.1.1
  Downloaded socket2 v0.5.7
  Downloaded csv v1.3.0
  Downloaded http-body v1.0.0
  Downloaded sync_wrapper v0.1.2
  Downloaded heck v0.5.0
  Downloaded half v2.4.1
  Downloaded hyper-rustls v0.27.2
  Downloaded static_assertions v1.1.0
  Downloaded tower-layer v0.3.2
  Downloaded waker-fn v1.2.0
  Downloaded wrapcenum-derive v0.4.1
  Downloaded names v0.14.0
  Downloaded git-version v0.3.9
  Downloaded try-lock v0.2.5
  Downloaded git-version-macro v0.3.9
  Downloaded rgb v0.8.37
  Downloaded pkg-config v0.3.30
  Downloaded mime v0.3.17
  Downloaded rayon-core v1.12.1
  Downloaded funty v2.0.0
  Downloaded tower-service v0.3.2
  Downloaded nix v0.23.2
  Downloaded quinn-proto v0.11.3
  Downloaded version_check v0.9.4
  Downloaded rustversion v1.0.17
  Downloaded tracing-log v0.1.4
  Downloaded tap v1.0.1
  Downloaded tabwriter v1.4.0
  Downloaded zeroize v1.8.1
  Downloaded thiserror-impl v1.0.66
  Downloaded untrusted v0.9.0
  Downloaded utf8parse v0.2.2
  Downloaded terminal_size v0.4.0
  Downloaded tokio-macros v2.4.0
  Downloaded tiny-keccak v2.0.2
  Downloaded termcolor v1.4.1
  Downloaded futures-timer v3.0.3
  Downloaded toml_datetime v0.6.8
  Downloaded sys-info v0.9.1
  Downloaded futures-io v0.3.31
  Downloaded futures-core v0.3.31
  Downloaded tracing-log v0.2.0
  Downloaded time-macros v0.2.18
  Downloaded form_urlencoded v1.2.1
  Downloaded glob v0.3.1
  Downloaded futures-executor v0.3.31
  Downloaded futures-task v0.3.31
  Downloaded fnv v1.0.7
  Downloaded futures-macro v0.3.31
  Downloaded thread_local v1.1.8
  Downloaded futures-sink v0.3.31
  Downloaded paste v1.0.15
  Downloaded tokio-io-timeout v1.2.0
  Downloaded threadpool v1.8.1
  Downloaded walkdir v2.5.0
  Downloaded tracing-attributes v0.1.27
  Downloaded tokio-stream v0.1.16
  Downloaded getrandom v0.2.15
  Downloaded tokio-rustls v0.26.0
  Downloaded globset v0.4.14
  Downloaded futures-lite v1.13.0
  Downloaded scopeguard v1.2.0
  Downloaded proc-macro-error v1.0.4
  Downloaded wyz v0.5.1
  Downloaded bat v0.24.0
  Downloaded tinyvec v1.6.1
  Downloaded reqwest v0.12.8
  Downloaded serde_json v1.0.128
  Downloaded strsim v0.11.1
  Downloaded smallvec v1.13.2
  Downloaded libz-sys v1.1.18
  Downloaded winnow v0.6.20
  Downloaded nu-ansi-term v0.46.0
  Downloaded hyper v1.4.1
  Downloaded schemars_derive v0.8.21
  Downloaded line-wrap v0.2.0
  Downloaded webbrowser v0.8.15
  Downloaded inotify-sys v0.1.5
  Downloaded is_terminal_polyfill v1.70.0
  Downloaded hyper v0.14.30
  Downloaded uuid v1.11.0
  Downloaded textwrap v0.16.1
  Downloaded unicode-ident v1.0.12
  Downloaded hashbrown v0.15.0
  Downloaded hashbrown v0.12.3
  Downloaded minimal-lexical v0.2.1
  Downloaded notify v5.2.0
  Downloaded libm v0.2.8
  Downloaded proc-macro-crate v3.2.0
  Downloaded pin-project-lite v0.2.14
  Downloaded powerfmt v0.2.0
  Downloaded signal-hook-mio v0.2.3
  Downloaded std_prelude v0.2.12
  Downloaded home v0.5.9
  Downloaded unsafe-libyaml v0.2.11
  Downloaded rustls-pki-types v1.7.0
  Downloaded yaml-rust v0.4.5
  Downloaded tracing-core v0.1.32
  Downloaded httparse v1.9.4
  Downloaded lock_api v0.4.12
  Downloaded serde v1.0.214
  Downloaded nix v0.29.0
  Downloaded parking v2.2.0
  Downloaded ipnet v2.9.0
  Downloaded futures v0.3.31
  Downloaded flatbuffers v24.3.25
  Downloaded hashbrown v0.14.5
  Downloaded flume v0.10.14
  Downloaded flate2 v1.0.30
  Downloaded url v2.5.2
  Downloaded tracing v0.1.40
  Downloaded tokio-util v0.7.11
  Downloaded unicode-segmentation v1.11.0
  Downloaded tonic v0.11.0
  Downloaded toml_edit v0.22.22
  Downloaded rand_core v0.6.4
  Downloaded radium v0.7.0
  Downloaded num-traits v0.2.19
  Downloaded time v0.3.36
  Downloaded tower v0.4.13
  Downloaded hyper-util v0.1.5
  Downloaded unicode-normalization v0.1.23
  Downloaded hex v0.4.3
  Downloaded zerocopy v0.7.34
  Downloaded stabby-abi v36.1.1
  Downloaded sysinfo v0.30.13
  Downloaded h2 v0.3.26
  Downloaded quick-xml v0.31.0
  Downloaded regex-syntax v0.8.5
  Downloaded ident_case v1.0.1
  Downloaded rustls v0.23.10
  Downloaded sysinfo v0.29.11
  Downloaded serde_derive_internals v0.29.1
  Downloaded num-conv v0.1.0
  Downloaded num_cpus v1.16.0
  Downloaded rand_chacha v0.3.1
  Downloaded signal-hook-registry v1.4.2
  Downloaded overload v0.1.1
  Downloaded idna v0.5.0
  Downloaded prost-derive v0.12.6
  Downloaded iana-time-zone v0.1.60
  Downloaded tracing-subscriber v0.3.18
  Downloaded nom v7.1.3
  Downloaded hyper-timeout v0.4.1
  Downloaded parking_lot v0.12.3
  Downloaded libloading v0.7.4
  Downloaded prost v0.12.6
  Downloaded http-body-util v0.1.2
  Downloaded git2 v0.18.3
  Downloaded inotify v0.9.6
  Downloaded vcpkg v0.2.15
  Downloaded http v0.2.12
  Downloaded num-integer v0.1.46
  Downloaded webpki-roots v0.26.3
  Downloaded rustls-webpki v0.102.4
  Downloaded inventory v0.3.15
  Downloaded strsim v0.10.0
  Downloaded serde_yaml v0.9.34+deprecated
  Downloaded heck v0.4.1
  Downloaded regex-syntax v0.6.29
  Downloaded os_str_bytes v6.6.1
  Downloaded mio v0.8.11
  Downloaded matchers v0.1.0
  Downloaded with_builtin_macros-proc_macros v0.0.3
  Downloaded mio v1.0.1
  Downloaded same-file v1.0.6
  Downloaded rust_decimal v1.35.0
  Downloaded pin-utils v0.1.0
  Downloaded rustc-hash v1.1.0
  Downloaded unwind_safe v0.1.0
  Downloaded grep-cli v0.1.10
  Downloaded which v5.0.0
  Downloaded num v0.4.3
  Downloaded memoffset v0.6.5
  Downloaded num-rational v0.4.2
  Downloaded semver v1.0.23
  Downloaded num-complex v0.4.6
  Downloaded serde_derive v1.0.214
  Downloaded plist v1.6.1
  Downloaded schemars v0.8.21
  Downloaded log v0.4.22
  Downloaded indexmap v2.6.0
  Downloaded unicode-width v0.1.13
  Downloaded num-iter v0.1.45
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded with_builtin_macros v0.0.3
  Downloaded percent-encoding v2.3.1
  Downloaded path_abs v0.5.1
  Downloaded uhlc v0.5.2
  Downloaded uninit v0.5.1
  Downloaded httpdate v1.0.3
  Downloaded humantime v2.1.0
  Downloaded rustc_version v0.4.0
  Downloaded shell-escape v0.1.5
  Downloaded rand v0.8.5
  Downloaded quote v1.0.37
  Downloaded sharded-slab v0.1.7
  Downloaded regex v1.11.1
  Downloaded itoa v1.0.11
  Downloaded futures-buffered v0.2.6
  Downloaded opentelemetry-system-metrics v0.1.8
  Downloaded jobserver v0.1.31
  Downloaded signal-hook v0.3.17
  Downloaded pin-project-internal v1.1.5
  Downloaded thrift v0.16.0
  Downloaded nu-ansi-term v0.49.0
  Downloaded slab v0.4.9
  Downloaded thiserror v1.0.66
  Downloaded ext-trait-proc_macros v1.0.1
  Downloaded ppv-lite86 v0.2.17
  Downloaded ext-trait v1.0.1
  Downloaded ryu v1.0.18
  Downloaded ring v0.17.8
  Downloaded syn v2.0.86
  Downloaded http v1.1.0
  Downloaded extern-c v0.1.0
  Downloaded opentelemetry_api v0.18.0
  Downloaded itertools v0.12.1
  Downloaded regex-automata v0.1.10
  Downloaded rayon v1.10.0
  Downloaded arrow-string v53.2.0
  Downloaded darling_macro v0.20.9
  Downloaded futures-concurrency v7.6.1
  Downloaded extension-traits v1.0.1
  Downloaded regex-automata v0.4.8
  Downloaded ansi_colours v1.2.2
  Downloaded integer-encoding v3.0.4
  Downloaded tokio v1.41.0
  Downloaded duration-str v0.5.1
  Downloaded syntect v5.2.0
  Downloaded tracing-opentelemetry v0.18.0
  Downloaded shell-words v1.1.0
  Downloaded nanorand v0.7.0
  Downloaded libc v0.2.155
  Downloaded serde-with-expand-env v1.1.0
  Downloaded ordered-float v1.1.1
  Downloaded onig_sys v69.8.1
  Downloaded lexical-core v1.0.2
  Downloaded libgit2-sys v0.16.2+1.7.2
  Downloaded newline-converter v0.2.2
  Downloaded ordered-float v4.2.0
  Downloaded opentelemetry-semantic-conventions v0.14.0
  Downloaded safer-ffi v0.1.13
  Downloaded opentelemetry_sdk v0.22.1
  Downloaded serde_urlencoded v0.7.1
  Downloaded linked-hash-map v0.5.6
  Downloaded arrow-row v53.2.0
  Downloaded rustls-pemfile v2.1.2
  Downloaded http-body v0.4.6
  Downloaded subtle v2.6.1
  Downloaded shared_memory_extended v0.13.0
  Downloaded crossbeam-skiplist v0.1.3
  Downloaded arrow-data v53.2.0
  Downloaded lexical-parse-integer v1.0.2
  Downloaded arrow-json v53.2.0
  Downloaded once_cell v1.20.2
  Downloaded arrow-arith v53.2.0
  Downloaded lazy_static v1.5.0
  Downloaded num-bigint v0.4.5
  Downloaded parking_lot_core v0.9.10
  Downloaded matchit v0.7.3
  Downloaded arrow-csv v53.2.0
  Downloaded arrow-ord v53.2.0
  Downloaded arrow-select v53.2.0
  Downloaded arrow-buffer v53.2.0
  Downloaded miniz_oxide v0.7.4
  Downloaded prettyplease v0.1.25
  Downloaded pin-project v1.1.5
  Downloaded spin v0.9.8
  Downloaded quinn v0.11.2
  Downloaded indexmap v1.9.3
  Downloaded proc-macro2 v1.0.89
  Downloaded memchr v2.7.4
  Downloaded syn v1.0.109
  Downloaded opentelemetry_sdk v0.18.0
  Downloaded raw_sync_2 v0.1.5
  Downloaded cc v1.0.100
  Downloaded serde_yaml v0.8.26
  Downloaded opentelemetry v0.18.0
  Downloaded stabby v36.1.1
  Downloaded arrow-ipc v53.2.0
  Downloaded arrow-cast v53.2.0
  Downloaded nix v0.26.4
  Downloaded opentelemetry-semantic-conventions v0.10.0
  Downloaded inquire v0.5.3
  Downloaded arrow v53.2.0
  Downloaded safer_ffi-proc_macros v0.1.13
  Downloaded stabby-macros v36.1.1
  Downloaded rustix v0.38.34
  Downloaded linux-raw-sys v0.4.14
  Downloaded arrow-array v53.2.0
  Downloaded opentelemetry-jaeger v0.17.0
  Downloaded nvml-wrapper v0.9.0
  Downloaded lexical-write-integer v1.0.2
  Downloaded lexical-util v1.0.3
  Downloaded lexical-write-float v1.0.2
  Downloaded quinn-udp v0.5.2
  Downloaded macro_rules_attribute-proc_macro v0.1.3
  Downloaded lexical-parse-float v1.0.2
  Downloaded nvml-wrapper-sys v0.7.0
  Downloaded opentelemetry-otlp v0.15.0
  Downloaded opentelemetry-proto v0.5.0
  Downloaded opentelemetry v0.22.0
  Downloaded sha2-const-stable v0.1.0
  Downloaded futures-channel v0.3.31
  Downloaded unicode-bidi v0.3.15
  Downloaded futures-util v0.3.31
  Downloaded 393 crates (42.4 MB) in 1.75s (largest was `sha2-const-stable` at 4.4 MB)
   Compiling proc-macro2 v1.0.89
   Compiling unicode-ident v1.0.12
   Compiling autocfg v1.3.0
   Compiling libc v0.2.155
   Compiling cfg-if v1.0.0
   Compiling libm v0.2.8
   Compiling serde v1.0.214
   Compiling memchr v2.7.4
   Compiling once_cell v1.20.2
   Compiling bytes v1.6.0
   Compiling pin-project-lite v0.2.14
   Compiling version_check v0.9.4
   Compiling scopeguard v1.2.0
   Compiling futures-core v0.3.31
   Compiling itoa v1.0.11
   Compiling smallvec v1.13.2
   Compiling parking_lot_core v0.9.10
   Compiling futures-sink v0.3.31
   Compiling futures-io v0.3.31
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.31
   Compiling fnv v1.0.7
   Compiling bitflags v2.6.0
   Compiling bitflags v1.3.2
   Compiling crossbeam-utils v0.8.20
   Compiling syn v1.0.109
   Compiling hashbrown v0.12.3
   Compiling ppv-lite86 v0.2.17
   Compiling hashbrown v0.14.5
   Compiling ryu v1.0.18
   Compiling futures-channel v0.3.31
   Compiling equivalent v1.0.1
   Compiling percent-encoding v2.3.1
   Compiling hashbrown v0.15.0
   Compiling thiserror v1.0.66
   Compiling eyre v0.6.12
   Compiling semver v1.0.23
   Compiling regex-syntax v0.8.5
   Compiling lazy_static v1.5.0
   Compiling tracing-core v0.1.32
   Compiling static_assertions v1.1.0
   Compiling iana-time-zone v0.1.60
   Compiling zerocopy v0.7.34
   Compiling lexical-util v1.0.3
   Compiling num-traits v0.2.19
   Compiling lock_api v0.4.12
   Compiling slab v0.4.9
   Compiling indexmap v1.9.3
   Compiling arrow-schema v53.2.0
   Compiling ahash v0.8.11
   Compiling serde_json v1.0.128
   Compiling indenter v0.3.3
   Compiling httparse v1.9.4
   Compiling base64 v0.22.1
   Compiling tower-service v0.3.2
   Compiling try-lock v0.2.5
   Compiling rustversion v1.0.17
   Compiling paste v1.0.15
   Compiling strsim v0.11.1
   Compiling want v0.3.1
   Compiling rustix v0.38.34
   Compiling pkg-config v0.3.30
   Compiling quote v1.0.37
   Compiling aho-corasick v1.1.3
   Compiling rustc_version v0.4.0
   Compiling lexical-write-integer v1.0.2
   Compiling indexmap v2.6.0
   Compiling spin v0.9.8
   Compiling syn v2.0.86
   Compiling lexical-parse-integer v1.0.2
   Compiling tower-layer v0.3.2
   Compiling jobserver v0.1.31
   Compiling crossbeam-channel v0.5.13
   Compiling getrandom v0.2.15
   Compiling lexical-write-float v1.0.2
   Compiling lexical-parse-float v1.0.2
   Compiling linux-raw-sys v0.4.14
   Compiling either v1.12.0
   Compiling cc v1.0.100
   Compiling flatbuffers v24.3.25
   Compiling crossbeam-epoch v0.9.18
   Compiling http v0.2.12
   Compiling tinyvec_macros v0.1.1
   Compiling macro_rules_attribute-proc_macro v0.1.3
   Compiling prettyplease v0.1.25
   Compiling tinyvec v1.6.1
   Compiling num-integer v0.1.46
   Compiling num-complex v0.4.6
   Compiling half v2.4.1
   Compiling chrono v0.4.38
   Compiling lexical-core v1.0.2
   Compiling atoi v2.0.0
   Compiling num-bigint v0.4.5
   Compiling num-iter v0.1.45
   Compiling csv-core v0.1.11
   Compiling regex-syntax v0.6.29
   Compiling home v0.5.9
   Compiling mime v0.3.17
   Compiling safer-ffi v0.1.13
   Compiling rustls-pki-types v1.7.0
   Compiling crossbeam-deque v0.8.5
   Compiling http v1.1.0
   Compiling memoffset v0.6.5
   Compiling form_urlencoded v1.2.1
   Compiling untrusted v0.9.0
   Compiling macro_rules_attribute v0.1.3
   Compiling anyhow v1.0.91
   Compiling radium v0.7.0
   Compiling dyn-clone v1.0.17
   Compiling schemars v0.8.21
   Compiling rayon-core v1.12.1
   Compiling regex-automata v0.4.8
   Compiling unicode-bidi v0.3.15
   Compiling unsafe-libyaml v0.2.11
   Compiling signal-hook-registry v1.4.2
   Compiling mio v1.0.1
   Compiling socket2 v0.5.7
   Compiling rand_core v0.6.4
   Compiling parking_lot v0.12.3
   Compiling dashmap v5.5.3
   Compiling rand_chacha v0.3.1
   Compiling dirs-sys v0.3.7
   Compiling http-body v0.4.6
   Compiling unicode-normalization v0.1.23
   Compiling num_cpus v1.16.0
   Compiling dirs v4.0.0
   Compiling rand v0.8.5
   Compiling humantime v2.1.0
   Compiling num-rational v0.4.2
   Compiling ring v0.17.8
   Compiling overload v0.1.1
   Compiling nu-ansi-term v0.46.0
   Compiling idna v0.5.0
   Compiling http-body v1.0.0
   Compiling num v0.4.3
   Compiling shellexpand v2.1.2
   Compiling threadpool v1.8.1
   Compiling arrow-buffer v53.2.0
   Compiling axum-core v0.3.4
   Compiling ordered-float v1.1.1
   Compiling sharded-slab v0.1.7
   Compiling thread_local v1.1.8
   Compiling base64 v0.21.7
   Compiling tap v1.0.1
   Compiling rustls v0.23.10
   Compiling linked-hash-map v0.5.6
   Compiling regex-automata v0.1.10
   Compiling integer-encoding v3.0.4
   Compiling httpdate v1.0.3
   Compiling ident_case v1.0.1
   Compiling byteorder v1.5.0
   Compiling hex v0.4.3
   Compiling arrow-data v53.2.0
   Compiling yaml-rust v0.4.5
   Compiling itertools v0.12.1
   Compiling wyz v0.5.1
   Compiling url v2.5.2
   Compiling axum v0.6.20
   Compiling proc-macro-error-attr v1.0.4
   Compiling parking v2.2.0
   Compiling arrow-array v53.2.0
   Compiling serde_derive_internals v0.29.1
   Compiling darling_core v0.20.9
   Compiling matchers v0.1.0
   Compiling fastrand v1.9.0
   Compiling subtle v2.6.1
   Compiling vcpkg v0.2.15
   Compiling utf8parse v0.2.2
   Compiling urlencoding v2.1.3
   Compiling regex v1.11.1
   Compiling zeroize v1.8.1
   Compiling funty v2.0.0
   Compiling waker-fn v1.2.0
   Compiling futures-lite v1.13.0
   Compiling anstyle-parse v0.2.4
   Compiling rayon v1.10.0
   Compiling csv v1.3.0
   Compiling nix v0.23.2
   Compiling which v5.0.0
   Compiling libz-sys v1.1.18
   Compiling bitvec v1.0.1
   Compiling nix v0.26.4
   Compiling proc-macro-error v1.0.4
   Compiling cfg_aliases v0.2.1
   Compiling colorchoice v1.0.1
   Compiling is_terminal_polyfill v1.70.0
   Compiling matchit v0.7.3
   Compiling sync_wrapper v0.1.2
   Compiling anstyle v1.0.8
   Compiling powerfmt v0.2.0
   Compiling anstyle-query v1.1.0
   Compiling nix v0.29.0
   Compiling terminal_size v0.4.0
   Compiling arrow-select v53.2.0
   Compiling arrow-row v53.2.0
   Compiling arrow-arith v53.2.0
   Compiling anstream v0.6.14
   Compiling deranged v0.3.11
   Compiling onig_sys v69.8.1
   Compiling sys-info v0.9.1
   Compiling nanorand v0.7.0
   Compiling ordered-float v4.2.0
   Compiling webpki-roots v0.26.3
   Compiling libloading v0.7.4
   Compiling shared_memory_extended v0.13.0
   Compiling inventory v0.3.15
   Compiling signal-hook v0.3.17
   Compiling num-conv v0.1.0
   Compiling ext-trait-proc_macros v1.0.1
   Compiling with_builtin_macros-proc_macros v0.0.3
   Compiling safer_ffi-proc_macros v0.1.13
   Compiling glob v0.3.1
   Compiling clap_lex v0.7.1
   Compiling unwind_safe v0.1.0
   Compiling time-core v0.1.2
   Compiling extern-c v0.1.0
   Compiling termcolor v1.4.1
   Compiling clap_builder v4.5.20
   Compiling nvml-wrapper-sys v0.7.0
   Compiling libgit2-sys v0.16.2+1.7.2
   Compiling rustls-pemfile v2.1.2
   Compiling sync_wrapper v1.0.1
   Compiling heck v0.4.1
   Compiling ipnet v2.9.0
   Compiling arrow-cast v53.2.0
   Compiling arrow-ord v53.2.0
   Compiling ext-trait v1.0.1
   Compiling serde_derive v1.0.214
   Compiling futures-macro v0.3.31
   Compiling tokio-macros v2.4.0
   Compiling tracing-attributes v0.1.27
   Compiling thiserror-impl v1.0.66
   Compiling async-trait v0.1.83
   Compiling pin-project-internal v1.1.5
   Compiling schemars_derive v0.8.21
   Compiling extension-traits v1.0.1
   Compiling async-stream-impl v0.3.5
   Compiling prost-derive v0.12.6
   Compiling darling_macro v0.20.9
   Compiling arrow-string v53.2.0
   Compiling raw_sync_2 v0.1.5
   Compiling uninit v0.5.1
   Compiling async-stream v0.3.5
   Compiling with_builtin_macros v0.0.3
   Compiling time v0.3.36
   Compiling os_str_bytes v6.6.1
   Compiling unicode-width v0.1.13
   Compiling tokio v1.41.0
   Compiling same-file v1.0.6
   Compiling futures-timer v3.0.3
   Compiling adler v1.0.2
   Compiling futures-util v0.3.31
   Compiling walkdir v2.5.0
   Compiling miniz_oxide v0.7.4
   Compiling clap_lex v0.2.4
   Compiling sysinfo v0.29.11
   Compiling darling v0.20.9
   Compiling wrapcenum-derive v0.4.1
   Compiling clap_derive v3.2.25
   Compiling opentelemetry v0.22.0
   Compiling clap v4.5.20
   Compiling git-version-macro v0.3.9
   Compiling pin-project v1.1.5
   Compiling flume v0.10.14
   Compiling tracing v0.1.40
   Compiling arrow-csv v53.2.0
   Compiling arrow-ipc v53.2.0
   Compiling arrow-json v53.2.0
   Compiling nvml-wrapper v0.9.0
   Compiling prost v0.12.6
   Compiling bstr v1.9.1
   Compiling atty v0.2.14
   Compiling quick-xml v0.31.0
   Compiling crc32fast v1.4.2
   Compiling textwrap v0.16.1
   Compiling arrow v53.2.0
   Compiling bugreport v0.5.0
   Compiling dora-arrow-convert v0.3.8 (/home/qtus/workspace/dora/libraries/arrow-convert)
   Compiling line-wrap v0.2.0
   Compiling strsim v0.10.0
   Compiling heck v0.5.0
   Compiling bytemuck v1.20.0
   Compiling rust_decimal v1.35.0
   Compiling opentelemetry-semantic-conventions v0.14.0
   Compiling names v0.14.0
   Compiling clap_derive v4.5.18
   Compiling rgb v0.8.37
   Compiling bat v0.24.0
   Compiling ctrlc v3.4.5
   Compiling opentelemetry-system-metrics v0.1.8
   Compiling clap v3.2.25
   Compiling flate2 v1.0.30
   Compiling git-version v0.3.9
   Compiling futures-executor v0.3.31
   Compiling opentelemetry_api v0.18.0
   Compiling futures-buffered v0.2.6
   Compiling futures v0.3.31
   Compiling http-body-util v0.1.2
   Compiling futures-concurrency v7.6.1
   Compiling inotify-sys v0.1.5
   Compiling crossbeam-queue v0.3.11
   Compiling shell-escape v0.1.5
   Compiling arrayvec v0.7.4
   Compiling minimal-lexical v0.2.1
   Compiling unicode-segmentation v1.11.0
   Compiling std_prelude v0.2.12
   Compiling path_abs v0.5.1
   Compiling crossbeam v0.8.4
   Compiling inotify v0.9.6
   Compiling nom v7.1.3
   Compiling ansi_colours v1.2.2
   Compiling console v0.15.8
   Compiling sysinfo v0.30.13
   Compiling newline-converter v0.2.2
   Compiling filetime v0.2.23
   Compiling etcetera v0.8.0
   Compiling crossbeam-skiplist v0.1.3
   Compiling content_inspector v0.2.4
   Compiling encoding_rs v0.8.34
   Compiling bytesize v1.3.0
   Compiling shell-words v1.1.0
   Compiling wild v2.2.1
   Compiling nu-ansi-term v0.49.0
   Compiling tabwriter v1.4.0
   Compiling rustls-webpki v0.102.4
   Compiling colored v2.1.0
   Compiling communication-layer-request-reply v0.3.8 (/home/qtus/workspace/dora/libraries/communication-layer/request-reply)
   Compiling dora-operator-api-types v0.3.8 (/home/qtus/workspace/dora/apis/rust/operator/types)
   Compiling tokio-stream v0.1.16
   Compiling tokio-util v0.7.11
   Compiling hyper v1.4.1
   Compiling opentelemetry_sdk v0.18.0
   Compiling tokio-io-timeout v1.2.0
   Compiling opentelemetry_sdk v0.22.1
   Compiling tower v0.4.13
   Compiling h2 v0.3.26
   Compiling opentelemetry v0.18.0
   Compiling opentelemetry-semantic-conventions v0.10.0
   Compiling log v0.4.22
   Compiling tracing-log v0.2.0
   Compiling serde_yaml v0.9.34+deprecated
   Compiling uuid v1.11.0
   Compiling uhlc v0.5.2
   Compiling tracing-subscriber v0.3.18
   Compiling tracing-log v0.1.4
   Compiling thrift v0.16.0
   Compiling aligned-vec v0.5.0
   Compiling bincode v1.3.3
   Compiling serde-with-expand-env v1.1.0
   Compiling hyper-util v0.1.5
   Compiling mio v0.8.11
   Compiling serde_urlencoded v0.7.1
   Compiling opentelemetry-jaeger v0.17.0
   Compiling hyper v0.14.30
   Compiling tracing-opentelemetry v0.18.0
   Compiling dora-message v0.4.2 (/home/qtus/workspace/dora/libraries/message)
   Compiling dora-tracing v0.3.8 (/home/qtus/workspace/dora/libraries/extensions/telemetry/tracing)
   Compiling tokio-rustls v0.26.0
   Compiling shared-memory-server v0.3.8 (/home/qtus/workspace/dora/libraries/shared-memory-server)
   Compiling hyper-rustls v0.27.2
   Compiling serde_yaml v0.8.26
   Compiling reqwest v0.12.8
   Compiling dora-operator-api-c v0.3.8 (/home/qtus/workspace/dora/apis/c/operator)
   Compiling signal-hook-mio v0.2.3
   Compiling onig v6.4.0
   Compiling globset v0.4.14
   Compiling plist v1.6.1
   Compiling grep-cli v0.1.10
   Compiling dora-download v0.3.8 (/home/qtus/workspace/dora/libraries/extensions/download)
   Compiling dora-core v0.3.8 (/home/qtus/workspace/dora/libraries/core)
   Compiling syntect v5.2.0
   Compiling hyper-timeout v0.4.1
   Compiling crossterm v0.25.0
   Compiling env_filter v0.1.0
   Compiling clircle v0.4.0
   Compiling env_logger v0.11.5
   Compiling inquire v0.5.3
   Compiling dora-coordinator v0.3.8 (/home/qtus/workspace/dora/binaries/coordinator)
   Compiling notify v5.2.0
   Compiling dora-node-api v0.3.8 (/home/qtus/workspace/dora/apis/rust/node)
error[E0716]: temporary value dropped while borrowed
  --> apis/rust/node/src/event_stream/scheduler.rs:51:19
   |
41 |         let event_id = match &event {
   |             -------- borrow later stored here
...
51 |             _ => &DataId::from(NON_INPUT_EVENT.to_string()),
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                   |                                       |
   |                   |                                       temporary value is freed at the end of this statement
   |                   creates a temporary value which is freed while still in use
   |
help: consider using a `let` binding to create a longer lived value
   |
41 ~         let binding = DataId::from(NON_INPUT_EVENT.to_string());
42 ~         let event_id = match &event {
43 |             EventItem::NodeEvent {
 ...
51 |             } => id,
52 ~             _ => &binding,
   |

For more information about this error, try `rustc --explain E0716`.
error: could not compile `dora-node-api` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

@github-actions github-actions bot added bug Something isn't working cli CLI coordinator linux rust labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli CLI coordinator linux rust
Projects
None yet
Development

No branches or pull requests

1 participant