[INFO] fetching crate require_unsafe_in_body 0.3.2...
[INFO] testing require_unsafe_in_body-0.3.2 against 1.100.0-beta.1+cargoflags=--release for beta-release-1.100-2
[INFO] extracting crate require_unsafe_in_body 0.3.2 into /workspace/builds/worker-2-tc2/source
[INFO] started tweaking crates.io crate require_unsafe_in_body 0.3.2
[INFO] finished tweaking crates.io crate require_unsafe_in_body 0.3.2
[INFO] tweaked toml for crates.io crate require_unsafe_in_body 0.3.2 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate require_unsafe_in_body 0.3.2 on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "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" "+1.100.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 37 packages to highest compatible versions
[INFO] [stderr]       Adding pretty_assertions v0.6.1 (available: v1.4.1)
[INFO] [stderr]       Adding syn v1.0.109 (available: v3.0.9)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7
[INFO] running `Command { std: "docker" "start" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling func_wrap v0.1.3
[INFO] [stderr]    Compiling require_unsafe_in_body v0.3.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 8.30s
[INFO] running `Command { std: "docker" "inspect" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling target-tuple v1.0.2
[INFO] [stderr]    Compiling unicode-ident v1.0.27
[INFO] [stderr]    Compiling winnow v1.0.4
[INFO] [stderr]    Compiling toml_writer v1.1.3+spec-1.1.0
[INFO] [stderr]    Compiling serde_json v1.0.154
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling serde_spanned v1.1.2
[INFO] [stderr]    Compiling toml_datetime v1.1.2+spec-1.1.0
[INFO] [stderr]    Compiling serde v1.0.229
[INFO] [stderr]    Compiling require_unsafe_in_body v0.3.2 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling glob v0.3.4
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling ansi_term v0.11.0
[INFO] [stderr]    Compiling difference v2.0.0
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stderr]    Compiling pretty_assertions v0.6.1
[INFO] [stderr]    Compiling toml_parser v1.1.5+spec-1.1.0
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling toml v1.1.8+spec-1.1.0
[INFO] [stderr]    Compiling trybuild v1.0.122
[INFO] [stderr]    Compiling func_wrap v0.1.3
[INFO] [stdout] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stdout]   --> tests/compile_success/associated_types.rs:11:13
[INFO] [stdout]    |
[INFO] [stdout] 11 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               null pointer originates from here
[INFO] [stdout]    |
[INFO] [stdout]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stdout]    = note: `#[warn(invalid_null_arguments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stdout]   --> tests/compile_success/associated_types.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               null pointer originates from here
[INFO] [stdout]    |
[INFO] [stdout]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stdout]   --> tests/compile_success/associated_types.rs:29:13
[INFO] [stdout]    |
[INFO] [stdout] 29 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stdout]    |                               |
[INFO] [stdout]    |                               null pointer originates from here
[INFO] [stdout]    |
[INFO] [stdout]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 35.16s
[INFO] running `Command { std: "docker" "inspect" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stderr]   --> tests/compile_success/associated_types.rs:11:13
[INFO] [stderr]    |
[INFO] [stderr] 11 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               null pointer originates from here
[INFO] [stderr]    |
[INFO] [stderr]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stderr]    = note: `#[warn(invalid_null_arguments)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stderr]   --> tests/compile_success/associated_types.rs:20:13
[INFO] [stderr]    |
[INFO] [stderr] 20 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               null pointer originates from here
[INFO] [stderr]    |
[INFO] [stderr]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stderr] 
[INFO] [stderr] warning: calling this function with a null pointer is undefined behavior, even if the result of the function is unused
[INFO] [stderr]   --> tests/compile_success/associated_types.rs:29:13
[INFO] [stderr]    |
[INFO] [stderr] 29 |             ::core::ptr::read(::core::ptr::null())
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^-------------------^
[INFO] [stderr]    |                               |
[INFO] [stderr]    |                               null pointer originates from here
[INFO] [stderr]    |
[INFO] [stderr]    = help: for more information, visit <https://doc.rust-lang.org/std/ptr/index.html> and <https://doc.rust-lang.org/reference/behavior-considered-undefined.html>
[INFO] [stderr] 
[INFO] [stderr] warning: `require_unsafe_in_body` (test "compile_success") generated 3 warnings
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.06s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/build/require_unsafe_in_body/a1f2b28535eb91fb/out/require_unsafe_in_body-a1f2b28535eb91fb)
[INFO] [stdout] 
[INFO] [stderr]      Running tests/compile_fail.rs (/opt/rustwide/target/release/build/require_unsafe_in_body/6d8113014a9f3021/out/compile_fail-6d8113014a9f3021)
[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 1 test
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling unicode-ident v1.0.27
[INFO] [stderr]     Checking ansi_term v0.11.0
[INFO] [stderr]     Checking difference v2.0.0
[INFO] [stderr]     Checking pretty_assertions v0.6.1
[INFO] [stderr]     Checking func_wrap v0.1.3
[INFO] [stderr]    Compiling require_unsafe_in_body v0.3.2 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking require_unsafe_in_body-tests v0.0.0 (/opt/rustwide/target/tests/trybuild/require_unsafe_in_body)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.65s
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stdout] test compile_fail ... FAILED
[INFO] [stderr] test tests/compile_fail/body_on_method.rs ... mismatch
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stdout] failures:
[INFO] [stderr] EXPECTED:
[INFO] [stdout] 
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stdout] ---- compile_fail stdout ----
[INFO] [stderr] error: Missing `#[require_unsafe_in_bodies]` on the enscoping `trait` or `impl` block.
[INFO] [stdout] 
[INFO] [stderr]             
[INFO] [stdout] thread 'compile_fail' (785) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.122/src/run.rs:103:13:
[INFO] [stderr]   --> $DIR/body_on_method.rs:10:5
[INFO] [stdout] 3 of 3 tests failed
[INFO] [stderr]    |
[INFO] [stdout] stack backtrace:
[INFO] [stderr] 10 |     #[require_unsafe_in_body]
[INFO] [stdout]    0:     0x58dd70022ba1 - <<std[617be2ca0a6fd877]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[a373ad73a504971]::fmt::Display>::fmt
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    1:     0x58dd70038e8a - core[a373ad73a504971]::fmt::write
[INFO] [stderr]    |
[INFO] [stdout]    2:     0x58dd700273ec - <alloc[2e1b2a31b91974c5]::vec::Vec<u8> as core[a373ad73a504971]::io::write::Write>::write_fmt
[INFO] [stderr]    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]    3:     0x58dd6fffc006 - std[617be2ca0a6fd877]::panicking::default_hook::{closure#0}
[INFO] [stderr] 
[INFO] [stdout]    4:     0x58dd7001a149 - std[617be2ca0a6fd877]::panicking::default_hook
[INFO] [stderr] error[E0599]: no method named `my_read` found for struct `Foo<()>` in the current scope
[INFO] [stdout]    5:     0x58dd6ffb3750 - test[aada8e7e76ba119b]::test_main_inner::{closure#0}
[INFO] [stderr]   --> $DIR/body_on_method.rs:28:22
[INFO] [stdout]    6:     0x58dd7001a302 - std[617be2ca0a6fd877]::panicking::panic_with_hook
[INFO] [stderr]    |
[INFO] [stdout]    7:     0x58dd6fffc0b2 - std[617be2ca0a6fd877]::panicking::panic_handler::{closure#0}
[INFO] [stderr] 5  | / struct Foo<T> (
[INFO] [stdout]    8:     0x58dd6fff4909 - std[617be2ca0a6fd877]::sys::backtrace::__rust_end_short_backtrace::<std[617be2ca0a6fd877]::panicking::panic_handler::{closure#0}, !>
[INFO] [stderr] 6  | |     ::core::marker::PhantomData<T>,
[INFO] [stdout]    9:     0x58dd6fffccbd - __rustc[ea4f61d10b84890b]::rust_begin_unwind
[INFO] [stderr] 7  | | );
[INFO] [stdout]   10:     0x58dd700395fc - core[a373ad73a504971]::panicking::panic_fmt
[INFO] [stderr]    | |__- method `my_read` not found for this
[INFO] [stdout]   11:     0x58dd6ff0667b - <trybuild[4338c63f3696d470]::Runner>::run
[INFO] [stderr] ...
[INFO] [stdout]   12:     0x58dd6ff098f0 - <trybuild[4338c63f3696d470]::TestCases as core[a373ad73a504971]::ops::drop::Drop>::drop
[INFO] [stderr] 28 |           unsafe { foo.my_read(&x) },
[INFO] [stdout]   13:     0x58dd6feffe78 - compile_fail[12c9c1f3ba5af9c8]::compile_fail
[INFO] [stderr]    |                        ^^^^^^^ method not found in `Foo<()>`
[INFO] [stdout]   14:     0x58dd6ff00079 - <compile_fail[12c9c1f3ba5af9c8]::compile_fail::{closure#0} as core[a373ad73a504971]::ops::function::FnOnce<()>>::call_once
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stdout]   15:     0x58dd6ffa6b9b - test[aada8e7e76ba119b]::__rust_begin_short_backtrace::<core[a373ad73a504971]::result::Result<(), alloc[2e1b2a31b91974c5]::string::String>, fn() -> core[a373ad73a504971]::result::Result<(), alloc[2e1b2a31b91974c5]::string::String>>
[INFO] [stderr] 
[INFO] [stdout]   16:     0x58dd6ffb3d75 - test[aada8e7e76ba119b]::run_test::{closure#0}
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stdout]   17:     0x58dd6ffad664 - std[617be2ca0a6fd877]::sys::backtrace::__rust_begin_short_backtrace::<test[aada8e7e76ba119b]::run_test::{closure#1}, ()>
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stdout]   18:     0x58dd6ffb6e02 - <std[617be2ca0a6fd877]::thread::lifecycle::spawn_unchecked<test[aada8e7e76ba119b]::run_test::{closure#1}, ()>::{closure#1} as core[a373ad73a504971]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stderr] error: Missing `#[require_unsafe_in_bodies]` on the enscoping `trait` or `impl` block.
[INFO] [stdout]   19:     0x58dd70021dff - <std[617be2ca0a6fd877]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stderr] 
[INFO] [stdout]   20:     0x7c267162ddfa - <unknown>
[INFO] [stderr]   --> tests/compile_fail/body_on_method.rs:10:5
[INFO] [stdout]   21:     0x7c26716c13d4 - clone
[INFO] [stderr]    |
[INFO] [stdout]   22:                0x0 - <unknown>
[INFO] [stderr] 10 |     #[require_unsafe_in_body]
[INFO] [stdout] 
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stderr]    |
[INFO] [stdout] failures:
[INFO] [stderr]    = note: this error originates in the attribute macro `require_unsafe_in_body` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]     compile_fail
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stderr] error[E0599]: no method named `my_read` found for struct `Foo<T>` in the current scope
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.57s
[INFO] [stderr]   --> tests/compile_fail/body_on_method.rs:28:22
[INFO] [stdout] 
[INFO] [stderr]    |
[INFO] [stderr]  5 | struct Foo<T> (
[INFO] [stderr]    | ------------- method `my_read` not found for this struct
[INFO] [stderr] ...
[INFO] [stderr] 28 |         unsafe { foo.my_read(&x) },
[INFO] [stderr]    |                      ^^^^^^^ method not found in `Foo<()>`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/body_on_method_2.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: Missing `#[require_unsafe_in_bodies]` on the enscoping `trait` or `impl` block.
[INFO] [stderr]             
[INFO] [stderr]   --> $DIR/body_on_method_2.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 18 |     #[require_unsafe_in_body]
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0046]: not all trait items implemented, missing: `my_read`
[INFO] [stderr]   --> $DIR/body_on_method_2.rs:17:1
[INFO] [stderr]    |
[INFO] [stderr] 10 | /     unsafe
[INFO] [stderr] 11 | |     fn my_read<U> (self: &'_ Self, p: *const U) -> U
[INFO] [stderr] 12 | |     where
[INFO] [stderr] 13 | |         U : Copy,
[INFO] [stderr] 14 | |     ;
[INFO] [stderr]    | |_____- `my_read` from trait
[INFO] [stderr] ...
[INFO] [stderr] 17 |   impl<T> MyRead for Foo<T> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `my_read` in implementation
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: Missing `#[require_unsafe_in_bodies]` on the enscoping `trait` or `impl` block.
[INFO] [stderr] 
[INFO] [stderr]   --> tests/compile_fail/body_on_method_2.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 18 |     #[require_unsafe_in_body]
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error originates in the attribute macro `require_unsafe_in_body` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error[E0046]: not all trait items implemented, missing: `my_read`
[INFO] [stderr]   --> tests/compile_fail/body_on_method_2.rs:17:1
[INFO] [stderr]    |
[INFO] [stderr] 10 | /     unsafe
[INFO] [stderr] 11 | |     fn my_read<U> (self: &'_ Self, p: *const U) -> U
[INFO] [stderr] 12 | |     where
[INFO] [stderr] 13 | |         U : Copy,
[INFO] [stderr] 14 | |     ;
[INFO] [stderr]    | |_____- `my_read` from trait
[INFO] [stderr] ...
[INFO] [stderr] 17 |   impl<T> MyRead for Foo<T> {
[INFO] [stderr]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^ missing `my_read` in implementation
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/readme.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
[INFO] [stderr]   --> $DIR/readme.rs:11:24
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let at_i: *mut T = slice.get_unchecked_mut(i);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
[INFO] [stderr]   --> $DIR/readme.rs:12:24
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let at_j: *mut T = slice.get_unchecked_mut(j);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
[INFO] [stderr]   --> $DIR/readme.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 13 |     ::core::ptr::swap_nonoverlapping(at_i, at_j, 1);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0133`.
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error[E0133]: call to unsafe function `core::slice::<impl [T]>::get_unchecked_mut` is unsafe and requires unsafe function or block
[INFO] [stderr]   --> tests/compile_fail/readme.rs:11:24
[INFO] [stderr]    |
[INFO] [stderr]  6 | #[require_unsafe_in_body]
[INFO] [stderr]    | ------------------------- items do not inherit unsafety from separate enclosing items
[INFO] [stderr] ...
[INFO] [stderr] 11 |     let at_i: *mut T = slice.get_unchecked_mut(i);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] error[E0133]: call to unsafe function `core::slice::<impl [T]>::get_unchecked_mut` is unsafe and requires unsafe function or block
[INFO] [stderr]   --> tests/compile_fail/readme.rs:12:24
[INFO] [stderr]    |
[INFO] [stderr]  6 | #[require_unsafe_in_body]
[INFO] [stderr]    | ------------------------- items do not inherit unsafety from separate enclosing items
[INFO] [stderr] ...
[INFO] [stderr] 12 |     let at_j: *mut T = slice.get_unchecked_mut(j);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] error[E0133]: call to unsafe function `swap_nonoverlapping` is unsafe and requires unsafe function or block
[INFO] [stderr]   --> tests/compile_fail/readme.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr]  6 | #[require_unsafe_in_body]
[INFO] [stderr]    | ------------------------- items do not inherit unsafety from separate enclosing items
[INFO] [stderr] ...
[INFO] [stderr] 13 |     ::core::ptr::swap_nonoverlapping(at_i, at_j, 1);
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]    |
[INFO] [stderr]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] error: test failed, to rerun pass `--test compile_fail`
[INFO] running `Command { std: "docker" "inspect" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7", kill_on_drop: false }`
[INFO] [stdout] 85115bdf081d06a0693cb2ce70388785a462bd8fe6ff5058d4bad500e44ad6b7
