html-to-markdown 2.23.4 → 2.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +9 -7
- data/ext/html-to-markdown-rb/native/Cargo.lock +21 -21
- data/ext/html-to-markdown-rb/native/Cargo.toml +1 -3
- data/lib/html_to_markdown/cli_proxy.rb +5 -2
- data/lib/html_to_markdown/version.rb +1 -1
- data/rust-vendor/cc/.cargo-checksum.json +1 -1
- data/rust-vendor/cc/.cargo_vcs_info.json +1 -1
- data/rust-vendor/cc/CHANGELOG.md +7 -0
- data/rust-vendor/cc/Cargo.lock +1 -1
- data/rust-vendor/cc/Cargo.toml +1 -1
- data/rust-vendor/cc/Cargo.toml.orig +1 -1
- data/rust-vendor/cc/src/target/generated.rs +1 -0
- data/rust-vendor/cc/src/target/parser.rs +4 -0
- data/rust-vendor/html-to-markdown-rs/README.md +1 -1
- data/rust-vendor/html-to-markdown-rs/src/convert_api.rs +90 -15
- data/rust-vendor/html-to-markdown-rs/src/converter/block/preformatted.rs +15 -4
- data/rust-vendor/html-to-markdown-rs/src/converter/handlers/graphic.rs +5 -3
- data/rust-vendor/html-to-markdown-rs/src/converter/media/svg.rs +5 -1
- data/rust-vendor/html-to-markdown-rs/src/converter/text/processing.rs +15 -8
- data/rust-vendor/html-to-markdown-rs/src/converter/utility/preprocessing.rs +43 -18
- data/rust-vendor/html-to-markdown-rs/src/lib.rs +6 -6
- data/rust-vendor/html-to-markdown-rs/src/validation.rs +68 -29
- data/rust-vendor/html-to-markdown-rs/tests/issue_190_regressions.rs +121 -0
- data/rust-vendor/html-to-markdown-rs/tests/skip_images_test.rs +21 -0
- data/rust-vendor/proc-macro2/.cargo-checksum.json +1 -1
- data/rust-vendor/proc-macro2/.cargo_vcs_info.json +1 -1
- data/rust-vendor/proc-macro2/Cargo.lock +14 -89
- data/rust-vendor/proc-macro2/Cargo.toml +1 -1
- data/rust-vendor/proc-macro2/Cargo.toml.orig +1 -1
- data/rust-vendor/proc-macro2/src/fallback.rs +37 -23
- data/rust-vendor/proc-macro2/src/lib.rs +1 -1
- data/rust-vendor/quote/.cargo-checksum.json +1 -1
- data/rust-vendor/quote/.cargo_vcs_info.json +1 -1
- data/rust-vendor/quote/.github/workflows/ci.yml +1 -1
- data/rust-vendor/quote/Cargo.lock +17 -17
- data/rust-vendor/quote/Cargo.toml +1 -1
- data/rust-vendor/quote/Cargo.toml.orig +1 -1
- data/rust-vendor/quote/src/format.rs +2 -2
- data/rust-vendor/quote/src/lib.rs +1 -1
- data/rust-vendor/quote/src/runtime.rs +2 -2
- data/rust-vendor/quote/tests/test.rs +6 -0
- data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter-separated.stderr +2 -2
- data/rust-vendor/quote/tests/ui/does-not-have-iter.stderr +2 -2
- data/rust-vendor/quote/tests/ui/not-repeatable.stderr +8 -8
- data/rust-vendor/siphasher/.cargo-checksum.json +1 -1
- data/rust-vendor/siphasher/.cargo_vcs_info.json +1 -1
- data/rust-vendor/siphasher/.github/workflows/issues.yml +17 -0
- data/rust-vendor/siphasher/COPYING +1 -1
- data/rust-vendor/siphasher/Cargo.lock +89 -0
- data/rust-vendor/siphasher/Cargo.toml +23 -13
- data/rust-vendor/siphasher/Cargo.toml.orig +1 -1
- data/rust-vendor/siphasher/src/common.rs +65 -0
- data/rust-vendor/siphasher/src/lib.rs +1 -1
- data/rust-vendor/siphasher/src/sip.rs +2 -68
- data/rust-vendor/siphasher/src/sip128.rs +15 -74
- data/rust-vendor/siphasher/src/tests.rs +1 -1
- data/rust-vendor/siphasher/src/tests128.rs +1 -1
- data/rust-vendor/uuid/.cargo-checksum.json +1 -1
- data/rust-vendor/uuid/.cargo_vcs_info.json +1 -1
- data/rust-vendor/uuid/Cargo.lock +125 -96
- data/rust-vendor/uuid/Cargo.toml +4 -11
- data/rust-vendor/uuid/Cargo.toml.orig +5 -14
- data/rust-vendor/uuid/README.md +3 -3
- data/rust-vendor/uuid/src/builder.rs +2 -1
- data/rust-vendor/uuid/src/external/serde_support.rs +209 -142
- data/rust-vendor/uuid/src/lib.rs +9 -11
- data/rust-vendor/uuid/src/macros.rs +9 -54
- data/rust-vendor/uuid/src/non_nil.rs +49 -2
- data/rust-vendor/web_atoms/.cargo-checksum.json +1 -1
- data/rust-vendor/web_atoms/.cargo_vcs_info.json +1 -1
- data/rust-vendor/web_atoms/Cargo.lock +1 -1
- data/rust-vendor/web_atoms/Cargo.toml +1 -1
- data/rust-vendor/web_atoms/Cargo.toml.orig +1 -1
- data/rust-vendor/web_atoms/local_names.txt +3 -0
- data/rust-vendor/zerocopy/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy/Cargo.lock +5 -9
- data/rust-vendor/zerocopy/Cargo.toml +10 -18
- data/rust-vendor/zerocopy/Cargo.toml.orig +6 -14
- data/rust-vendor/zerocopy/Cargo.toml.std +58 -0
- data/rust-vendor/zerocopy/agent_docs/ui_tests.md +5 -5
- data/rust-vendor/zerocopy/cargo.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_fmt.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_readme.sh +1 -1
- data/rust-vendor/zerocopy/ci/check_stale_stderr.sh +44 -0
- data/rust-vendor/zerocopy/githooks/pre-push +2 -0
- data/rust-vendor/zerocopy/src/byte_slice.rs +1 -1
- data/rust-vendor/zerocopy/src/byteorder.rs +0 -1
- data/rust-vendor/zerocopy/src/impls.rs +334 -118
- data/rust-vendor/zerocopy/src/layout.rs +9 -0
- data/rust-vendor/zerocopy/src/lib.rs +163 -74
- data/rust-vendor/zerocopy/src/macros.rs +4 -8
- data/rust-vendor/zerocopy/src/pointer/inner.rs +4 -4
- data/rust-vendor/zerocopy/src/pointer/invariant.rs +22 -5
- data/rust-vendor/zerocopy/src/pointer/mod.rs +155 -18
- data/rust-vendor/zerocopy/src/pointer/ptr.rs +133 -182
- data/rust-vendor/zerocopy/src/pointer/transmute.rs +99 -106
- data/rust-vendor/zerocopy/src/ref.rs +4 -4
- data/rust-vendor/zerocopy/src/util/macro_util.rs +73 -127
- data/rust-vendor/zerocopy/src/util/macros.rs +61 -150
- data/rust-vendor/zerocopy/src/wrappers.rs +249 -3
- data/rust-vendor/zerocopy/tests/include.rs +67 -0
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-from-zeros.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-immutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-into-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-issue-1296.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-known-layout.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-try-from-bytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/diagnostic-not-implemented-unaligned.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_not_from_bytes.stderr +10 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/include_value_wrong_size.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-msrv/invalid-impls/invalid-impls.stderr +35 -35
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-dst-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-const.stderr +10 -10
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-not-intobytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-dst-not-references.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-not-intobytes.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-mut-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ptr-to-usize.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-not-nocell.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-dst-not-references.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-intobytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-not-nocell.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-ref-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase-allow-shrink.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/transmute-src-not-intobytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-dst-not-tryfrombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute-src-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-dst-not-tryfrombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-frombytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_mut-src-not-intobytes.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-mutable.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-from-zeros.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-immutable.stderr +13 -13
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-into-bytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-issue-1296.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-known-layout.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/diagnostic-not-implemented-unaligned.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/include_value_wrong_size.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-nightly/invalid-impls/invalid-impls.stderr +35 -51
- data/rust-vendor/zerocopy/tests/ui-nightly/ptr-is-invariant-over-v.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-dst-not-frombytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-const.stderr +7 -7
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-frombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-not-intobytes.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-dst-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-dst-not-references.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-frombytes.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-not-intobytes.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-mut-src-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ptr-to-usize.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr +14 -14
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-dst-not-references.stderr +9 -9
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-intobytes.stderr +18 -18
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-not-nocell.stderr +28 -28
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-ref-src-unsized.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-decrease.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase-allow-shrink.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-dst-not-tryfrombytes.stderr +43 -43
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-alignment-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-dst-not-tryfrombytes.stderr +51 -51
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-frombytes.stderr +29 -29
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_mut-src-not-intobytes.stderr +22 -22
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-alignment-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +56 -56
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-nightly/try_transmute_ref-src-not-immutable-intobytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-from-zeros.stderr +12 -12
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-immutable.stderr +13 -13
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-into-bytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-issue-1296.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-known-layout.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-try-from-bytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/diagnostic-not-implemented-unaligned.stderr +5 -5
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.rs +3 -5
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_not_from_bytes.stderr +21 -21
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.rs +1 -4
- data/rust-vendor/zerocopy/tests/ui-stable/include_value_wrong_size.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.rs +0 -1
- data/rust-vendor/zerocopy/tests/ui-stable/invalid-impls/invalid-impls.stderr +37 -37
- data/rust-vendor/zerocopy/tests/ui-stable/ptr-is-invariant-over-v.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.stderr +15 -15
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-const.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-a-reference.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr +11 -11
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-not-references.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-immutable.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-frombytes.stderr +11 -11
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-not-intobytes.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ptr-to-usize.stderr +9 -5
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-a-reference.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-frombytes.stderr +16 -16
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr +14 -14
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-dst-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-not-references.stderr +9 -9
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-a-reference.stderr +3 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-intobytes.stderr +18 -18
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-not-nocell.stderr +28 -28
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-unsized.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-decrease.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase-allow-shrink.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-src-not-intobytes.stderr +8 -8
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-dst-not-tryfrombytes.stderr +42 -42
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute-src-not-intobytes.stderr +7 -7
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-dst-not-tryfrombytes.stderr +49 -49
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-size-increase.stderr +4 -4
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-frombytes.stderr +26 -26
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_mut-src-not-intobytes.stderr +19 -19
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-alignment-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.rs +0 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-mutable.stderr +6 -6
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-dst-not-immutable-tryfrombytes.stderr +54 -54
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-decrease.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-size-increase.stderr +2 -2
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs +1 -3
- data/rust-vendor/zerocopy/tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.stderr +19 -19
- data/rust-vendor/zerocopy-derive/.cargo-checksum.json +1 -1
- data/rust-vendor/zerocopy-derive/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zerocopy-derive/Cargo.lock +3 -11
- data/rust-vendor/zerocopy-derive/Cargo.toml +13 -11
- data/rust-vendor/zerocopy-derive/Cargo.toml.orig +7 -10
- data/rust-vendor/zerocopy-derive/src/derive/from_bytes.rs +188 -0
- data/rust-vendor/zerocopy-derive/src/derive/into_bytes.rs +158 -0
- data/rust-vendor/zerocopy-derive/src/derive/known_layout.rs +348 -0
- data/rust-vendor/zerocopy-derive/src/derive/mod.rs +130 -0
- data/rust-vendor/zerocopy-derive/src/derive/try_from_bytes.rs +729 -0
- data/rust-vendor/zerocopy-derive/src/derive/unaligned.rs +78 -0
- data/rust-vendor/zerocopy-derive/src/lib.rs +31 -1893
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/eq.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_enum.expected.rs +64 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_struct.expected.rs +64 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_bytes_union.expected.rs +144 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/from_zeros.expected.rs +39 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/hash.expected.rs +24 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/immutable.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_enum.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_basic.expected.rs +25 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_empty.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing.expected.rs +25 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/into_bytes_struct_trailing_generic.expected.rs +21 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_repr_c_struct.expected.rs +135 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/known_layout_struct.expected.rs +34 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_c.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/split_at_repr_transparent.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_1.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_2.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_enum_3.expected.rs +2802 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/try_from_bytes_trivial_is_bit_valid_enum.expected.rs +22 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/expected/unaligned.expected.rs +17 -0
- data/rust-vendor/zerocopy-derive/src/output_tests/mod.rs +960 -0
- data/rust-vendor/zerocopy-derive/src/util.rs +757 -0
- data/rust-vendor/zerocopy-derive/tests/deprecated.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/enum_from_zeros.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/enum_known_layout.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/enum_no_cell.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/enum_to_bytes.rs +14 -0
- data/rust-vendor/zerocopy-derive/tests/enum_try_from_bytes.rs +37 -15
- data/rust-vendor/zerocopy-derive/tests/enum_unaligned.rs +4 -0
- data/rust-vendor/zerocopy-derive/tests/eq.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/hash.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/hygiene.rs +3 -1
- data/rust-vendor/zerocopy-derive/tests/include.rs +26 -4
- data/rust-vendor/zerocopy-derive/tests/issue_2117.rs +1 -0
- data/rust-vendor/zerocopy-derive/tests/issue_2835.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/issue_2880.rs +292 -0
- data/rust-vendor/zerocopy-derive/tests/issue_2915.rs +78 -0
- data/rust-vendor/zerocopy-derive/tests/paths_and_modules.rs +3 -0
- data/rust-vendor/zerocopy-derive/tests/priv_in_pub.rs +2 -0
- data/rust-vendor/zerocopy-derive/tests/struct_from_bytes.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/struct_from_zeros.rs +6 -0
- data/rust-vendor/zerocopy-derive/tests/struct_known_layout.rs +9 -0
- data/rust-vendor/zerocopy-derive/tests/struct_no_cell.rs +8 -0
- data/rust-vendor/zerocopy-derive/tests/struct_to_bytes.rs +17 -0
- data/rust-vendor/zerocopy-derive/tests/struct_try_from_bytes.rs +29 -65
- data/rust-vendor/zerocopy-derive/tests/struct_unaligned.rs +7 -0
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/derive_transparent.stderr +32 -32
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum.stderr +129 -126
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/late_compile_pass.stderr +37 -37
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/mid_compile_pass.stderr +26 -26
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/msrv_specific.stderr +7 -7
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/privacy.stderr +78 -78
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/struct.stderr +79 -79
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-msrv/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/absence_of_deprecated_warning.stderr +2 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/derive_transparent.stderr +57 -57
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum.stderr +200 -192
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/late_compile_pass.stderr +105 -105
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/mid_compile_pass.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/privacy.stderr +15 -15
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/struct.stderr +130 -129
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union.stderr +42 -42
- data/rust-vendor/zerocopy-derive/tests/ui-nightly/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/derive_transparent.stderr +57 -57
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.rs +48 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum.stderr +201 -186
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.rs +2 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/enum_from_bytes_u8_too_few.stderr +6 -6
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.rs +9 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/late_compile_pass.stderr +105 -105
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.rs +6 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/mid_compile_pass.stderr +29 -29
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.rs +66 -29
- data/rust-vendor/zerocopy-derive/tests/ui-stable/privacy.stderr +15 -15
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.rs +34 -2
- data/rust-vendor/zerocopy-derive/tests/ui-stable/struct.stderr +158 -129
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.rs +12 -1
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union.stderr +48 -44
- data/rust-vendor/zerocopy-derive/tests/ui-stable/union_into_bytes_cfg/union_into_bytes_cfg.rs +3 -2
- data/rust-vendor/zerocopy-derive/tests/union_from_bytes.rs +15 -0
- data/rust-vendor/zerocopy-derive/tests/union_from_zeros.rs +14 -0
- data/rust-vendor/zerocopy-derive/tests/union_known_layout.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_no_cell.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_to_bytes.rs +5 -0
- data/rust-vendor/zerocopy-derive/tests/union_try_from_bytes.rs +34 -74
- data/rust-vendor/zerocopy-derive/tests/union_unaligned.rs +4 -1
- data/rust-vendor/zerocopy-derive/tests/unsafe_cell.rs +3 -0
- data/rust-vendor/zmij/.cargo-checksum.json +1 -1
- data/rust-vendor/zmij/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zmij/Cargo.lock +10 -10
- data/rust-vendor/zmij/Cargo.toml +1 -1
- data/rust-vendor/zmij/Cargo.toml.orig +1 -1
- data/rust-vendor/zmij/README.md +1 -1
- data/rust-vendor/zmij/src/lib.rs +132 -158
- data/rust-vendor/zune-jpeg/.cargo-checksum.json +1 -1
- data/rust-vendor/zune-jpeg/.cargo_vcs_info.json +1 -1
- data/rust-vendor/zune-jpeg/Cargo.lock +1 -1
- data/rust-vendor/zune-jpeg/Cargo.toml +1 -1
- data/rust-vendor/zune-jpeg/Cargo.toml.orig +1 -1
- data/rust-vendor/zune-jpeg/src/bitstream.rs +1 -1
- data/rust-vendor/zune-jpeg/src/components.rs +2 -1
- data/rust-vendor/zune-jpeg/src/decoder.rs +3 -23
- data/rust-vendor/zune-jpeg/src/headers.rs +19 -1
- data/rust-vendor/zune-jpeg/src/lib.rs +1 -0
- data/rust-vendor/zune-jpeg/src/mcu.rs +6 -6
- data/rust-vendor/zune-jpeg/src/mcu_prog.rs +22 -34
- data/rust-vendor/zune-jpeg/src/upsampler/avx2.rs +3 -1
- data/rust-vendor/zune-jpeg/src/upsampler/neon.rs +13 -23
- data/rust-vendor/zune-jpeg/src/upsampler/portable_simd.rs +4 -1
- data/rust-vendor/zune-jpeg/src/upsampler/scalar.rs +4 -1
- metadata +41 -8
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-mut-src-dst-unsized.stderr +0 -183
- data/rust-vendor/zerocopy/tests/ui-stable/transmute-ref-src-dst-unsized.stderr +0 -183
- data/rust-vendor/zerocopy-derive/src/enum.rs +0 -456
- data/rust-vendor/zerocopy-derive/src/ext.rs +0 -123
- data/rust-vendor/zerocopy-derive/src/output_tests.rs +0 -5608
- data/rust-vendor/zerocopy-derive/tests/crate_path.rs +0 -189
|
@@ -19,12 +19,14 @@ include!("include.rs");
|
|
|
19
19
|
// - `repr(packed)`
|
|
20
20
|
|
|
21
21
|
#[derive(imp::IntoBytes)]
|
|
22
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
22
23
|
#[repr(C)]
|
|
23
24
|
struct CZst;
|
|
24
25
|
|
|
25
26
|
util_assert_impl_all!(CZst: imp::IntoBytes);
|
|
26
27
|
|
|
27
28
|
#[derive(imp::IntoBytes)]
|
|
29
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
28
30
|
#[repr(C)]
|
|
29
31
|
struct C {
|
|
30
32
|
a: u8,
|
|
@@ -35,6 +37,7 @@ struct C {
|
|
|
35
37
|
util_assert_impl_all!(C: imp::IntoBytes);
|
|
36
38
|
|
|
37
39
|
#[derive(imp::IntoBytes)]
|
|
40
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
38
41
|
#[repr(C)]
|
|
39
42
|
struct SyntacticUnsized {
|
|
40
43
|
a: u8,
|
|
@@ -45,6 +48,7 @@ struct SyntacticUnsized {
|
|
|
45
48
|
util_assert_impl_all!(C: imp::IntoBytes);
|
|
46
49
|
|
|
47
50
|
#[derive(imp::IntoBytes)]
|
|
51
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
48
52
|
#[repr(transparent)]
|
|
49
53
|
struct Transparent {
|
|
50
54
|
a: u8,
|
|
@@ -54,6 +58,7 @@ struct Transparent {
|
|
|
54
58
|
util_assert_impl_all!(Transparent: imp::IntoBytes);
|
|
55
59
|
|
|
56
60
|
#[derive(imp::IntoBytes)]
|
|
61
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
57
62
|
#[repr(transparent)]
|
|
58
63
|
struct TransparentGeneric<T: ?imp::Sized> {
|
|
59
64
|
a: (),
|
|
@@ -64,12 +69,14 @@ util_assert_impl_all!(TransparentGeneric<u64>: imp::IntoBytes);
|
|
|
64
69
|
util_assert_impl_all!(TransparentGeneric<[u64]>: imp::IntoBytes);
|
|
65
70
|
|
|
66
71
|
#[derive(imp::IntoBytes)]
|
|
72
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
67
73
|
#[repr(C, packed)]
|
|
68
74
|
struct CZstPacked;
|
|
69
75
|
|
|
70
76
|
util_assert_impl_all!(CZstPacked: imp::IntoBytes);
|
|
71
77
|
|
|
72
78
|
#[derive(imp::IntoBytes)]
|
|
79
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
73
80
|
#[repr(C, packed)]
|
|
74
81
|
struct CPacked {
|
|
75
82
|
a: u8,
|
|
@@ -86,6 +93,7 @@ struct CPacked {
|
|
|
86
93
|
util_assert_impl_all!(CPacked: imp::IntoBytes);
|
|
87
94
|
|
|
88
95
|
#[derive(imp::IntoBytes)]
|
|
96
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
89
97
|
#[repr(C, packed(2))]
|
|
90
98
|
// The same caveats as for CPacked apply - we're assuming u64 is at least
|
|
91
99
|
// 4-byte aligned by default. Without packed(2), this should fail, as there
|
|
@@ -98,6 +106,7 @@ struct CPacked2 {
|
|
|
98
106
|
util_assert_impl_all!(CPacked2: imp::IntoBytes);
|
|
99
107
|
|
|
100
108
|
#[derive(imp::IntoBytes)]
|
|
109
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
101
110
|
#[repr(C, packed)]
|
|
102
111
|
struct CPackedGeneric<T, U: ?imp::Sized> {
|
|
103
112
|
t: T,
|
|
@@ -113,6 +122,7 @@ util_assert_impl_all!(CPackedGeneric<u8, util::AU16>: imp::IntoBytes);
|
|
|
113
122
|
util_assert_impl_all!(CPackedGeneric<u8, [util::AU16]>: imp::IntoBytes);
|
|
114
123
|
|
|
115
124
|
#[derive(imp::IntoBytes)]
|
|
125
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
116
126
|
#[repr(packed)]
|
|
117
127
|
struct PackedGeneric<T, U: ?imp::Sized> {
|
|
118
128
|
t: T,
|
|
@@ -130,6 +140,7 @@ util_assert_impl_all!(PackedGeneric<u8, [util::AU16]>: imp::IntoBytes);
|
|
|
130
140
|
// This test is non-portable, but works so long as Rust happens to lay this
|
|
131
141
|
// struct out with no padding.
|
|
132
142
|
#[derive(imp::IntoBytes)]
|
|
143
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
133
144
|
struct Unpacked {
|
|
134
145
|
a: u8,
|
|
135
146
|
b: u8,
|
|
@@ -138,6 +149,7 @@ struct Unpacked {
|
|
|
138
149
|
util_assert_impl_all!(Unpacked: imp::IntoBytes);
|
|
139
150
|
|
|
140
151
|
#[derive(imp::IntoBytes)]
|
|
152
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
141
153
|
#[repr(C)]
|
|
142
154
|
struct ReprCGenericOneField<T: ?imp::Sized> {
|
|
143
155
|
t: T,
|
|
@@ -149,6 +161,7 @@ util_assert_impl_all!(ReprCGenericOneField<util::AU16>: imp::IntoBytes);
|
|
|
149
161
|
util_assert_impl_all!(ReprCGenericOneField<[util::AU16]>: imp::IntoBytes);
|
|
150
162
|
|
|
151
163
|
#[derive(imp::IntoBytes)]
|
|
164
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
152
165
|
#[repr(C)]
|
|
153
166
|
struct ReprCGenericMultipleFields<T, U: ?imp::Sized> {
|
|
154
167
|
t: T,
|
|
@@ -163,6 +176,7 @@ util_assert_not_impl_any!(ReprCGenericMultipleFields<u8, util::AU16>: imp::IntoB
|
|
|
163
176
|
util_assert_not_impl_any!(ReprCGenericMultipleFields<u8, [util::AU16]>: imp::IntoBytes);
|
|
164
177
|
|
|
165
178
|
#[derive(imp::IntoBytes)]
|
|
179
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
166
180
|
#[repr(transparent)]
|
|
167
181
|
struct Unsized {
|
|
168
182
|
a: [u8],
|
|
@@ -173,6 +187,7 @@ util_assert_impl_all!(Unsized: imp::IntoBytes);
|
|
|
173
187
|
// Deriving `IntoBytes` should work if the struct has bounded parameters.
|
|
174
188
|
|
|
175
189
|
#[derive(imp::IntoBytes)]
|
|
190
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
176
191
|
#[repr(transparent)]
|
|
177
192
|
struct WithParams<'a: 'b, 'b: 'a, T: 'a + 'b + imp::IntoBytes, const N: usize>(
|
|
178
193
|
[T; N],
|
|
@@ -188,10 +203,12 @@ util_assert_impl_all!(WithParams<'static, 'static, u8, 42>: imp::IntoBytes);
|
|
|
188
203
|
// Test for the failure reported in #1182.
|
|
189
204
|
|
|
190
205
|
#[derive(imp::IntoBytes)]
|
|
206
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
191
207
|
#[repr(C, packed)]
|
|
192
208
|
pub struct IndexEntryFlags(u8);
|
|
193
209
|
|
|
194
210
|
#[derive(imp::IntoBytes)]
|
|
211
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
195
212
|
#[repr(C, packed)]
|
|
196
213
|
pub struct IndexEntry<const SIZE_BLOCK_ID: usize> {
|
|
197
214
|
block_number: imp::native_endian::U64,
|
|
@@ -17,16 +17,11 @@ include!("include.rs");
|
|
|
17
17
|
|
|
18
18
|
#[test]
|
|
19
19
|
fn zst() {
|
|
20
|
-
|
|
21
|
-
let candidate = ::zerocopy::Ptr::from_ref(&());
|
|
22
|
-
let candidate = candidate.forget_aligned();
|
|
23
|
-
// SAFETY: `&()` trivially consists entirely of initialized bytes.
|
|
24
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
25
|
-
let is_bit_valid = <() as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
26
|
-
imp::assert!(is_bit_valid);
|
|
20
|
+
crate::util::test_is_bit_valid::<(), _>((), true);
|
|
27
21
|
}
|
|
28
22
|
|
|
29
|
-
#[derive(imp::TryFromBytes)]
|
|
23
|
+
#[derive(imp::TryFromBytes, imp::Immutable, imp::IntoBytes)]
|
|
24
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
30
25
|
#[repr(C)]
|
|
31
26
|
struct One {
|
|
32
27
|
a: u8,
|
|
@@ -36,16 +31,12 @@ util_assert_impl_all!(One: imp::TryFromBytes);
|
|
|
36
31
|
|
|
37
32
|
#[test]
|
|
38
33
|
fn one() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
let candidate = candidate.forget_aligned();
|
|
42
|
-
// SAFETY: `&One` consists entirely of initialized bytes.
|
|
43
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
44
|
-
let is_bit_valid = <One as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
45
|
-
imp::assert!(is_bit_valid);
|
|
34
|
+
crate::util::test_is_bit_valid::<One, _>(One { a: 42 }, true);
|
|
35
|
+
crate::util::test_is_bit_valid::<One, _>(One { a: 43 }, true);
|
|
46
36
|
}
|
|
47
37
|
|
|
48
|
-
#[derive(imp::TryFromBytes)]
|
|
38
|
+
#[derive(imp::TryFromBytes, imp::Immutable, imp::IntoBytes)]
|
|
39
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
49
40
|
#[repr(C)]
|
|
50
41
|
struct Two {
|
|
51
42
|
a: bool,
|
|
@@ -56,37 +47,13 @@ util_assert_impl_all!(Two: imp::TryFromBytes);
|
|
|
56
47
|
|
|
57
48
|
#[test]
|
|
58
49
|
fn two() {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// SAFETY: `&Two` consists entirely of initialized bytes.
|
|
63
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
64
|
-
let is_bit_valid = <Two as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
65
|
-
imp::assert!(is_bit_valid);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
#[test]
|
|
69
|
-
fn two_bad() {
|
|
70
|
-
// FIXME(#5): Use `try_transmute` in this test once it's available.
|
|
71
|
-
let mut buf = [2u8; 1];
|
|
72
|
-
let candidate = ::zerocopy::Ptr::from_mut(&mut buf);
|
|
73
|
-
let candidate = candidate.forget_aligned();
|
|
74
|
-
// SAFETY: `&Two` consists entirely of initialized bytes.
|
|
75
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
76
|
-
|
|
77
|
-
let candidate = {
|
|
78
|
-
use imp::pointer::{cast::CastSized, BecauseExclusive};
|
|
79
|
-
candidate.cast::<_, CastSized, (_, (BecauseExclusive, BecauseExclusive))>()
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
// SAFETY: `candidate`'s referent is as-initialized as `Two`.
|
|
83
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
84
|
-
|
|
85
|
-
let is_bit_valid = <Two as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
86
|
-
imp::assert!(!is_bit_valid);
|
|
50
|
+
crate::util::test_is_bit_valid::<Two, _>(Two { a: false, b: () }, true);
|
|
51
|
+
crate::util::test_is_bit_valid::<Two, _>(Two { a: true, b: () }, true);
|
|
52
|
+
crate::util::test_is_bit_valid::<Two, _>([2u8], false);
|
|
87
53
|
}
|
|
88
54
|
|
|
89
55
|
#[derive(imp::KnownLayout, imp::TryFromBytes)]
|
|
56
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
90
57
|
#[repr(C)]
|
|
91
58
|
struct Unsized {
|
|
92
59
|
a: [u8],
|
|
@@ -98,23 +65,23 @@ util_assert_impl_all!(Unsized: imp::TryFromBytes);
|
|
|
98
65
|
fn un_sized() {
|
|
99
66
|
// FIXME(#5): Use `try_transmute` in this test once it's available.
|
|
100
67
|
let mut buf = [16u8, 12, 42];
|
|
101
|
-
let candidate = ::
|
|
102
|
-
let candidate = candidate.forget_aligned();
|
|
68
|
+
let candidate = ::zerocopy_renamed::Ptr::from_mut(&mut buf[..]);
|
|
103
69
|
// SAFETY: `&Unsized` consists entirely of initialized bytes.
|
|
104
70
|
let candidate = unsafe { candidate.assume_initialized() };
|
|
105
71
|
|
|
106
|
-
let candidate = {
|
|
72
|
+
let mut candidate = {
|
|
107
73
|
use imp::pointer::{cast::CastUnsized, BecauseExclusive};
|
|
108
|
-
candidate.cast::<_, CastUnsized, (_,
|
|
74
|
+
candidate.cast::<_, CastUnsized, (_, BecauseExclusive)>()
|
|
109
75
|
};
|
|
110
76
|
|
|
111
77
|
// SAFETY: `candidate`'s referent is as-initialized as `Two`.
|
|
112
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
113
|
-
let is_bit_valid = <Unsized as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
78
|
+
let mut candidate = unsafe { candidate.assume_initialized() };
|
|
79
|
+
let is_bit_valid = <Unsized as imp::TryFromBytes>::is_bit_valid(candidate.reborrow_shared());
|
|
114
80
|
imp::assert!(is_bit_valid);
|
|
115
81
|
}
|
|
116
82
|
|
|
117
83
|
#[derive(imp::TryFromBytes)]
|
|
84
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
118
85
|
#[repr(C)]
|
|
119
86
|
struct TypeParams<'a, T: ?imp::Sized, I: imp::Iterator> {
|
|
120
87
|
a: I::Item,
|
|
@@ -133,6 +100,7 @@ util_assert_impl_all!(TypeParams<'static, [util::AU16], imp::IntoIter<()>>: imp:
|
|
|
133
100
|
// parameters.
|
|
134
101
|
|
|
135
102
|
#[derive(imp::TryFromBytes)]
|
|
103
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
136
104
|
#[repr(transparent)]
|
|
137
105
|
struct WithParams<'a: 'b, 'b: 'a, T: 'a + 'b + imp::TryFromBytes, const N: usize>(
|
|
138
106
|
imp::PhantomData<&'a &'b ()>,
|
|
@@ -145,7 +113,8 @@ where
|
|
|
145
113
|
|
|
146
114
|
util_assert_impl_all!(WithParams<'static, 'static, u8, 42>: imp::TryFromBytes);
|
|
147
115
|
|
|
148
|
-
#[derive(imp::FromBytes)]
|
|
116
|
+
#[derive(imp::FromBytes, imp::IntoBytes)]
|
|
117
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
149
118
|
#[repr(C)]
|
|
150
119
|
struct MaybeFromBytes<T>(T);
|
|
151
120
|
|
|
@@ -155,23 +124,13 @@ fn test_maybe_from_bytes() {
|
|
|
155
124
|
// trivial `is_bit_valid` impl that always returns true. This test confirms
|
|
156
125
|
// that we *don't* spuriously do that when generic parameters are present.
|
|
157
126
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
let candidate = {
|
|
163
|
-
use imp::pointer::{cast::CastSized, BecauseExclusive};
|
|
164
|
-
candidate
|
|
165
|
-
.cast::<MaybeFromBytes<bool>, CastSized, (_, (BecauseExclusive, BecauseExclusive))>()
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// SAFETY: `[u8]` consists entirely of initialized bytes.
|
|
169
|
-
let candidate = unsafe { candidate.assume_initialized() };
|
|
170
|
-
let is_bit_valid = <MaybeFromBytes<bool> as imp::TryFromBytes>::is_bit_valid(candidate);
|
|
171
|
-
imp::assert!(!is_bit_valid);
|
|
127
|
+
crate::util::test_is_bit_valid::<MaybeFromBytes<bool>, _>(MaybeFromBytes(false), true);
|
|
128
|
+
crate::util::test_is_bit_valid::<MaybeFromBytes<bool>, _>(MaybeFromBytes(true), true);
|
|
129
|
+
crate::util::test_is_bit_valid::<MaybeFromBytes<bool>, _>([2u8], false);
|
|
172
130
|
}
|
|
173
131
|
|
|
174
132
|
#[derive(Debug, PartialEq, Eq, imp::TryFromBytes, imp::Immutable, imp::KnownLayout)]
|
|
133
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
175
134
|
#[repr(C, packed)]
|
|
176
135
|
struct CPacked {
|
|
177
136
|
a: u8,
|
|
@@ -193,6 +152,7 @@ fn c_packed() {
|
|
|
193
152
|
}
|
|
194
153
|
|
|
195
154
|
#[derive(imp::TryFromBytes, imp::KnownLayout, imp::Immutable)]
|
|
155
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
196
156
|
#[repr(C, packed)]
|
|
197
157
|
struct CPackedUnsized {
|
|
198
158
|
a: u8,
|
|
@@ -214,6 +174,7 @@ fn c_packed_unsized() {
|
|
|
214
174
|
}
|
|
215
175
|
|
|
216
176
|
#[derive(imp::TryFromBytes)]
|
|
177
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
217
178
|
#[repr(packed)]
|
|
218
179
|
struct PackedUnsized {
|
|
219
180
|
a: u8,
|
|
@@ -243,14 +204,17 @@ fn packed_unsized() {
|
|
|
243
204
|
}
|
|
244
205
|
|
|
245
206
|
#[derive(imp::TryFromBytes)]
|
|
207
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
246
208
|
struct A;
|
|
247
209
|
|
|
248
210
|
#[derive(imp::TryFromBytes)]
|
|
211
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
249
212
|
struct B {
|
|
250
213
|
a: A,
|
|
251
214
|
}
|
|
252
215
|
|
|
253
216
|
#[derive(imp::TryFromBytes)]
|
|
217
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
254
218
|
#[repr(C)]
|
|
255
219
|
struct RawIdent {
|
|
256
220
|
r#type: u8,
|
|
@@ -19,6 +19,7 @@ include!("include.rs");
|
|
|
19
19
|
// - `repr(packed)`
|
|
20
20
|
|
|
21
21
|
#[derive(imp::Unaligned)]
|
|
22
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
22
23
|
#[repr(C)]
|
|
23
24
|
struct Foo {
|
|
24
25
|
a: u8,
|
|
@@ -27,6 +28,7 @@ struct Foo {
|
|
|
27
28
|
util_assert_impl_all!(Foo: imp::Unaligned);
|
|
28
29
|
|
|
29
30
|
#[derive(imp::Unaligned)]
|
|
31
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
30
32
|
#[repr(transparent)]
|
|
31
33
|
struct Bar {
|
|
32
34
|
a: u8,
|
|
@@ -35,6 +37,7 @@ struct Bar {
|
|
|
35
37
|
util_assert_impl_all!(Bar: imp::Unaligned);
|
|
36
38
|
|
|
37
39
|
#[derive(imp::Unaligned)]
|
|
40
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
38
41
|
#[repr(packed)]
|
|
39
42
|
struct Baz {
|
|
40
43
|
// NOTE: The `u16` type is not guaranteed to have alignment 2, although it
|
|
@@ -50,6 +53,7 @@ struct Baz {
|
|
|
50
53
|
util_assert_impl_all!(Baz: imp::Unaligned);
|
|
51
54
|
|
|
52
55
|
#[derive(imp::Unaligned)]
|
|
56
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
53
57
|
#[repr(C, align(1))]
|
|
54
58
|
struct FooAlign {
|
|
55
59
|
a: u8,
|
|
@@ -58,6 +62,7 @@ struct FooAlign {
|
|
|
58
62
|
util_assert_impl_all!(FooAlign: imp::Unaligned);
|
|
59
63
|
|
|
60
64
|
#[derive(imp::Unaligned)]
|
|
65
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
61
66
|
#[repr(transparent)]
|
|
62
67
|
struct Unsized {
|
|
63
68
|
a: [u8],
|
|
@@ -66,6 +71,7 @@ struct Unsized {
|
|
|
66
71
|
util_assert_impl_all!(Unsized: imp::Unaligned);
|
|
67
72
|
|
|
68
73
|
#[derive(imp::Unaligned)]
|
|
74
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
69
75
|
#[repr(C)]
|
|
70
76
|
struct TypeParams<'a, T: ?imp::Sized, I: imp::Iterator> {
|
|
71
77
|
a: I::Item,
|
|
@@ -83,6 +89,7 @@ util_assert_impl_all!(TypeParams<'static, [::core::primitive::u8], imp::IntoIter
|
|
|
83
89
|
// Deriving `Unaligned` should work if the struct has bounded parameters.
|
|
84
90
|
|
|
85
91
|
#[derive(imp::Unaligned)]
|
|
92
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
86
93
|
#[repr(transparent)]
|
|
87
94
|
struct WithParams<'a: 'b, 'b: 'a, T: 'a + 'b + imp::Unaligned, const N: usize>(
|
|
88
95
|
[T; N],
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
extern crate
|
|
9
|
+
extern crate zerocopy_renamed;
|
|
10
10
|
|
|
11
11
|
#[path = "../include.rs"]
|
|
12
12
|
mod util;
|
|
13
13
|
|
|
14
14
|
use core::marker::PhantomData;
|
|
15
15
|
|
|
16
|
-
use
|
|
16
|
+
use zerocopy_renamed::{FromBytes, FromZeros, IntoBytes, TryFromBytes, Unaligned};
|
|
17
17
|
|
|
18
18
|
use self::util::util::NotZerocopy;
|
|
19
19
|
|
|
@@ -22,6 +22,7 @@ fn main() {}
|
|
|
22
22
|
// Test generic transparent structs
|
|
23
23
|
|
|
24
24
|
#[derive(IntoBytes, FromBytes, Unaligned)]
|
|
25
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
25
26
|
#[repr(transparent)]
|
|
26
27
|
struct TransparentStruct<T> {
|
|
27
28
|
inner: T,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::TryFromBytes` is not satisfied
|
|
2
|
+
--> tests/ui-msrv/derive_transparent.rs:35:1
|
|
3
3
|
|
|
|
4
|
-
|
|
5
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `
|
|
4
|
+
35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
|
|
5
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::TryFromBytes` is not implemented for `NotZerocopy`
|
|
6
6
|
|
|
|
7
|
-
note: required because of the requirements on the impl of `
|
|
7
|
+
note: required because of the requirements on the impl of `zerocopy_renamed::TryFromBytes` for `TransparentStruct<NotZerocopy>`
|
|
8
8
|
--> tests/ui-msrv/derive_transparent.rs:24:21
|
|
9
9
|
|
|
|
10
10
|
24 | #[derive(IntoBytes, FromBytes, Unaligned)]
|
|
11
11
|
| ^^^^^^^^^
|
|
12
12
|
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
13
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
13
|
+
--> tests/ui-msrv/derive_transparent.rs:35:1
|
|
14
14
|
|
|
|
15
|
-
|
|
15
|
+
35 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: TryFromBytes);
|
|
16
16
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
17
17
|
= note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
18
18
|
|
|
19
19
|
error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied
|
|
20
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
20
|
+
--> tests/ui-msrv/derive_transparent.rs:36:1
|
|
21
21
|
|
|
|
22
|
-
|
|
22
|
+
36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
|
|
23
23
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromZeros` is not implemented for `NotZerocopy`
|
|
24
24
|
|
|
|
25
25
|
note: required because of the requirements on the impl of `FromZeros` for `TransparentStruct<NotZerocopy>`
|
|
@@ -28,62 +28,62 @@ note: required because of the requirements on the impl of `FromZeros` for `Trans
|
|
|
28
28
|
24 | #[derive(IntoBytes, FromBytes, Unaligned)]
|
|
29
29
|
| ^^^^^^^^^
|
|
30
30
|
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
31
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
31
|
+
--> tests/ui-msrv/derive_transparent.rs:36:1
|
|
32
32
|
|
|
|
33
|
-
|
|
33
|
+
36 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromZeros);
|
|
34
34
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
35
35
|
= note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
36
36
|
|
|
37
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
38
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
37
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::FromBytes` is not satisfied
|
|
38
|
+
--> tests/ui-msrv/derive_transparent.rs:37:1
|
|
39
39
|
|
|
|
40
|
-
|
|
41
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `
|
|
40
|
+
37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
|
|
41
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::FromBytes` is not implemented for `NotZerocopy`
|
|
42
42
|
|
|
|
43
|
-
note: required because of the requirements on the impl of `
|
|
43
|
+
note: required because of the requirements on the impl of `zerocopy_renamed::FromBytes` for `TransparentStruct<NotZerocopy>`
|
|
44
44
|
--> tests/ui-msrv/derive_transparent.rs:24:21
|
|
45
45
|
|
|
|
46
46
|
24 | #[derive(IntoBytes, FromBytes, Unaligned)]
|
|
47
47
|
| ^^^^^^^^^
|
|
48
48
|
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
49
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
49
|
+
--> tests/ui-msrv/derive_transparent.rs:37:1
|
|
50
50
|
|
|
|
51
|
-
|
|
51
|
+
37 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: FromBytes);
|
|
52
52
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
53
53
|
= note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
54
54
|
|
|
55
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
56
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
55
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::IntoBytes` is not satisfied
|
|
56
|
+
--> tests/ui-msrv/derive_transparent.rs:38:1
|
|
57
57
|
|
|
|
58
|
-
|
|
59
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `
|
|
58
|
+
38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
|
|
59
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::IntoBytes` is not implemented for `NotZerocopy`
|
|
60
60
|
|
|
|
61
|
-
note: required because of the requirements on the impl of `
|
|
61
|
+
note: required because of the requirements on the impl of `zerocopy_renamed::IntoBytes` for `TransparentStruct<NotZerocopy>`
|
|
62
62
|
--> tests/ui-msrv/derive_transparent.rs:24:10
|
|
63
63
|
|
|
|
64
64
|
24 | #[derive(IntoBytes, FromBytes, Unaligned)]
|
|
65
65
|
| ^^^^^^^^^
|
|
66
66
|
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
67
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
67
|
+
--> tests/ui-msrv/derive_transparent.rs:38:1
|
|
68
68
|
|
|
|
69
|
-
|
|
69
|
+
38 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: IntoBytes);
|
|
70
70
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
71
71
|
= note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
72
72
|
|
|
73
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
74
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
73
|
+
error[E0277]: the trait bound `NotZerocopy: zerocopy_renamed::Unaligned` is not satisfied
|
|
74
|
+
--> tests/ui-msrv/derive_transparent.rs:39:1
|
|
75
75
|
|
|
|
76
|
-
|
|
77
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `
|
|
76
|
+
39 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
|
|
77
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy_renamed::Unaligned` is not implemented for `NotZerocopy`
|
|
78
78
|
|
|
|
79
|
-
note: required because of the requirements on the impl of `
|
|
79
|
+
note: required because of the requirements on the impl of `zerocopy_renamed::Unaligned` for `TransparentStruct<NotZerocopy>`
|
|
80
80
|
--> tests/ui-msrv/derive_transparent.rs:24:32
|
|
81
81
|
|
|
|
82
82
|
24 | #[derive(IntoBytes, FromBytes, Unaligned)]
|
|
83
83
|
| ^^^^^^^^^
|
|
84
84
|
note: required by a bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
85
|
-
--> tests/ui-msrv/derive_transparent.rs:
|
|
85
|
+
--> tests/ui-msrv/derive_transparent.rs:39:1
|
|
86
86
|
|
|
|
87
|
-
|
|
87
|
+
39 | util_assert_impl_all!(TransparentStruct<NotZerocopy>: Unaligned);
|
|
88
88
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `_::{closure#0}::_::{closure#0}::assert_impl_all`
|
|
89
89
|
= note: this error originates in the macro `::static_assertions::assert_impl_all` (in Nightly builds, run with -Z macro-backtrace for more info)
|