[INFO] fetching crate rtf-parser-tt 0.5.0... [INFO] testing rtf-parser-tt-0.5.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate rtf-parser-tt 0.5.0 into /workspace/builds/worker-0-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rtf-parser-tt 0.5.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive_internals v0.28.0 [INFO] [stderr] Downloaded tsify-macros v0.4.5 [INFO] [stderr] Downloaded gloo-utils v0.1.7 [INFO] [stderr] Downloaded tsify v0.4.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] be291e6f238abc00088278e55a72847466394b0a7ca7f043e3eca5db9c0dd8f4 [INFO] running `Command { std: "docker" "start" "-a" "be291e6f238abc00088278e55a72847466394b0a7ca7f043e3eca5db9c0dd8f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "be291e6f238abc00088278e55a72847466394b0a7ca7f043e3eca5db9c0dd8f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be291e6f238abc00088278e55a72847466394b0a7ca7f043e3eca5db9c0dd8f4", kill_on_drop: false }` [INFO] [stdout] be291e6f238abc00088278e55a72847466394b0a7ca7f043e3eca5db9c0dd8f4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ba30ae90627608fec690be17abce66d1f92be3a33746944f3ea460112458a5a [INFO] running `Command { std: "docker" "start" "-a" "5ba30ae90627608fec690be17abce66d1f92be3a33746944f3ea460112458a5a", 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.70s [INFO] running `Command { std: "docker" "inspect" "5ba30ae90627608fec690be17abce66d1f92be3a33746944f3ea460112458a5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ba30ae90627608fec690be17abce66d1f92be3a33746944f3ea460112458a5a", kill_on_drop: false }` [INFO] [stdout] 5ba30ae90627608fec690be17abce66d1f92be3a33746944f3ea460112458a5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc69663c8303a728f0a61fa13e08e0123cf70f3df1fe594b28572c794c2ed4f4 [INFO] running `Command { std: "docker" "start" "-a" "dc69663c8303a728f0a61fa13e08e0123cf70f3df1fe594b28572c794c2ed4f4", 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" "dc69663c8303a728f0a61fa13e08e0123cf70f3df1fe594b28572c794c2ed4f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc69663c8303a728f0a61fa13e08e0123cf70f3df1fe594b28572c794c2ed4f4", kill_on_drop: false }` [INFO] [stdout] dc69663c8303a728f0a61fa13e08e0123cf70f3df1fe594b28572c794c2ed4f4