[INFO] cloning repository https://github.com/AtosLab/rust-tree-sitter-base [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AtosLab/rust-tree-sitter-base" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtosLab%2Frust-tree-sitter-base", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtosLab%2Frust-tree-sitter-base'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb5fbdd78700b20754da5e6b4f2b4317a912e2d2 [INFO] testing AtosLab/rust-tree-sitter-base against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAtosLab%2Frust-tree-sitter-base" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AtosLab/rust-tree-sitter-base [INFO] finished tweaking git repo https://github.com/AtosLab/rust-tree-sitter-base [INFO] tweaked toml for git repo https://github.com/AtosLab/rust-tree-sitter-base written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AtosLab/rust-tree-sitter-base on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AtosLab/rust-tree-sitter-base 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 756d007ac67afa3f234ae7748e9e7478b1d0de0c60f9b2b1e36c8f7140c70a0f [INFO] running `Command { std: "docker" "start" "-a" "756d007ac67afa3f234ae7748e9e7478b1d0de0c60f9b2b1e36c8f7140c70a0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "756d007ac67afa3f234ae7748e9e7478b1d0de0c60f9b2b1e36c8f7140c70a0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "756d007ac67afa3f234ae7748e9e7478b1d0de0c60f9b2b1e36c8f7140c70a0f", kill_on_drop: false }` [INFO] [stdout] 756d007ac67afa3f234ae7748e9e7478b1d0de0c60f9b2b1e36c8f7140c70a0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28d355a54d185f6cbb512c2ba721c48fa0ab2ebce5267076db605cdd3477204c [INFO] running `Command { std: "docker" "start" "-a" "28d355a54d185f6cbb512c2ba721c48fa0ab2ebce5267076db605cdd3477204c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.67 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling once_cell v1.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling serde_json v1.0.63 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling anyhow v1.0.40 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling dirs v3.0.1 [INFO] [stderr] Compiling tree-sitter-loader v0.20.0 (/opt/rustwide/workdir/cli/loader) [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling semver v1.0.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling chunked_transfer v1.4.0 [INFO] [stderr] Compiling ascii v1.0.0 [INFO] [stderr] Compiling utf8-width v0.1.4 [INFO] [stderr] Compiling html-escape v0.2.6 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling which v4.1.0 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling smallbitvec v2.5.1 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling webbrowser v0.5.5 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling tiny_http v0.8.0 [INFO] [stderr] Compiling tree-sitter v0.20.9 (/opt/rustwide/workdir/lib) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:382:19 [INFO] [stdout] | [INFO] [stdout] 382 | 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] 382 | 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:707:22 [INFO] [stdout] | [INFO] [stdout] 707 | 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] 707 | 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:714:34 [INFO] [stdout] | [INFO] [stdout] 714 | pub fn root_node_with_offset(&self, offset_bytes: usize, offset_extent: Point) -> Node { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ---- the lifetime gets 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] 714 | pub fn root_node_with_offset(&self, offset_bytes: usize, offset_extent: Point) -> 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:743:17 [INFO] [stdout] | [INFO] [stdout] 743 | 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] 743 | pub fn walk(&self) -> TreeCursor<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thiserror-impl v1.0.25 [INFO] [stderr] Compiling thiserror v1.0.25 [INFO] [stderr] Compiling tree-sitter-tags v0.20.2 (/opt/rustwide/workdir/tags) [INFO] [stderr] Compiling tree-sitter-highlight v0.20.1 (/opt/rustwide/workdir/highlight) [INFO] [stderr] Compiling toml v0.5.8 [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] --> cli/loader/src/lib.rs:183:44 [INFO] [stdout] | [INFO] [stdout] 183 | 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] 183 | 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:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 192 | scope: &str, [INFO] [stdout] 193 | ) -> 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] 193 | ) -> 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:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 205 | path: &Path, [INFO] [stdout] 206 | ) -> 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] 206 | ) -> 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:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 276 | string: &str, [INFO] [stdout] 277 | ) -> 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] 277 | ) -> 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:474:10 [INFO] [stdout] | [INFO] [stdout] 474 | &'a mut self, [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 475 | parser_path: &Path, [INFO] [stdout] 476 | ) -> 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] 476 | ) -> Result<&'a [LanguageConfiguration<'a>]> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling tree-sitter-cli v0.20.7 (/opt/rustwide/workdir/cli) [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_resource!(get_playground_js, "docs/assets/js/playground.js"); [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 `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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_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 `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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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_default_aliases.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut status = match symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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: 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 1m 51s [INFO] running `Command { std: "docker" "inspect" "28d355a54d185f6cbb512c2ba721c48fa0ab2ebce5267076db605cdd3477204c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28d355a54d185f6cbb512c2ba721c48fa0ab2ebce5267076db605cdd3477204c", kill_on_drop: false }` [INFO] [stdout] 28d355a54d185f6cbb512c2ba721c48fa0ab2ebce5267076db605cdd3477204c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19cea48f523a9c47528c3ab52ed48821b7fbfde189ae9a16460163d05ea4fe79 [INFO] running `Command { std: "docker" "start" "-a" "19cea48f523a9c47528c3ab52ed48821b7fbfde189ae9a16460163d05ea4fe79", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> lib/binding_rust/lib.rs:382:19 [INFO] [stdout] | [INFO] [stdout] 382 | 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] 382 | 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:707:22 [INFO] [stdout] | [INFO] [stdout] 707 | 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] 707 | 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:714:34 [INFO] [stdout] | [INFO] [stdout] 714 | pub fn root_node_with_offset(&self, offset_bytes: usize, offset_extent: Point) -> Node { [INFO] [stdout] | ^^^^^ this lifetime flows to the output ---- the lifetime gets 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] 714 | pub fn root_node_with_offset(&self, offset_bytes: usize, offset_extent: Point) -> 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:743:17 [INFO] [stdout] | [INFO] [stdout] 743 | 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] 743 | 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:183:44 [INFO] [stdout] | [INFO] [stdout] 183 | 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] 183 | 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:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 192 | scope: &str, [INFO] [stdout] 193 | ) -> 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] 193 | ) -> 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:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 205 | path: &Path, [INFO] [stdout] 206 | ) -> 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] 206 | ) -> 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:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | &self, [INFO] [stdout] | ^^^^^ this lifetime flows to the output [INFO] [stdout] 276 | string: &str, [INFO] [stdout] 277 | ) -> 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] 277 | ) -> 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:474:10 [INFO] [stdout] | [INFO] [stdout] 474 | &'a mut self, [INFO] [stdout] | ^^ this lifetime flows to the output [INFO] [stdout] 475 | parser_path: &Path, [INFO] [stdout] 476 | ) -> 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] 476 | ) -> Result<&'a [LanguageConfiguration<'a>]> { [INFO] [stdout] | ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling diff v0.1.12 [INFO] [stderr] Compiling ctor v0.1.20 [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_resource!(get_playground_js, "docs/assets/js/playground.js"); [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 `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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_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 `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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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_default_aliases.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut status = match symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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: 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] Compiling pretty_assertions v0.7.2 [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.7 (/opt/rustwide/workdir/cli) [INFO] [stdout] warning: unexpected `cfg` condition name: `TREE_SITTER_EMBED_WASM_BINDING` [INFO] [stdout] --> cli/src/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_resource!(get_playground_js, "docs/assets/js/playground.js"); [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 `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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | optional_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 `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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | 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/playground.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | #[cfg(TREE_SITTER_EMBED_WASM_BINDING)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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/playground.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | #[cfg(not(TREE_SITTER_EMBED_WASM_BINDING))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | 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_default_aliases.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let mut status = match symbol.kind { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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: 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:839:24 [INFO] [stdout] | [INFO] [stdout] 839 | 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] 839 | fn get_all_nodes(tree: &Tree) -> Vec> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tree-sitter-cli` (lib test); 11 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/733b47ea4b1b86216f14ef56e49440c33933f230/bin/rustc --crate-name tree_sitter_cli --edition=2018 cli/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=e828ce96825ab869 -C extra-filename=-9264eaf38558dfba --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern ansi_term=/opt/rustwide/target/debug/deps/libansi_term-40c29a28c9ae4a8a.rlib --extern anyhow=/opt/rustwide/target/debug/deps/libanyhow-a7c1c3248bdc538c.rlib --extern atty=/opt/rustwide/target/debug/deps/libatty-9c9603706961e000.rlib --extern clap=/opt/rustwide/target/debug/deps/libclap-01fe659307f77f23.rlib --extern ctor=/opt/rustwide/target/debug/deps/libctor-fd8ca2b339524392.so --extern difference=/opt/rustwide/target/debug/deps/libdifference-b8bc2d34ca55e1a3.rlib --extern dirs=/opt/rustwide/target/debug/deps/libdirs-2de25ccd5f60ee8f.rlib --extern glob=/opt/rustwide/target/debug/deps/libglob-6541021168cb821b.rlib --extern html_escape=/opt/rustwide/target/debug/deps/libhtml_escape-b0b88bbb15bbdb4a.rlib --extern indexmap=/opt/rustwide/target/debug/deps/libindexmap-bece81b3b01eb384.rlib --extern lazy_static=/opt/rustwide/target/debug/deps/liblazy_static-4a3eb30d8f892632.rlib --extern log=/opt/rustwide/target/debug/deps/liblog-034ba531e9b36c99.rlib --extern pretty_assertions=/opt/rustwide/target/debug/deps/libpretty_assertions-28f5296b7fb8a157.rlib --extern rand=/opt/rustwide/target/debug/deps/librand-cb22416a3484046b.rlib --extern regex=/opt/rustwide/target/debug/deps/libregex-d6ecc0845299cf2d.rlib --extern regex_syntax=/opt/rustwide/target/debug/deps/libregex_syntax-8ce1eabe5c453e95.rlib --extern rustc_hash=/opt/rustwide/target/debug/deps/librustc_hash-cd4a842fcfd3dd86.rlib --extern semver=/opt/rustwide/target/debug/deps/libsemver-15cb9f0e5d47910b.rlib --extern serde=/opt/rustwide/target/debug/deps/libserde-1585b130d3632cc6.rlib --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-c893c89031d013c2.rlib --extern smallbitvec=/opt/rustwide/target/debug/deps/libsmallbitvec-e3b00201b5186c28.rlib --extern tempfile=/opt/rustwide/target/debug/deps/libtempfile-25213fad9dbcd2c2.rlib --extern tiny_http=/opt/rustwide/target/debug/deps/libtiny_http-8115d4871a7239db.rlib --extern tree_sitter=/opt/rustwide/target/debug/deps/libtree_sitter-594d01d62670892b.rlib --extern tree_sitter_config=/opt/rustwide/target/debug/deps/libtree_sitter_config-08f3accae4c0d873.rlib --extern tree_sitter_highlight=/opt/rustwide/target/debug/deps/libtree_sitter_highlight-f0050543f30986d9.rlib --extern tree_sitter_loader=/opt/rustwide/target/debug/deps/libtree_sitter_loader-cad2a1b69bb2d8e7.rlib --extern tree_sitter_tags=/opt/rustwide/target/debug/deps/libtree_sitter_tags-6a328b0cd0b42320.rlib --extern walkdir=/opt/rustwide/target/debug/deps/libwalkdir-cd1d285222a386f7.rlib --extern webbrowser=/opt/rustwide/target/debug/deps/libwebbrowser-06f6ea95267d51ae.rlib --extern which=/opt/rustwide/target/debug/deps/libwhich-9b95cae7184072f7.rlib --cap-lints=forbid -Copt-level=3 -L native=/opt/rustwide/target/debug/build/tree-sitter-0f257088400ca7bd/out` (signal: 9, SIGKILL: kill) [INFO] running `Command { std: "docker" "inspect" "19cea48f523a9c47528c3ab52ed48821b7fbfde189ae9a16460163d05ea4fe79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19cea48f523a9c47528c3ab52ed48821b7fbfde189ae9a16460163d05ea4fe79", kill_on_drop: false }` [INFO] [stdout] 19cea48f523a9c47528c3ab52ed48821b7fbfde189ae9a16460163d05ea4fe79