[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] testing askepen/idml-to-pdf against 1.59.0 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf" "/workspace/builds/worker-25/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-25/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/askepen/idml-to-pdf on toolchain 1.59.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.59.0" "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-25/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" "+1.59.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78137bf1ae06a7d3ba5d60519cb4e874aa8d44c8f6ae1b86ab7a62fcd8f5ac0b [INFO] running `Command { std: "docker" "start" "-a" "78137bf1ae06a7d3ba5d60519cb4e874aa8d44c8f6ae1b86ab7a62fcd8f5ac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78137bf1ae06a7d3ba5d60519cb4e874aa8d44c8f6ae1b86ab7a62fcd8f5ac0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78137bf1ae06a7d3ba5d60519cb4e874aa8d44c8f6ae1b86ab7a62fcd8f5ac0b", kill_on_drop: false }` [INFO] [stdout] 78137bf1ae06a7d3ba5d60519cb4e874aa8d44c8f6ae1b86ab7a62fcd8f5ac0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93f230b71e3e31a8b4f068884b58592d960acad3074c0aa84e63ed89cc1e1b98 [INFO] running `Command { std: "docker" "start" "-a" "93f230b71e3e31a8b4f068884b58592d960acad3074c0aa84e63ed89cc1e1b98", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling cc v1.0.61 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling aho-corasick v0.7.14 [INFO] [stderr] Compiling libharu-sys v0.0.1 [INFO] [stderr] Compiling bzip2-sys v0.1.9+1.0.8 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling flate2 v1.0.14 [INFO] [stderr] Compiling dirs-sys v0.3.5 [INFO] [stderr] Compiling dirs v3.0.1 [INFO] [stderr] Compiling regex v1.4.1 [INFO] [stderr] Compiling bzip2 v0.3.3 [INFO] [stderr] Compiling thiserror-impl v1.0.21 [INFO] [stderr] Compiling derive-getters v0.2.0 [INFO] [stderr] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling zip v0.5.8 [INFO] [stderr] Compiling zip-extract v0.1.0 [INFO] [stderr] Compiling quick-xml v0.20.0 [INFO] [stderr] Compiling 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: 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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 27.94s [INFO] running `Command { std: "docker" "inspect" "93f230b71e3e31a8b4f068884b58592d960acad3074c0aa84e63ed89cc1e1b98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93f230b71e3e31a8b4f068884b58592d960acad3074c0aa84e63ed89cc1e1b98", kill_on_drop: false }` [INFO] [stdout] 93f230b71e3e31a8b4f068884b58592d960acad3074c0aa84e63ed89cc1e1b98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] df0afed9c62f914e76e4bad8a7bdaf3ad11e1d87255a0b4a674279ba85b15cbe [INFO] running `Command { std: "docker" "start" "-a" "df0afed9c62f914e76e4bad8a7bdaf3ad11e1d87255a0b4a674279ba85b15cbe", kill_on_drop: false }` [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] [stderr] Compiling idml_to_pdf v0.1.0 (/opt/rustwide/workdir) [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: 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: 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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 8.94s [INFO] running `Command { std: "docker" "inspect" "df0afed9c62f914e76e4bad8a7bdaf3ad11e1d87255a0b4a674279ba85b15cbe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df0afed9c62f914e76e4bad8a7bdaf3ad11e1d87255a0b4a674279ba85b15cbe", kill_on_drop: false }` [INFO] [stdout] df0afed9c62f914e76e4bad8a7bdaf3ad11e1d87255a0b4a674279ba85b15cbe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-25/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+1.59.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3f003c6b5e84ecd0322384de0d635b279c5288f3cda10cb5ecc97afd11228c7a [INFO] running `Command { std: "docker" "start" "-a" "3f003c6b5e84ecd0322384de0d635b279c5288f3cda10cb5ecc97afd11228c7a", kill_on_drop: false }` [INFO] [stderr] warning: field is never read: `attributes` [INFO] [stderr] --> src/idml_parser/mod.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | attributes: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `backing_story` [INFO] [stderr] --> src/idml_parser/mod.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | backing_story: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mapping` [INFO] [stderr] --> src/idml_parser/mod.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | mapping: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `tags` [INFO] [stderr] --> src/idml_parser/mod.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | tags: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `container` [INFO] [stderr] --> src/idml_parser/mod.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 60 | container: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:63:64 [INFO] [stderr] | [INFO] [stderr] 63 | ... CString::new("Helvetica").unwrap().as_ptr(), [INFO] [stderr] | ---------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:138:72 [INFO] [stderr] | [INFO] [stderr] 138 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stderr] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:143:72 [INFO] [stderr] | [INFO] [stderr] 143 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stderr] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:148:72 [INFO] [stderr] | [INFO] [stderr] 148 | CString::new(font_path.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stderr] | -------------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:157:70 [INFO] [stderr] | [INFO] [stderr] 157 | CString::new(acm.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stderr] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/font_manager.rs:158:70 [INFO] [stderr] | [INFO] [stderr] 158 | CString::new(pfb.to_str().unwrap()).unwrap().as_ptr(), [INFO] [stderr] | -------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/page_items/textframe.rs:302:75 [INFO] [stderr] | [INFO] [stderr] 302 | ... CString::new(text_remaining.clone()).unwrap().as_ptr(), [INFO] [stderr] | --------------------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/pdf_printer/page_items/textframe.rs:313:70 [INFO] [stderr] | [INFO] [stderr] 313 | ... CString::new(text_to_print).unwrap().as_ptr(), [INFO] [stderr] | ------------------------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/pdf_printer/page_items/textframe.rs:135:29 [INFO] [stderr] | [INFO] [stderr] 135 | / ... &self.render_paragraph_style( [INFO] [stderr] 136 | | ... p_style, [INFO] [stderr] 137 | | ... &render_properties, [INFO] [stderr] 138 | | ... idml_package.resources(), [INFO] [stderr] ... | [INFO] [stderr] 142 | | ... &mut has_offset, [INFO] [stderr] 143 | | ... )?; [INFO] [stderr] | |________________________^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 135 | let _ = &self.render_paragraph_style( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/pdf_printer/page_items/textframe.rs:183:17 [INFO] [stderr] | [INFO] [stderr] 183 | / &self.render_character_style( [INFO] [stderr] 184 | | c_style, [INFO] [stderr] 185 | | &render_properties, [INFO] [stderr] 186 | | idml_resources, [INFO] [stderr] ... | [INFO] [stderr] 190 | | has_offset, [INFO] [stderr] 191 | | )?; [INFO] [stderr] | |__________________^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 183 | let _ = &self.render_character_style( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/pdf_printer/page_items/textframe.rs:233:17 [INFO] [stderr] | [INFO] [stderr] 233 | / &self.render_story_content( [INFO] [stderr] 234 | | content, [INFO] [stderr] 235 | | &render_properties, [INFO] [stderr] 236 | | parent_transform, [INFO] [stderr] ... | [INFO] [stderr] 239 | | has_offset, [INFO] [stderr] 240 | | ); [INFO] [stderr] | |_________________^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 233 | let _ = &self.render_story_content( [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `idml_to_pdf` (lib) generated 16 warnings [INFO] [stderr] warning: `idml_to_pdf` (lib test) generated 16 warnings (16 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/idml_to_pdf-6841a71d2dd3a4b0) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/idml_to_pdf-722ca150f9edd74e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests idml_to_pdf [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3f003c6b5e84ecd0322384de0d635b279c5288f3cda10cb5ecc97afd11228c7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3f003c6b5e84ecd0322384de0d635b279c5288f3cda10cb5ecc97afd11228c7a", kill_on_drop: false }` [INFO] [stdout] 3f003c6b5e84ecd0322384de0d635b279c5288f3cda10cb5ecc97afd11228c7a