[INFO] fetching crate rtf-parser-tt 0.5.0... [INFO] testing rtf-parser-tt-0.5.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate rtf-parser-tt 0.5.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate rtf-parser-tt 0.5.0 [INFO] finished tweaking crates.io crate rtf-parser-tt 0.5.0 [INFO] tweaked toml for crates.io crate rtf-parser-tt 0.5.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rtf-parser-tt 0.5.0 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rtf-parser-tt 0.5.0 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0ecee148d4a63d0d0995f7e44a48301983edc80f85c2224d0f0b19e643c4843 [INFO] running `Command { std: "docker" "start" "-a" "a0ecee148d4a63d0d0995f7e44a48301983edc80f85c2224d0f0b19e643c4843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0ecee148d4a63d0d0995f7e44a48301983edc80f85c2224d0f0b19e643c4843", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0ecee148d4a63d0d0995f7e44a48301983edc80f85c2224d0f0b19e643c4843", kill_on_drop: false }` [INFO] [stdout] a0ecee148d4a63d0d0995f7e44a48301983edc80f85c2224d0f0b19e643c4843 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 78f63059a4ec18028623185d961c472a0c989a282ca23a74fb425e3f40a6707c [INFO] running `Command { std: "docker" "start" "-a" "78f63059a4ec18028623185d961c472a0c989a282ca23a74fb425e3f40a6707c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rtf-parser-tt v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `get_next_token` is never used [INFO] [stdout] --> src/parser.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 307 | fn get_next_token(&'a self) -> Option<&'a Token<'a>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_only_whitespace` is never used [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait StrUtils { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn is_only_whitespace(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn scan(src: &str) -> Result, LexerError> { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | pub fn scan(src: &str) -> Result>, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn tokenize(slice: &str) -> Result, LexerError> { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 92 | fn tokenize(slice: &str) -> Result>, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/parser.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_tokens(&self) -> Vec<&Token> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_tokens(&self) -> Vec<&Token<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokens.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn from(input: &str) -> Result { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 160 | pub fn from(input: &str) -> Result, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.80s [INFO] running `Command { std: "docker" "inspect" "78f63059a4ec18028623185d961c472a0c989a282ca23a74fb425e3f40a6707c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78f63059a4ec18028623185d961c472a0c989a282ca23a74fb425e3f40a6707c", kill_on_drop: false }` [INFO] [stdout] 78f63059a4ec18028623185d961c472a0c989a282ca23a74fb425e3f40a6707c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a4a8522b367b65000eb4d4f97b2481df9e56e2404862184ae033f40527023e2 [INFO] running `Command { std: "docker" "start" "-a" "1a4a8522b367b65000eb4d4f97b2481df9e56e2404862184ae033f40527023e2", kill_on_drop: false }` [INFO] [stdout] warning: method `get_next_token` is never used [INFO] [stdout] --> src/parser.rs:307:8 [INFO] [stdout] | [INFO] [stdout] 119 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 307 | fn get_next_token(&'a self) -> Option<&'a Token<'a>> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_only_whitespace` is never used [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait StrUtils { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 4 | fn is_only_whitespace(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn scan(src: &str) -> Result, LexerError> { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 43 | pub fn scan(src: &str) -> Result>, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lexer.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | fn tokenize(slice: &str) -> Result, LexerError> { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 92 | fn tokenize(slice: &str) -> Result>, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/parser.rs:128:23 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_tokens(&self) -> Vec<&Token> { [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_tokens(&self) -> Vec<&Token<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tokens.rs:160:24 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn from(input: &str) -> Result { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 160 | pub fn from(input: &str) -> Result, LexerError> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rtf-parser-tt v0.5.0 (/opt/rustwide/workdir) [INFO] [stdout] error: couldn't read `src/../resources/tests/test-file.rtf`: No such file or directory (os error 2) [INFO] [stdout] --> src/utils.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | include_str!(concat!("../resources/tests/", $filename)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:558:28 [INFO] [stdout] | [INFO] [stdout] 558 | let file_content = include_test_file!("test-file.rtf"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` which comes from the expansion of the macro `include_test_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../resources/tests/list-item.rtf`: No such file or directory (os error 2) [INFO] [stdout] --> src/utils.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | include_str!(concat!("../resources/tests/", $filename)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:614:28 [INFO] [stdout] | [INFO] [stdout] 614 | let file_content = include_test_file!("list-item.rtf"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` which comes from the expansion of the macro `include_test_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../resources/tests/file-with-image.rtf`: No such file or directory (os error 2) [INFO] [stdout] --> src/utils.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | include_str!(concat!("../resources/tests/", $filename)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/parser.rs:631:27 [INFO] [stdout] | [INFO] [stdout] 631 | let rtf_content = include_test_file!("file-with-image.rtf"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_str` which comes from the expansion of the macro `include_test_file` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ControlWord` and `Property` [INFO] [stdout] --> src/lexer.rs:166:25 [INFO] [stdout] | [INFO] [stdout] 166 | use crate::tokens::{ControlWord, Property}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rtf-parser-tt` (lib test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "1a4a8522b367b65000eb4d4f97b2481df9e56e2404862184ae033f40527023e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a4a8522b367b65000eb4d4f97b2481df9e56e2404862184ae033f40527023e2", kill_on_drop: false }` [INFO] [stdout] 1a4a8522b367b65000eb4d4f97b2481df9e56e2404862184ae033f40527023e2