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,7 +1,7 @@
|
|
|
1
1
|
error[E0308]: mismatched types
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:15:54
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
15 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
|
|
5
5
|
| ---------------^^^^^^-
|
|
6
6
|
| | |
|
|
7
7
|
| | expected `&_`, found `usize`
|
|
@@ -11,13 +11,13 @@ error[E0308]: mismatched types
|
|
|
11
11
|
found type `usize`
|
|
12
12
|
help: consider borrowing here
|
|
13
13
|
|
|
|
14
|
-
|
|
14
|
+
15 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(&0usize);
|
|
15
15
|
| +
|
|
16
16
|
|
|
17
17
|
error[E0308]: mismatched types
|
|
18
|
-
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:
|
|
18
|
+
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:15:39
|
|
19
19
|
|
|
|
20
|
-
|
|
20
|
+
15 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
|
|
21
21
|
| ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_`
|
|
22
22
|
|
|
|
23
23
|
= note: expected type `usize`
|
|
@@ -25,9 +25,9 @@ error[E0308]: mismatched types
|
|
|
25
25
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
26
26
|
|
|
27
27
|
error[E0308]: mismatched types
|
|
28
|
-
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:
|
|
28
|
+
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:15:39
|
|
29
29
|
|
|
|
30
|
-
|
|
30
|
+
15 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
|
|
31
31
|
| ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_`
|
|
32
32
|
|
|
|
33
33
|
= note: expected type `usize`
|
|
@@ -35,9 +35,9 @@ error[E0308]: mismatched types
|
|
|
35
35
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
36
36
|
|
|
37
37
|
error[E0308]: mismatched types
|
|
38
|
-
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:
|
|
38
|
+
--> tests/ui-nightly/transmute-ref-src-dst-not-references.rs:15:39
|
|
39
39
|
|
|
|
40
|
-
|
|
40
|
+
15 | const SRC_DST_NOT_REFERENCES: usize = transmute_ref!(0usize);
|
|
41
41
|
| ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `&_`
|
|
42
42
|
|
|
|
43
43
|
= note: expected type `usize`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
error[E0308]: mismatched types
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-src-not-a-reference.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-ref-src-not-a-reference.rs:15:49
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
15 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(0usize);
|
|
5
5
|
| ---------------^^^^^^-
|
|
6
6
|
| | |
|
|
7
7
|
| | expected `&_`, found `usize`
|
|
@@ -11,5 +11,5 @@ error[E0308]: mismatched types
|
|
|
11
11
|
found type `usize`
|
|
12
12
|
help: consider borrowing here
|
|
13
13
|
|
|
|
14
|
-
|
|
14
|
+
15 | const SRC_NOT_A_REFERENCE: &u8 = transmute_ref!(&0usize);
|
|
15
15
|
| +
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::AU16;
|
|
14
12
|
use zerocopy::transmute_ref;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
error[E0277]: the trait bound `Src:
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `Src: IntoBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:21:33
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
21 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
| |
|
|
7
7
|
| unsatisfied trait bound
|
|
8
8
|
| required by a bound introduced by this call
|
|
9
9
|
|
|
|
10
|
-
help: the trait `
|
|
11
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
10
|
+
help: the trait `IntoBytes` is not implemented for `Src`
|
|
11
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:18:1
|
|
12
12
|
|
|
|
13
|
-
|
|
13
|
+
18 | struct Src(AU16);
|
|
14
14
|
| ^^^^^^^^^^
|
|
15
15
|
= note: Consider adding `#[derive(IntoBytes)]` to `Src`
|
|
16
|
-
= help: the following other types implement trait `
|
|
16
|
+
= help: the following other types implement trait `IntoBytes`:
|
|
17
17
|
()
|
|
18
18
|
AU16
|
|
19
19
|
AtomicBool
|
|
@@ -24,25 +24,25 @@ help: the trait `zerocopy::IntoBytes` is not implemented for `Src`
|
|
|
24
24
|
AtomicIsize
|
|
25
25
|
and $N others
|
|
26
26
|
note: required by a bound in `AssertSrcIsIntoBytes`
|
|
27
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
27
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:21:33
|
|
28
28
|
|
|
|
29
|
-
|
|
29
|
+
21 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
30
30
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsIntoBytes`
|
|
31
31
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
32
32
|
|
|
33
|
-
error[E0277]: the trait bound `Src:
|
|
34
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
33
|
+
error[E0277]: the trait bound `Src: IntoBytes` is not satisfied
|
|
34
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:21:33
|
|
35
35
|
|
|
|
36
|
-
|
|
36
|
+
21 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
37
37
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
38
38
|
|
|
|
39
|
-
help: the trait `
|
|
40
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
39
|
+
help: the trait `IntoBytes` is not implemented for `Src`
|
|
40
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:18:1
|
|
41
41
|
|
|
|
42
|
-
|
|
42
|
+
18 | struct Src(AU16);
|
|
43
43
|
| ^^^^^^^^^^
|
|
44
44
|
= note: Consider adding `#[derive(IntoBytes)]` to `Src`
|
|
45
|
-
= help: the following other types implement trait `
|
|
45
|
+
= help: the following other types implement trait `IntoBytes`:
|
|
46
46
|
()
|
|
47
47
|
AU16
|
|
48
48
|
AtomicBool
|
|
@@ -53,8 +53,8 @@ help: the trait `zerocopy::IntoBytes` is not implemented for `Src`
|
|
|
53
53
|
AtomicIsize
|
|
54
54
|
and $N others
|
|
55
55
|
note: required by a bound in `AssertSrcIsIntoBytes`
|
|
56
|
-
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:
|
|
56
|
+
--> tests/ui-nightly/transmute-ref-src-not-intobytes.rs:21:33
|
|
57
57
|
|
|
|
58
|
-
|
|
58
|
+
21 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
59
59
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsIntoBytes`
|
|
60
60
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::AU16;
|
|
14
12
|
use zerocopy::transmute_ref;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
error[E0277]: the trait bound `Src:
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
1
|
+
error[E0277]: the trait bound `Src: Immutable` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:21:34
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
21 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
| |
|
|
7
7
|
| unsatisfied trait bound
|
|
8
8
|
| required by a bound introduced by this call
|
|
9
9
|
|
|
|
10
|
-
help: the trait `
|
|
11
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
10
|
+
help: the trait `Immutable` is not implemented for `Src`
|
|
11
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:18:1
|
|
12
12
|
|
|
|
13
|
-
|
|
13
|
+
18 | struct Src(AU16);
|
|
14
14
|
| ^^^^^^^^^^
|
|
15
15
|
= note: Consider adding `#[derive(Immutable)]` to `Src`
|
|
16
|
-
= help: the following other types implement trait `
|
|
16
|
+
= help: the following other types implement trait `Immutable`:
|
|
17
17
|
&T
|
|
18
18
|
&mut T
|
|
19
19
|
()
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
(A, B)
|
|
21
|
+
(A, B, C)
|
|
22
|
+
(A, B, C, D)
|
|
23
|
+
(A, B, C, D, E)
|
|
24
|
+
(A, B, C, D, E, F)
|
|
25
25
|
and $N others
|
|
26
26
|
note: required by a bound in `AssertSrcIsImmutable`
|
|
27
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
27
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:21:34
|
|
28
28
|
|
|
|
29
|
-
|
|
29
|
+
21 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
30
30
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable`
|
|
31
31
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
32
32
|
|
|
33
|
-
error[E0277]: the trait bound `Src:
|
|
34
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
33
|
+
error[E0277]: the trait bound `Src: Immutable` is not satisfied
|
|
34
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:21:34
|
|
35
35
|
|
|
|
36
|
-
|
|
36
|
+
21 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
37
37
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
38
38
|
|
|
|
39
|
-
help: the trait `
|
|
40
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
39
|
+
help: the trait `Immutable` is not implemented for `Src`
|
|
40
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:18:1
|
|
41
41
|
|
|
|
42
|
-
|
|
42
|
+
18 | struct Src(AU16);
|
|
43
43
|
| ^^^^^^^^^^
|
|
44
44
|
= note: Consider adding `#[derive(Immutable)]` to `Src`
|
|
45
|
-
= help: the following other types implement trait `
|
|
45
|
+
= help: the following other types implement trait `Immutable`:
|
|
46
46
|
&T
|
|
47
47
|
&mut T
|
|
48
48
|
()
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
(A, B)
|
|
50
|
+
(A, B, C)
|
|
51
|
+
(A, B, C, D)
|
|
52
|
+
(A, B, C, D, E)
|
|
53
|
+
(A, B, C, D, E, F)
|
|
54
54
|
and $N others
|
|
55
55
|
note: required by a bound in `AssertSrcIsImmutable`
|
|
56
|
-
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:
|
|
56
|
+
--> tests/ui-nightly/transmute-ref-src-not-nocell.rs:21:34
|
|
57
57
|
|
|
|
58
|
-
|
|
58
|
+
21 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
|
|
59
59
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable`
|
|
60
60
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
error[E0271]: type mismatch resolving `<[u8; 1] as KnownLayout>::PointerMetadata == usize`
|
|
2
|
-
--> tests/ui-nightly/transmute-ref-src-unsized.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-ref-src-unsized.rs:14:31
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
14 | const SRC_UNSIZED: &[u8; 1] = transmute_ref!(&[0u8][..]);
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `()`
|
|
6
6
|
|
|
|
7
|
-
= note: required for `Wrap<&[u8], &[u8; 1]>` to implement `TransmuteRefDst<'_>`
|
|
7
|
+
= note: required for `zerocopy::util::macro_util::Wrap<&[u8], &[u8; 1]>` to implement `zerocopy::util::macro_util::TransmuteRefDst<'_>`
|
|
8
8
|
= note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
error[E0080]: transmuting from 2-byte type to 1-byte type: `AU16` -> `u8`
|
|
2
|
-
--> tests/ui-nightly/transmute-size-decrease.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-size-decrease.rs:18:27
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
18 | const DECREASE_SIZE: u8 = transmute!(AU16(0));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^ evaluation of `DECREASE_SIZE` failed here
|
|
6
6
|
|
|
|
7
7
|
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
8
8
|
|
|
9
9
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
10
|
-
--> tests/ui-nightly/transmute-size-decrease.rs:
|
|
10
|
+
--> tests/ui-nightly/transmute-size-decrease.rs:18:27
|
|
11
11
|
|
|
|
12
|
-
|
|
12
|
+
18 | const DECREASE_SIZE: u8 = transmute!(AU16(0));
|
|
13
13
|
| ^^^^^^^^^^^^^^^^^^^
|
|
14
14
|
|
|
|
15
15
|
= note: source type: `AU16` (16 bits)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
error[E0080]: transmuting from 1-byte type to 2-byte type: `u8` -> `Transmute<u8, AU16>`
|
|
2
|
-
--> tests/ui-nightly/transmute-size-increase-allow-shrink.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-size-increase-allow-shrink.rs:18:29
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
18 | const INCREASE_SIZE: AU16 = transmute!(#![allow(shrink)] 0u8);
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `INCREASE_SIZE` failed here
|
|
6
6
|
|
|
|
7
7
|
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
8
8
|
|
|
9
9
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
10
|
-
--> tests/ui-nightly/transmute-size-increase-allow-shrink.rs:
|
|
10
|
+
--> tests/ui-nightly/transmute-size-increase-allow-shrink.rs:18:29
|
|
11
11
|
|
|
|
12
|
-
|
|
12
|
+
18 | const INCREASE_SIZE: AU16 = transmute!(#![allow(shrink)] 0u8);
|
|
13
13
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
14
14
|
|
|
|
15
15
|
= note: source type: `u8` (8 bits)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
error[E0080]: transmuting from 1-byte type to 2-byte type: `u8` -> `AU16`
|
|
2
|
-
--> tests/ui-nightly/transmute-size-increase.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-size-increase.rs:18:29
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
18 | const INCREASE_SIZE: AU16 = transmute!(0u8);
|
|
5
5
|
| ^^^^^^^^^^^^^^^ evaluation of `INCREASE_SIZE` failed here
|
|
6
6
|
|
|
|
7
7
|
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
8
8
|
|
|
9
9
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
10
|
-
--> tests/ui-nightly/transmute-size-increase.rs:
|
|
10
|
+
--> tests/ui-nightly/transmute-size-increase.rs:18:29
|
|
11
11
|
|
|
|
12
|
-
|
|
12
|
+
18 | const INCREASE_SIZE: AU16 = transmute!(0u8);
|
|
13
13
|
| ^^^^^^^^^^^^^^^
|
|
14
14
|
|
|
|
15
15
|
= note: source type: `u8` (8 bits)
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::{NotZerocopy, AU16};
|
|
14
12
|
use zerocopy::transmute;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy<AU16>:
|
|
2
|
-
--> tests/ui-nightly/transmute-src-not-intobytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/transmute-src-not-intobytes.rs:17:32
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
17 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
| |
|
|
7
7
|
| unsatisfied trait bound
|
|
8
8
|
| required by a bound introduced by this call
|
|
9
9
|
|
|
|
10
|
-
help: the trait `
|
|
11
|
-
--> tests/ui-nightly
|
|
10
|
+
help: the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>`
|
|
11
|
+
--> tests/ui-nightly/../include.rs
|
|
12
12
|
|
|
|
13
13
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
14
14
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
15
15
|
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy<AU16>`
|
|
16
|
-
= help: the following other types implement trait `
|
|
16
|
+
= help: the following other types implement trait `IntoBytes`:
|
|
17
17
|
()
|
|
18
18
|
AU16
|
|
19
19
|
AtomicBool
|
|
@@ -24,9 +24,9 @@ help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy<AU16>`
|
|
|
24
24
|
AtomicIsize
|
|
25
25
|
and $N others
|
|
26
26
|
note: required by a bound in `SRC_NOT_AS_BYTES::transmute`
|
|
27
|
-
--> tests/ui-nightly/transmute-src-not-intobytes.rs:
|
|
27
|
+
--> tests/ui-nightly/transmute-src-not-intobytes.rs:17:32
|
|
28
28
|
|
|
|
29
|
-
|
|
29
|
+
17 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
|
|
30
30
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
31
31
|
| |
|
|
32
32
|
| required by a bound in this function
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::{NotZerocopy, AU16};
|
|
14
12
|
use zerocopy::try_transmute;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:15:33
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
6
6
|
|
|
|
7
|
-
help: the trait `
|
|
8
|
-
--> tests/ui-nightly
|
|
7
|
+
help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
|
|
8
|
+
--> tests/ui-nightly/../include.rs
|
|
9
9
|
|
|
|
10
|
-
|
|
10
|
+
15 | pub struct NotZerocopy<T = ()>(pub T);
|
|
11
11
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
12
12
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
13
|
-
= help: the following other types implement trait `
|
|
13
|
+
= help: the following other types implement trait `TryFromBytes`:
|
|
14
14
|
()
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
(A, B)
|
|
16
|
+
(A, B, C)
|
|
17
|
+
(A, B, C, D)
|
|
18
|
+
(A, B, C, D, E)
|
|
19
|
+
(A, B, C, D, E, F)
|
|
20
|
+
(A, B, C, D, E, F, G)
|
|
21
|
+
(A, B, C, D, E, F, G, H)
|
|
22
22
|
and $N others
|
|
23
23
|
note: required by a bound in `ValidityError`
|
|
24
24
|
--> src/error.rs
|
|
@@ -26,29 +26,29 @@ note: required by a bound in `ValidityError`
|
|
|
26
26
|
| pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> {
|
|
27
27
|
| ^^^^^^^^^^^^ required by this bound in `ValidityError`
|
|
28
28
|
|
|
29
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
30
|
-
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:
|
|
29
|
+
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
|
|
30
|
+
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:15:58
|
|
31
31
|
|
|
|
32
|
-
|
|
32
|
+
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
|
|
33
33
|
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
34
34
|
|
|
|
35
|
-
help: the trait `
|
|
36
|
-
--> tests/ui-nightly
|
|
35
|
+
help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
|
|
36
|
+
--> tests/ui-nightly/../include.rs
|
|
37
37
|
|
|
|
38
|
-
|
|
38
|
+
15 | pub struct NotZerocopy<T = ()>(pub T);
|
|
39
39
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
40
40
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
41
|
-
= help: the following other types implement trait `
|
|
41
|
+
= help: the following other types implement trait `TryFromBytes`:
|
|
42
42
|
()
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
(A, B)
|
|
44
|
+
(A, B, C)
|
|
45
|
+
(A, B, C, D)
|
|
46
|
+
(A, B, C, D, E)
|
|
47
|
+
(A, B, C, D, E, F)
|
|
48
|
+
(A, B, C, D, E, F, G)
|
|
49
|
+
(A, B, C, D, E, F, G, H)
|
|
50
50
|
and $N others
|
|
51
|
-
note: required by a bound in `try_transmute`
|
|
51
|
+
note: required by a bound in `zerocopy::util::macro_util::try_transmute`
|
|
52
52
|
--> src/util/macro_util.rs
|
|
53
53
|
|
|
|
54
54
|
| pub fn try_transmute<Src, Dst>(src: Src) -> Result<Dst, ValidityError<Src, Dst>>
|
|
@@ -58,27 +58,27 @@ note: required by a bound in `try_transmute`
|
|
|
58
58
|
| ^^^^^^^^^^^^ required by this bound in `try_transmute`
|
|
59
59
|
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
60
60
|
|
|
61
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
62
|
-
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:
|
|
61
|
+
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
|
|
62
|
+
--> tests/ui-nightly/try_transmute-dst-not-tryfrombytes.rs:15:58
|
|
63
63
|
|
|
|
64
|
-
|
|
64
|
+
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
|
|
65
65
|
| ^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
66
66
|
|
|
|
67
|
-
help: the trait `
|
|
68
|
-
--> tests/ui-nightly
|
|
67
|
+
help: the trait `TryFromBytes` is not implemented for `NotZerocopy`
|
|
68
|
+
--> tests/ui-nightly/../include.rs
|
|
69
69
|
|
|
|
70
|
-
|
|
70
|
+
15 | pub struct NotZerocopy<T = ()>(pub T);
|
|
71
71
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
72
72
|
= note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy`
|
|
73
|
-
= help: the following other types implement trait `
|
|
73
|
+
= help: the following other types implement trait `TryFromBytes`:
|
|
74
74
|
()
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
(A, B)
|
|
76
|
+
(A, B, C)
|
|
77
|
+
(A, B, C, D)
|
|
78
|
+
(A, B, C, D, E)
|
|
79
|
+
(A, B, C, D, E, F)
|
|
80
|
+
(A, B, C, D, E, F, G)
|
|
81
|
+
(A, B, C, D, E, F, G, H)
|
|
82
82
|
and $N others
|
|
83
83
|
note: required by a bound in `ValidityError`
|
|
84
84
|
--> src/error.rs
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::AU16;
|
|
14
12
|
use zerocopy::try_transmute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-nightly/try_transmute-size-decrease.rs:
|
|
2
|
+
--> tests/ui-nightly/try_transmute-size-decrease.rs:17:41
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
17 | let _decrease_size: Result<u8, _> = try_transmute!(AU16(0));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
|
|
|
7
7
|
= note: source type: `AU16` (16 bits)
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::AU16;
|
|
14
12
|
use zerocopy::try_transmute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
2
|
-
--> tests/ui-nightly/try_transmute-size-increase.rs:
|
|
2
|
+
--> tests/ui-nightly/try_transmute-size-increase.rs:17:43
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
17 | let _increase_size: Result<AU16, _> = try_transmute!(0u8);
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^
|
|
6
6
|
|
|
|
7
7
|
= note: source type: `u8` (8 bits)
|
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
12
10
|
|
|
13
11
|
use util::{NotZerocopy, AU16};
|
|
14
12
|
use zerocopy::try_transmute;
|