[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#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/askepen/idml-to-pdf on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "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-58/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" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-getters v0.2.0 [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-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c75a36b700cb6ba4622061bdffc051d42e6a5f78bc000e2f565c25feb80ef68 [INFO] running `Command { std: "docker" "start" "-a" "3c75a36b700cb6ba4622061bdffc051d42e6a5f78bc000e2f565c25feb80ef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c75a36b700cb6ba4622061bdffc051d42e6a5f78bc000e2f565c25feb80ef68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c75a36b700cb6ba4622061bdffc051d42e6a5f78bc000e2f565c25feb80ef68", kill_on_drop: false }` [INFO] [stdout] 3c75a36b700cb6ba4622061bdffc051d42e6a5f78bc000e2f565c25feb80ef68 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28a62b7a7ae18ff1b2d7070b6a42c43efc118c0ca809f409915e31919fbfebce [INFO] running `Command { std: "docker" "start" "-a" "28a62b7a7ae18ff1b2d7070b6a42c43efc118c0ca809f409915e31919fbfebce", kill_on_drop: false }` [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] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling gcc v0.3.55 [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] Compiling libharu-sys v0.0.1 [INFO] [stderr] Compiling bzip2-sys v0.1.9+1.0.8 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling derive-getters v0.2.0 [INFO] [stderr] Checking thiserror v1.0.21 [INFO] [stderr] Checking serde v1.0.117 [INFO] [stderr] Checking flate2 v1.0.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking aho-corasick v0.7.14 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking zip v0.5.8 [INFO] [stderr] Checking zip-extract v0.1.0 [INFO] [stderr] Checking regex v1.4.1 [INFO] [stderr] Checking quick-xml v0.20.0 [INFO] [stderr] Checking idml_to_pdf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field is never read: `attributes` [INFO] [stdout] --> src/idml_parser/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `backing_story` [INFO] [stdout] --> src/idml_parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | backing_story: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mapping` [INFO] [stdout] --> src/idml_parser/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | mapping: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tags` [INFO] [stdout] --> src/idml_parser/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | tags: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `container` [INFO] [stdout] --> src/idml_parser/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | container: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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: 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 is never read: `attributes` [INFO] [stdout] --> src/idml_parser/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | attributes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `backing_story` [INFO] [stdout] --> src/idml_parser/mod.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | backing_story: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mapping` [INFO] [stdout] --> src/idml_parser/mod.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | mapping: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tags` [INFO] [stdout] --> src/idml_parser/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | tags: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `container` [INFO] [stdout] --> src/idml_parser/mod.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | container: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [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/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: 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: 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: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 56s [INFO] running `Command { std: "docker" "inspect" "28a62b7a7ae18ff1b2d7070b6a42c43efc118c0ca809f409915e31919fbfebce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28a62b7a7ae18ff1b2d7070b6a42c43efc118c0ca809f409915e31919fbfebce", kill_on_drop: false }` [INFO] [stdout] 28a62b7a7ae18ff1b2d7070b6a42c43efc118c0ca809f409915e31919fbfebce