[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.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faskepen%2Fidml-to-pdf" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/askepen/idml-to-pdf on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.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-2/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.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zip v0.5.8 [INFO] [stderr] Downloaded const_fn v0.4.2 [INFO] [stderr] Downloaded derive-getters v0.2.0 [INFO] [stderr] Downloaded quick-xml v0.20.0 [INFO] [stderr] Downloaded thiserror v1.0.21 [INFO] [stderr] Downloaded thiserror-impl v1.0.21 [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-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] c30572d27941e946250f4fb562157502fddc790c393d352f8d7b5dec5a2c61bd [INFO] running `Command { std: "docker" "start" "-a" "c30572d27941e946250f4fb562157502fddc790c393d352f8d7b5dec5a2c61bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c30572d27941e946250f4fb562157502fddc790c393d352f8d7b5dec5a2c61bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c30572d27941e946250f4fb562157502fddc790c393d352f8d7b5dec5a2c61bd", kill_on_drop: false }` [INFO] [stdout] c30572d27941e946250f4fb562157502fddc790c393d352f8d7b5dec5a2c61bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 99ee97bc14286158250dba449f1c690d20211b3a610401bd5182c6c7db306119 [INFO] running `Command { std: "docker" "start" "-a" "99ee97bc14286158250dba449f1c690d20211b3a610401bd5182c6c7db306119", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling syn v1.0.45 [INFO] [stderr] Compiling regex-syntax v0.6.20 [INFO] [stderr] Compiling bzip2-sys v0.1.9+1.0.8 [INFO] [stderr] Compiling libharu-sys v0.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.14 [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 bzip2 v0.3.3 [INFO] [stderr] Compiling regex v1.4.1 [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] Compiling thiserror v1.0.21 [INFO] [stderr] Compiling zip v0.5.8 [INFO] [stderr] Compiling zip-extract v0.1.0 [INFO] [stderr] Compiling serde v1.0.117 [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] note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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 1m 31s [INFO] running `Command { std: "docker" "inspect" "99ee97bc14286158250dba449f1c690d20211b3a610401bd5182c6c7db306119", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99ee97bc14286158250dba449f1c690d20211b3a610401bd5182c6c7db306119", kill_on_drop: false }` [INFO] [stdout] 99ee97bc14286158250dba449f1c690d20211b3a610401bd5182c6c7db306119 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2f66d7f0dcc77587caf5dbbcc4c5852f8ab312da55286c4e758e124b92e531bd [INFO] running `Command { std: "docker" "start" "-a" "2f66d7f0dcc77587caf5dbbcc4c5852f8ab312da55286c4e758e124b92e531bd", kill_on_drop: false }` [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] note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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: 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] note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:46:23 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:51:23 [INFO] [stdout] | [INFO] [stdout] 51 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/idml_parser/mod.rs:58:23 [INFO] [stdout] | [INFO] [stdout] 58 | #[derive(Deserialize, Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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 13.38s [INFO] running `Command { std: "docker" "inspect" "2f66d7f0dcc77587caf5dbbcc4c5852f8ab312da55286c4e758e124b92e531bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f66d7f0dcc77587caf5dbbcc4c5852f8ab312da55286c4e758e124b92e531bd", kill_on_drop: false }` [INFO] [stdout] 2f66d7f0dcc77587caf5dbbcc4c5852f8ab312da55286c4e758e124b92e531bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 43923ce6522a74c0df634f9f716b785e336c4c5a11b2895eed6bf8d659ef4103 [INFO] running `Command { std: "docker" "start" "-a" "43923ce6522a74c0df634f9f716b785e336c4c5a11b2895eed6bf8d659ef4103", 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] note: `Page` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/idml_parser/mod.rs:46:23 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/idml_parser/mod.rs:51:23 [INFO] [stderr] | [INFO] [stderr] 51 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/idml_parser/mod.rs:51:23 [INFO] [stderr] | [INFO] [stderr] 51 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `IdmlXml` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/idml_parser/mod.rs:51:23 [INFO] [stderr] | [INFO] [stderr] 51 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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] note: `MetaInf` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/idml_parser/mod.rs:58:23 [INFO] [stderr] | [INFO] [stderr] 58 | #[derive(Deserialize, Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [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.06s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/idml_to_pdf-2ff899f5f188f8b2) [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/idml_to_pdf-4fa0acb945a08ebe) [INFO] [stdout] [INFO] [stderr] Doc-tests idml_to_pdf [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] [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] [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" "43923ce6522a74c0df634f9f716b785e336c4c5a11b2895eed6bf8d659ef4103", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43923ce6522a74c0df634f9f716b785e336c4c5a11b2895eed6bf8d659ef4103", kill_on_drop: false }` [INFO] [stdout] 43923ce6522a74c0df634f9f716b785e336c4c5a11b2895eed6bf8d659ef4103