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,38 +1,38 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:50:19
|
|
3
3
|
|
|
|
4
|
-
|
|
5
|
-
| --------- ^^^^^^^^^^^^^^^ the trait `
|
|
4
|
+
50 | Foo.write_obj(NotZerocopy(()));
|
|
5
|
+
| --------- ^^^^^^^^^^^^^^^ the trait `Immutable` is not implemented for `NotZerocopy`
|
|
6
6
|
| |
|
|
7
7
|
| required by a bound introduced by this call
|
|
8
8
|
|
|
|
9
9
|
note: required by a bound in `Foo::write_obj`
|
|
10
|
-
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:
|
|
10
|
+
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:56:21
|
|
11
11
|
|
|
|
12
|
-
|
|
12
|
+
56 | fn write_obj<T: Immutable + IntoBytes>(&mut self, _val: T) {}
|
|
13
13
|
| ^^^^^^^^^ required by this bound in `Foo::write_obj`
|
|
14
14
|
help: consider borrowing here
|
|
15
15
|
|
|
|
16
|
-
|
|
16
|
+
50 | Foo.write_obj(&NotZerocopy(()));
|
|
17
17
|
| +
|
|
18
|
-
|
|
18
|
+
50 | Foo.write_obj(&mut NotZerocopy(()));
|
|
19
19
|
| ++++
|
|
20
20
|
|
|
21
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
22
|
-
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:
|
|
21
|
+
error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied
|
|
22
|
+
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:50:19
|
|
23
23
|
|
|
|
24
|
-
|
|
24
|
+
50 | Foo.write_obj(NotZerocopy(()));
|
|
25
25
|
| --------- ^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
26
26
|
| |
|
|
27
27
|
| required by a bound introduced by this call
|
|
28
28
|
|
|
|
29
|
-
help: the trait `
|
|
30
|
-
--> tests/ui-nightly
|
|
29
|
+
help: the trait `IntoBytes` is not implemented for `NotZerocopy`
|
|
30
|
+
--> tests/ui-nightly/../include.rs
|
|
31
31
|
|
|
|
32
32
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
33
33
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
34
34
|
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy`
|
|
35
|
-
= help: the following other types implement trait `
|
|
35
|
+
= help: the following other types implement trait `IntoBytes`:
|
|
36
36
|
()
|
|
37
37
|
AU16
|
|
38
38
|
AtomicBool
|
|
@@ -43,7 +43,7 @@ help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy`
|
|
|
43
43
|
AtomicIsize
|
|
44
44
|
and $N others
|
|
45
45
|
note: required by a bound in `Foo::write_obj`
|
|
46
|
-
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:
|
|
46
|
+
--> tests/ui-nightly/diagnostic-not-implemented-issue-1296.rs:56:33
|
|
47
47
|
|
|
|
48
|
-
|
|
48
|
+
56 | fn write_obj<T: Immutable + IntoBytes>(&mut self, _val: T) {}
|
|
49
49
|
| ^^^^^^^^^ required by this bound in `Foo::write_obj`
|
|
@@ -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;
|
|
14
12
|
use zerocopy::KnownLayout;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: KnownLayout` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:16:26
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
16 | takes_known_layout::<NotZerocopy>();
|
|
5
5
|
| ^^^^^^^^^^^ unsatisfied trait bound
|
|
6
6
|
|
|
|
7
|
-
help: the trait `
|
|
8
|
-
--> tests/ui-nightly
|
|
7
|
+
help: the trait `KnownLayout` is not implemented for `NotZerocopy`
|
|
8
|
+
--> tests/ui-nightly/../include.rs
|
|
9
9
|
|
|
|
10
10
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
11
11
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
12
12
|
= note: Consider adding `#[derive(KnownLayout)]` to `NotZerocopy`
|
|
13
|
-
= help: the following other types implement trait `
|
|
13
|
+
= help: the following other types implement trait `KnownLayout`:
|
|
14
14
|
&T
|
|
15
15
|
&mut T
|
|
16
16
|
()
|
|
@@ -21,7 +21,7 @@ help: the trait `zerocopy::KnownLayout` is not implemented for `NotZerocopy`
|
|
|
21
21
|
AtomicI16
|
|
22
22
|
and $N others
|
|
23
23
|
note: required by a bound in `takes_known_layout`
|
|
24
|
-
--> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:
|
|
24
|
+
--> tests/ui-nightly/diagnostic-not-implemented-known-layout.rs:19:26
|
|
25
25
|
|
|
|
26
|
-
|
|
26
|
+
19 | fn takes_known_layout<T: KnownLayout>() {}
|
|
27
27
|
| ^^^^^^^^^^^ required by this bound in `takes_known_layout`
|
|
@@ -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;
|
|
14
12
|
use zerocopy::TryFromBytes;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs:16:28
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
16 | takes_try_from_bytes::<NotZerocopy>();
|
|
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
|
| 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 `takes_try_from_bytes`
|
|
24
|
-
--> tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs:
|
|
24
|
+
--> tests/ui-nightly/diagnostic-not-implemented-try-from-bytes.rs:19:28
|
|
25
25
|
|
|
|
26
|
-
|
|
26
|
+
19 | fn takes_try_from_bytes<T: TryFromBytes>() {}
|
|
27
27
|
| ^^^^^^^^^^^^ required by this bound in `takes_try_from_bytes`
|
|
@@ -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;
|
|
14
12
|
use zerocopy::Unaligned;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
error[E0277]: the trait bound `NotZerocopy: zerocopy::Unaligned` is not satisfied
|
|
2
|
-
--> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:
|
|
2
|
+
--> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:16:23
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
16 | takes_unaligned::<NotZerocopy>();
|
|
5
5
|
| ^^^^^^^^^^^ unsatisfied trait bound
|
|
6
6
|
|
|
|
7
7
|
help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
|
|
8
|
-
--> tests/ui-nightly
|
|
8
|
+
--> tests/ui-nightly/../include.rs
|
|
9
9
|
|
|
|
10
10
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
11
11
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
@@ -21,7 +21,7 @@ help: the trait `zerocopy::Unaligned` is not implemented for `NotZerocopy`
|
|
|
21
21
|
I128<O>
|
|
22
22
|
and $N others
|
|
23
23
|
note: required by a bound in `takes_unaligned`
|
|
24
|
-
--> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:
|
|
24
|
+
--> tests/ui-nightly/diagnostic-not-implemented-unaligned.rs:19:23
|
|
25
25
|
|
|
|
26
|
-
|
|
26
|
+
19 | fn takes_unaligned<T: Unaligned>() {}
|
|
27
27
|
| ^^^^^^^^^ required by this bound in `takes_unaligned`
|
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
include!("
|
|
10
|
-
|
|
11
|
-
#[macro_use]
|
|
12
|
-
extern crate zerocopy;
|
|
9
|
+
include!("../include.rs");
|
|
13
10
|
|
|
14
11
|
use util::NotZerocopy;
|
|
15
12
|
|
|
16
13
|
fn main() {}
|
|
17
14
|
|
|
18
15
|
// Should fail because `NotZerocopy<u32>: !FromBytes`.
|
|
19
|
-
const NOT_FROM_BYTES: NotZerocopy<u32> =
|
|
16
|
+
const NOT_FROM_BYTES: NotZerocopy<u32> =
|
|
17
|
+
zerocopy::include_value!("../../testdata/include_value/data");
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy<u32>:
|
|
2
|
-
--> tests/ui-nightly/include_value_not_from_bytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy<u32>: FromBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/include_value_not_from_bytes.rs:17:5
|
|
3
3
|
|
|
|
4
|
-
|
|
5
|
-
|
|
|
4
|
+
17 | zerocopy::include_value!("../../testdata/include_value/data");
|
|
5
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
6
6
|
|
|
|
7
|
-
help: the trait `
|
|
8
|
-
--> tests/ui-nightly
|
|
7
|
+
help: the trait `FromBytes` is not implemented for `NotZerocopy<u32>`
|
|
8
|
+
--> tests/ui-nightly/../include.rs
|
|
9
9
|
|
|
|
10
10
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
11
11
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
12
12
|
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy<u32>`
|
|
13
|
-
= help: the following other types implement trait `
|
|
13
|
+
= help: the following other types implement trait `FromBytes`:
|
|
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 `NOT_FROM_BYTES::transmute`
|
|
24
|
-
--> tests/ui-nightly/include_value_not_from_bytes.rs:
|
|
24
|
+
--> tests/ui-nightly/include_value_not_from_bytes.rs:17:5
|
|
25
25
|
|
|
|
26
|
-
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
26
|
+
17 | zerocopy::include_value!("../../testdata/include_value/data");
|
|
27
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
28
|
+
| |
|
|
29
|
+
| required by a bound in this function
|
|
30
|
+
| required by this bound in `transmute`
|
|
31
|
+
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `zerocopy::include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
// This file may not be copied, modified, or distributed except according to
|
|
7
7
|
// those terms.
|
|
8
8
|
|
|
9
|
-
#[macro_use]
|
|
10
|
-
extern crate zerocopy;
|
|
11
|
-
|
|
12
9
|
fn main() {}
|
|
13
10
|
|
|
14
11
|
// Should fail because the file is 4 bytes long, not 8.
|
|
15
|
-
const WRONG_SIZE: u64 = include_value!("../../testdata/include_value/data");
|
|
12
|
+
const WRONG_SIZE: u64 = zerocopy::include_value!("../../testdata/include_value/data");
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
error[E0080]: transmuting from 4-byte type to 8-byte type: `[u8; 4]` -> `u64`
|
|
2
|
-
--> tests/ui-nightly/include_value_wrong_size.rs:
|
|
2
|
+
--> tests/ui-nightly/include_value_wrong_size.rs:12:25
|
|
3
3
|
|
|
|
4
|
-
|
|
5
|
-
|
|
|
4
|
+
12 | const WRONG_SIZE: u64 = zerocopy::include_value!("../../testdata/include_value/data");
|
|
5
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `WRONG_SIZE` failed here
|
|
6
6
|
|
|
|
7
|
-
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
7
|
+
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `zerocopy::include_value` (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/include_value_wrong_size.rs:
|
|
10
|
+
--> tests/ui-nightly/include_value_wrong_size.rs:12:25
|
|
11
11
|
|
|
|
12
|
-
|
|
13
|
-
|
|
|
12
|
+
12 | const WRONG_SIZE: u64 = zerocopy::include_value!("../../testdata/include_value/data");
|
|
13
|
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
14
14
|
|
|
|
15
15
|
= note: source type: `[u8; 4]` (32 bits)
|
|
16
16
|
= note: target type: `u64` (64 bits)
|
|
17
|
-
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
17
|
+
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `zerocopy::include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
warning: ambiguous glob re-exports
|
|
2
|
-
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
3
|
-
|
|
|
4
|
-
| / macro_rules! define_cast {
|
|
5
|
-
... |
|
|
6
|
-
| | };
|
|
7
|
-
| | }
|
|
8
|
-
| |_^ the name `define_cast` in the macro namespace is first re-exported here
|
|
9
|
-
|
|
|
10
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:17:5
|
|
11
|
-
|
|
|
12
|
-
17 | use zerocopy::*;
|
|
13
|
-
| ----------- but the name `define_cast` in the macro namespace is also re-exported here
|
|
14
|
-
|
|
|
15
|
-
= note: `#[warn(ambiguous_glob_reexports)]` on by default
|
|
16
|
-
|
|
17
1
|
error[E0277]: the trait bound `T: zerocopy::TryFromBytes` is not satisfied
|
|
18
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
2
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:26:43
|
|
19
3
|
|
|
|
20
|
-
|
|
4
|
+
26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
|
|
21
5
|
| ^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `T`
|
|
22
6
|
|
|
|
23
7
|
= note: Consider adding `#[derive(TryFromBytes)]` to `T`
|
|
24
8
|
note: required for `Foo<T>` to implement `zerocopy::TryFromBytes`
|
|
25
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
9
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:21:10
|
|
26
10
|
|
|
|
27
|
-
|
|
11
|
+
21 | #[derive(FromBytes, IntoBytes, Unaligned)]
|
|
28
12
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
29
13
|
note: required by a bound in `_::Subtrait`
|
|
30
14
|
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
@@ -32,27 +16,27 @@ note: required by a bound in `_::Subtrait`
|
|
|
32
16
|
| trait Subtrait: $trait {}
|
|
33
17
|
| ^^^^^^ required by this bound in `Subtrait`
|
|
34
18
|
|
|
|
35
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
19
|
+
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:26:5
|
|
36
20
|
|
|
|
37
|
-
|
|
21
|
+
26 | impl_or_verify!(T => TryFromBytes for Foo<T>);
|
|
38
22
|
| --------------------------------------------- in this macro invocation
|
|
39
23
|
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
40
24
|
help: consider restricting type parameter `T` with trait `TryFromBytes`
|
|
41
25
|
|
|
|
42
|
-
|
|
26
|
+
26 | impl_or_verify!(T: zerocopy::TryFromBytes => TryFromBytes for Foo<T>);
|
|
43
27
|
| ++++++++++++++++++++++++
|
|
44
28
|
|
|
45
29
|
error[E0277]: the trait bound `T: zerocopy::FromZeros` is not satisfied
|
|
46
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
30
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:27:40
|
|
47
31
|
|
|
|
48
|
-
|
|
32
|
+
27 | impl_or_verify!(T => FromZeros for Foo<T>);
|
|
49
33
|
| ^^^^^^ the trait `zerocopy::FromZeros` is not implemented for `T`
|
|
50
34
|
|
|
|
51
35
|
= note: Consider adding `#[derive(FromZeros)]` to `T`
|
|
52
36
|
note: required for `Foo<T>` to implement `zerocopy::FromZeros`
|
|
53
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
37
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:21:10
|
|
54
38
|
|
|
|
55
|
-
|
|
39
|
+
21 | #[derive(FromBytes, IntoBytes, Unaligned)]
|
|
56
40
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
57
41
|
note: required by a bound in `_::Subtrait`
|
|
58
42
|
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
@@ -60,27 +44,27 @@ note: required by a bound in `_::Subtrait`
|
|
|
60
44
|
| trait Subtrait: $trait {}
|
|
61
45
|
| ^^^^^^ required by this bound in `Subtrait`
|
|
62
46
|
|
|
|
63
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
47
|
+
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:27:5
|
|
64
48
|
|
|
|
65
|
-
|
|
49
|
+
27 | impl_or_verify!(T => FromZeros for Foo<T>);
|
|
66
50
|
| ------------------------------------------ in this macro invocation
|
|
67
51
|
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
68
52
|
help: consider restricting type parameter `T` with trait `FromZeros`
|
|
69
53
|
|
|
|
70
|
-
|
|
54
|
+
27 | impl_or_verify!(T: zerocopy::FromZeros => FromZeros for Foo<T>);
|
|
71
55
|
| +++++++++++++++++++++
|
|
72
56
|
|
|
73
57
|
error[E0277]: the trait bound `T: zerocopy::FromBytes` is not satisfied
|
|
74
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
58
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:28:40
|
|
75
59
|
|
|
|
76
|
-
|
|
60
|
+
28 | impl_or_verify!(T => FromBytes for Foo<T>);
|
|
77
61
|
| ^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `T`
|
|
78
62
|
|
|
|
79
63
|
= note: Consider adding `#[derive(FromBytes)]` to `T`
|
|
80
64
|
note: required for `Foo<T>` to implement `zerocopy::FromBytes`
|
|
81
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
65
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:21:10
|
|
82
66
|
|
|
|
83
|
-
|
|
67
|
+
21 | #[derive(FromBytes, IntoBytes, Unaligned)]
|
|
84
68
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
85
69
|
note: required by a bound in `_::Subtrait`
|
|
86
70
|
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
@@ -88,27 +72,27 @@ note: required by a bound in `_::Subtrait`
|
|
|
88
72
|
| trait Subtrait: $trait {}
|
|
89
73
|
| ^^^^^^ required by this bound in `Subtrait`
|
|
90
74
|
|
|
|
91
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
75
|
+
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:28:5
|
|
92
76
|
|
|
|
93
|
-
|
|
77
|
+
28 | impl_or_verify!(T => FromBytes for Foo<T>);
|
|
94
78
|
| ------------------------------------------ in this macro invocation
|
|
95
79
|
= note: this error originates in the derive macro `FromBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
96
80
|
help: consider restricting type parameter `T` with trait `FromBytes`
|
|
97
81
|
|
|
|
98
|
-
|
|
82
|
+
28 | impl_or_verify!(T: zerocopy::FromBytes => FromBytes for Foo<T>);
|
|
99
83
|
| +++++++++++++++++++++
|
|
100
84
|
|
|
101
85
|
error[E0277]: the trait bound `T: zerocopy::IntoBytes` is not satisfied
|
|
102
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
86
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:29:40
|
|
103
87
|
|
|
|
104
|
-
|
|
88
|
+
29 | impl_or_verify!(T => IntoBytes for Foo<T>);
|
|
105
89
|
| ^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `T`
|
|
106
90
|
|
|
|
107
91
|
= note: Consider adding `#[derive(IntoBytes)]` to `T`
|
|
108
92
|
note: required for `Foo<T>` to implement `zerocopy::IntoBytes`
|
|
109
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
93
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:21:21
|
|
110
94
|
|
|
|
111
|
-
|
|
95
|
+
21 | #[derive(FromBytes, IntoBytes, Unaligned)]
|
|
112
96
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
113
97
|
note: required by a bound in `_::Subtrait`
|
|
114
98
|
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
@@ -116,27 +100,27 @@ note: required by a bound in `_::Subtrait`
|
|
|
116
100
|
| trait Subtrait: $trait {}
|
|
117
101
|
| ^^^^^^ required by this bound in `Subtrait`
|
|
118
102
|
|
|
|
119
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
103
|
+
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:29:5
|
|
120
104
|
|
|
|
121
|
-
|
|
105
|
+
29 | impl_or_verify!(T => IntoBytes for Foo<T>);
|
|
122
106
|
| ------------------------------------------ in this macro invocation
|
|
123
107
|
= note: this error originates in the derive macro `IntoBytes` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
124
108
|
help: consider restricting type parameter `T` with trait `IntoBytes`
|
|
125
109
|
|
|
|
126
|
-
|
|
110
|
+
29 | impl_or_verify!(T: zerocopy::IntoBytes => IntoBytes for Foo<T>);
|
|
127
111
|
| +++++++++++++++++++++
|
|
128
112
|
|
|
129
113
|
error[E0277]: the trait bound `T: zerocopy::Unaligned` is not satisfied
|
|
130
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
114
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:30:40
|
|
131
115
|
|
|
|
132
|
-
|
|
116
|
+
30 | impl_or_verify!(T => Unaligned for Foo<T>);
|
|
133
117
|
| ^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `T`
|
|
134
118
|
|
|
|
135
119
|
= note: Consider adding `#[derive(Unaligned)]` to `T`
|
|
136
120
|
note: required for `Foo<T>` to implement `zerocopy::Unaligned`
|
|
137
|
-
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
121
|
+
--> tests/ui-nightly/invalid-impls/invalid-impls.rs:21:32
|
|
138
122
|
|
|
|
139
|
-
|
|
123
|
+
21 | #[derive(FromBytes, IntoBytes, Unaligned)]
|
|
140
124
|
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
|
|
141
125
|
note: required by a bound in `_::Subtrait`
|
|
142
126
|
--> tests/ui-nightly/invalid-impls/../../../src/util/macros.rs
|
|
@@ -144,12 +128,12 @@ note: required by a bound in `_::Subtrait`
|
|
|
144
128
|
| trait Subtrait: $trait {}
|
|
145
129
|
| ^^^^^^ required by this bound in `Subtrait`
|
|
146
130
|
|
|
|
147
|
-
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:
|
|
131
|
+
::: tests/ui-nightly/invalid-impls/invalid-impls.rs:30:5
|
|
148
132
|
|
|
|
149
|
-
|
|
133
|
+
30 | impl_or_verify!(T => Unaligned for Foo<T>);
|
|
150
134
|
| ------------------------------------------ in this macro invocation
|
|
151
135
|
= note: this error originates in the derive macro `Unaligned` which comes from the expansion of the macro `impl_or_verify` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
152
136
|
help: consider restricting type parameter `T` with trait `Unaligned`
|
|
153
137
|
|
|
|
154
|
-
|
|
138
|
+
30 | impl_or_verify!(T: zerocopy::Unaligned => Unaligned for Foo<T>);
|
|
155
139
|
| +++++++++++++++++++++
|
|
@@ -10,7 +10,7 @@ error: lifetime may not live long enough
|
|
|
10
10
|
| ^^^^^^^^^^^^ assignment requires that `'small` must outlive `'big`
|
|
11
11
|
|
|
|
12
12
|
= help: consider adding the following bound: `'small: 'big`
|
|
13
|
-
= note: requirement occurs because of the type `Ptr<'_, &u32, (invariant::Exclusive, Aligned, Valid)>`, which makes the generic argument `&u32` invariant
|
|
13
|
+
= note: requirement occurs because of the type `Ptr<'_, &u32, (zerocopy::invariant::Exclusive, zerocopy::invariant::Aligned, zerocopy::invariant::Valid)>`, which makes the generic argument `&u32` invariant
|
|
14
14
|
= note: the struct `Ptr<'a, T, I>` is invariant over the parameter `T`
|
|
15
15
|
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
|
|
16
16
|
|
|
@@ -26,6 +26,6 @@ error: lifetime may not live long enough
|
|
|
26
26
|
| ^^^^^^^^^^^^ assignment requires that `'small` must outlive `'big`
|
|
27
27
|
|
|
|
28
28
|
= help: consider adding the following bound: `'small: 'big`
|
|
29
|
-
= note: requirement occurs because of the type `Ptr<'_, &u32, (Shared, Aligned, Valid)>`, which makes the generic argument `&u32` invariant
|
|
29
|
+
= note: requirement occurs because of the type `Ptr<'_, &u32, (zerocopy::invariant::Shared, zerocopy::invariant::Aligned, zerocopy::invariant::Valid)>`, which makes the generic argument `&u32` invariant
|
|
30
30
|
= note: the struct `Ptr<'a, T, I>` is invariant over the parameter `T`
|
|
31
31
|
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
|
|
@@ -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,29 +1,29 @@
|
|
|
1
|
-
error[E0277]: the trait bound `NotZerocopy:
|
|
2
|
-
--> tests/ui-nightly/transmute-dst-not-frombytes.rs:
|
|
1
|
+
error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
|
|
2
|
+
--> tests/ui-nightly/transmute-dst-not-frombytes.rs:17:41
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
6
6
|
|
|
|
7
|
-
help: the trait `
|
|
8
|
-
--> tests/ui-nightly
|
|
7
|
+
help: the trait `FromBytes` is not implemented for `NotZerocopy`
|
|
8
|
+
--> tests/ui-nightly/../include.rs
|
|
9
9
|
|
|
|
10
10
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
11
11
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
12
12
|
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
|
|
13
|
-
= help: the following other types implement trait `
|
|
13
|
+
= help: the following other types implement trait `FromBytes`:
|
|
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 `DST_NOT_FROM_BYTES::transmute`
|
|
24
|
-
--> tests/ui-nightly/transmute-dst-not-frombytes.rs:
|
|
24
|
+
--> tests/ui-nightly/transmute-dst-not-frombytes.rs:17:41
|
|
25
25
|
|
|
|
26
|
-
|
|
26
|
+
17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
|
|
27
27
|
| ^^^^^^^^^^^^^^^^^^^
|
|
28
28
|
| |
|
|
29
29
|
| required by a bound in this function
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
warning: taking a mutable reference to a `const` item
|
|
2
|
-
--> tests/ui-nightly/transmute-mut-const.rs:
|
|
2
|
+
--> tests/ui-nightly/transmute-mut-const.rs:18:52
|
|
3
3
|
|
|
|
4
|
-
|
|
4
|
+
18 | const CONST_CONTEXT: &mut [u8; 2] = transmute_mut!(&mut ARRAY_OF_U8S);
|
|
5
5
|
| ^^^^^^^^^^^^^^^^^
|
|
6
6
|
|
|
|
7
7
|
= note: each usage of a `const` item creates a new temporary
|
|
8
8
|
= note: the mutable reference will refer to this temporary, not the original `const` item
|
|
9
9
|
note: `const` item defined here
|
|
10
|
-
--> tests/ui-nightly/transmute-mut-const.rs:
|
|
10
|
+
--> tests/ui-nightly/transmute-mut-const.rs:15:1
|
|
11
11
|
|
|
|
12
|
-
|
|
12
|
+
15 | const ARRAY_OF_U8S: [u8; 2] = [0u8; 2];
|
|
13
13
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
14
14
|
= note: `#[warn(const_item_mutation)]` on by default
|
|
15
15
|
|
|
16
|
-
error[E0015]: cannot call non-const method `Wrap::<&mut [u8; 2], &mut [u8; 2]>::transmute_mut` in constants
|
|
17
|
-
--> tests/ui-nightly/transmute-mut-const.rs:
|
|
16
|
+
error[E0015]: cannot call non-const method `zerocopy::util::macro_util::Wrap::<&mut [u8; 2], &mut [u8; 2]>::transmute_mut` in constants
|
|
17
|
+
--> tests/ui-nightly/transmute-mut-const.rs:18:37
|
|
18
18
|
|
|
|
19
|
-
|
|
19
|
+
18 | const CONST_CONTEXT: &mut [u8; 2] = transmute_mut!(&mut ARRAY_OF_U8S);
|
|
20
20
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
21
21
|
|
|
|
22
22
|
= note: calls in constants are limited to constant functions, tuple structs and tuple variants
|