[INFO] cloning repository https://github.com/askepen/idml-to-pdf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/askepen/idml-to-pdf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4f4aa905e044414ad2e93da2ca96def3cf7a702d [INFO] checking askepen/idml-to-pdf against master#42bd138126b0a9d38d65bc9973e72de3c5b6c37f for pr-99217 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/askepen/idml-to-pdf on toolchain 42bd138126b0a9d38d65bc9973e72de3c5b6c37f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/askepen/idml-to-pdf [INFO] finished tweaking git repo https://github.com/askepen/idml-to-pdf [INFO] tweaked toml for git repo https://github.com/askepen/idml-to-pdf written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/askepen/idml-to-pdf already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zip-extract v0.1.0 [INFO] [stderr] Downloaded libharu-sys v0.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ea8ccca00ca975c346be69bc0cd0c914420823b1e7d27928c7fec7add0f8add [INFO] running `Command { std: "docker" "start" "-a" "2ea8ccca00ca975c346be69bc0cd0c914420823b1e7d27928c7fec7add0f8add", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ea8ccca00ca975c346be69bc0cd0c914420823b1e7d27928c7fec7add0f8add", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ea8ccca00ca975c346be69bc0cd0c914420823b1e7d27928c7fec7add0f8add", kill_on_drop: false }` [INFO] [stdout] 2ea8ccca00ca975c346be69bc0cd0c914420823b1e7d27928c7fec7add0f8add [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:ecb52c4cf6672b83cc996368a05b4a059042425f2b6ba9cd23a06cdead5d8d70" "/opt/rustwide/cargo-home/bin/cargo" "+42bd138126b0a9d38d65bc9973e72de3c5b6c37f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75a2b1e1867ca0521d5ee4bf4833254804aac029e775c5a7317902fabcfda494 [INFO] running `Command { std: "docker" "start" "-a" "75a2b1e1867ca0521d5ee4bf4833254804aac029e775c5a7317902fabcfda494", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.20 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling libharu-sys v0.0.1 [INFO] [stderr] Compiling bzip2-sys v0.1.9+1.0.8 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling derive-getters v0.2.0 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking zip v0.5.8 [INFO] [stderr] Checking zip-extract v0.1.0 [INFO] [stderr] Checking quick-xml v0.20.0 [INFO] [stderr] Checking idml_to_pdf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `attributes` is never read [INFO] [stdout] --> src/idml_parser/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 48 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `backing_story`, `mapping` and `tags` are never read [INFO] [stdout] --> src/idml_parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct IdmlXml { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 53 | backing_story: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 54 | mapping: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | tags: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `container` is never read [INFO] [stdout] --> src/idml_parser/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct MetaInf { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 60 | container: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:63:64 [INFO] [stdout] | [INFO] [stdout] 63 | ... CString::new("Helvetica").unwrap().as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:138:72 [INFO] [stdout] | [INFO] [stdout] 138 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:143:72 [INFO] [stdout] | [INFO] [stdout] 143 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:148:72 [INFO] [stdout] | [INFO] [stdout] 148 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:157:70 [INFO] [stdout] | [INFO] [stdout] 157 | CString::new(acm.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:158:70 [INFO] [stdout] | [INFO] [stdout] 158 | CString::new(pfb.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | / ... &self.render_paragraph_style( [INFO] [stdout] 136 | | ... p_style, [INFO] [stdout] 137 | | ... &render_properties, [INFO] [stdout] 138 | | ... idml_package.resources(), [INFO] [stdout] ... | [INFO] [stdout] 142 | | ... &mut has_offset, [INFO] [stdout] 143 | | ... )?; [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] 135 | let _ = &self.render_paragraph_style( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | / &self.render_character_style( [INFO] [stdout] 184 | | c_style, [INFO] [stdout] 185 | | &render_properties, [INFO] [stdout] 186 | | idml_resources, [INFO] [stdout] ... | [INFO] [stdout] 190 | | has_offset, [INFO] [stdout] 191 | | )?; [INFO] [stdout] | |__________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 183 | let _ = &self.render_character_style( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | / &self.render_story_content( [INFO] [stdout] 234 | | content, [INFO] [stdout] 235 | | &render_properties, [INFO] [stdout] 236 | | parent_transform, [INFO] [stdout] ... | [INFO] [stdout] 239 | | has_offset, [INFO] [stdout] 240 | | ); [INFO] [stdout] | |_________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 233 | let _ = &self.render_story_content( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:302:75 [INFO] [stdout] | [INFO] [stdout] 302 | ... CString::new(text_remaining.clone()).unwrap().as_ptr(), [INFO] [stdout] | --------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:313:70 [INFO] [stdout] | [INFO] [stdout] 313 | ... CString::new(text_to_print).unwrap().as_ptr(), [INFO] [stdout] | ------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `attributes` is never read [INFO] [stdout] --> src/idml_parser/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 47 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 48 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] = note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `backing_story`, `mapping` and `tags` are never read [INFO] [stdout] --> src/idml_parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct IdmlXml { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 53 | backing_story: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 54 | mapping: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | tags: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `container` is never read [INFO] [stdout] --> src/idml_parser/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct MetaInf { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 60 | container: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:63:64 [INFO] [stdout] | [INFO] [stdout] 63 | ... CString::new("Helvetica").unwrap().as_ptr(), [INFO] [stdout] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:138:72 [INFO] [stdout] | [INFO] [stdout] 138 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:143:72 [INFO] [stdout] | [INFO] [stdout] 143 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:148:72 [INFO] [stdout] | [INFO] [stdout] 148 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:157:70 [INFO] [stdout] | [INFO] [stdout] 157 | CString::new(acm.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/font_manager.rs:158:70 [INFO] [stdout] | [INFO] [stdout] 158 | CString::new(pfb.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stdout] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | / ... &self.render_paragraph_style( [INFO] [stdout] 136 | | ... p_style, [INFO] [stdout] 137 | | ... &render_properties, [INFO] [stdout] 138 | | ... idml_package.resources(), [INFO] [stdout] ... | [INFO] [stdout] 142 | | ... &mut has_offset, [INFO] [stdout] 143 | | ... )?; [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] 135 | let _ = &self.render_paragraph_style( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | / &self.render_character_style( [INFO] [stdout] 184 | | c_style, [INFO] [stdout] 185 | | &render_properties, [INFO] [stdout] 186 | | idml_resources, [INFO] [stdout] ... | [INFO] [stdout] 190 | | has_offset, [INFO] [stdout] 191 | | )?; [INFO] [stdout] | |__________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 183 | let _ = &self.render_character_style( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | / &self.render_story_content( [INFO] [stdout] 234 | | content, [INFO] [stdout] 235 | | &render_properties, [INFO] [stdout] 236 | | parent_transform, [INFO] [stdout] ... | [INFO] [stdout] 239 | | has_offset, [INFO] [stdout] 240 | | ); [INFO] [stdout] | |_________________^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 233 | let _ = &self.render_story_content( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:302:75 [INFO] [stdout] | [INFO] [stdout] 302 | ... CString::new(text_remaining.clone()).unwrap().as_ptr(), [INFO] [stdout] | --------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/pdf_printer/page_items/textframe.rs:313:70 [INFO] [stdout] | [INFO] [stdout] 313 | ... CString::new(text_to_print).unwrap().as_ptr(), [INFO] [stdout] | ------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.59s [ERROR] error running command: no output for 300 seconds [INFO] running `Command { std: "docker" "inspect" "75a2b1e1867ca0521d5ee4bf4833254804aac029e775c5a7317902fabcfda494", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75a2b1e1867ca0521d5ee4bf4833254804aac029e775c5a7317902fabcfda494", kill_on_drop: false }` [INFO] [stdout] 75a2b1e1867ca0521d5ee4bf4833254804aac029e775c5a7317902fabcfda494