[INFO] fetching crate hl7 0.0.2... [INFO] testing hl7-0.0.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate hl7 0.0.2 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate hl7 0.0.2 [INFO] finished tweaking crates.io crate hl7 0.0.2 [INFO] tweaked toml for crates.io crate hl7 0.0.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hl7 0.0.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12844f2bd1077eaa44e31d30e9d9b9835a31e3571ce517f0bfaecc8d48762a07 [INFO] running `Command { std: "docker" "start" "-a" "12844f2bd1077eaa44e31d30e9d9b9835a31e3571ce517f0bfaecc8d48762a07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12844f2bd1077eaa44e31d30e9d9b9835a31e3571ce517f0bfaecc8d48762a07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12844f2bd1077eaa44e31d30e9d9b9835a31e3571ce517f0bfaecc8d48762a07", kill_on_drop: false }` [INFO] [stdout] 12844f2bd1077eaa44e31d30e9d9b9835a31e3571ce517f0bfaecc8d48762a07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fad0ae5a1747884c463e3d213567ca247786fcb0a8a9340a461c4e9052182d19 [INFO] running `Command { std: "docker" "start" "-a" "fad0ae5a1747884c463e3d213567ca247786fcb0a8a9340a461c4e9052182d19", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling hl7 v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `ORU_R01_PATIENT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | pub_struct!(ORU_R01_PATIENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Patient` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_OBSERVATION` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_observation.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_OBSERVATION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientObservation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_RESULT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_result.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_RESULT { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_VISIT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_visit.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_VISIT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01` should have an upper camel case name [INFO] [stdout] --> src/messages/oru_r01.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub_struct!(ORU_R01 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `OruR01` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oru` [INFO] [stdout] --> src/messages/oru_r01.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_oru` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msh` [INFO] [stdout] --> src/messages/oru_r01.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let msh: Option = lines.next().map(|msh| msh.parse::().unwrap()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/messages/oru_r01.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `component_delim` [INFO] [stdout] --> src/segments/msh.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let component_delim = &encoding_chars[0..1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `escape_char` [INFO] [stdout] --> src/segments/msh.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let escape_char = &encoding_chars[2..3]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_escape_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_component_delim` [INFO] [stdout] --> src/segments/msh.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let sub_component_delim = &encoding_chars[3..4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/lib.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.48s [INFO] running `Command { std: "docker" "inspect" "fad0ae5a1747884c463e3d213567ca247786fcb0a8a9340a461c4e9052182d19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fad0ae5a1747884c463e3d213567ca247786fcb0a8a9340a461c4e9052182d19", kill_on_drop: false }` [INFO] [stdout] fad0ae5a1747884c463e3d213567ca247786fcb0a8a9340a461c4e9052182d19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c5386c56ef5a448a8bf4b5e509120d1306c4ad95d2319de1f11d31a53a89e638 [INFO] running `Command { std: "docker" "start" "-a" "c5386c56ef5a448a8bf4b5e509120d1306c4ad95d2319de1f11d31a53a89e638", kill_on_drop: false }` [INFO] [stderr] Compiling hl7 v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `ORU_R01_PATIENT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | pub_struct!(ORU_R01_PATIENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Patient` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_OBSERVATION` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_observation.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_OBSERVATION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientObservation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_RESULT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_result.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_RESULT { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_VISIT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_visit.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_VISIT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01` should have an upper camel case name [INFO] [stdout] --> src/messages/oru_r01.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub_struct!(ORU_R01 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `OruR01` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oru` [INFO] [stdout] --> src/messages/oru_r01.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_oru` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msh` [INFO] [stdout] --> src/messages/oru_r01.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let msh: Option = lines.next().map(|msh| msh.parse::().unwrap()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/messages/oru_r01.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `component_delim` [INFO] [stdout] --> src/segments/msh.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let component_delim = &encoding_chars[0..1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `escape_char` [INFO] [stdout] --> src/segments/msh.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let escape_char = &encoding_chars[2..3]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_escape_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_component_delim` [INFO] [stdout] --> src/segments/msh.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let sub_component_delim = &encoding_chars[3..4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/lib.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | pub_struct!(ORU_R01_PATIENT { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Patient` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_OBSERVATION` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_observation.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_OBSERVATION { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientObservation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_PATIENT_RESULT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_patient_result.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_PATIENT_RESULT { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientResult` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01_VISIT` should have an upper camel case name [INFO] [stdout] --> src/groups/oru_r01_visit.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | pub_struct!(ORU_R01_VISIT { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ORU_R01` should have an upper camel case name [INFO] [stdout] --> src/messages/oru_r01.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub_struct!(ORU_R01 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `OruR01` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `oru` [INFO] [stdout] --> src/messages/oru_r01.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_oru` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msh` [INFO] [stdout] --> src/messages/oru_r01.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let msh: Option = lines.next().map(|msh| msh.parse::().unwrap()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msh` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/messages/oru_r01.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | let mut oru = ORU_R01::default(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `component_delim` [INFO] [stdout] --> src/segments/msh.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let component_delim = &encoding_chars[0..1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `escape_char` [INFO] [stdout] --> src/segments/msh.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let escape_char = &encoding_chars[2..3]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_escape_char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sub_component_delim` [INFO] [stdout] --> src/segments/msh.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let sub_component_delim = &encoding_chars[3..4]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_component_delim` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/lib.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parsed` [INFO] [stdout] --> src/lib.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let parsed: ORU_R01 = msg.parse().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/segments/mod.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | #[derive(Debug, Fail)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_SegmentParsingError` [INFO] [stdout] 76 | pub enum SegmentParsingError { [INFO] [stdout] | ------------------- `SegmentParsingError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `msg` should have an upper case name [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | const msg: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 20 - const msg: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stdout] 20 + const MSG: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.77s [INFO] running `Command { std: "docker" "inspect" "c5386c56ef5a448a8bf4b5e509120d1306c4ad95d2319de1f11d31a53a89e638", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5386c56ef5a448a8bf4b5e509120d1306c4ad95d2319de1f11d31a53a89e638", kill_on_drop: false }` [INFO] [stdout] c5386c56ef5a448a8bf4b5e509120d1306c4ad95d2319de1f11d31a53a89e638 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0294a899317c357010335b8ddd37abf52dbf934491b111cb1317ae47bb6aa636 [INFO] running `Command { std: "docker" "start" "-a" "0294a899317c357010335b8ddd37abf52dbf934491b111cb1317ae47bb6aa636", kill_on_drop: false }` [INFO] [stderr] warning: type `ORU_R01_PATIENT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | pub_struct!(ORU_R01_PATIENT { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Patient` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_PATIENT_OBSERVATION` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient_observation.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_PATIENT_OBSERVATION { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientObservation` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_PATIENT_RESULT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient_result.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_PATIENT_RESULT { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientResult` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_VISIT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_visit.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_VISIT { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Visit` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01` should have an upper camel case name [INFO] [stderr] --> src/messages/oru_r01.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub_struct!(ORU_R01 { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `OruR01` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:11:38 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `oru` [INFO] [stderr] --> src/messages/oru_r01.rs:19:17 [INFO] [stderr] | [INFO] [stderr] 19 | let mut oru = ORU_R01::default(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_oru` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msh` [INFO] [stderr] --> src/messages/oru_r01.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let msh: Option = lines.next().map(|msh| msh.parse::().unwrap()); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msh` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/messages/oru_r01.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | let mut oru = ORU_R01::default(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `component_delim` [INFO] [stderr] --> src/segments/msh.rs:61:13 [INFO] [stderr] | [INFO] [stderr] 61 | let component_delim = &encoding_chars[0..1]; [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_component_delim` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `escape_char` [INFO] [stderr] --> src/segments/msh.rs:63:13 [INFO] [stderr] | [INFO] [stderr] 63 | let escape_char = &encoding_chars[2..3]; [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_escape_char` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sub_component_delim` [INFO] [stderr] --> src/segments/msh.rs:64:13 [INFO] [stderr] | [INFO] [stderr] 64 | let sub_component_delim = &encoding_chars[3..4]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sub_component_delim` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `input` [INFO] [stderr] --> src/lib.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn parse(input: &str) -> Vec> { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/segments/mod.rs:75:17 [INFO] [stderr] | [INFO] [stderr] 75 | #[derive(Debug, Fail)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Fail` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_SegmentParsingError` [INFO] [stderr] 76 | pub enum SegmentParsingError { [INFO] [stderr] | ------------------- `SegmentParsingError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/segments/mod.rs:75:17 [INFO] [stderr] | [INFO] [stderr] 75 | #[derive(Debug, Fail)] [INFO] [stderr] | ^--- [INFO] [stderr] | | [INFO] [stderr] | `Display` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_SegmentParsingError` [INFO] [stderr] 76 | pub enum SegmentParsingError { [INFO] [stderr] | ------------------- `SegmentParsingError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `parsed` [INFO] [stderr] --> src/lib.rs:69:13 [INFO] [stderr] | [INFO] [stderr] 69 | let parsed: ORU_R01 = msg.parse().unwrap(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed` [INFO] [stderr] [INFO] [stderr] warning: constant `msg` should have an upper case name [INFO] [stderr] --> src/lib.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | const msg: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 20 - const msg: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stderr] 20 + const MSG: &str = r#"MSH|^~\&|LAB|MYFAC|LAB||201411130917||ORU^R01|3216598|D|2.3|||AL|NE| [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `hl7` (lib) generated 15 warnings (run `cargo fix --lib -p hl7` to apply 2 suggestions) [INFO] [stderr] warning: `hl7` (lib test) generated 17 warnings (15 duplicates) (run `cargo fix --lib -p hl7 --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hl7-7a4cefa6b4ac15e8) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test tests::test_parse ... ok [INFO] [stdout] test tests::test_parse_msh ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests hl7 [INFO] [stderr] warning: type `ORU_R01_PATIENT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | pub_struct!(ORU_R01_PATIENT { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Patient` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_PATIENT_OBSERVATION` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient_observation.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_PATIENT_OBSERVATION { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientObservation` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_PATIENT_RESULT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_patient_result.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_PATIENT_RESULT { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01PatientResult` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01_VISIT` should have an upper camel case name [INFO] [stderr] --> src/groups/oru_r01_visit.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | pub_struct!(ORU_R01_VISIT { [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OruR01Visit` [INFO] [stderr] [INFO] [stderr] warning: type `ORU_R01` should have an upper camel case name [INFO] [stderr] --> src/messages/oru_r01.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub_struct!(ORU_R01 { [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `OruR01` [INFO] [stderr] [INFO] [stderr] warning: 5 warnings emitted [INFO] [stderr] [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" "0294a899317c357010335b8ddd37abf52dbf934491b111cb1317ae47bb6aa636", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0294a899317c357010335b8ddd37abf52dbf934491b111cb1317ae47bb6aa636", kill_on_drop: false }` [INFO] [stdout] 0294a899317c357010335b8ddd37abf52dbf934491b111cb1317ae47bb6aa636