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
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
error: this conflicts with another representation hint
|
|
2
|
-
--> tests/ui-stable/struct.rs:
|
|
2
|
+
--> tests/ui-stable/struct.rs:185:11
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
185 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs
|
|
5
5
|
| ^
|
|
6
6
|
|
|
7
7
|
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
|
|
8
|
-
--> tests/ui-stable/struct.rs:
|
|
8
|
+
--> tests/ui-stable/struct.rs:190:10
|
|
9
9
|
|
|
|
10
|
-
|
|
10
|
+
190 | #[derive(IntoBytes)]
|
|
11
11
|
| ^^^^^^^^^
|
|
12
12
|
|
|
|
13
13
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
14
14
|
|
|
15
15
|
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
|
|
16
|
-
--> tests/ui-stable/struct.rs:
|
|
16
|
+
--> tests/ui-stable/struct.rs:196:10
|
|
17
17
|
|
|
|
18
|
-
|
|
18
|
+
196 | #[derive(IntoBytes)]
|
|
19
19
|
| ^^^^^^^^^
|
|
20
20
|
|
|
|
21
21
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
22
22
|
|
|
23
23
|
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
|
|
24
|
-
--> tests/ui-stable/struct.rs:
|
|
24
|
+
--> tests/ui-stable/struct.rs:221:10
|
|
25
25
|
|
|
|
26
|
-
|
|
26
|
+
221 | #[derive(IntoBytes)]
|
|
27
27
|
| ^^^^^^^^^
|
|
28
28
|
|
|
|
29
29
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
30
30
|
|
|
31
31
|
error: cannot derive `Unaligned` on type with alignment greater than 1
|
|
32
|
-
--> tests/ui-stable/struct.rs:
|
|
32
|
+
--> tests/ui-stable/struct.rs:234:11
|
|
33
33
|
|
|
|
34
|
-
|
|
34
|
+
234 | #[repr(C, align(2))]
|
|
35
35
|
| ^^^^^
|
|
36
36
|
|
|
37
37
|
error: this conflicts with another representation hint
|
|
38
|
-
--> tests/ui-stable/struct.rs:
|
|
38
|
+
--> tests/ui-stable/struct.rs:239:8
|
|
39
39
|
|
|
|
40
|
-
|
|
40
|
+
239 | #[repr(transparent, align(2))]
|
|
41
41
|
| ^^^^^^^^^^^
|
|
42
42
|
|
|
43
43
|
error: this conflicts with another representation hint
|
|
44
|
-
--> tests/ui-stable/struct.rs:
|
|
44
|
+
--> tests/ui-stable/struct.rs:246:16
|
|
45
45
|
|
|
|
46
|
-
|
|
46
|
+
246 | #[repr(packed, align(2))]
|
|
47
47
|
| ^^^^^
|
|
48
48
|
|
|
49
49
|
error: this conflicts with another representation hint
|
|
50
|
-
--> tests/ui-stable/struct.rs:
|
|
50
|
+
--> tests/ui-stable/struct.rs:251:18
|
|
51
51
|
|
|
|
52
|
-
|
|
52
|
+
251 | #[repr(align(1), align(2))]
|
|
53
53
|
| ^^^^^
|
|
54
54
|
|
|
55
55
|
error: this conflicts with another representation hint
|
|
56
|
-
--> tests/ui-stable/struct.rs:
|
|
56
|
+
--> tests/ui-stable/struct.rs:256:18
|
|
57
57
|
|
|
|
58
|
-
|
|
58
|
+
256 | #[repr(align(2), align(4))]
|
|
59
59
|
| ^^^^^
|
|
60
60
|
|
|
61
61
|
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
|
|
62
|
-
--> tests/ui-stable/struct.rs:
|
|
62
|
+
--> tests/ui-stable/struct.rs:259:10
|
|
63
63
|
|
|
|
64
|
-
|
|
64
|
+
259 | #[derive(Unaligned)]
|
|
65
65
|
| ^^^^^^^^^
|
|
66
66
|
|
|
|
67
67
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
68
68
|
|
|
69
69
|
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
|
|
70
|
-
--> tests/ui-stable/struct.rs:
|
|
70
|
+
--> tests/ui-stable/struct.rs:263:10
|
|
71
71
|
|
|
|
72
|
-
|
|
72
|
+
263 | #[derive(Unaligned)]
|
|
73
73
|
| ^^^^^^^^^
|
|
74
74
|
|
|
|
75
75
|
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
76
76
|
|
|
77
77
|
error: this conflicts with another representation hint
|
|
78
|
-
--> tests/ui-stable/struct.rs:
|
|
78
|
+
--> tests/ui-stable/struct.rs:275:8
|
|
79
79
|
|
|
|
80
|
-
|
|
80
|
+
275 | #[repr(C, packed(2))]
|
|
81
81
|
| ^
|
|
82
82
|
|
|
83
83
|
error[E0692]: transparent struct cannot have other repr hints
|
|
84
|
-
--> tests/ui-stable/struct.rs:
|
|
84
|
+
--> tests/ui-stable/struct.rs:239:8
|
|
85
85
|
|
|
|
86
|
-
|
|
86
|
+
239 | #[repr(transparent, align(2))]
|
|
87
87
|
| ^^^^^^^^^^^ ^^^^^^^^
|
|
88
88
|
|
|
89
89
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
@@ -94,41 +94,41 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation
|
|
|
94
94
|
|
|
|
95
95
|
= help: within `KL00`, the trait `Sized` is not implemented for `[u8]`
|
|
96
96
|
note: required because it appears within the type `KL00`
|
|
97
|
-
--> tests/ui-stable/struct.rs:
|
|
97
|
+
--> tests/ui-stable/struct.rs:33:8
|
|
98
98
|
|
|
|
99
|
-
|
|
99
|
+
33 | struct KL00(u8, NotKnownLayoutDst);
|
|
100
100
|
| ^^^^
|
|
101
101
|
= help: see issue #48214
|
|
102
102
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
103
103
|
|
|
104
104
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
105
|
-
--> tests/ui-stable/struct.rs:
|
|
105
|
+
--> tests/ui-stable/struct.rs:37:10
|
|
106
106
|
|
|
|
107
|
-
|
|
107
|
+
37 | #[derive(KnownLayout)]
|
|
108
108
|
| ^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
109
109
|
|
|
|
110
110
|
= help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
|
|
111
111
|
note: required because it appears within the type `KL02`
|
|
112
|
-
--> tests/ui-stable/struct.rs:
|
|
112
|
+
--> tests/ui-stable/struct.rs:39:8
|
|
113
113
|
|
|
|
114
|
-
|
|
114
|
+
39 | struct KL02(u8, [u8]);
|
|
115
115
|
| ^^^^
|
|
116
116
|
= help: see issue #48214
|
|
117
117
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
118
118
|
|
|
119
|
-
error[E0277]: the trait bound `NotKnownLayoutDst:
|
|
120
|
-
--> tests/ui-stable/struct.rs:
|
|
119
|
+
error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy_renamed::KnownLayout` is not satisfied
|
|
120
|
+
--> tests/ui-stable/struct.rs:43:10
|
|
121
121
|
|
|
|
122
|
-
|
|
122
|
+
43 | #[derive(KnownLayout)]
|
|
123
123
|
| ^^^^^^^^^^^ unsatisfied trait bound
|
|
124
124
|
|
|
|
125
|
-
help: the trait `
|
|
125
|
+
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayoutDst`
|
|
126
126
|
--> tests/ui-stable/struct.rs:27:1
|
|
127
127
|
|
|
|
128
128
|
27 | struct NotKnownLayoutDst([u8]);
|
|
129
129
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
130
130
|
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayoutDst`
|
|
131
|
-
= help: the following other types implement trait `
|
|
131
|
+
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
|
|
132
132
|
&T
|
|
133
133
|
&mut T
|
|
134
134
|
()
|
|
@@ -141,19 +141,19 @@ help: the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayoutDs
|
|
|
141
141
|
= help: see issue #48214
|
|
142
142
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
143
143
|
|
|
144
|
-
error[E0277]: the trait bound `NotKnownLayout:
|
|
145
|
-
--> tests/ui-stable/struct.rs:
|
|
144
|
+
error[E0277]: the trait bound `NotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied
|
|
145
|
+
--> tests/ui-stable/struct.rs:50:10
|
|
146
146
|
|
|
|
147
|
-
|
|
147
|
+
50 | #[derive(KnownLayout)]
|
|
148
148
|
| ^^^^^^^^^^^ unsatisfied trait bound
|
|
149
149
|
|
|
|
150
|
-
help: the trait `
|
|
150
|
+
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayout`
|
|
151
151
|
--> tests/ui-stable/struct.rs:25:1
|
|
152
152
|
|
|
|
153
153
|
25 | struct NotKnownLayout;
|
|
154
154
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
155
155
|
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayout`
|
|
156
|
-
= help: the following other types implement trait `
|
|
156
|
+
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
|
|
157
157
|
&T
|
|
158
158
|
&mut T
|
|
159
159
|
()
|
|
@@ -166,51 +166,51 @@ help: the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayout`
|
|
|
166
166
|
= help: see issue #48214
|
|
167
167
|
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
168
168
|
|
|
169
|
-
error[E0277]: the trait bound `UnsafeCell<()>:
|
|
170
|
-
--> tests/ui-stable/struct.rs:
|
|
169
|
+
error[E0277]: the trait bound `UnsafeCell<()>: zerocopy_renamed::Immutable` is not satisfied
|
|
170
|
+
--> tests/ui-stable/struct.rs:59:10
|
|
171
171
|
|
|
|
172
|
-
|
|
173
|
-
| ^^^^^^^^^ the trait `
|
|
172
|
+
59 | #[derive(Immutable)]
|
|
173
|
+
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<()>`
|
|
174
174
|
|
|
|
175
175
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
|
|
176
|
-
= help: the following other types implement trait `
|
|
176
|
+
= help: the following other types implement trait `zerocopy_renamed::Immutable`:
|
|
177
177
|
&T
|
|
178
178
|
&mut T
|
|
179
179
|
()
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
(A, B)
|
|
181
|
+
(A, B, C)
|
|
182
|
+
(A, B, C, D)
|
|
183
|
+
(A, B, C, D, E)
|
|
184
|
+
(A, B, C, D, E, F)
|
|
185
185
|
and $N others
|
|
186
186
|
= help: see issue #48214
|
|
187
187
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
188
188
|
|
|
189
|
-
error[E0277]: the trait bound `UnsafeCell<u8>:
|
|
190
|
-
--> tests/ui-stable/struct.rs:
|
|
189
|
+
error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy_renamed::Immutable` is not satisfied
|
|
190
|
+
--> tests/ui-stable/struct.rs:65:10
|
|
191
191
|
|
|
|
192
|
-
|
|
193
|
-
| ^^^^^^^^^ the trait `
|
|
192
|
+
65 | #[derive(Immutable)]
|
|
193
|
+
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<u8>`
|
|
194
194
|
|
|
|
195
195
|
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
|
|
196
|
-
= help: the following other types implement trait `
|
|
196
|
+
= help: the following other types implement trait `zerocopy_renamed::Immutable`:
|
|
197
197
|
&T
|
|
198
198
|
&mut T
|
|
199
199
|
()
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
(A, B)
|
|
201
|
+
(A, B, C)
|
|
202
|
+
(A, B, C, D)
|
|
203
|
+
(A, B, C, D, E)
|
|
204
|
+
(A, B, C, D, E, F)
|
|
205
205
|
and $N others
|
|
206
|
-
= note: required for `[UnsafeCell<u8>; 0]` to implement `
|
|
206
|
+
= note: required for `[UnsafeCell<u8>; 0]` to implement `zerocopy_renamed::Immutable`
|
|
207
207
|
= help: see issue #48214
|
|
208
208
|
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
209
209
|
|
|
210
210
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
|
211
|
-
--> tests/ui-stable/struct.rs:
|
|
211
|
+
--> tests/ui-stable/struct.rs:78:1
|
|
212
212
|
|
|
|
213
|
-
|
|
213
|
+
78 | struct TryFromBytesPacked {
|
|
214
214
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
215
215
|
|
|
|
216
216
|
note: `AU16` has a `#[repr(align)]` attribute
|
|
@@ -220,9 +220,9 @@ note: `AU16` has a `#[repr(align)]` attribute
|
|
|
220
220
|
| ^^^^^^^^^^^^^^^
|
|
221
221
|
|
|
222
222
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
|
223
|
-
--> tests/ui-stable/struct.rs:
|
|
223
|
+
--> tests/ui-stable/struct.rs:85:1
|
|
224
224
|
|
|
|
225
|
-
|
|
225
|
+
85 | struct TryFromBytesPackedN {
|
|
226
226
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
227
227
|
|
|
|
228
228
|
note: `AU16` has a `#[repr(align)]` attribute
|
|
@@ -232,9 +232,9 @@ note: `AU16` has a `#[repr(align)]` attribute
|
|
|
232
232
|
| ^^^^^^^^^^^^^^^
|
|
233
233
|
|
|
234
234
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
|
235
|
-
--> tests/ui-stable/struct.rs:
|
|
235
|
+
--> tests/ui-stable/struct.rs:92:1
|
|
236
236
|
|
|
|
237
|
-
|
|
237
|
+
92 | struct TryFromBytesCPacked {
|
|
238
238
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
239
239
|
|
|
|
240
240
|
note: `AU16` has a `#[repr(align)]` attribute
|
|
@@ -244,9 +244,9 @@ note: `AU16` has a `#[repr(align)]` attribute
|
|
|
244
244
|
| ^^^^^^^^^^^^^^^
|
|
245
245
|
|
|
246
246
|
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
|
|
247
|
-
--> tests/ui-stable/struct.rs:
|
|
247
|
+
--> tests/ui-stable/struct.rs:99:1
|
|
248
248
|
|
|
|
249
|
-
|
|
249
|
+
99 | struct TryFromBytesCPackedN {
|
|
250
250
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
251
251
|
|
|
|
252
252
|
note: `AU16` has a `#[repr(align)]` attribute
|
|
@@ -255,19 +255,19 @@ note: `AU16` has a `#[repr(align)]` attribute
|
|
|
255
255
|
| pub struct AU16(pub u16);
|
|
256
256
|
| ^^^^^^^^^^^^^^^
|
|
257
257
|
|
|
258
|
-
error[E0277]: the trait bound `AU16:
|
|
259
|
-
--> tests/ui-stable/struct.rs:
|
|
258
|
+
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
|
|
259
|
+
--> tests/ui-stable/struct.rs:110:10
|
|
260
260
|
|
|
|
261
|
-
|
|
261
|
+
110 | #[derive(IntoBytes)]
|
|
262
262
|
| ^^^^^^^^^ unsatisfied trait bound
|
|
263
263
|
|
|
|
264
|
-
help: the trait `
|
|
264
|
+
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
|
|
265
265
|
--> tests/ui-stable/../include.rs
|
|
266
266
|
|
|
|
267
|
-
|
|
267
|
+
64 | pub struct AU16(pub u16);
|
|
268
268
|
| ^^^^^^^^^^^^^^^
|
|
269
269
|
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
|
|
270
|
-
= help: the following other types implement trait `
|
|
270
|
+
= help: the following other types implement trait `zerocopy_renamed::Unaligned`:
|
|
271
271
|
()
|
|
272
272
|
AtomicBool
|
|
273
273
|
AtomicI8
|
|
@@ -281,44 +281,52 @@ help: the trait `zerocopy::Unaligned` is not implemented for `AU16`
|
|
|
281
281
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
282
282
|
|
|
283
283
|
error[E0277]: `IntoBytes2` has 1 total byte(s) of padding
|
|
284
|
-
--> tests/ui-stable/struct.rs:
|
|
284
|
+
--> tests/ui-stable/struct.rs:118:10
|
|
285
285
|
|
|
|
286
|
-
|
|
286
|
+
118 | #[derive(IntoBytes)]
|
|
287
287
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
288
288
|
|
|
|
289
289
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
290
290
|
= note: consider adding explicit fields where padding would be
|
|
291
291
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
|
|
293
|
+
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
|
|
294
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
295
|
+
|
|
|
296
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
297
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
294
298
|
= help: see issue #48214
|
|
295
299
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
296
300
|
|
|
297
301
|
error[E0277]: `IntoBytes3` has 1 total byte(s) of padding
|
|
298
|
-
--> tests/ui-stable/struct.rs:
|
|
302
|
+
--> tests/ui-stable/struct.rs:126:10
|
|
299
303
|
|
|
|
300
|
-
|
|
304
|
+
126 | #[derive(IntoBytes)]
|
|
301
305
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
302
306
|
|
|
|
303
307
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
304
308
|
= note: consider adding explicit fields where padding would be
|
|
305
309
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
306
|
-
|
|
307
|
-
|
|
310
|
+
help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
|
|
311
|
+
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
|
|
312
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
313
|
+
|
|
|
314
|
+
65 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
|
|
315
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
308
316
|
= help: see issue #48214
|
|
309
317
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
310
318
|
|
|
311
319
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
|
312
|
-
--> tests/ui-stable/struct.rs:
|
|
320
|
+
--> tests/ui-stable/struct.rs:143:10
|
|
313
321
|
|
|
|
314
|
-
|
|
322
|
+
143 | #[derive(IntoBytes)]
|
|
315
323
|
| ^^^^^^^^^ doesn't have a size known at compile-time
|
|
316
324
|
|
|
|
317
325
|
= help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]`
|
|
318
326
|
note: required because it appears within the type `IntoBytes4`
|
|
319
|
-
--> tests/ui-stable/struct.rs:
|
|
327
|
+
--> tests/ui-stable/struct.rs:146:8
|
|
320
328
|
|
|
|
321
|
-
|
|
329
|
+
146 | struct IntoBytes4 {
|
|
322
330
|
| ^^^^^^^^^^
|
|
323
331
|
= note: required for `IntoBytes4` to implement `macro_util::__size_of::Sized`
|
|
324
332
|
note: required by a bound in `macro_util::__size_of::size_of`
|
|
@@ -329,9 +337,9 @@ note: required by a bound in `macro_util::__size_of::size_of`
|
|
|
329
337
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
330
338
|
|
|
331
339
|
error[E0277]: `[u8]` is unsized
|
|
332
|
-
--> tests/ui-stable/struct.rs:
|
|
340
|
+
--> tests/ui-stable/struct.rs:148:8
|
|
333
341
|
|
|
|
334
|
-
|
|
342
|
+
148 | b: SliceU8,
|
|
335
343
|
| ^^^^^^^ `IntoBytes` needs all field types to be `Sized` in order to determine whether there is padding
|
|
336
344
|
|
|
|
337
345
|
= help: the trait `Sized` is not implemented for `[u8]`
|
|
@@ -345,66 +353,78 @@ note: required by a bound in `macro_util::__size_of::size_of`
|
|
|
345
353
|
| ^^^^^ required by this bound in `size_of`
|
|
346
354
|
|
|
347
355
|
error[E0277]: `IntoBytes5` has one or more padding bytes
|
|
348
|
-
--> tests/ui-stable/struct.rs:
|
|
356
|
+
--> tests/ui-stable/struct.rs:153:10
|
|
349
357
|
|
|
|
350
|
-
|
|
358
|
+
153 | #[derive(IntoBytes)]
|
|
351
359
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
352
360
|
|
|
|
353
361
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
354
362
|
= note: consider adding explicit fields where padding would be
|
|
355
363
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
356
|
-
|
|
357
|
-
|
|
364
|
+
help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
|
|
365
|
+
but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
|
|
366
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
367
|
+
|
|
|
368
|
+
83 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
|
|
369
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
358
370
|
= help: see issue #48214
|
|
359
371
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
360
372
|
|
|
361
373
|
error[E0277]: `IntoBytes6` has one or more padding bytes
|
|
362
|
-
--> tests/ui-stable/struct.rs:
|
|
374
|
+
--> tests/ui-stable/struct.rs:163:10
|
|
363
375
|
|
|
|
364
|
-
|
|
376
|
+
163 | #[derive(IntoBytes)]
|
|
365
377
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
366
378
|
|
|
|
367
379
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
368
380
|
= note: consider adding explicit fields where padding would be
|
|
369
381
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
370
|
-
|
|
371
|
-
|
|
382
|
+
help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
|
|
383
|
+
but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
|
|
384
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
385
|
+
|
|
|
386
|
+
83 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
|
|
387
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
372
388
|
= help: see issue #48214
|
|
373
389
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
374
390
|
|
|
375
391
|
error[E0277]: `IntoBytes7` has one or more padding bytes
|
|
376
|
-
--> tests/ui-stable/struct.rs:
|
|
392
|
+
--> tests/ui-stable/struct.rs:174:10
|
|
377
393
|
|
|
|
378
|
-
|
|
394
|
+
174 | #[derive(IntoBytes)]
|
|
379
395
|
| ^^^^^^^^^ types with padding cannot implement `IntoBytes`
|
|
380
396
|
|
|
|
381
397
|
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
|
|
382
398
|
= note: consider adding explicit fields where padding would be
|
|
383
399
|
= note: consider using `#[repr(packed)]` to remove padding
|
|
384
|
-
|
|
385
|
-
|
|
400
|
+
help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
|
|
401
|
+
but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
|
|
402
|
+
--> $WORKSPACE/src/util/macro_util.rs
|
|
403
|
+
|
|
|
404
|
+
83 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
|
|
405
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
386
406
|
= help: see issue #48214
|
|
387
407
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
388
408
|
|
|
389
409
|
error[E0587]: type has conflicting packed and align representation hints
|
|
390
|
-
--> tests/ui-stable/struct.rs:
|
|
410
|
+
--> tests/ui-stable/struct.rs:247:1
|
|
391
411
|
|
|
|
392
|
-
|
|
412
|
+
247 | struct Unaligned3;
|
|
393
413
|
| ^^^^^^^^^^^^^^^^^
|
|
394
414
|
|
|
395
|
-
error[E0277]: the trait bound `SplitAtNotKnownLayout:
|
|
396
|
-
--> tests/ui-stable/struct.rs:
|
|
415
|
+
error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied
|
|
416
|
+
--> tests/ui-stable/struct.rs:278:10
|
|
397
417
|
|
|
|
398
|
-
|
|
418
|
+
278 | #[derive(SplitAt)]
|
|
399
419
|
| ^^^^^^^ unsatisfied trait bound
|
|
400
420
|
|
|
|
401
|
-
help: the trait `
|
|
402
|
-
--> tests/ui-stable/struct.rs:
|
|
421
|
+
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout`
|
|
422
|
+
--> tests/ui-stable/struct.rs:281:1
|
|
403
423
|
|
|
|
404
|
-
|
|
424
|
+
281 | struct SplitAtNotKnownLayout([u8]);
|
|
405
425
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
406
426
|
= note: Consider adding `#[derive(KnownLayout)]` to `SplitAtNotKnownLayout`
|
|
407
|
-
= help: the following other types implement trait `
|
|
427
|
+
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
|
|
408
428
|
&T
|
|
409
429
|
&mut T
|
|
410
430
|
()
|
|
@@ -422,32 +442,41 @@ note: required by a bound in `SplitAt`
|
|
|
422
442
|
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
423
443
|
|
|
424
444
|
error[E0277]: the trait bound `u8: SplitAt` is not satisfied
|
|
425
|
-
--> tests/ui-stable/struct.rs:
|
|
445
|
+
--> tests/ui-stable/struct.rs:283:10
|
|
426
446
|
|
|
|
427
|
-
|
|
447
|
+
283 | #[derive(SplitAt, KnownLayout)]
|
|
428
448
|
| ^^^^^^^ the trait `SplitAt` is not implemented for `u8`
|
|
429
449
|
|
|
|
430
450
|
= note: Consider adding `#[derive(SplitAt)]` to `u8`
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
451
|
+
help: the following other types implement trait `SplitAt`
|
|
452
|
+
--> tests/ui-stable/struct.rs:278:10
|
|
453
|
+
|
|
|
454
|
+
278 | #[derive(SplitAt)]
|
|
455
|
+
| ^^^^^^^ `SplitAtNotKnownLayout`
|
|
456
|
+
...
|
|
457
|
+
283 | #[derive(SplitAt, KnownLayout)]
|
|
458
|
+
| ^^^^^^^ `SplitAtSized`
|
|
459
|
+
|
|
|
460
|
+
::: $WORKSPACE/src/split_at.rs
|
|
461
|
+
|
|
|
462
|
+
| unsafe impl<T> SplitAt for [T] {
|
|
463
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]`
|
|
435
464
|
= help: see issue #48214
|
|
436
465
|
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
437
466
|
|
|
438
|
-
error[E0277]: the trait bound `AU16:
|
|
439
|
-
--> tests/ui-stable/struct.rs:
|
|
467
|
+
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
|
|
468
|
+
--> tests/ui-stable/struct.rs:216:28
|
|
440
469
|
|
|
|
441
|
-
|
|
470
|
+
216 | is_into_bytes_11::<IntoBytes11<AU16>>();
|
|
442
471
|
| ^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
443
472
|
|
|
|
444
|
-
help: the trait `
|
|
473
|
+
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
|
|
445
474
|
--> tests/ui-stable/../include.rs
|
|
446
475
|
|
|
|
447
|
-
|
|
476
|
+
64 | pub struct AU16(pub u16);
|
|
448
477
|
| ^^^^^^^^^^^^^^^
|
|
449
478
|
= note: Consider adding `#[derive(Unaligned)]` to `AU16`
|
|
450
|
-
= help: the following other types implement trait `
|
|
479
|
+
= help: the following other types implement trait `zerocopy_renamed::Unaligned`:
|
|
451
480
|
()
|
|
452
481
|
AtomicBool
|
|
453
482
|
AtomicI8
|
|
@@ -457,14 +486,14 @@ help: the trait `zerocopy::Unaligned` is not implemented for `AU16`
|
|
|
457
486
|
F64<O>
|
|
458
487
|
I128<O>
|
|
459
488
|
and $N others
|
|
460
|
-
note: required for `IntoBytes11<AU16>` to implement `
|
|
461
|
-
--> tests/ui-stable/struct.rs:
|
|
489
|
+
note: required for `IntoBytes11<AU16>` to implement `zerocopy_renamed::IntoBytes`
|
|
490
|
+
--> tests/ui-stable/struct.rs:204:10
|
|
462
491
|
|
|
|
463
|
-
|
|
492
|
+
204 | #[derive(IntoBytes)]
|
|
464
493
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
465
494
|
note: required by a bound in `is_into_bytes_11`
|
|
466
|
-
--> tests/ui-stable/struct.rs:
|
|
495
|
+
--> tests/ui-stable/struct.rs:214:24
|
|
467
496
|
|
|
|
468
|
-
|
|
497
|
+
214 | fn is_into_bytes_11<T: IntoBytes>() {
|
|
469
498
|
| ^^^^^^^^^ required by this bound in `is_into_bytes_11`
|
|
470
499
|
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
9
|
#[macro_use]
|
|
10
|
-
extern crate
|
|
10
|
+
extern crate zerocopy_renamed;
|
|
11
11
|
|
|
12
12
|
#[path = "../include.rs"]
|
|
13
13
|
mod util;
|
|
@@ -23,6 +23,7 @@ fn main() {}
|
|
|
23
23
|
//
|
|
24
24
|
|
|
25
25
|
#[derive(Immutable)]
|
|
26
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
26
27
|
union Immutable1 {
|
|
27
28
|
a: ManuallyDrop<core::cell::UnsafeCell<()>>,
|
|
28
29
|
}
|
|
@@ -32,12 +33,14 @@ union Immutable1 {
|
|
|
32
33
|
//
|
|
33
34
|
|
|
34
35
|
#[derive(IntoBytes)]
|
|
36
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
35
37
|
#[repr(C)]
|
|
36
38
|
union IntoBytes1<T> {
|
|
37
39
|
foo: ManuallyDrop<T>,
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
#[derive(IntoBytes)]
|
|
43
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
41
44
|
#[repr(C)]
|
|
42
45
|
union IntoBytes2 {
|
|
43
46
|
foo: u8,
|
|
@@ -46,12 +49,14 @@ union IntoBytes2 {
|
|
|
46
49
|
|
|
47
50
|
// Need a `repr` attribute
|
|
48
51
|
#[derive(IntoBytes)]
|
|
52
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
49
53
|
union IntoBytes3 {
|
|
50
54
|
foo: u8,
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
// `repr(packed(2))` isn't equivalent to `repr(packed)`
|
|
54
58
|
#[derive(IntoBytes)]
|
|
59
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
55
60
|
#[repr(packed(2))]
|
|
56
61
|
union IntoBytes4 {
|
|
57
62
|
foo: u8,
|
|
@@ -62,6 +67,7 @@ union IntoBytes4 {
|
|
|
62
67
|
//
|
|
63
68
|
|
|
64
69
|
#[derive(Unaligned)]
|
|
70
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
65
71
|
#[repr(C, align(2))]
|
|
66
72
|
union Unaligned1 {
|
|
67
73
|
foo: i16,
|
|
@@ -78,30 +84,35 @@ union Unaligned1 {
|
|
|
78
84
|
// }
|
|
79
85
|
|
|
80
86
|
#[derive(Unaligned)]
|
|
87
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
81
88
|
#[repr(packed, align(2))]
|
|
82
89
|
union Unaligned3 {
|
|
83
90
|
foo: u8,
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
#[derive(Unaligned)]
|
|
94
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
87
95
|
#[repr(align(1), align(2))]
|
|
88
96
|
struct Unaligned4 {
|
|
89
97
|
foo: u8,
|
|
90
98
|
}
|
|
91
99
|
|
|
92
100
|
#[derive(Unaligned)]
|
|
101
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
93
102
|
#[repr(align(2), align(4))]
|
|
94
103
|
struct Unaligned5 {
|
|
95
104
|
foo: u8,
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
#[derive(Unaligned)]
|
|
108
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
99
109
|
union Unaligned6 {
|
|
100
110
|
foo: i16,
|
|
101
111
|
bar: AU16,
|
|
102
112
|
}
|
|
103
113
|
|
|
104
114
|
#[derive(Unaligned)]
|
|
115
|
+
#[zerocopy(crate = "zerocopy_renamed")]
|
|
105
116
|
#[repr(packed(2))]
|
|
106
117
|
union Unaligned7 {
|
|
107
118
|
foo: i16,
|