[INFO] fetching crate tree_decorator 0.1.2... [INFO] checking tree_decorator-0.1.2 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate tree_decorator 0.1.2 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate tree_decorator 0.1.2 [INFO] finished tweaking crates.io crate tree_decorator 0.1.2 [INFO] tweaked toml for crates.io crate tree_decorator 0.1.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tree_decorator 0.1.2 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 35 packages to latest compatible versions [INFO] [stderr] Adding simple_logger v1.16.0 (available: v5.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bf25d4dbaa663530d2f85f56aff7d05590dec75ea194d8cf2fc60470246dc2f [INFO] running `Command { std: "docker" "start" "-a" "5bf25d4dbaa663530d2f85f56aff7d05590dec75ea194d8cf2fc60470246dc2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bf25d4dbaa663530d2f85f56aff7d05590dec75ea194d8cf2fc60470246dc2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bf25d4dbaa663530d2f85f56aff7d05590dec75ea194d8cf2fc60470246dc2f", kill_on_drop: false }` [INFO] [stdout] 5bf25d4dbaa663530d2f85f56aff7d05590dec75ea194d8cf2fc60470246dc2f [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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 678b5fe3ff7e752b1fd87df997ffbd24bbb855f22e7330268be6e26a0dbcf3ce [INFO] running `Command { std: "docker" "start" "-a" "678b5fe3ff7e752b1fd87df997ffbd24bbb855f22e7330268be6e26a0dbcf3ce", kill_on_drop: false }` [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Checking tree_decorator v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Checking colored v1.9.4 [INFO] [stdout] warning: field `style` is never read [INFO] [stdout] --> src/element_handler.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 110 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 111 | pub representation: String, [INFO] [stdout] 112 | pub style: Style [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | &mut ELEMENT_HANDLER [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 167 | &raw mut ELEMENT_HANDLER [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | let item = crate::DECORATOR.item(crate::LEVEL, s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | let block_len = crate::DECORATOR.block_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let block_len = crate::DECORATOR.block_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | crate::DECORATOR.previous_item_block(crate::LEVEL, style) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking time v0.3.43 [INFO] [stderr] Checking simple_logger v1.16.0 [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | tree_item!(block, "Root"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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] 13 | let _ = tree_item!(block, "Root"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | tree_item!("Item A"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 15 | let _ = tree_item!("Item A"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | tree_item!("Small Description"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 16 | let _ = tree_item!("Small Description"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | tree_item!("Other Small Description"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | let _ = tree_item!("Other Small Description"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | tree_item!(last; block, "Item B"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 18 | let _ = tree_item!(last; block, "Item B"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | tree_item!("Item Ba"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 20 | let _ = tree_item!("Item Ba"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | tree_item!(block, "Item Bb"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 21 | let _ = tree_item!(block, "Item Bb"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | tree_item!(last, "Item Bba"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 23 | let _ = tree_item!(last, "Item Bba"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_items_level.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | tree_item!(last, "Item Bc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 25 | let _ = tree_item!(last, "Item Bc"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/test_output.rs:21:47 [INFO] [stdout] | [INFO] [stdout] 21 | ... if let Some(b) = &BUFFER { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 21 | if let Some(b) = &raw const BUFFER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | tree_item!(block, "Root"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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] 32 | let _ = tree_item!(block, "Root"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | tree_item!(entry, "Item A"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = tree_item!(entry, "Item A"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | tree_item!(entry: Entry::None, "Small Description"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = tree_item!(entry: Entry::None, "Small Description"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | tree_item!(dashed, "Other Small Description"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = tree_item!(dashed, "Other Small Description"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | tree_item!(last; block, "Item B"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = tree_item!(last; block, "Item B"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | tree_item!("Item Ba"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = tree_item!("Item Ba"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | tree_item!(block, "Item Bb"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = tree_item!(block, "Item Bb"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | tree_item!(last, "Item Bba"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = tree_item!(last, "Item Bba"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_output.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | tree_item!(last, "Item Bc"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 44 | let _ = tree_item!(last, "Item Bc"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/test_output.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(b) = &BUFFER { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | if let Some(b) = &raw const BUFFER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `style` is never read [INFO] [stdout] --> src/element_handler.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 110 | struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 111 | pub representation: String, [INFO] [stdout] 112 | pub style: Style [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | &mut ELEMENT_HANDLER [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 167 | &raw mut ELEMENT_HANDLER [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 40 | let item = crate::DECORATOR.item(crate::LEVEL, s); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | let block_len = crate::DECORATOR.block_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:94:25 [INFO] [stdout] | [INFO] [stdout] 94 | let block_len = crate::DECORATOR.block_length(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/element_handler.rs:119:17 [INFO] [stdout] | [INFO] [stdout] 119 | crate::DECORATOR.previous_item_block(crate::LEVEL, style) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 20 | ... if let Some(b) = &BUFFER { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(b) = &raw const BUFFER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | tree_item!(block, "Very Nested Items"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] 30 | let _ = tree_item!(block, "Very Nested Items"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | tree_item!("A"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = tree_item!("A"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | tree_item!(block, "B"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 33 | let _ = tree_item!(block, "B"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | tree_item!(block; last, "B.a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = tree_item!(block; last, "B.a"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | tree_item!("B.a.a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = tree_item!("B.a.a"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | tree_item!("B.a.b"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = tree_item!("B.a.b"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | tree_item!("B.a.c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = tree_item!("B.a.c"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | tree_item!(block, "B.a.c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = tree_item!(block, "B.a.c"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | tree_item!("B.a.c.a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = tree_item!("B.a.c.a"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | tree_item!("B.a.c.b"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = tree_item!("B.a.c.b"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | tree_item!(last, "B.a.c.c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 44 | let _ = tree_item!(last, "B.a.c.c"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | tree_item!(last, "B.a.d"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 46 | let _ = tree_item!(last, "B.a.d"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | tree_item!("C"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 50 | let _ = tree_item!("C"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | tree_item!("D"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 51 | let _ = tree_item!("D"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | tree_item!("E"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 52 | let _ = tree_item!("E"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `String::as_str` that must be used [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | tree_item!(last, "F"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 53 | let _ = tree_item!(last, "F"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> tests/test_multiple_nested_levels.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(b) = &BUFFER { [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 58 | if let Some(b) = &raw const BUFFER { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.10s [INFO] running `Command { std: "docker" "inspect" "678b5fe3ff7e752b1fd87df997ffbd24bbb855f22e7330268be6e26a0dbcf3ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "678b5fe3ff7e752b1fd87df997ffbd24bbb855f22e7330268be6e26a0dbcf3ce", kill_on_drop: false }` [INFO] [stdout] 678b5fe3ff7e752b1fd87df997ffbd24bbb855f22e7330268be6e26a0dbcf3ce