[INFO] cloning repository https://github.com/MarcBrejner/tree-sitter-twenty [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MarcBrejner/tree-sitter-twenty" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarcBrejner%2Ftree-sitter-twenty", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarcBrejner%2Ftree-sitter-twenty'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] baeced6c5a96093df330b75d50cd30ad3397ab4c [INFO] testing MarcBrejner/tree-sitter-twenty against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarcBrejner%2Ftree-sitter-twenty" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MarcBrejner/tree-sitter-twenty [INFO] finished tweaking git repo https://github.com/MarcBrejner/tree-sitter-twenty [INFO] tweaked toml for git repo https://github.com/MarcBrejner/tree-sitter-twenty written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MarcBrejner/tree-sitter-twenty on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MarcBrejner/tree-sitter-twenty already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b47aab4e7db73883a5a9c4b177d9d400d55b4335a730ea144473559c94df572 [INFO] running `Command { std: "docker" "start" "-a" "5b47aab4e7db73883a5a9c4b177d9d400d55b4335a730ea144473559c94df572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b47aab4e7db73883a5a9c4b177d9d400d55b4335a730ea144473559c94df572", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b47aab4e7db73883a5a9c4b177d9d400d55b4335a730ea144473559c94df572", kill_on_drop: false }` [INFO] [stdout] 5b47aab4e7db73883a5a9c4b177d9d400d55b4335a730ea144473559c94df572 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] e2d8675b42aa5ba638a075afa6146220c097e35c073c441304a01e61557cecde [INFO] running `Command { std: "docker" "start" "-a" "e2d8675b42aa5ba638a075afa6146220c097e35c073c441304a01e61557cecde", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling once_cell v1.7.0 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling spin v0.7.1 [INFO] [stderr] Compiling serde_json v1.0.63 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling tree-sitter-loader v0.19.0 (/opt/rustwide/workdir/cli/loader) [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling chunked_transfer v1.4.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling utf8-width v0.1.4 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ascii v1.0.0 [INFO] [stderr] Compiling html-escape v0.2.6 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling dirs v3.0.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling which v4.1.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling smallbitvec v2.5.0 [INFO] [stderr] Compiling webbrowser v0.5.5 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling tree-sitter v0.20.0 (/opt/rustwide/workdir/lib) [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling tiny_http v0.8.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:340:19 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger> { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:654:22 [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:674:17 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tree-sitter-config v0.19.0 (/opt/rustwide/workdir/cli/config) [INFO] [stderr] Compiling tree-sitter-cli v0.20.0 (/opt/rustwide/workdir/cli) [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling tree-sitter-tags v0.20.0 (/opt/rustwide/workdir/tags) [INFO] [stderr] Compiling tree-sitter-highlight v0.20.0 (/opt/rustwide/workdir/highlight) [INFO] [stdout] warning: field `value_range` is never read [INFO] [stdout] --> tags/src/lib.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct LocalDef<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 84 | name: &'a [u8], [INFO] [stdout] 85 | value_range: Range, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> highlight/src/lib.rs:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 589 | let _ = &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:149:44 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration, &Path)> { [INFO] [stdout] | ^^^^^ ---------------------- ----- the lifetimes get resolved as `'_` [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration<'_>, &Path)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 158 | scope: &str, [INFO] [stdout] 159 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 171 | path: &Path, [INFO] [stdout] 172 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 172 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 242 | string: &str, [INFO] [stdout] 243 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | &'a mut self, [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 425 | parser_path: &Path, [INFO] [stdout] 426 | ) -> Result<&[LanguageConfiguration]> { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | the lifetimes get resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 426 | ) -> Result<&'a [LanguageConfiguration<'a>]> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_default_aliases.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut status = match step.symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let mut lexical_variable = &mut lexical_variables[index]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> cli/src/logger.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | struct Logger { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | pub filter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/build_lex_table.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 350 | let _ = &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/minimize_parse_table.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | / &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] 483 | | // Don't changes states 0 (the error state) or 1 (the start state). [INFO] [stdout] 484 | | if *i <= 1 { [INFO] [stdout] 485 | | return *i as i64 - 1_000_000; [INFO] [stdout] ... | [INFO] [stdout] 490 | | -((state.terminal_entries.len() + state.nonterminal_entries.len()) as i64) [INFO] [stdout] 491 | | }); [INFO] [stdout] | |__________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 482 | let _ = &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Rule` instead of cloning the inner type [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:212:75 [INFO] [stdout] | [INFO] [stdout] 212 | rule: Box::new(self.extract_tokens_in_rule((&rule).clone())), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.52s [INFO] running `Command { std: "docker" "inspect" "e2d8675b42aa5ba638a075afa6146220c097e35c073c441304a01e61557cecde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2d8675b42aa5ba638a075afa6146220c097e35c073c441304a01e61557cecde", kill_on_drop: false }` [INFO] [stdout] e2d8675b42aa5ba638a075afa6146220c097e35c073c441304a01e61557cecde [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 59602295a8427e983c3d5ebeb7f53bbc885bd3f5dd5b1dec79e32e1bb17bafde [INFO] running `Command { std: "docker" "start" "-a" "59602295a8427e983c3d5ebeb7f53bbc885bd3f5dd5b1dec79e32e1bb17bafde", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling tree-sitter v0.20.0 (/opt/rustwide/workdir/lib) [INFO] [stderr] Compiling tree-sitter-highlight v0.20.0 (/opt/rustwide/workdir/highlight) [INFO] [stderr] Compiling tree-sitter-tags v0.20.0 (/opt/rustwide/workdir/tags) [INFO] [stderr] Compiling tree-sitter-config v0.19.0 (/opt/rustwide/workdir/cli/config) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:340:19 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger> { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:654:22 [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:674:17 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> highlight/src/lib.rs:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 589 | let _ = &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value_range` is never read [INFO] [stdout] --> tags/src/lib.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct LocalDef<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 84 | name: &'a [u8], [INFO] [stdout] 85 | value_range: Range, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tree-sitter-loader v0.19.0 (/opt/rustwide/workdir/cli/loader) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:149:44 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration, &Path)> { [INFO] [stdout] | ^^^^^ ---------------------- ----- the lifetimes get resolved as `'_` [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration<'_>, &Path)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 158 | scope: &str, [INFO] [stdout] 159 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 171 | path: &Path, [INFO] [stdout] 172 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 172 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 242 | string: &str, [INFO] [stdout] 243 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | &'a mut self, [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 425 | parser_path: &Path, [INFO] [stdout] 426 | ) -> Result<&[LanguageConfiguration]> { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | the lifetimes get resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 426 | ) -> Result<&'a [LanguageConfiguration<'a>]> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_default_aliases.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut status = match step.symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let mut lexical_variable = &mut lexical_variables[index]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> cli/src/logger.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | struct Logger { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | pub filter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/build_lex_table.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 350 | let _ = &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/minimize_parse_table.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | / &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] 483 | | // Don't changes states 0 (the error state) or 1 (the start state). [INFO] [stdout] 484 | | if *i <= 1 { [INFO] [stdout] 485 | | return *i as i64 - 1_000_000; [INFO] [stdout] ... | [INFO] [stdout] 490 | | -((state.terminal_entries.len() + state.nonterminal_entries.len()) as i64) [INFO] [stdout] 491 | | }); [INFO] [stdout] | |__________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 482 | let _ = &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&Rule` instead of cloning the inner type [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:212:75 [INFO] [stdout] | [INFO] [stdout] 212 | rule: Box::new(self.extract_tokens_in_rule((&rule).clone())), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value_range` is never read [INFO] [stdout] --> tags/src/lib.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 83 | struct LocalDef<'a> { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 84 | name: &'a [u8], [INFO] [stdout] 85 | value_range: Range, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocalDef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> highlight/src/lib.rs:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 589 | let _ = &self.layers[0..(i + 1)].rotate_left(1); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:340:19 [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger> { [INFO] [stdout] | ^^^^^ ------- [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 340 | pub fn logger(&self) -> Option<&Logger<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:654:22 [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 654 | pub fn root_node(&self) -> Node<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:674:17 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor { [INFO] [stdout] | ^^^^^ ---------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 674 | pub fn walk(&self) -> TreeCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:149:44 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration, &Path)> { [INFO] [stdout] | ^^^^^ ---------------------- ----- the lifetimes get resolved as `'_` [INFO] [stdout] | | || [INFO] [stdout] | | |the lifetimes get resolved as `'_` [INFO] [stdout] | | the lifetimes get resolved as `'_` [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 149 | pub fn get_all_language_configurations(&self) -> Vec<(&LanguageConfiguration<'_>, &Path)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 158 | scope: &str, [INFO] [stdout] 159 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 159 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 171 | path: &Path, [INFO] [stdout] 172 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 172 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 242 | string: &str, [INFO] [stdout] 243 | ) -> Result> { [INFO] [stdout] | ---------------------- [INFO] [stdout] | || [INFO] [stdout] | |the lifetimes get resolved as `'_` [INFO] [stdout] | the lifetimes get resolved as `'_` [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 243 | ) -> Result)>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/loader/src/lib.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | &'a mut self, [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 425 | parser_path: &Path, [INFO] [stdout] 426 | ) -> Result<&[LanguageConfiguration]> { [INFO] [stdout] | ------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | the lifetimes get resolved as `'a` [INFO] [stdout] | the lifetimes get resolved as `'a` [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 426 | ) -> Result<&'a [LanguageConfiguration<'a>]> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling tree-sitter-cli v0.20.0 (/opt/rustwide/workdir/cli) [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | resource!(get_main_html, "cli/src/web_ui.html"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:22:19 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | resource!(get_playground_js, "docs/assets/js/playground.js"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js"); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:35:15 [INFO] [stdout] | [INFO] [stdout] 35 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/web_ui.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm"); [INFO] [stdout] | -------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(TREE_SITTER_EMBED_WASM_BINDING)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(TREE_SITTER_EMBED_WASM_BINDING)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `optional_resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_default_aliases.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | let mut status = match step.symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:52:21 [INFO] [stdout] | [INFO] [stdout] 52 | let mut lexical_variable = &mut lexical_variables[index]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filter` is never read [INFO] [stdout] --> cli/src/logger.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 3 | struct Logger { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 4 | pub filter: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/build_lex_table.rs:350:5 [INFO] [stdout] | [INFO] [stdout] 350 | &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 350 | let _ = &old_ids_by_new_id[1..].sort_by_key(|id| &table.states[*id]); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> cli/src/generate/build_tables/minimize_parse_table.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | / &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] 483 | | // Don't changes states 0 (the error state) or 1 (the start state). [INFO] [stdout] 484 | | if *i <= 1 { [INFO] [stdout] 485 | | return *i as i64 - 1_000_000; [INFO] [stdout] ... | [INFO] [stdout] 490 | | -((state.terminal_entries.len() + state.nonterminal_entries.len()) as i64) [INFO] [stdout] 491 | | }); [INFO] [stdout] | |__________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 482 | let _ = &old_ids_by_new_id.sort_unstable_by_key(|i| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&rules::Rule` instead of cloning the inner type [INFO] [stdout] --> cli/src/generate/prepare_grammar/extract_tokens.rs:212:75 [INFO] [stdout] | [INFO] [stdout] 212 | rule: Box::new(self.extract_tokens_in_rule((&rule).clone())), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> cli/src/tests/node_test.rs:811:24 [INFO] [stdout] | [INFO] [stdout] 811 | fn get_all_nodes(tree: &Tree) -> Vec { [INFO] [stdout] | ^^^^^ ---- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 811 | fn get_all_nodes(tree: &Tree) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcJoTXOF/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libtempfile-6b2fa6ab6e301d7c.rlib,libremove_dir_all-4e221c62d36b2749.rlib,libatty-b161503fdf1ded80.rlib,libhtml_escape-f92c7425882b434b.rlib,libutf8_width-1acec4e12814af04.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{librand-73afb878d71e2c87.rlib,librand_chacha-63e2b92b6e54e385.rlib,libppv_lite86-5a92c3ab26105205.rlib,librand_core-2998828d544f2fef.rlib,libgetrandom-c1571af9be3252b1.rlib,libwebbrowser-17d4f9813fef1aac.rlib,libtiny_http-04dd31187b36035a.rlib,liburl-cba3aa9be15cb616.rlib,libidna-341e00c6e855b013.rlib,libunicode_normalization-b57c2dc2eebb264c.rlib,libtinyvec-57b4fd5806efbfbb.rlib,libtinyvec_macros-c54c30cfa88e68f0.rlib,libunicode_bidi-3c976b4886511d83.rlib,libform_urlencoded-c7ca260acdafb077.rlib,libpercent_encoding-3f452dc5e318e927.rlib,libmatches-d7125afe50072f5c.rlib,libchunked_transfer-9867de9712728cb6.rlib,libchrono-9f8cae61d98a5af3.rlib,libnum_integer-776fc74e87f61fcf.rlib,libnum_traits-e5050f906ed56291.rlib,libtime-4c628ef9f1d5d848.rlib,libascii-a28dc16a4d4517d9.rlib,libwhich-96c63d1ecb12b45b.rlib,libeither-4c8c1e39a99655ac.rlib,libwalkdir-3efeb4370cd33e40.rlib,libsame_file-ebfa63be59ead6ba.rlib,libdifference-a1da5c3a3156ade7.rlib,libtree_sitter_loader-fec29f3236fa2251.rlib,libcc-452a64804ac1d7e8.rlib,libdirs-daca2c0e1abec30d.rlib,libdirs_sys-aa3d7587ec34d8f5.rlib,liblibc-6a112af245720cc1.rlib,libtree_sitter_tags-8e7be0a6eb6509c8.rlib,liblibloading-0f54c89ac0c8f01b.rlib}.rlib" "-ldl" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libtree_sitter_highlight-34fb52c150c55545.rlib,libthiserror-8207bd3b62d2a54e.rlib,libtree_sitter-27915a07d4080a37.rlib,libspin-b2455dfa6bf2813f.rlib,libansi_term-bdfff57b5fb49171.rlib,libsmallbitvec-e5afec2952e4c8ce.rlib,libregex-c0c0dc652760a26d.rlib,libthread_local-63de729dc5310d39.rlib,libonce_cell-eedf9e9dcb06715e.rlib,libregex_syntax-e5af858b2117774d.rlib,libaho_corasick-b254e07826576682.rlib,libmemchr-73e1d28ab8a2c4a0.rlib,libserde_json-2ebfe0f1a8fc4c28.rlib,libryu-af883cd9b444a782.rlib,libitoa-a894b10a4e051367.rlib,libindexmap-dd232e1d726a1e3b.rlib,libhashbrown-aed633c8184090a0.rlib,libserde-6bf47d3e5968d8d6.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,liblog-ac2d7cc7e3389574.rlib,libcfg_if-66d55f6b302e88c8.rlib,libanyhow-f4bf4e4cdc71e965.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcJoTXOF/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/tree-sitter-79140d4bb8bb5501/out" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/tree_sitter_cli-bde256b7939b0413" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-c1571af9be3252b1.rlib(getrandom-c1571af9be3252b1.getrandom.4c2a9a0fc78ed47c-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.2/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h418d41a71394cc31E+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tree-sitter-cli` (lib test) due to 1 previous error; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "59602295a8427e983c3d5ebeb7f53bbc885bd3f5dd5b1dec79e32e1bb17bafde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "59602295a8427e983c3d5ebeb7f53bbc885bd3f5dd5b1dec79e32e1bb17bafde", kill_on_drop: false }` [INFO] [stdout] 59602295a8427e983c3d5ebeb7f53bbc885bd3f5dd5b1dec79e32e1bb17bafde